fix: 修复订单提交逻辑并移除未使用的Android权限

- 修复订单提交组件中支付方式选择逻辑,防止payList为空时出错
- 重构地址校验逻辑,使用isShowAddress统一控制
- 移除未使用的Android定位和录音权限,改为excludePermissions配置
- 修正首页太湖云医区块的缩进格式
- 更新应用版本号至1.0.50
This commit is contained in:
2026-02-02 16:52:33 +08:00
parent f3c7de1d29
commit 2e121eaf98
3 changed files with 22 additions and 24 deletions

View File

@@ -558,7 +558,8 @@ export default {
}
}
this.payType = this.payList[this.selectPayIndex].type;
this.payType =
this.payList.length && this.payList[this.selectPayIndex].type;
if (this.actualPayment == 0) {
var that = this;
this.payList.forEach((e, i) => {
@@ -780,8 +781,7 @@ export default {
},
];
this.selectPayIndex = 1;
// 如果实际支付金额为0设置支付方式为默认货币
this.payType = this.actualPayment ? 1 : 4
this.payType = 1;
}
},
computed: {
@@ -1397,11 +1397,9 @@ export default {
come: this.come, //订单来源0疯子读书1国学众妙之门2医学吴门医述
};
} else {
if (this.options.goods[0].goodsType != "05") {
if (!this.addressData.id) {
this.$commonJS.showToast("请选择收货地址");
return false;
}
if (this.isShowAddress && !this.addressData.id) {
this.$commonJS.showToast("请选择收货地址");
return false;
}
data = {
@@ -1434,8 +1432,7 @@ export default {
};
}), //订单列表商品
orderType: "order", //订单类型
addressId:
this.options.goods[0].goodsType != "05" ? this.addressData.id : 0, // 地址ID
addressId: this.isShowAddress ? this.addressData.id : 0, // 地址ID
appName: this.appName,
come: this.come,
};