diff --git a/api/uniMP.js b/api/uniMP.js index 06f8b85..3562f10 100644 --- a/api/uniMP.js +++ b/api/uniMP.js @@ -16,3 +16,12 @@ export function getGXconfig(data) { return request.get("global/config", data); } + +/** + * 获取商城小程序信息 + */ + +export function miniapp(data) { + return request.get("miniapp/version?version=1", data); +} + diff --git a/pages.json b/pages.json index 650d550..ddcf831 100644 --- a/pages.json +++ b/pages.json @@ -990,6 +990,8 @@ { "path": "settled/index", "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "商家入驻" } }, { diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index d5bd71f..ddd32fe 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -30,7 +30,7 @@ - + @@ -73,7 +73,7 @@ - + - - - - 运费模板 - + + + + 运费模板 + @@ -169,7 +170,7 @@ - + 数量: @@ -245,7 +246,8 @@ on_line: '', isshow: false, num: -1, - ll: 0 + ll: 0, + } }, onLoad(options) { @@ -262,10 +264,10 @@ }, onReachBottom() { // console.log(this.status, '222222222') - if (this.status == 'nomore') return; + if (this.status == 'nomore') return; this.status = 'loading'; this.where.page = ++this.where.page; - this.getList(this.mer_id, true); + this.getList(this.mer_id, false); }, methods: { @@ -342,7 +344,17 @@ this.checkboxList1 = item.attrValue this.data.product_id = item.attrValue[0].product_id this.data.unique = item.attrValue[0].unique - this.show = true + if (item.spec_type == 1) { + this.show = true + } else { + navigateTo(1, '/pages/users/online_warehousing/index', { + mer_id: this.mer_id, + product_id: this.data.product_id, + unique: this.data.unique, + + }); + } + }, //线下 @@ -381,8 +393,8 @@ } else { postImport(this.mer_id, this.data).then(res => { this.data.unique = '' - this.data.product_id='' - this.data.number=1 + this.data.product_id = '' + this.data.number = 1 this.loading = false this.loaded = false this.getList(this.mer_id, true); @@ -391,15 +403,15 @@ title: res.message }) this.data.unique = '' - this.data.product_id='' - this.data.number=1 - + this.data.product_id = '' + this.data.number = 1 + }).catch(err => { this.show = false this.data.unique = '' - this.data.product_id='' - this.data.number=1 + this.data.product_id = '' + this.data.number = 1 this.$util.Tips({ title: '请选择规格后再次进行入库' }) @@ -414,12 +426,15 @@ title: '请选择规格' }) } else { + navigateTo(1, '/pages/users/online_warehousing/index', { mer_id: this.mer_id, product_id: this.data.product_id, unique: this.data.unique, }); + + } } @@ -474,8 +489,8 @@ res => { that.loading = false; that.loaded = res.data.list.length < that.where.limit; - // that.productList.push.apply(that.productList, res.data.list); - that.productList.push(...res.data.list); + that.productList.push.apply(that.productList, res.data.list); + that.where.page = that.where.page + 1; }, diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index 07ad331..d99567a 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -1,5 +1,12 @@