diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue index 7786180..7e56836 100644 --- a/pages/add-paper/index.vue +++ b/pages/add-paper/index.vue @@ -104,7 +104,7 @@ 纸品售价{{ index + 1 }} - 删除 + 删除 @@ -138,7 +138,7 @@ 库存单位: - {{ item.stockUnit === '1' ? '张' : '吨' }} + {{ item.stockUnit === 1 ? '张' : '吨' }} @@ -156,7 +156,7 @@ text="right" placeholder="请输入账期售价" > - 元/{{ item.stockUnit === '1' ? '张' : '吨' }} + 元/{{ item.stockUnit === 1 ? '张' : '吨' }} @@ -173,7 +173,7 @@ text="right" placeholder="请输入纸品库存" > - {{ item.stockUnit === '1' ? '张' : '吨' }} + {{ item.stockUnit === 1 ? '张' : '吨' }} @@ -191,7 +191,7 @@ :maxlength="9999999999" placeholder="请输入最低起送量" > - {{ item.stockUnit === '1' ? '张' : '吨' }} + {{ item.stockUnit === 1 ? '张' : '吨' }} @@ -346,15 +346,25 @@ export default { searchList: [ { name: '张', - id: '1' + id: 1 }, { name: '吨', - id: '2' + id: 2 } ], paperList: [], - skuList: [], + skuList: [ + { + isPromoting: 1, + listPrice: null, + minimum: null, + stock: null, + stockUnit: 2, + weight: null, + categoryName: null + } + ], imgList: [], priceIndex: 0, eidtFor: 0, @@ -427,7 +437,8 @@ export default { var params = { name: 'text', extname: 'text', - url: res.imgList[i] + url: res.imgList[i], + pathUrl: res.imgList[i] } this.imgList.push(params) } @@ -442,7 +453,7 @@ export default { listPrice: null, minimum: null, stock: null, - stockUnit: '2', + stockUnit: 2, weight: null, categoryName: null }) @@ -482,6 +493,13 @@ export default { console.log(this.imgList) }, uploadPrice() { + if (this.skuList.length === 0) { + uni.showToast({ + title: '请添加纸品售价', + icon: 'none' + }) + return + } for (let i = 0; i < validateFields.length; i++) { if (this.form[validateFields[i]] === null || this.form[validateFields[i]] === '') { uni.showToast({ diff --git a/pages/client-detail/basic-information.vue b/pages/client-detail/basic-information.vue index 3d54287..7c706d8 100644 --- a/pages/client-detail/basic-information.vue +++ b/pages/client-detail/basic-information.vue @@ -89,13 +89,15 @@ 产房面积: - {{ info.plantArea }}m² + {{ info.plantArea }} + 年营业额: - {{ info.annualTurnover }}万 + {{ info.annualTurnover }} + diff --git a/pages/mall/index.vue b/pages/mall/index.vue index ceb9427..a145863 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -117,7 +117,7 @@ export default { pageSize: 10, storeId: null, name: null, - supplierId: this.$store.state.supplierInfo.supplierId + supplierId: this.$store.state.supplierInfo.supplierId, }, listData: [], logo: 'https://qncloud.oss-cn-shenzhen.aliyuncs.com/ztb_pic/testPic.jfif', @@ -140,6 +140,9 @@ export default { this.getSupplier(this.$store.state.supplierInfo.supplierId) } }, + onShow() { + this.downCallback() + }, methods: { back, // 获取上新商品数量 @@ -155,11 +158,11 @@ export default { } else { this.logo = res.logo } - if (res.backgroundImg === '') { - this.backgroundStyle = 'background: url("/static/imgs/mall/zsc-bg-icon.png") no-repeat;' - } else { - this.backgroundStyle = 'background: url(' + res.backgroundImg + ') no-repeat;' - } + // if (res.backgroundImg === '') { + // this.backgroundStyle = 'background: url("/static/imgs/mall/zsc-bg-icon.png") no-repeat;' + // } else { + // this.backgroundStyle = 'background: url(' + res.backgroundImg + ') no-repeat;' + // } } }) .catch((err) => { @@ -423,7 +426,7 @@ export default { z-index: 9999; right: 32rpx; bottom: 122rpx; - background-color: #007aff; + background-color: #007AFF; border-radius: 50%; padding: 10rpx; text-align: center; @@ -439,6 +442,7 @@ export default { .my-image { width: 100rpx; height: 100rpx; + } } diff --git a/pages/message/system-message.vue b/pages/message/system-message.vue index 673b363..ae813be 100644 --- a/pages/message/system-message.vue +++ b/pages/message/system-message.vue @@ -1,116 +1,144 @@