Commit cf969ed1 authored by Xuguangxing's avatar Xuguangxing

fix

parent e98477e9
......@@ -13,8 +13,6 @@
v-model="address.receiverPhoneNo"
class="address-input"
name="手机号码"
type="tel"
max-length="11"
label="手机号码"
placeholder="请输入收货人手机号码"
/>
......@@ -99,8 +97,8 @@ export default {
firstGroupShare();
this.type = this.$route.query.type || '';
this.order = this.$route.query.type || false;
console.log(this.order);
if (this.type === 'edit') {
console.log(JSON.stringify(this.$route.params));
const data = { ...this.$route.params.editAddress };
data.addrFullName = data.addrFullName
.substring(0, data.addrFullName.length - data.detail.length)
......
......@@ -173,10 +173,13 @@ export default {
invalidSkuList,
shopSkuList: []
};
shopSkuList.forEach(item => {
if (!item) return;
orderInfo.shopSkuList = [...orderInfo.shopSkuList, ...item.skuList];
});
if (shopSkuList) {
shopSkuList.forEach(item => {
if (!item) return;
orderInfo.shopSkuList = [...orderInfo.shopSkuList, ...item.skuList];
});
}
console.log(orderInfo);
this.$set(this, 'orderInfo', orderInfo);
this.isOutBuy = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment