更新修复bug
This commit is contained in:
parent
22e9d26dfc
commit
2043fd0071
|
@ -159,14 +159,14 @@
|
|||
checkedObj: {
|
||||
handler(n) {
|
||||
|
||||
this.checkedArr = n
|
||||
this.checkedArr = JSON.parse(JSON.stringify(n||{}))
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.checkedArr = this.checkedObj
|
||||
this.aryys = this.checkedObj
|
||||
this.checkedArr = JSON.parse(JSON.stringify(this.checkedObj||{}))
|
||||
this.aryys = JSON.parse(JSON.stringify(this.checkedObj||{}))
|
||||
this.getBounht();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -159,14 +159,14 @@
|
|||
checkedObj: {
|
||||
handler(n) {
|
||||
|
||||
this.checkedArr = n
|
||||
this.checkedArr = JSON.parse(JSON.stringify(n||{}))
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.checkedArr = this.checkedObj
|
||||
this.aryys = this.checkedObj
|
||||
this.checkedArr = JSON.parse(JSON.stringify(this.checkedObj||{}))
|
||||
this.aryys = JSON.parse(JSON.stringify(this.checkedObj||{}))
|
||||
this.getBounht();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<view class="content_center-one" v-for="(item,i) in productList" :key="i">
|
||||
<view class="center-one">
|
||||
<view class="center-one-img">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
<image :src="item.image||''" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="center-one-txt">
|
||||
<view class="one-txta">
|
||||
|
@ -170,7 +170,6 @@
|
|||
},
|
||||
//获取商品信息
|
||||
getProduct(data) {
|
||||
console.log('选择商品', data);
|
||||
this.productList = [];
|
||||
this.formData.product_info = [];
|
||||
this.formData.content = '';
|
||||
|
@ -178,7 +177,9 @@
|
|||
this.productList = data;
|
||||
for (let i in data) {
|
||||
this.formData.content += data[i].store_name + ',';
|
||||
console.log(data[i].number);
|
||||
if(typeof this.productList[i].image == 'object'){
|
||||
this.productList[i].image = this.productList[i].image[0]
|
||||
}
|
||||
this.formData.product_info.push({
|
||||
product_attr_unique: data[i].product_attr_unique,
|
||||
number: Number(data[i].number),
|
||||
|
@ -187,7 +188,6 @@
|
|||
}
|
||||
}
|
||||
this.formData.content = this.formData.content.slice(0,-1);
|
||||
console.log('选择商品', this.formData);
|
||||
this.$refs.associated.close()
|
||||
},
|
||||
//提交
|
||||
|
|
|
@ -645,7 +645,6 @@
|
|||
*/
|
||||
formSubmit: function(e) {
|
||||
|
||||
|
||||
let that = this,
|
||||
|
||||
value = that.formData;
|
||||
|
|
Loading…
Reference in New Issue