更新修复bug

This commit is contained in:
weipengfei 2023-10-30 15:08:11 +08:00
parent 22e9d26dfc
commit 2043fd0071
4 changed files with 10 additions and 11 deletions

View File

@ -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: {

View File

@ -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: {

View File

@ -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()
},
//

View File

@ -645,7 +645,6 @@
*/
formSubmit: function(e) {
let that = this,
value = that.formData;