|
@@ -285,6 +285,7 @@ Page({
|
|
|
documentVos: response,
|
|
|
isRefreshPage: true
|
|
|
})
|
|
|
+ app.globalData.useNumber = hoemRes.data.useNumber
|
|
|
}).catch(e => {
|
|
|
wx.hideLoading()
|
|
|
wx.showModal({
|
|
@@ -327,7 +328,11 @@ Page({
|
|
|
})
|
|
|
break;
|
|
|
case 1:
|
|
|
- this.appointmentAuth()
|
|
|
+ if (this.data.showTopBar) {
|
|
|
+ this.stopAppointment()
|
|
|
+ } else {
|
|
|
+ this.appointmentAuth()
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
@@ -375,30 +380,51 @@ Page({
|
|
|
},
|
|
|
/* 车子的图片 做跳转交互,跳转做判断,0次则跳出去充值弹框,充值弹窗有两个选择 :若激活卡,则跳转至实体卡兑换页面;若充值,则跳转至体验卡购买页面 */
|
|
|
handlActions () {
|
|
|
- if (this.data.useNumber == 0) {
|
|
|
- wx.showModal({
|
|
|
- title: '去充值',
|
|
|
- cancelColor: '#666',
|
|
|
- cancelText: '激活卡',
|
|
|
- confirmText: '去充值',
|
|
|
- confirmColor: '#333',
|
|
|
- success (res) {
|
|
|
- if (res.confirm) {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/buy/buy?from=index',
|
|
|
- })
|
|
|
- } else if (res.cancel) {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/pages/exchange/exchange',
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.data.showTopBar) {
|
|
|
+ this.stopAppointment()
|
|
|
} else {
|
|
|
- this.appointmentAuth()
|
|
|
+ if (this.data.useNumber == 0) {
|
|
|
+ wx.showModal({
|
|
|
+ title: '去充值',
|
|
|
+ cancelColor: '#666',
|
|
|
+ cancelText: '激活卡',
|
|
|
+ confirmText: '去充值',
|
|
|
+ confirmColor: '#333',
|
|
|
+ success (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/buy/buy?from=index',
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/exchange/exchange',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.appointmentAuth()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ stopAppointment () {
|
|
|
+ wx.showModal({
|
|
|
+ content: '您预约的健康筛查还未体验,请先体验',
|
|
|
+ cancelColor: '#666',
|
|
|
+ cancelText: '取消',
|
|
|
+ confirmText: '我的预约',
|
|
|
+ confirmColor: '#333',
|
|
|
+ success (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/myAppointment/myAppointment',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
handleShowQRCode (e) {
|
|
|
var that = this
|
|
|
var id = e.currentTarget.dataset.id
|