Payment flow refined

This commit is contained in:
Vion
2022-01-23 19:29:46 +08:00
parent 8ff86279a0
commit c5e5978615
17 changed files with 141 additions and 74 deletions

View File

@@ -290,6 +290,8 @@ export default {
let mainProductCode = context.route.query.mainProductCode;
let productCode = context.route.query.productCode;
let activeIndexa = 0;
if(!productCode || productCode.length<=0)
throw new Error('Empty product code');
productCode = productCode.split(",");
// console.log(this.productCode);
if(isRxGoods){
@@ -387,20 +389,6 @@ export default {
catimage: require("../../assets/image/unused.png"),
},
],
fixedlist: [
{
title: "购物车",
catimage: require("../../assets/buy.png"),
},
{
title: "在线客服",
catimage: require("../../assets/service.png"),
},
{
title: "营养专家",
catimage: require("../../assets/consult.png"),
},
],
newlist: [
{
@@ -581,9 +569,10 @@ export default {
this.usermessage.data.mobile,
item.picFile,
item.productName,
item.basePrice,
item.ecPrice,
item.specifications,
item.leftAllotment
item.leftAllotment,
item.basePoint
);
if (data) {
this.productlist = data;
@@ -611,9 +600,11 @@ export default {
productName: item.productName,
productImg: item.picFile,
specifications: item.specifications,
buyCount: item.pcs,
memberId: "884258",
mobile: "13480231061",
leftAllotment: item.leftAllotment,
basePoint: item.basePoint,
buyCount: this.sales_num,
memberId: "",
mobile: "",
checked: true,
},
];