修改取消支付的信息提示

This commit is contained in:
赵毅 2025-09-04 09:43:24 +08:00
parent d18b452e3e
commit 08e77df1a5
3 changed files with 16 additions and 20 deletions

View File

@ -146,9 +146,8 @@ export default {
}, },
fail: (payErr) => { fail: (payErr) => {
console.log("支付失败", payErr)
uni.showToast({ uni.showToast({
title: payErr.errMsg || '支付失败', title: payErr.errMsg == 'requestPayment:fail cancel' ? '用户取消支付' : '支付失败',
icon: 'none' icon: 'none'
}) })
}, },

View File

@ -401,14 +401,11 @@ export default {
}, },
fail: (payErr) => { fail: (payErr) => {
console.log("支付失败", payErr)
uni.showToast({ uni.showToast({
title: payErr.errMsg || '支付失败', title: payErr.errMsg == 'requestPayment:fail cancel' ? '用户取消支付' : '支付失败',
icon: 'none' icon: 'none'
}) })
}, //
complete: () => {
//
} }
}) })
} else { } else {

View File

@ -43,7 +43,7 @@
<view class="group-price"> <view class="group-price">
<view>{{ item.commodity_goods_info.sales_price }}/{{ <view>{{ item.commodity_goods_info.sales_price }}/{{
item.commodity_goods_info.goods_unit item.commodity_goods_info.goods_unit
}}</view> }}</view>
<!-- 运费 --> <!-- 运费 -->
<view class="goods-desc" style="margin-top: 10rpx;">运费 {{ <view class="goods-desc" style="margin-top: 10rpx;">运费 {{
item.commodity_goods_info.freight }}</view> item.commodity_goods_info.freight }}</view>
@ -128,7 +128,8 @@
<text class="name">请选择自提点</text> <text class="name">请选择自提点</text>
</view> </view>
</view> </view>
<view class="address-arrow"><u-icon name="arrow-right" size="25"></u-icon></view> <view class="address-arrow"><u-icon name="arrow-right" size="25"></u-icon>
</view>
</view> </view>
</view> </view>
<view class="address-info" v-else> <view class="address-info" v-else>
@ -506,9 +507,9 @@ export default {
))]; ))];
const allHaveZTAddress = supplierIds.every(supplierId => { const allHaveZTAddress = supplierIds.every(supplierId => {
const ztAddress = this.defZTAddress.find(adItem => adItem.id == supplierId); const ztAddress = this.defZTAddress.find(adItem => adItem.id == supplierId);
return !!ztAddress; return !!ztAddress;
}); });
if (!allHaveZTAddress) { if (!allHaveZTAddress) {
uni.showToast({ uni.showToast({
@ -605,9 +606,8 @@ export default {
}, },
fail: (payErr) => { fail: (payErr) => {
console.log("支付失败", payErr)
uni.showToast({ uni.showToast({
title: payErr.errMsg || '支付失败', title: payErr.errMsg == 'requestPayment:fail cancel' ? '用户取消支付' : '支付失败',
icon: 'none' icon: 'none'
}) })
}, },