Commit 3dee819e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8b6ee0ff
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
}); });
}, },
onVip() { onVip() {
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay?vedioId=`+this.vedioId)
this.handleClose(); this.handleClose();
}, },
ttPrePay(ttData, largeType) { ttPrePay(ttData, largeType) {
......
...@@ -115,6 +115,12 @@ ...@@ -115,6 +115,12 @@
<text>工作日9:00-18:00</text> <text>工作日9:00-18:00</text>
</view> </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> </view>
</template> </template>
...@@ -142,12 +148,15 @@ ...@@ -142,12 +148,15 @@
selectedIndex: 0, selectedIndex: 0,
selectedVipIndex: -1, selectedVipIndex: -1,
btnText: '', btnText: '',
slotParam: '',
vedioId: '',
userBean: {}, userBean: {},
os: 'android', os: 'android',
showKefuPop: false showKefuPop: false
} }
}, },
onLoad(options) { onLoad(options) {
this.vedioId = JSON.parse(decodeURIComponent(options.vedioId));
let that = this; let that = this;
if (tt.getSystemInfoSync().platform === 'ios') { if (tt.getSystemInfoSync().platform === 'ios') {
this.os = 'ios'; this.os = 'ios';
...@@ -396,8 +405,10 @@ ...@@ -396,8 +405,10 @@
that.ttPay(largeType, res.orderId, ttData); that.ttPay(largeType, res.orderId, ttData);
}, },
fail(res) { fail(res) {
message.notify(res.errMsg); // message.notify(res.errMsg);
that.slotParam = JSON.stringify(res.errMsg);
console.log('requestOrder res.errMsg', res) console.log('requestOrder res.errMsg', res)
that.$refs.select.open('center');
}, },
}); });
}, },
...@@ -562,4 +573,11 @@ ...@@ -562,4 +573,11 @@
color: #2c2c2c; color: #2c2c2c;
} }
} }
.text-box {
word-break: break-all;
margin: 10rpx;
padding: 10rpx;
background-color: white;
color: black;
}
</style> </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