Commit cf969ed1 authored by Xuguangxing's avatar Xuguangxing

fix

parent e98477e9
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
v-model="address.receiverPhoneNo" v-model="address.receiverPhoneNo"
class="address-input" class="address-input"
name="手机号码" name="手机号码"
type="tel"
max-length="11"
label="手机号码" label="手机号码"
placeholder="请输入收货人手机号码" placeholder="请输入收货人手机号码"
/> />
...@@ -99,8 +97,8 @@ export default { ...@@ -99,8 +97,8 @@ export default {
firstGroupShare(); firstGroupShare();
this.type = this.$route.query.type || ''; this.type = this.$route.query.type || '';
this.order = this.$route.query.type || false; this.order = this.$route.query.type || false;
console.log(this.order);
if (this.type === 'edit') { if (this.type === 'edit') {
console.log(JSON.stringify(this.$route.params));
const data = { ...this.$route.params.editAddress }; const data = { ...this.$route.params.editAddress };
data.addrFullName = data.addrFullName data.addrFullName = data.addrFullName
.substring(0, data.addrFullName.length - data.detail.length) .substring(0, data.addrFullName.length - data.detail.length)
......
...@@ -173,10 +173,13 @@ export default { ...@@ -173,10 +173,13 @@ export default {
invalidSkuList, invalidSkuList,
shopSkuList: [] shopSkuList: []
}; };
shopSkuList.forEach(item => {
if (!item) return; if (shopSkuList) {
orderInfo.shopSkuList = [...orderInfo.shopSkuList, ...item.skuList]; shopSkuList.forEach(item => {
}); if (!item) return;
orderInfo.shopSkuList = [...orderInfo.shopSkuList, ...item.skuList];
});
}
console.log(orderInfo); console.log(orderInfo);
this.$set(this, 'orderInfo', orderInfo); this.$set(this, 'orderInfo', orderInfo);
this.isOutBuy = false; 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