|
@@ -388,61 +388,6 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
}
|
|
|
- // uni.getStorage({
|
|
|
- // key: 'system',
|
|
|
- // success: async function(res) {
|
|
|
- // // 微信小程序支付
|
|
|
- // if (res.data.uniPlatform == "mp-weixin") {
|
|
|
- // uni.showLoading({
|
|
|
- // title: '加载中'
|
|
|
- // })
|
|
|
- // const res = await that.$api('/pay/toPayOrder', 'POST', {
|
|
|
- // order_id: e,
|
|
|
- // type: '0'
|
|
|
- // })
|
|
|
- // uni.requestPayment({
|
|
|
- // "provider": "wxpay",
|
|
|
- // ...res.data,
|
|
|
- // success(res) {
|
|
|
- // uni.showToast({
|
|
|
- // title: '支付成功',
|
|
|
- // icon: 'none'
|
|
|
- // })
|
|
|
- // uni.hideLoading();
|
|
|
- // that.clearPage();
|
|
|
- // that.search();
|
|
|
- // },
|
|
|
- // fail(e) {
|
|
|
- // uni.showToast({
|
|
|
- // title: `支付失败`,
|
|
|
- // icon: 'none'
|
|
|
- // })
|
|
|
- // uni.hideLoading();
|
|
|
- // that.clearPage();
|
|
|
- // that.search();
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else if (res.data.uniPlatform == "app") {
|
|
|
- // // app支付
|
|
|
- // uni.requestPayment({
|
|
|
- // provider: 'alipay',
|
|
|
- // orderInfo: 'orderInfo', //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
|
|
- // success: function(res) {
|
|
|
- // console.log('success:' + JSON.stringify(res));
|
|
|
- // },
|
|
|
- // fail: function(err) {
|
|
|
- // console.log('fail:' + JSON.stringify(err));
|
|
|
- // }
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // uni.showToast({
|
|
|
- // title: `平台不支持支付`,
|
|
|
- // icon: 'none'
|
|
|
- // })
|
|
|
- // }
|
|
|
- // },
|
|
|
- // fail: function(err) {}
|
|
|
- // })
|
|
|
},
|
|
|
// 确认收货
|
|
|
toConfirm(e) {
|