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