广告显示

This commit is contained in:
2024-11-25 13:13:42 +08:00
parent 0b975c2418
commit 0ad2bb2b93
515 changed files with 256872 additions and 2253 deletions

View File

@@ -351,15 +351,15 @@
handler(newRoute) {
if (this.isDefaultCurrency) {
if (platform == "ios") {
this.selectPayIndex = 2;
this.selectPayIndex = 0;
} else {
this.selectPayIndex = 2;
this.selectPayIndex = 0;
}
} else {
if (platform == "ios") {
this.selectPayIndex = 1;
this.selectPayIndex = 0;
} else {
this.selectPayIndex = 1;
this.selectPayIndex = 0;
}
}
this.payType = this.payList[this.selectPayIndex].type;
@@ -388,25 +388,7 @@
},
selectPayIndex: 1,
farePrice: 0,
payList: [{
text: "支付宝",
imgUrl: require("@/static/icon/pay_1.png"),
type: 2,
value: "0",
},
{
text: "微信",
imgUrl: require("@/static/icon/pay_2.png"),
type: 1,
value: "1",
},
{
text: "天医币",
imgUrl: require("@/static/icon/pay_3.png"),
type: 4,
value: "2",
},
],
payList: [],
priceBreakdownList: [],
orderInfoList: [{
text: "订单备注",
@@ -492,7 +474,7 @@
freightNum: "book/buyOrder/calculateTransportPrice", //运费
},
customButton: [{
width: "340rpx",
width: "300rpx",
text: "立即支付",
backgroundColor: "linear-gradient(90deg, #3AB3AE 0%, #117e4c 100%)",
color: "#fff",
@@ -541,6 +523,46 @@
async onShow() {
console.log("调用了onShow方法");
var that = this;
if(this.$platform=='ios'){
this.payList= [
{
text: "天医币",
imgUrl: require("@/static/icon/pay_3.png"),
type: 4,
value: "2",
},
]
this.selectPayIndex = 0;
this.payType=4
}else{
this.payList= [{
text: "支付宝",
imgUrl: require("@/static/icon/pay_1.png"),
type: 2,
value: "0",
},
{
text: "微信",
imgUrl: require("@/static/icon/pay_2.png"),
type: 1,
value: "1",
},
{
text: "天医币",
imgUrl: require("@/static/icon/pay_3.png"),
type: 4,
value: "2",
},
]
this.selectPayIndex = 1;
this.payType=2
}
await uni.$on("returnData", function(data) {
console.log("data at line 415:", data);
if (data) {