线路排序

main
lion 2 years ago
parent 199c5e55ab
commit 5d95415356

@ -21,7 +21,8 @@
onShow: function() {
console.log('App Show')
console.log('App Show')
},
onHide: function() {
console.log('App Hide')

@ -2,8 +2,8 @@
"name" : "行走红色苏州",
"appid" : "__UNI__511E818",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"versionName" : "1.0.1",
"versionCode" : 101,
"transformPx" : false,
/* 5+App */
"app-plus" : {

@ -168,7 +168,7 @@
<rich-text v-if='showContent' :nodes="info.content?info.content:' '"></rich-text>
</view>
</view>
<view class="detail-btn" @click="toQus(info.id)">
<view class="detail-btn" v-if="hasQuestion" @click="toQus(info.id)">
<image src="../static/detail-btn.png" mode=""></image>
</view>
</view>
@ -203,7 +203,8 @@
playvideo: false,
playimg: false,
qrCode: '',
showQrCode: false,
showQrCode: false,
hasQuestion:false
}
},
onShareAppMessage() {
@ -218,31 +219,24 @@
onLoad(option) {
const MenuButton = uni.getMenuButtonBoundingClientRect()
this.navBarTop = MenuButton.top //
this.getDetail(option.id)
this.getDetail(option.id)
this.getQuestions(option.id)
},
methods: {
playFullScreen() {
let videoContext = uni.createVideoContext('videos', this)
videoContext.requestFullScreen()
},
async getQuestions(id) {
const res = await this.$u.api.getQuestions({
point_id: id
})
this.hasQuestion = res.questions.length>0?true:false
},
async getDetail(id) {
const res = await this.$u.api.pointDetail({
id: id
})
// if(res.points.config && res.points.config.length>0){
// res.points.config.map(item=>{
// if(item.key==='address'){
// res.points.address = item.value
// }
// if(item.key==='time'){
// res.points.time = item.value
// }
// if(item.key==='phone'){
// res.points.phone = item.value
// }
// })
// }
this.info = res.points
this.showVorImage = this.info.video ? true : false
this.vrInfo = res.points.point_content.length > 0 ? res.points.point_content : []
@ -251,7 +245,6 @@
this.imgInfo.push(item.image.url)
})
}
// this.imgInfo = res.points.point_image.length > 0 ? res.points.point_image : []
this.showContent = true
},
swierChange(e) {

@ -97,7 +97,9 @@
const res = await this.$u.api.baseFormIndex({
table_name: "circuits",
page: 1,
page_size: 999,
page_size: 999,
sort_name:'sort',
sort_type:'ASC'
// with_relations:['image']
})
res.data.map((item,index)=>{

Loading…
Cancel
Save