Browse Source

fix: 调整登录逻辑并修复预约详情显示问题

将登录逻辑从App.vue移至agreement.vue
修复cancelArticle.vue中预约成功和失败页面的显示问题
启用queryReservationDetail API接口
调整预约失败后的重新预约按钮逻辑
master
前端-胡立永 1 day ago
parent
commit
3039dd04ae
5 changed files with 35 additions and 18 deletions
  1. +0
    -1
      App.vue
  2. +5
    -5
      api/api.js
  3. +1
    -0
      pages/index/agreement.vue
  4. +25
    -9
      pages/index/cancelArticle.vue
  5. +4
    -3
      store/store.js

+ 0
- 1
App.vue View File

@ -5,7 +5,6 @@
this.$store.commit('initConfig')
// this.$store.commit('getBanner')
// this.$store.commit('getArticleList')
this.$store.commit('login')
},
onHide: function() {}
}


+ 5
- 5
api/api.js View File

@ -89,11 +89,11 @@ const config = {
// auth: true,
// },
// //查询预约详情
// queryReservationDetail: {
// url: '/applet_post/queryReservationDetail',
// method: 'GET',
// auth: true,
// },
queryReservationDetail: {
url: '/applet_post/queryReservationDetail',
method: 'GET',
auth: true,
},
// //查询预约详情
// queryReservationDetail: {
// url: '/applet_post/queryReservationDetail',


+ 1
- 0
pages/index/agreement.vue View File

@ -116,6 +116,7 @@
this.configObj = data
})
this.getPrivacyPolicyList()
this.$store.commit('login')
},
onShow() {
},


+ 25
- 9
pages/index/cancelArticle.vue View File

@ -28,26 +28,35 @@
</view>
<view class="title" v-else-if="key == 'reservationSuccessful'">
<view class="stext" v-else-if="key == 'reservationSuccessful'">
{{ form.name }}先生/小姐
<br />
我们已成功安排了您的上门威士忌品鉴服务
<br />
我们的专员将在{{ form.yearValue }}{{ form.monthDay }} {{ form.dayTime }} 到达
<br />
{{ item.province }}
{{ item.city }}
{{ item.area }}
{{ item.address }}
{{ form.province || '' }}
{{ form.city || '' }}
{{ form.area || '' }}
{{ form.address || '' }}
<view class=""
style="margin: 0 auto;margin-top: 40rpx;width: 500rpx;">
为您带来精致的品鉴体验期待与您共享这段美妙的威士忌之旅
</view>
</view>
<view class="stext" v-else-if="key == 'reservationError'">
{{ form.remarks || '' }} 您可以点击下方按钮重新预约上门品鉴时间
</view>
</view>
<view class="btn-list">
<view class="next-btn-2"
v-if="mapKey[key].next"
@click="next(mapKey[key])">
点击预约
重新预约
</view>
<view class="next-btn"
@ -78,10 +87,14 @@
`,
},
reservationSuccessful : {
rep : true,
icon : 'img_3',
title : '预约成功',
},
reservationError : {
next : true,
icon : 'img_10',
title : '预约失败!',
},
},
key : '',
id : '',
@ -93,8 +106,10 @@
},
onLoad({key, id}) {
this.key = key
if(id){
this.id = id
this.id = id
},
onShow() {
if(this.id){
this.getDetail()
}
},
@ -117,6 +132,7 @@
next(map){
uni.navigateTo({
url: '/pages_order/info/appoint'
// url: '/pages/index/preAppoint'//'/pages/index/preAppoint'
})
},
}


+ 4
- 3
store/store.js View File

@ -77,9 +77,10 @@ const store = new Vuex.Store({
// url: '/pages_order/auth/wxUserInfo'
// })
// }else{
// uni.navigateTo({
// url: '/pages/index/index'
// })
// uni.navigateTo({
// url: '/pages/index/index'
// })
uni.navigateBack(-1)
// }
})
}


Loading…
Cancel
Save