书籍购买

This commit is contained in:
@fawn-nine
2024-07-15 13:20:16 +08:00
parent 74d83fd2a8
commit 5efb7085d5

View File

@@ -212,7 +212,7 @@
</view>
<view class="order_top common_radius_box color_shandow goods_box pay_box">
<view class="title">支付方式</view>
<template v-if="isAndorid">
<template v-if="isAndorid || !isAndorid && !haveCourse">
<view
class="curriulum_title_box goods_item pay_item"
v-for="(v, i) in payList"
@@ -517,20 +517,35 @@ export default {
isDefaultCurrency: {
immediate: true,
handler(newRoute) {
console.log('this.isDefaultCurrency',this.isDefaultCurrency, platform);
if (this.isDefaultCurrency) {
if (platform == "ios") {
this.selectPayIndex = 2;
if(!this.haveCourse){ // 没有课程类型
this.selectPayIndex = 2;
this.payType = this.payList[this.selectPayIndex].type;
}else{
this.selectPayIndex = 0;
this.payType = this.payListIOS[this.selectPayIndex].type;
}
} else {
this.selectPayIndex = 2;
this.payType = this.payList[this.selectPayIndex].type;
}
} else {
if (platform == "ios") {
this.selectPayIndex = 1;
if(!this.haveCourse){ // 没有课程类型
this.selectPayIndex = 1;
this.payType = this.payList[this.selectPayIndex].type;
}else{
this.selectPayIndex = 0;
this.payType = this.payListIOS[this.selectPayIndex].type;
}
} else {
this.selectPayIndex = 1;
this.payType = this.payList[this.selectPayIndex].type;
}
}
this.payType = this.payList[this.selectPayIndex].type;
// this.payType = this.payList[this.selectPayIndex].type;
this.$forceUpdate();
},
},
@@ -695,7 +710,7 @@ export default {
async onLoad(options) {
console.log("调用了onLoad方法");
var that = this;
console.log("options at line 387:", options);
console.log("options at line 387: 获取到的内容", options);
this.options = JSON.parse(options.data);
// if (this.options.goods.findIndex((e) => e.goodsType == "05") >= 0) {
// this.isShowAddress = false;
@@ -1280,12 +1295,18 @@ export default {
});
},
radioChange(index) {
radioChange(index) {
if(index == this.selectPayIndex){ return }
this.selectPayIndex = index;
this.selectPayIndex == 2 ? this.beizhuShow = true : this.beizhuShow = false
this.payType = this.payList[this.selectPayIndex].type;
console.log("this.selectPayIndex at line 315:", this.selectPayIndex);
// if(this.isAndorid){
// console.log('是安卓');
// }else{
// this.payType = this.payListIOS[0].type
// console.log('不是安卓',this.payType);
// }
this.$forceUpdate();
},
handleValChange(e) {