diff --git a/main.js b/main.js index f16b684..3bc6a5b 100644 --- a/main.js +++ b/main.js @@ -7,8 +7,8 @@ Vue.prototype.$music = music Vue.prototype.$bgm = bgm // 地址 -Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/" - // Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/" +// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/" + Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/" diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue index 33fe8f4..6dd3d6e 100644 --- a/pages/bookShop/commodityDetail.vue +++ b/pages/bookShop/commodityDetail.vue @@ -36,7 +36,7 @@ - + {{item.productName}} @@ -170,13 +170,13 @@ - + - + 查看详情 @@ -185,8 +185,8 @@ - - + + {{item.productName}} - + @click="goDetail(item.productId)"> + - {{item.shopproudicts[0].productName}} + {{item.productName}} - ¥{{item.shopproudicts[0].activityPrice}} - ¥{{item.shopproudicts[0].price}} - 已售:{{item.shopproudicts[0].sumSales}} 件 + ¥{{item.activityPrice}} + ¥{{item.price}} + 已售:{{item.sumSales}} 件 @@ -307,9 +307,9 @@ onHide() { this.page = 1 this.tjProList = [] - if(this.tagList.length > 0){ - this.tabsid = this.tagList[0].splId - } + // if(this.tagList.length > 0){ + // this.tabsid = this.tagList[0].splId + // } }, //页面显示 onShow() { @@ -392,16 +392,17 @@ }, getJtData(){ this.$http - .post('book/label/list',{ + // .post('book/label/list',{ + .post('book/label/getProductsByLabel',{ 'splId': this.tabsid, 'limit': this.pageSize, 'page': this.page }) .then(res => { - if(res.code == 0 && res.page.list.length > 0){ - this.tjProList = this.tjProList.concat(res.page.list) - this.totalPage = res.page.totalPage + if(res.code == 0 && res.page.records.length > 0){ + this.tjProList = this.tjProList.concat(res.page.records) + this.totalPage = res.page.pages this.status = 3 console.log(this.tjProList,'按标签检索结果') }else{ diff --git a/pages/user/persData.vue b/pages/user/persData.vue index e11e5d1..5656063 100644 --- a/pages/user/persData.vue +++ b/pages/user/persData.vue @@ -50,7 +50,7 @@ 请输入昵称 - 取消 @@ -124,7 +124,8 @@ nickname: '', tel: '', password: '', - Repassword: '' + Repassword: '', + oldName:'', // 老的用户名 }, avatarShow: false, nicknameShow: false, @@ -176,6 +177,7 @@ that.userMes.nickname = res.user.nickname that.userMes.tel = res.user.tel that.userMes.avatar = res.user.avatar + that.userMes.oldName = that.userMes.nickname }); } }, @@ -212,8 +214,18 @@ // 昵称 choseNickname(e) { let that = this - that.choseData() - that.nicknameShow = false + if(e && e != ''){ + + that.choseData() + that.nicknameShow = false + }else{ + that.userMes.nickname = that.userMes.oldName + console.log(that.userMes.nickname) + uni.showToast({ + title:'请输入昵称', + icon:'none' + }) + } }, // 性别