Commit 3dee819e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8b6ee0ff
......@@ -230,7 +230,7 @@
});
},
onVip() {
navigateTo(`/pagesA/vipPay/vipPay`)
navigateTo(`/pagesA/vipPay/vipPay?vedioId=`+this.vedioId)
this.handleClose();
},
ttPrePay(ttData, largeType) {
......
......@@ -114,7 +114,13 @@
<text>客服时间</text>
<text>工作日9:00-18:00</text>
</view>
<kefu-popup :show="showKefuPop" @close="showKefuPop = false" />
<kefu-popup :show="showKefuPop" @close="showKefuPop = false" />
<uni-popup type="center" ref="select">
<view class="text-box">
{{slotParam}}
</view>
</uni-popup>
</view>
</template>
......@@ -141,13 +147,16 @@
pointList: [],
selectedIndex: 0,
selectedVipIndex: -1,
btnText: '',
btnText: '',
slotParam: '',
vedioId: '',
userBean: {},
os: 'android',
showKefuPop: false
}
},
onLoad(options) {
onLoad(options) {
this.vedioId = JSON.parse(decodeURIComponent(options.vedioId));
let that = this;
if (tt.getSystemInfoSync().platform === 'ios') {
this.os = 'ios';
......@@ -396,8 +405,10 @@
that.ttPay(largeType, res.orderId, ttData);
},
fail(res) {
message.notify(res.errMsg);
console.log('requestOrder res.errMsg', res)
// message.notify(res.errMsg);
that.slotParam = JSON.stringify(res.errMsg);
console.log('requestOrder res.errMsg', res)
that.$refs.select.open('center');
},
});
},
......@@ -561,5 +572,12 @@
text {
color: #2c2c2c;
}
}
.text-box {
word-break: break-all;
margin: 10rpx;
padding: 10rpx;
background-color: white;
color: black;
}
</style>
\ No newline at end of file
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