兼容ios系统的调整
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="selectPayIndex == 2">
|
||||
<template v-if="selectPayIndex == 2 || $platform == 'ios'">
|
||||
<view class="goods_detail_list_title bg_box_shandow color_shandow bg_color">
|
||||
<view class="linlanzhifu" style="
|
||||
width: 100%;
|
||||
@@ -251,15 +251,15 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
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;
|
||||
@@ -279,7 +279,7 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
goodsDataList: [],
|
||||
orderModalShowInfo: {},
|
||||
orderModalShow: false,
|
||||
payType: 2,
|
||||
payType: 1,
|
||||
freightNum: 0,
|
||||
addressData: {
|
||||
address: "",
|
||||
@@ -288,25 +288,7 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
},
|
||||
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: "订单备注",
|
||||
@@ -416,6 +398,41 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
|
||||
}
|
||||
});
|
||||
if (that.$platform == "ios") {
|
||||
that.payList = [
|
||||
{
|
||||
text: "天医币",
|
||||
imgUrl: require("@/static/icon/pay_3.png"),
|
||||
type: 4,
|
||||
value: "2",
|
||||
},
|
||||
];
|
||||
that.selectPayIndex = 0;
|
||||
that.payType = 4;
|
||||
} else {
|
||||
that.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",
|
||||
},
|
||||
];
|
||||
that.selectPayIndex = 1;
|
||||
that.payType = 1;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
|
||||
Reference in New Issue
Block a user