no message
This commit is contained in:
+6
-6
@@ -232,11 +232,11 @@ export default {
|
||||
url: 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/tool_js.png',
|
||||
path: "/pages/user/jia"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "交易",
|
||||
url: 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/apply_hm.png'
|
||||
},
|
||||
// {
|
||||
// id: 3,
|
||||
// title: "交易",
|
||||
// url: 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/apply_hm.png'
|
||||
// },
|
||||
// {
|
||||
// id:4,
|
||||
// title:"贡献值",
|
||||
@@ -306,7 +306,7 @@ export default {
|
||||
path: "/pages/finance/finance",
|
||||
}, {
|
||||
id: 11,
|
||||
title: "RWA交易",
|
||||
title: "股东行权",
|
||||
url: 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/tool_hxjy.png',
|
||||
path: "/pages/rwa_package/rwa/rwa",
|
||||
},
|
||||
|
||||
@@ -100,8 +100,11 @@ export default {
|
||||
url: "/pages/mine_package/mine_purse_recharge/mine_purse_recharge?amount=" + row.curAmount + "&category=" + row.categoty,
|
||||
})
|
||||
} else if (type === "exchange") {// 兑换
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/mine_package/mine_purse_exchange/mine_purse_exchange?amount=" + row.curAmount + "&category=" + row.categoty,
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: "/pages/mine_package/mine_purse_exchange/mine_purse_exchange?amount=" + row.curAmount + "&category=" + row.categoty,
|
||||
url: "/pages/other_package/pointsRedemption/pointsRedemption"
|
||||
})
|
||||
} else if (type === "transfer") {
|
||||
console.log("transfer转出...")
|
||||
|
||||
@@ -217,7 +217,8 @@ export default {
|
||||
wayOption: [],
|
||||
isShowBalance: false,
|
||||
ji:0,
|
||||
sed:null
|
||||
sed:null,
|
||||
curPay:null
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -271,7 +272,6 @@ export default {
|
||||
const result = await getSupportPay(parmas);
|
||||
if (result && result.bizcode === 100) {
|
||||
const data = result.data || [];
|
||||
console.log('getWayOption',data)
|
||||
const amount = this.orderInfo.amount;
|
||||
let flag = data.some(item => ['wechat', 'alipay'].includes(item.type));
|
||||
// 没有支付宝和微信支付
|
||||
@@ -282,6 +282,7 @@ export default {
|
||||
this.isShowBalance = balanceFlag;
|
||||
}
|
||||
this.wayOption = data;
|
||||
console.log('getWayOption',this.wayOption)
|
||||
}
|
||||
},
|
||||
async getOrder() {
|
||||
@@ -449,6 +450,8 @@ export default {
|
||||
* 去支付
|
||||
*/
|
||||
async goPay() {
|
||||
|
||||
console.log('getWayOption',this.wayOption,this.orderInfo)
|
||||
const orderInfo = this.orderInfo;
|
||||
|
||||
if (!orderInfo.address || Object.keys(orderInfo.address).length === 0) {
|
||||
@@ -467,7 +470,25 @@ export default {
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
let arr = this.wayOption.filter(i=>i.type == orderInfo.paymentMethod);
|
||||
if(arr.length){
|
||||
if(arr[0].type == 'balance' || arr[0].type == 'redpacket'){
|
||||
if(arr[0].balance < orderInfo.amount){
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: "余额不足",
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: "请先选择支付方式",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const params = {
|
||||
addrId: orderInfo.address.id,// 收货地址ID
|
||||
//结算的购物车ID,多个以逗号分割,ALL表示全选
|
||||
@@ -485,6 +506,8 @@ export default {
|
||||
resp = await settle(params);
|
||||
}
|
||||
|
||||
console.log('getWayOption',this.wayOption,orderInfo)
|
||||
|
||||
|
||||
// 提交订单成功,就唤起支付
|
||||
if (resp && resp.bizcode === 100) {
|
||||
|
||||
Reference in New Issue
Block a user