diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue index d5cddc5..6b5eaf0 100644 --- a/pages/add-paper/index.vue +++ b/pages/add-paper/index.vue @@ -346,13 +346,16 @@ export default { this.title = option.title } this.option = option + this.getCategoryListQuery() this.eidtFor = 0 if (this.title === '编辑纸品') { - this.getDteailList() + setTimeout(()=>{ + this.getDteailList() + },200) + this.eidtFor = 1 } - console.log('this.$store.state.supplierInfo.id', this.$store.state.supplierInfo.id) - this.getCategoryListQuery() + }, watch: { ['form.name'](val) { diff --git a/pages/mall/index.vue b/pages/mall/index.vue index 65de39e..8c5ffcb 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -24,15 +24,18 @@ - + {{ item.brandName }} - + {{ item.categoryName }}/{{ item.name }}/{{ item.manufacturerName }} - 克重(价格):200(3900) 235(3900) 255(390 0)255(390 + + 克重(价格): + {{sku.weight}}({{sku.listPrice}}) + @@ -40,7 +43,7 @@ 编辑 - {{ item.status === '30111' ? '下架' : '上架' }} + {{ item.status === 30111 ? '下架' : '上架' }} @@ -169,7 +172,7 @@ export default { productStatusChange(item) { var params = { id: item.id, - status: item.status === '30111' ? '30112' : '30111' + status: item.status === 30111 ? 30112 : 30111 } productStatus(params).then(res => { if (res) { @@ -177,8 +180,11 @@ export default { title: '状态修改成功', icon: 'success' }) - this.orderPagination.pageNum = 1 - this.quertData() + setTimeout(()=>{ + this.orderPagination.pageNum = 1 + this.quertData() + },500) + } }) diff --git a/pages/paper-detail/index.vue b/pages/paper-detail/index.vue index 63aba38..3d449c9 100644 --- a/pages/paper-detail/index.vue +++ b/pages/paper-detail/index.vue @@ -88,11 +88,13 @@ export default { return { form:{}, skuList:[], - imgList:[] + imgList:[], + option:'' } }, onLoad(option) { this.getDteailList(option) + this.option = option }, methods: { back, @@ -107,6 +109,7 @@ export default { this.form = res this.skuList = res.skuList this.imgList = res.imgList + this.$set(this.form,'categoryName',this.option.categoryName) } }) },