diff --git a/pages/index/downStearmList.vue b/pages/index/downStearmList.vue index 3711a34..250b96d 100644 --- a/pages/index/downStearmList.vue +++ b/pages/index/downStearmList.vue @@ -319,7 +319,7 @@ }, //编辑每一个的单价 clickPrice() { - this.$refs.inputDialog.open() + this.$refs.inputDialog.open('bottom') }, //获取弹出层状态 change(e) { @@ -631,12 +631,13 @@ } .popup-pay-content { - align-items: center; - justify-content: center; - padding: 0 15px 15px 15px; - width: 500rpx; - height: auto; - background-color: #fff; + align-items: center; + justify-content: center; + padding: 0 15px 15px 15px; + width: 95%; + margin: 0 auto; + height: auto; + background-color: #fff; } .bottom-box { diff --git a/pages/index/shareStyle.vue b/pages/index/shareStyle.vue index 27fdb10..da1c4cf 100644 --- a/pages/index/shareStyle.vue +++ b/pages/index/shareStyle.vue @@ -5,13 +5,13 @@ - {{item.categoryName}} - + @@ -68,8 +68,8 @@ - - + + @@ -106,7 +106,8 @@ indexList: [], pageNum: 1, //分页的页码 shopList: [], - info: 0, + info: 0, + goodsList:[], categoryId: '', //分类id searchName: '', //搜索框输入值 shopId: '', //店铺id, @@ -115,7 +116,8 @@ carList:[], carNum:0, carType:0, - type:'' + type:'', + gwcList:[] } }, created() { @@ -144,9 +146,10 @@ this.indexList[i].parentId = true } else { this.indexList[i].parentId = false - } + } + this.getShareList(this.indexList[i].id); } - this.getShareList(this.indexList[0].id); + } else { this.tui.toast(res.message) } @@ -158,11 +161,12 @@ categoryId: id, supplierName: this.searchName, pageNum: this.pageNum, - pageSize: '10' + pageSize: '100' }, false, false).then((res) => { if (res.code == 200) { console.log(res.result.records) - this.shopList = res.result.records + this.shopList.push(res.result.records) + this.goodsList = this.shopList[0] } else { this.tui.toast(res.message) } @@ -198,8 +202,9 @@ } else { this.indexList[i].parentId = false } - } - this.getShareList(this.indexList[index].id) + } + this.goodsList = this.shopList[index] + // this.getShareList(this.indexList[index].id) }, //选中商品 checkboxChange(e,item) { @@ -208,20 +213,28 @@ this.carList.splice(this.carList.indexOf(item.id),1) }else{ this.carList.push(item.id) - } + } + for(let i=0;i