Commit 33f99ccc authored by zhangzhaohui's avatar zhangzhaohui

uniapp端修改

parent 4da366ad
node_modules node_modules
\ No newline at end of file unpackage/dist
\ No newline at end of file
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0", "version": "0.0",
"configurations": [{ "configurations": [{
"app-plus" :
{
"launchtype" : "local"
},
"default" : "default" :
{ {
"launchtype" : "local" "launchtype" : "local"
......
import MinRequest from '../utils/request.js' import MinRequest from '../utils/request.js'
const minRequest = new MinRequest() const minRequest = new MinRequest()
import qs from 'qs' import qs from 'qs'
/* 获取风貌区列表 */
export function getGuidePointList() {
return minRequest.get('/xqg/guidepoint/no-auth/getListForSelect')
}
/* 获取导览路线列表 */ /* 获取导览路线列表 */
export function getVisitRoutes(){ export function getVisitRoutes(id){
return minRequest.get('/xqg/guideroute/no-auth/list') return minRequest.get('/xqg/guideroute/no-auth/list?pointId=' + id)
} }
/* 根据类型Id获取点位列表 */ /* 根据类型Id获取点位列表 */
export function getPointListById(typeId) { export function getPointListById(typeId) {
...@@ -18,6 +21,6 @@ export function getPointListByName(name) { ...@@ -18,6 +21,6 @@ export function getPointListByName(name) {
export function getSlightDetail(id) { export function getSlightDetail(id) {
return minRequest.get('/xqg/guideinfo/no-auth/' + id) return minRequest.get('/xqg/guideinfo/no-auth/' + id)
} }
export function getGuildbookList() { export function getGuildbookList(id) {
return minRequest.get('/xqg/guidebook/no-auth/list') return minRequest.get('/xqg/guidebook/no-auth/list?pointId=' + id)
} }
\ No newline at end of file
...@@ -61,13 +61,24 @@ ...@@ -61,13 +61,24 @@
pause() { pause() {
this.paused = true this.paused = true
this.audio.pause() this.audio.pause()
} },
}, },
created() { created() {
if (this.src) { if (this.src) {
this.audio.src = this.src this.audio.src = this.src
this.autoplay && this.play() this.autoplay && this.play()
this.audio.onCanplay(()=>{
this.audio.duration;
setTimeout(() => {
this.duration=this.audio.duration
}, 1000)
})
} }
this.audio.obeyMuteSwitch = false this.audio.obeyMuteSwitch = false
//音频进度更新事件 //音频进度更新事件
this.audio.onTimeUpdate(() => { this.audio.onTimeUpdate(() => {
......
...@@ -5,6 +5,7 @@ Vue.config.productionTip = false ...@@ -5,6 +5,7 @@ Vue.config.productionTip = false
App.mpType = 'app' App.mpType = 'app'
import store from 'store' import store from 'store'
import uView from '@/uni_modules/uview-ui' import uView from '@/uni_modules/uview-ui'
//Vue.prototype.$staticUrl = 'http://192.168.10.5:18000/hmit-admin/static'
Vue.prototype.$staticUrl = 'https://xqg.zjhmit.com/hmit-admin/static' Vue.prototype.$staticUrl = 'https://xqg.zjhmit.com/hmit-admin/static'
Vue.use(uView); Vue.use(uView);
const app = new Vue({ const app = new Vue({
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
{ {
"path": "pages/map", "path": "pages/map",
"style": { "style": {
"navigationBarTitleText": "蟹钳港风貌区智慧导览" "navigationBarTitleText": ""
} }
}, },
{ {
......
<template> <template>
<view class="advertise-box" :class="place === 'xqg' ? 'xqg-bg' : 'hba-bg'"> <view class="advertise-box xqg-bg">
<view class="title-box"> <view class="title-box">
{{title}} {{title}}
</view> </view>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="cover-box" :class="book.type" style="bottom: 60rpx;"> <view class="cover-box" :class="book.type" style="bottom: 60rpx;">
<image :src="`${staticUrl}${book.coverSrc}`"></image> <image :src="`${staticUrl}${book.coverSrc}`"></image>
</view> </view>
<view class="_title" :style="{'height': place === 'hba' ? '90rpx' : '72rpx'}">【{{book.bookTitle}}{{title}}</view> <view class="_title">{{book.bookTitle}}</view>
</view> </view>
</view> </view>
<view class="shelf-bg"></view> <view class="shelf-bg"></view>
...@@ -25,22 +25,14 @@ ...@@ -25,22 +25,14 @@
<script> <script>
import { getGuildbookList } from '@/api/index.js' import { getGuildbookList } from '@/api/index.js'
const nameMap = {
'xqg': '蟹钳港',
'hba': '黄避岙'
}
const placeMap = { const placeMap = {
'xqg': '象山潮隐海山蟹钳港县域风貌区', 'xqg': '象山潮隐海山蟹钳港县域风貌区',
'hba': '象山墙头-黄避岙“斑斓海岸”县域风貌区' 'hba': '象山墙头-黄避岙“斑斓海岸”县域风貌区'
} }
const typeListMap = {
'xqg' : ['video', 'pdf', 'pdf', 'pdf', 'doc', 'img', 'pdf', 'doc'],
'hba' : ['video', 'pdf', 'pdf', 'doc', 'img', 'doc', 'pdf','empty']
}
export default({ export default({
data() { data() {
return { return {
place: '', pointId: '',
title: '', title: '',
downloadIng: false, downloadIng: false,
bookList: [] bookList: []
...@@ -55,28 +47,21 @@ ...@@ -55,28 +47,21 @@
} }
}, },
onLoad(opt) { onLoad(opt) {
this.place = opt.place this.pointId = opt.id
this.title = placeMap[opt.place]
uni.setNavigationBarTitle({
title: this.title
})
this.getList() this.getList()
}, },
methods: { methods: {
getList() { getList() {
getGuildbookList().then(res => { getGuildbookList(this.pointId).then(res => {
if (res.code === 0) { if (res.code === 0) {
let typeList = typeListMap[this.place] res.data.forEach((item, index) => {
res.data.filter(item => { item.type = this.getType(item.bookSrc.split('.')[1])
return item.remark === nameMap[this.place]
}).forEach((item, index) => {
item.type = typeList[index]
if (index % 2 === 0) { if (index % 2 === 0) {
this.bookList.push([]) this.bookList.push([])
} }
this.bookList[Math.floor(index / 2)].push(item) this.bookList[Math.floor(index / 2)].push(item)
}) })
console.log(this.bookList)
} }
}) })
}, },
...@@ -89,9 +74,22 @@ ...@@ -89,9 +74,22 @@
this.checkBook(item) this.checkBook(item)
} }
}, },
getType(suffix) {
if (suffix === 'pdf') {
return 'pdf'
} else if (['mp4'].includes(suffix)) {
return 'video'
} else if (['jpg', 'png'].includes(suffix)) {
return 'image'
} else if (['docx'].includes(suffix)) {
return 'doc'
} else {
return ''
}
},
checkVideo() { checkVideo() {
uni.navigateTo({ uni.navigateTo({
url: '../advertise-video?place=' + this.place url: '../advertise-video?id=' + this.pointId
}) })
}, },
checkImg(item) { checkImg(item) {
...@@ -210,7 +208,8 @@ ...@@ -210,7 +208,8 @@
background-size: 100% 100%; background-size: 100% 100%;
left: 0rpx; left: 0rpx;
image{ image{
width: 227rpx;height: 170rpx; width: 227rpx;
height: 170rpx;
} }
} }
.pdf{ .pdf{
...@@ -223,7 +222,7 @@ ...@@ -223,7 +222,7 @@
width: 192rpx;height: 192rpx; width: 192rpx;height: 192rpx;
} }
} }
.img{ .image{
width: 203rpx; width: 203rpx;
height: 194rpx; height: 194rpx;
background: url('../../static/img/wj_03.png') no-repeat; background: url('../../static/img/wj_03.png') no-repeat;
......
...@@ -5,24 +5,20 @@ ...@@ -5,24 +5,20 @@
<script> <script>
import { getGuildbookList } from '../api/index.js' import { getGuildbookList } from '../api/index.js'
const placeMap = {
'hba': '黄避岙',
'xqg': '蟹钳港'
}
export default({ export default({
data() { data() {
return { return {
place: '', pointId: '',
posterSrc: '', posterSrc: '',
videoSrc: '' videoSrc: ''
} }
}, },
methods: { methods: {
getVideoInfo() { getVideoInfo() {
getGuildbookList().then(res => { getGuildbookList(this.pointId).then(res => {
if (res.code === 0) { if (res.code === 0) {
let info = res.data.filter(item => { let info = res.data.filter(item => {
return item.remark === placeMap[this.place] && item.bookSrc.includes('mp4') return item.bookSrc.includes('mp4')
}) })
this.posterSrc = this.$staticUrl + info[0].coverSrc this.posterSrc = this.$staticUrl + info[0].coverSrc
this.videoSrc = this.$staticUrl + info[0].bookSrc this.videoSrc = this.$staticUrl + info[0].bookSrc
...@@ -32,7 +28,7 @@ ...@@ -32,7 +28,7 @@
}, },
onLoad(opt) { onLoad(opt) {
this.place = opt.place this.pointId = opt.id
this.getVideoInfo() this.getVideoInfo()
} }
}) })
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<script> <script>
export default({ export default({
onLoad(option) { onLoad(option) {
console.log('option', 'aa')
let lat = option.location.split(',')[0] let lat = option.location.split(',')[0]
let lng = option.location.split(',')[1] let lng = option.location.split(',')[1]
uni.openLocation({ uni.openLocation({
......
<template> <template>
<view class="home"> <view class="home">
<image class="home-banner" src="https://xqg.zjhmit.com/xqg/handbook/index_top_banner.jpg"></image> <image class="home-banner" src="https://xqg.zjhmit.com/xqg/handbook/index_top_banner.jpg"></image>
<view class="brief-box" v-for="item in placeList" @click="toMap(item)"> <!-- <view class="brief-box" v-for="item in placeList" @click="toMap(item)">
<text>{{item.name}}县域风貌区</text> <text>{{item.name}}县域风貌区</text>
</view> </view> -->
<!-- <view class="brief-box" @click="toBrief"> <!-- <view class="brief-box" @click="toBrief">
<image class="brief-icon" src="../static/img/index_tb_icon.png"></image> <image class="brief-icon" src="../static/img/index_tb_icon.png"></image>
<text>象山县风貌区简介</text> <text>象山县风貌区简介</text>
</view> </view> -->
<view class="map-list"> <view class="map-list">
<view class="map-item" v-for="item in placeList" @click="toMap(item)"> <view class="map-item" v-for="item in placeList" @click="toMap(item)">
<view class="_name">{{item.name}}</view> <view class="_name">{{item.pointName}}</view>
<view class="_type">{{item.type}}</view> <view class="_type">{{item.remark}}</view>
</view> </view>
</view> --> </view>
</view> </view>
</template> </template>
<script> <script>
import { getGuidePointList } from '../api/index.js'
export default { export default {
data() { data() {
return { return {
placeList: [ placeList: []
{
name: '象山潮隐海山蟹钳港',
type: '县域风貌区',
url: 'map'
},
{
name: '象山墙头-黄避岙“斑斓海岸”',
type: '县域风貌区',
url: 'advertise-book/list?place=hba'
},
// {
// name: '爵溪-石浦“东海扬帆”',
// type: '县域风貌区'
// },
// {
// name: '石浦渔港古城',
// type: '传统风貌区'
// },
]
} }
}, },
methods: { methods: {
getList() {
getGuidePointList().then(res => {
if (res.code === 0) {
this.placeList = res.data
}
})
},
toBrief() { toBrief() {
uni.navigateTo({ uni.navigateTo({
url: 'brief' url: 'brief'
}) })
}, },
toMap(item) { toMap(item) {
if (item.url) { uni.navigateTo({
uni.navigateTo({ url: 'map?id=' + item.id + '&title=' + item.pointName
url:item.url })
})
} else {
uni.showToast({
icon: 'none',
title: '建设中'
})
}
} }
}, },
onLoad() { onLoad() {
this.getList()
}, },
onShow() { onShow() {
} }
......
...@@ -8,18 +8,21 @@ ...@@ -8,18 +8,21 @@
export default { export default {
data() { data() {
return { return {
baseSrc: 'https://xqg.zjhmit.com/#/', /* baseSrc: 'https://xqg.zjhmit.com/#/',
src: 'https://xqg.zjhmit.com/#/' src: 'https://xqg.zjhmit.com/#/' */
// baseSrc: 'http://192.168.10.175:8080/#/', baseSrc: 'http://192.168.10.175:8080/#/',
// src: 'http://192.168.10.175:8080/#/' src: 'http://192.168.10.175:8080/#/'
} }
}, },
methods: { methods: {
}, },
onLoad(opt) { onLoad(opt) {
uni.setNavigationBarTitle({
title: opt.title
});
this.src = this.baseSrc +'?id=' + opt.id
if (opt.q) { if (opt.q) {
console.log(opt)
const q = decodeURIComponent(opt.q) const q = decodeURIComponent(opt.q)
let scan = q.split('?scan=')[1] let scan = q.split('?scan=')[1]
if (scan == 1) { if (scan == 1) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<image class="banner" :src="`${imgUrlPre}/static${slightInfo.coverSrc}`"></image> <image class="banner" :src="`${imgUrlPre}/static${slightInfo.coverSrc}`"></image>
<image class="vr-btn" v-if="slightInfo.guideVrInfoDTOList.length > 0" @click="preview" src="../static/img/vr_btn.png"></image> <image class="vr-btn" v-if="slightInfo.guideVrInfoDTOList.length > 0" @click="preview" src="../static/img/vr_btn.png"></image>
</view> </view>
<imt-audio :control="false" :src="`${imgUrlPre}/static${slightInfo.audioSrc}`"></imt-audio> <imt-audio :control="false" :src="`${imgUrlPre}/static${slightInfo.audioSrc}`"></imt-audio>
<view class="detail-title"> <view class="detail-title">
{{slightInfo.guideTitle}} {{slightInfo.guideTitle}}
</view> </view>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<img class="_icon" src="../static/img/share_icon.png"/> <img class="_icon" src="../static/img/share_icon.png"/>
分享 分享
</button> </button>
<button class="operate-item" @click="forward"> <button class="operate-item" @click="forward" v-show="slightInfo.pointArea==='潮隐海山蟹钳港'">
<img class="_icon" src="../static/img/nav_icon.png"/> <img class="_icon" src="../static/img/nav_icon.png"/>
前往 前往
</button> </button>
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
data() { data() {
return { return {
player: null, player: null,
slightInfo: null slightInfo: null,
} }
}, },
components: { components: {
......
...@@ -8,19 +8,20 @@ ...@@ -8,19 +8,20 @@
export default { export default {
data() { data() {
return { return {
baseSrc: 'https://xqg.zjhmit.com/#/VisitMap', /* baseSrc: 'https://xqg.zjhmit.com/#/VisitMap',
src: 'https://xqg.zjhmit.com/#/VisitMap' src: 'https://xqg.zjhmit.com/#/VisitMap' */
// baseSrc: 'http://192.168.10.175:8080/#/VisitMap', baseSrc: 'http://192.168.10.175:8080/#/VisitMap',
// src: 'http://192.168.10.175:8080/#/VisitMap' src: 'http://192.168.10.175:8080/#/VisitMap'
} }
}, },
methods: { methods: {
}, },
onLoad(opt) { onLoad(opt) {
console.log(opt.id)
let id = opt.id
let routeIndex = opt.routeIndex let routeIndex = opt.routeIndex
console.log(routeIndex) this.src = `${this.baseSrc}?id=${id}&routeIndex=${routeIndex}`
this.src = this.baseSrc += '?routeIndex=' + routeIndex
}, },
onShow() { onShow() {
} }
......
...@@ -27,17 +27,18 @@ export default { ...@@ -27,17 +27,18 @@ export default {
}, },
data() { data() {
return { return {
guideId: '',
routeList: [] routeList: []
} }
}, },
methods: { methods: {
chooseRoute(item, index) { chooseRoute(item, index) {
uni.navigateTo({ uni.navigateTo({
url: 'visit-page?routeIndex=' + index url: 'visit-page?routeIndex=' + index +'&id=' +this.guideId
}) })
}, },
getList() { getList() {
getVisitRoutes().then(res => { getVisitRoutes(this.guideId).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.routeList = res.data.list this.routeList = res.data.list
this.routeList.forEach(i => { this.routeList.forEach(i => {
...@@ -49,7 +50,9 @@ export default { ...@@ -49,7 +50,9 @@ export default {
}) })
} }
}, },
mounted() { onLoad(opt) {
console.log(opt.id)
this.guideId = opt.id
this.getList() this.getList()
} }
} }
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
export default { export default {
data() { data() {
return { return {
baseSrc: 'https://xqg.zjhmit.com/#/VrPreview', /* baseSrc: 'https://xqg.zjhmit.com/#/VrPreview',
src: 'https://xqg.zjhmit.com/#/VrPreview' src: 'https://xqg.zjhmit.com/#/VrPreview' */
// baseSrc: 'http://192.168.10.175:8080/#/VrPreview', baseSrc: 'http://192.168.10.175:8080/#/VrPreview',
// src: 'http://192.168.10.175:8080/#/VrPreview' src: 'http://192.168.10.175:8080/#/VrPreview'
} }
}, },
methods: { methods: {
......
...@@ -16,7 +16,8 @@ var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4)); ...@@ -16,7 +16,8 @@ var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
var _store = _interopRequireDefault(__webpack_require__(/*! store */ 12)); var _store = _interopRequireDefault(__webpack_require__(/*! store */ 12));
var _uviewUi = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/uview-ui */ 14));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} // @ts-ignore var _uviewUi = _interopRequireDefault(__webpack_require__(/*! @/uni_modules/uview-ui */ 14));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;_vue.default.config.productionTip = false;_App.default.mpType = 'app';_vue.default.prototype.$staticUrl = 'https://xqg.zjhmit.com/hmit-admin/static'; wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;_vue.default.config.productionTip = false;_App.default.mpType = 'app'; //Vue.prototype.$staticUrl = 'http://192.168.10.5:18000/hmit-admin/static'
_vue.default.prototype.$staticUrl = 'https://xqg.zjhmit.com/hmit-admin/static';
_vue.default.use(_uviewUi.default); _vue.default.use(_uviewUi.default);
var app = new _vue.default(_objectSpread({ var app = new _vue.default(_objectSpread({
store: _store.default }, store: _store.default },
......
...@@ -19562,21 +19562,7 @@ platform;exports.default = _default; ...@@ -19562,21 +19562,7 @@ platform;exports.default = _default;
/* 141 */, /* 141 */,
/* 142 */, /* 142 */,
/* 143 */, /* 143 */,
/* 144 */, /* 144 */
/* 145 */,
/* 146 */,
/* 147 */,
/* 148 */,
/* 149 */,
/* 150 */,
/* 151 */,
/* 152 */,
/* 153 */,
/* 154 */,
/* 155 */,
/* 156 */,
/* 157 */,
/* 158 */
/*!************************************************!*\ /*!************************************************!*\
!*** C:/Users/DELL/xqg-guide-uni/api/index.js ***! !*** C:/Users/DELL/xqg-guide-uni/api/index.js ***!
\************************************************/ \************************************************/
...@@ -19584,13 +19570,16 @@ platform;exports.default = _default; ...@@ -19584,13 +19570,16 @@ platform;exports.default = _default;
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.getVisitRoutes = getVisitRoutes;exports.getPointListById = getPointListById;exports.getPointListByName = getPointListByName;exports.getSlightDetail = getSlightDetail;exports.getGuildbookList = getGuildbookList;var _request = _interopRequireDefault(__webpack_require__(/*! ../utils/request.js */ 159)); Object.defineProperty(exports, "__esModule", { value: true });exports.getGuidePointList = getGuidePointList;exports.getVisitRoutes = getVisitRoutes;exports.getPointListById = getPointListById;exports.getPointListByName = getPointListByName;exports.getSlightDetail = getSlightDetail;exports.getGuildbookList = getGuildbookList;var _request = _interopRequireDefault(__webpack_require__(/*! ../utils/request.js */ 145));
var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 160));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var minRequest = new _request.default();
var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 146));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var minRequest = new _request.default();
/* 获取风貌区列表 */
function getGuidePointList() {
return minRequest.get('/xqg/guidepoint/no-auth/getListForSelect');
}
/* 获取导览路线列表 */ /* 获取导览路线列表 */
function getVisitRoutes() { function getVisitRoutes(id) {
return minRequest.get('/xqg/guideroute/no-auth/list'); return minRequest.get('/xqg/guideroute/no-auth/list?pointId=' + id);
} }
/* 根据类型Id获取点位列表 */ /* 根据类型Id获取点位列表 */
function getPointListById(typeId) { function getPointListById(typeId) {
...@@ -19604,12 +19593,12 @@ function getPointListByName(name) { ...@@ -19604,12 +19593,12 @@ function getPointListByName(name) {
function getSlightDetail(id) { function getSlightDetail(id) {
return minRequest.get('/xqg/guideinfo/no-auth/' + id); return minRequest.get('/xqg/guideinfo/no-auth/' + id);
} }
function getGuildbookList() { function getGuildbookList(id) {
return minRequest.get('/xqg/guidebook/no-auth/list'); return minRequest.get('/xqg/guidebook/no-auth/list?pointId=' + id);
} }
/***/ }), /***/ }),
/* 159 */ /* 145 */
/*!****************************************************!*\ /*!****************************************************!*\
!*** C:/Users/DELL/xqg-guide-uni/utils/request.js ***! !*** C:/Users/DELL/xqg-guide-uni/utils/request.js ***!
\****************************************************/ \****************************************************/
...@@ -19625,7 +19614,7 @@ var requestAfter = Symbol('requestAfter');var ...@@ -19625,7 +19614,7 @@ var requestAfter = Symbol('requestAfter');var
MinRequest = /*#__PURE__*/function () {function MinRequest() {_classCallCheck(this, MinRequest);_defineProperty(this, MinRequest = /*#__PURE__*/function () {function MinRequest() {_classCallCheck(this, MinRequest);_defineProperty(this,
config, { config, {
baseURL: 'https://xqg.zjhmit.com/hmit-api', // '', baseURL: 'https://xqg.zjhmit.com/hmit-api', // '',
// baseURL: 'http://192.168.10.20:18001/hmit-api', // '', // baseURL: 'http://192.168.10.5:18001/hmit-api', // '',
header: { header: {
'content-type': 'application/json' }, 'content-type': 'application/json' },
...@@ -19712,7 +19701,7 @@ MinRequest;exports.default = _default; ...@@ -19712,7 +19701,7 @@ MinRequest;exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }), /***/ }),
/* 160 */ /* 146 */
/*!**************************************!*\ /*!**************************************!*\
!*** ./node_modules/qs/lib/index.js ***! !*** ./node_modules/qs/lib/index.js ***!
\**************************************/ \**************************************/
...@@ -19722,9 +19711,9 @@ MinRequest;exports.default = _default; ...@@ -19722,9 +19711,9 @@ MinRequest;exports.default = _default;
"use strict"; "use strict";
var stringify = __webpack_require__(/*! ./stringify */ 161); var stringify = __webpack_require__(/*! ./stringify */ 147);
var parse = __webpack_require__(/*! ./parse */ 164); var parse = __webpack_require__(/*! ./parse */ 150);
var formats = __webpack_require__(/*! ./formats */ 163); var formats = __webpack_require__(/*! ./formats */ 149);
module.exports = { module.exports = {
formats: formats, formats: formats,
...@@ -19734,7 +19723,7 @@ module.exports = { ...@@ -19734,7 +19723,7 @@ module.exports = {
/***/ }), /***/ }),
/* 161 */ /* 147 */
/*!******************************************!*\ /*!******************************************!*\
!*** ./node_modules/qs/lib/stringify.js ***! !*** ./node_modules/qs/lib/stringify.js ***!
\******************************************/ \******************************************/
...@@ -19744,8 +19733,8 @@ module.exports = { ...@@ -19744,8 +19733,8 @@ module.exports = {
"use strict"; "use strict";
var utils = __webpack_require__(/*! ./utils */ 162); var utils = __webpack_require__(/*! ./utils */ 148);
var formats = __webpack_require__(/*! ./formats */ 163); var formats = __webpack_require__(/*! ./formats */ 149);
var arrayPrefixGenerators = { var arrayPrefixGenerators = {
brackets: function brackets(prefix) { // eslint-disable-line func-name-matching brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
...@@ -19955,7 +19944,7 @@ module.exports = function (object, opts) { ...@@ -19955,7 +19944,7 @@ module.exports = function (object, opts) {
/***/ }), /***/ }),
/* 162 */ /* 148 */
/*!**************************************!*\ /*!**************************************!*\
!*** ./node_modules/qs/lib/utils.js ***! !*** ./node_modules/qs/lib/utils.js ***!
\**************************************/ \**************************************/
...@@ -20179,7 +20168,7 @@ module.exports = { ...@@ -20179,7 +20168,7 @@ module.exports = {
/***/ }), /***/ }),
/* 163 */ /* 149 */
/*!****************************************!*\ /*!****************************************!*\
!*** ./node_modules/qs/lib/formats.js ***! !*** ./node_modules/qs/lib/formats.js ***!
\****************************************/ \****************************************/
...@@ -20208,7 +20197,7 @@ module.exports = { ...@@ -20208,7 +20197,7 @@ module.exports = {
/***/ }), /***/ }),
/* 164 */ /* 150 */
/*!**************************************!*\ /*!**************************************!*\
!*** ./node_modules/qs/lib/parse.js ***! !*** ./node_modules/qs/lib/parse.js ***!
\**************************************/ \**************************************/
...@@ -20218,7 +20207,7 @@ module.exports = { ...@@ -20218,7 +20207,7 @@ module.exports = {
"use strict"; "use strict";
var utils = __webpack_require__(/*! ./utils */ 162); var utils = __webpack_require__(/*! ./utils */ 148);
var has = Object.prototype.hasOwnProperty; var has = Object.prototype.hasOwnProperty;
...@@ -20393,6 +20382,20 @@ module.exports = function (str, opts) { ...@@ -20393,6 +20382,20 @@ module.exports = function (str, opts) {
/***/ }), /***/ }),
/* 151 */,
/* 152 */,
/* 153 */,
/* 154 */,
/* 155 */,
/* 156 */,
/* 157 */,
/* 158 */,
/* 159 */,
/* 160 */,
/* 161 */,
/* 162 */,
/* 163 */,
/* 164 */,
/* 165 */, /* 165 */,
/* 166 */, /* 166 */,
/* 167 */, /* 167 */,
......
...@@ -206,10 +206,21 @@ var _default = ...@@ -206,10 +206,21 @@ var _default =
} }, } },
created: function created() {var _this = this; created: function created() {var _this = this;
if (this.src) { if (this.src) {
this.audio.src = this.src; this.audio.src = this.src;
this.autoplay && this.play(); this.autoplay && this.play();
this.audio.onCanplay(function () {
_this.audio.duration;
setTimeout(function () {
_this.duration = _this.audio.duration;
}, 1000);
});
} }
this.audio.obeyMuteSwitch = false; this.audio.obeyMuteSwitch = false;
//音频进度更新事件 //音频进度更新事件
this.audio.onTimeUpdate(function () { this.audio.onTimeUpdate(function () {
......
<view class="{{['advertise-box','data-v-fadd3016',place==='xqg'?'xqg-bg':'hba-bg']}}"><view class="title-box data-v-fadd3016">{{''+title+''}}</view><scroll-view class="book-list data-v-fadd3016" scroll-y="true"><block wx:for="{{bookList}}" wx:for-item="shelf" wx:for-index="__i0__"><view class="shelf-list data-v-fadd3016"><view class="book-content data-v-fadd3016"><block wx:for="{{shelf}}" wx:for-item="book" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['clickHandle',['$0'],[[['bookList','',__i0__],['','id',book.id]]]]]]]}}" class="book-item data-v-fadd3016" bindtap="__e"><view class="{{['cover-box','data-v-fadd3016',book.type]}}" style="bottom:60rpx;"><image src="{{''+staticUrl+book.coverSrc}}" class="data-v-fadd3016"></image></view><view class="_title data-v-fadd3016" style="{{'height:'+(place==='hba'?'90rpx':'72rpx')+';'}}">{{"【"+book.bookTitle+"】"+title}}</view></view></block></view><view class="shelf-bg data-v-fadd3016"></view></view></block></scroll-view><view class="book-count-container data-v-fadd3016"><view class="count-box data-v-fadd3016">{{"共"+count+"本"}}</view></view></view> <view class="advertise-box xqg-bg data-v-fadd3016"><view class="title-box data-v-fadd3016">{{''+title+''}}</view><scroll-view class="book-list data-v-fadd3016" scroll-y="true"><block wx:for="{{bookList}}" wx:for-item="shelf" wx:for-index="__i0__"><view class="shelf-list data-v-fadd3016"><view class="book-content data-v-fadd3016"><block wx:for="{{shelf}}" wx:for-item="book" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['clickHandle',['$0'],[[['bookList','',__i0__],['','id',book.id]]]]]]]}}" class="book-item data-v-fadd3016" bindtap="__e"><view class="{{['cover-box','data-v-fadd3016',book.type]}}" style="bottom:60rpx;"><image src="{{''+staticUrl+book.coverSrc}}" class="data-v-fadd3016"></image></view><view class="_title data-v-fadd3016">{{book.bookTitle}}</view></view></block></view><view class="shelf-bg data-v-fadd3016"></view></view></block></scroll-view><view class="book-count-container data-v-fadd3016"><view class="count-box data-v-fadd3016">{{"共"+count+"本"}}</view></view></view>
\ No newline at end of file \ No newline at end of file
...@@ -105,14 +105,14 @@ ...@@ -105,14 +105,14 @@
width: 192rpx; width: 192rpx;
height: 192rpx; height: 192rpx;
} }
.advertise-box .book-list .shelf-list .book-content .book-item .img.data-v-fadd3016 { .advertise-box .book-list .shelf-list .book-content .book-item .image.data-v-fadd3016 {
width: 203rpx; width: 203rpx;
height: 194rpx; height: 194rpx;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVcAAAEjCAYAAACGgkLPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDUwNUFGNTNENkEzMTFFRDk4NkJDNUVFM0Y3MTFDQUYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDUwNUFGNTRENkEzMTFFRDk4NkJDNUVFM0Y3MTFDQUYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2V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=) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
left: 16rpx; left: 16rpx;
} }
.advertise-box .book-list .shelf-list .book-content .book-item .img image.data-v-fadd3016 { .advertise-box .book-list .shelf-list .book-content .book-item .image image.data-v-fadd3016 {
width: 192rpx; width: 192rpx;
height: 192rpx; height: 192rpx;
} }
......
...@@ -138,25 +138,21 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default = ...@@ -138,25 +138,21 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
var _index = __webpack_require__(/*! ../api/index.js */ 158); // var _index = __webpack_require__(/*! ../api/index.js */ 144); //
// //
// //
// //
// //
var placeMap = { 'hba': '黄避岙', 'xqg': '蟹钳港' };var _default = { var _default = { data: function data() {return { pointId: '', posterSrc: '',
data: function data() {
return {
place: '',
posterSrc: '',
videoSrc: '' }; videoSrc: '' };
}, },
methods: { methods: {
getVideoInfo: function getVideoInfo() {var _this = this; getVideoInfo: function getVideoInfo() {var _this = this;
(0, _index.getGuildbookList)().then(function (res) { (0, _index.getGuildbookList)(this.pointId).then(function (res) {
if (res.code === 0) { if (res.code === 0) {
var info = res.data.filter(function (item) { var info = res.data.filter(function (item) {
return item.remark === placeMap[_this.place] && item.bookSrc.includes('mp4'); return item.bookSrc.includes('mp4');
}); });
_this.posterSrc = _this.$staticUrl + info[0].coverSrc; _this.posterSrc = _this.$staticUrl + info[0].coverSrc;
_this.videoSrc = _this.$staticUrl + info[0].bookSrc; _this.videoSrc = _this.$staticUrl + info[0].bookSrc;
...@@ -166,7 +162,7 @@ var placeMap = { 'hba': '黄避岙', 'xqg': '蟹钳港' };var _default = { ...@@ -166,7 +162,7 @@ var placeMap = { 'hba': '黄避岙', 'xqg': '蟹钳港' };var _default = {
onLoad: function onLoad(opt) { onLoad: function onLoad(opt) {
this.place = opt.place; this.pointId = opt.id;
this.getVideoInfo(); this.getVideoInfo();
} };exports.default = _default; } };exports.default = _default;
......
...@@ -136,7 +136,6 @@ __webpack_require__.r(__webpack_exports__); ...@@ -136,7 +136,6 @@ __webpack_require__.r(__webpack_exports__);
var _default = var _default =
{ {
onLoad: function onLoad(option) { onLoad: function onLoad(option) {
console.log('option', 'aa');
var lat = option.location.split(',')[0]; var lat = option.location.split(',')[0];
var lng = option.location.split(',')[1]; var lng = option.location.split(',')[1];
uni.openLocation({ uni.openLocation({
......
This diff is collapsed.
<view class="home data-v-86d91950"><image class="home-banner data-v-86d91950" src="https://xqg.zjhmit.com/xqg/handbook/index_top_banner.jpg"></image><block wx:for="{{placeList}}" wx:for-item="item" wx:for-index="__i0__"><view data-event-opts="{{[['tap',[['toMap',['$0'],[[['placeList','',__i0__]]]]]]]}}" class="brief-box data-v-86d91950" bindtap="__e"><text class="data-v-86d91950">{{item.name+"县域风貌区"}}</text></view></block></view> <view class="home data-v-86d91950"><image class="home-banner data-v-86d91950" src="https://xqg.zjhmit.com/xqg/handbook/index_top_banner.jpg"></image><view class="map-list data-v-86d91950"><block wx:for="{{placeList}}" wx:for-item="item" wx:for-index="__i0__"><view data-event-opts="{{[['tap',[['toMap',['$0'],[[['placeList','',__i0__]]]]]]]}}" class="map-item data-v-86d91950" bindtap="__e"><view class="_name data-v-86d91950">{{item.pointName}}</view><view class="_type data-v-86d91950">{{item.remark}}</view></view></block></view></view>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
{ {
"navigationBarTitleText": "蟹钳港风貌区智慧导览", "navigationBarTitleText": "",
"usingComponents": {} "usingComponents": {}
} }
\ No newline at end of file
...@@ -200,7 +200,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -200,7 +200,7 @@ __webpack_require__.r(__webpack_exports__);
var _index = __webpack_require__(/*! ../api/index.js */ 158);var ImtAudio = function ImtAudio() {Promise.all(/*! require.ensure | components/imt-audio/imt-audio */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/imt-audio/imt-audio")]).then((function () {return resolve(__webpack_require__(/*! @/components/imt-audio/imt-audio.vue */ 235));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = var _index = __webpack_require__(/*! ../api/index.js */ 144);var ImtAudio = function ImtAudio() {Promise.all(/*! require.ensure | components/imt-audio/imt-audio */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/imt-audio/imt-audio")]).then((function () {return resolve(__webpack_require__(/*! @/components/imt-audio/imt-audio.vue */ 235));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
{ {
data: function data() { data: function data() {
return { return {
......
<block wx:if="{{slightInfo!==null}}"><view class="slight-detail data-v-59ec2bb2" style="{{'padding-top:'+(navHeight+'px')+';'}}"><view class="banner-box data-v-59ec2bb2"><image class="banner data-v-59ec2bb2" src="{{imgUrlPre+'/static'+slightInfo.coverSrc}}"></image><block wx:if="{{slightInfo.guideVrInfoDTOList.length>0}}"><image class="vr-btn data-v-59ec2bb2" src="../static/img/vr_btn.png" data-event-opts="{{[['tap',[['preview',['$event']]]]]}}" bindtap="__e"></image></block></view><imt-audio vue-id="38cc68d8-1" control="{{false}}" src="{{imgUrlPre+'/static'+slightInfo.audioSrc}}" class="data-v-59ec2bb2" bind:__l="__l"></imt-audio><view class="detail-title data-v-59ec2bb2">{{''+slightInfo.guideTitle+''}}</view><view class="desc-box data-v-59ec2bb2"><rich-text class="detail-desc data-v-59ec2bb2" nodes="{{slightInfo.mainText}}"></rich-text></view><view class="operate-box data-v-59ec2bb2"><button class="operate-item data-v-59ec2bb2" open-type="share" data-event-opts="{{[['tap',[['share',['$event']]]]]}}" bindtap="__e"><image class="_icon _img data-v-59ec2bb2" src="{{$root.m0}}"></image>分享</button><button data-event-opts="{{[['tap',[['forward',['$event']]]]]}}" class="operate-item data-v-59ec2bb2" bindtap="__e"><image class="_icon _img data-v-59ec2bb2" src="{{$root.m1}}"></image>前往</button></view><image class="back-icon data-v-59ec2bb2" src="../static/img/back_icon.png" data-event-opts="{{[['tap',[['back',['$event']]]]]}}" bindtap="__e"></image></view></block> <block wx:if="{{slightInfo!==null}}"><view class="slight-detail data-v-59ec2bb2" style="{{'padding-top:'+(navHeight+'px')+';'}}"><view class="banner-box data-v-59ec2bb2"><image class="banner data-v-59ec2bb2" src="{{imgUrlPre+'/static'+slightInfo.coverSrc}}"></image><block wx:if="{{slightInfo.guideVrInfoDTOList.length>0}}"><image class="vr-btn data-v-59ec2bb2" src="../static/img/vr_btn.png" data-event-opts="{{[['tap',[['preview',['$event']]]]]}}" bindtap="__e"></image></block></view><imt-audio vue-id="38cc68d8-1" control="{{false}}" src="{{imgUrlPre+'/static'+slightInfo.audioSrc}}" class="data-v-59ec2bb2" bind:__l="__l"></imt-audio><view class="detail-title data-v-59ec2bb2">{{''+slightInfo.guideTitle+''}}</view><view class="desc-box data-v-59ec2bb2"><rich-text class="detail-desc data-v-59ec2bb2" nodes="{{slightInfo.mainText}}"></rich-text></view><view class="operate-box data-v-59ec2bb2"><button class="operate-item data-v-59ec2bb2" open-type="share" data-event-opts="{{[['tap',[['share',['$event']]]]]}}" bindtap="__e"><image class="_icon _img data-v-59ec2bb2" src="{{$root.m0}}"></image>分享</button><button data-event-opts="{{[['tap',[['forward',['$event']]]]]}}" hidden="{{!(slightInfo.pointArea==='潮隐海山蟹钳港')}}" class="operate-item data-v-59ec2bb2" bindtap="__e"><image class="_icon _img data-v-59ec2bb2" src="{{$root.m1}}"></image>前往</button></view><image class="back-icon data-v-59ec2bb2" src="../static/img/back_icon.png" data-event-opts="{{[['tap',[['back',['$event']]]]]}}" bindtap="__e"></image></view></block>
\ No newline at end of file \ No newline at end of file
...@@ -140,19 +140,20 @@ var _default = ...@@ -140,19 +140,20 @@ var _default =
{ {
data: function data() { data: function data() {
return { return {
baseSrc: 'https://xqg.zjhmit.com/#/VisitMap', /* baseSrc: 'https://xqg.zjhmit.com/#/VisitMap',
src: 'https://xqg.zjhmit.com/#/VisitMap' src: 'https://xqg.zjhmit.com/#/VisitMap' */
// baseSrc: 'http://192.168.10.175:8080/#/VisitMap', baseSrc: 'http://192.168.10.175:8080/#/VisitMap',
// src: 'http://192.168.10.175:8080/#/VisitMap' src: 'http://192.168.10.175:8080/#/VisitMap' };
};
}, },
methods: {}, methods: {},
onLoad: function onLoad(opt) { onLoad: function onLoad(opt) {
console.log(opt.id);
var id = opt.id;
var routeIndex = opt.routeIndex; var routeIndex = opt.routeIndex;
console.log(routeIndex); this.src = "".concat(this.baseSrc, "?id=").concat(id, "&routeIndex=").concat(routeIndex);
this.src = this.baseSrc += '?routeIndex=' + routeIndex;
}, },
onShow: function onShow() { onShow: function onShow() {
} };exports.default = _default; } };exports.default = _default;
......
...@@ -152,7 +152,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -152,7 +152,7 @@ __webpack_require__.r(__webpack_exports__);
var _index = __webpack_require__(/*! ../api/index.js */ 158); // var _index = __webpack_require__(/*! ../api/index.js */ 144); //
// //
// //
// //
...@@ -171,7 +171,8 @@ var _index = __webpack_require__(/*! ../api/index.js */ 158); // ...@@ -171,7 +171,8 @@ var _index = __webpack_require__(/*! ../api/index.js */ 158); //
// //
// //
// //
var _default = { computed: { imgUrlPre: function imgUrlPre() {return 'https://xqg.zjhmit.com/hmit-admin';} }, data: function data() {return { routeList: [] };}, methods: { chooseRoute: function chooseRoute(item, index) {uni.navigateTo({ url: 'visit-page?routeIndex=' + index });}, getList: function getList() {var _this = this;(0, _index.getVisitRoutes)().then(function (res) { var _default = { computed: { imgUrlPre: function imgUrlPre() {return 'https://xqg.zjhmit.com/hmit-admin';} }, data: function data() {return { guideId: '', routeList: [] };}, methods: { chooseRoute: function chooseRoute(item, index) {uni.navigateTo({ url: 'visit-page?routeIndex=' + index + '&id=' + this.guideId });}, getList: function getList() {var _this = this;
(0, _index.getVisitRoutes)(this.guideId).then(function (res) {
if (res.code === 0) { if (res.code === 0) {
_this.routeList = res.data.list; _this.routeList = res.data.list;
_this.routeList.forEach(function (i) { _this.routeList.forEach(function (i) {
...@@ -183,7 +184,9 @@ var _default = { computed: { imgUrlPre: function imgUrlPre() {return 'https://xq ...@@ -183,7 +184,9 @@ var _default = { computed: { imgUrlPre: function imgUrlPre() {return 'https://xq
}); });
} }, } },
mounted: function mounted() { onLoad: function onLoad(opt) {
console.log(opt.id);
this.guideId = opt.id;
this.getList(); this.getList();
} };exports.default = _default; } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
......
...@@ -140,11 +140,11 @@ var _default = ...@@ -140,11 +140,11 @@ var _default =
{ {
data: function data() { data: function data() {
return { return {
baseSrc: 'https://xqg.zjhmit.com/#/VrPreview', /* baseSrc: 'https://xqg.zjhmit.com/#/VrPreview',
src: 'https://xqg.zjhmit.com/#/VrPreview' src: 'https://xqg.zjhmit.com/#/VrPreview' */
// baseSrc: 'http://192.168.10.175:8080/#/VrPreview', baseSrc: 'http://192.168.10.175:8080/#/VrPreview',
// src: 'http://192.168.10.175:8080/#/VrPreview' src: 'http://192.168.10.175:8080/#/VrPreview' };
};
}, },
methods: {}, methods: {},
......
...@@ -5,38 +5,7 @@ ...@@ -5,38 +5,7 @@
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "minified": true
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "",
...@@ -44,15 +13,19 @@ ...@@ -44,15 +13,19 @@
"projectname": "xqg-guild-uni", "projectname": "xqg-guild-uni",
"condition": { "condition": {
"search": { "search": {
"current": -1,
"list": [] "list": []
}, },
"conversation": { "conversation": {
"current": -1,
"list": [] "list": []
}, },
"game": { "game": {
"current": -1,
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": -1,
"list": [] "list": []
} }
} }
......
...@@ -5,8 +5,8 @@ const requestAfter = Symbol('requestAfter') ...@@ -5,8 +5,8 @@ const requestAfter = Symbol('requestAfter')
class MinRequest { class MinRequest {
[config] = { [config] = {
baseURL: 'https://xqg.zjhmit.com/hmit-api', // '', baseURL: 'https://xqg.zjhmit.com/hmit-api', // '',
// baseURL: 'http://192.168.10.20:18001/hmit-api', // '', // baseURL: 'http://192.168.10.5:18001/hmit-api', // '',
header: { header: {
'content-type': 'application/json' 'content-type': 'application/json'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment