提交更改

This commit is contained in:
952108534@qq.com
2022-01-23 17:17:22 +08:00
parent 7455d73e63
commit e0d50bf974
7 changed files with 436 additions and 124 deletions

View File

@@ -43,7 +43,7 @@
</div>
<div class="rc-usermain" >
<div class="rc-image">
<img :src="item.catimage" alt="" />
<img src="../../static/images/default.jpg" alt="" />
</div>
<div class="rc-right" @click="usertiaozhuan(item)">
<div class="rc-usercenter">
@@ -306,7 +306,6 @@ export default {
this.pending.push(this.goldmedal[i].orderDetailList[0]);
}
}
for (var i = 0; i < this.useralllist.length; i++) {
this.useralllist[i].orderNumber = this.goldmedal[i].orderNumber;
this.useralllist[i].status = this.goldmedal[i].status;
@@ -333,38 +332,21 @@ export default {
//订单立即支付
async getwei(item) {
console.log(item);
let postData = [];
// let oneProduct = {
// productName: item.productName,
// buyCount: item.buyCount,
// productId: item.productCode,
// payAmount: item.productPrice,
// memberId: item.memberId,
// phoneNumber: item.mobile,
// orderAddress: {
// addressPhoneNumber: orderAddress[0].recipientPhone,
// addressUserName: orderAddress[0].recipient,
// addressProvinceName: orderAddress[0].provinceName,
// addressCityName: orderAddress[0].cityName,
// addressCountyName: orderAddress[0].districtName,
// addressDetailInfo: orderAddress[0].detailAddress,
// },
// };
// postData.push(oneProduct);
let res = await generateOrderWX(postData);
let userPayData = {
orderId: res.data,
userprice: item.salesAmount, //订单总价
userinformation:
item.addressUserName+ //姓名
let userPayData = {
userprice: item.salesAmount,
userinformation:item.addressUserName +
" " +
item.phoneNumber, //电话
this.orderNumber,
wxPay: "weixin://wxpay/bizpayurl?pr=4RJbokxzz",
};
this.$router.push({
path: "/personal/userpay",
query: {
userPayData:JSON.stringify(userPayData),
userData:item.orderNumber,
stype:1,
userPayData: JSON.stringify(userPayData),
},
});
},