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