diff --git a/pages/cart/index.vue b/pages/cart/index.vue index 2cad72e..f58e929 100644 --- a/pages/cart/index.vue +++ b/pages/cart/index.vue @@ -79,7 +79,7 @@ - {{item.goods_price_max}} + {{item.goods_price_min}} 到手价 ¥{{item.line_price_min}} diff --git a/pages/index/index.vue b/pages/index/index.vue index 5f4516b..c41ab20 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -245,7 +245,7 @@ - {{item.goods_price_max}} + {{item.goods_price_min}} 到手价 ¥{{item.line_price_min}} @@ -266,7 +266,7 @@ {{cityInfo.shop_name}} - {{cityInfo.is_open==1?'营业中':'休息中'}} + 营业中 @@ -323,7 +323,7 @@ 店内现货 - + 查看更多 @@ -466,7 +466,7 @@ return { isLogin: false, isTop: false, - logoImage:'', + logoImage: '', // background: { // backgroundColor: 'transparent', // }, @@ -726,13 +726,17 @@ }) }, getTypeList() { - GoodsApi.typeList().then(res => { + GoodsApi.typeList({ + is_in_store: this.current==0?0:1 + }).then(res => { if (res.status == 200) { this.tabList = res.data.list; this.catagoryList = res.data.list[0].children + if(this.current==0){ this.getRankingList(this.tabList[0].category_id) this.getNewGoods(this.tabList[0].category_id) - this.getBigList(this.tabList[0].category_id) + } + this.getBigList(this.current==0?(this.tabList[0].category_id):(this.tabList[this.tabCurrent].category_id)) } }) }, @@ -838,7 +842,7 @@ categoryId: val, is_brand: 0, is_new: 1, - order: 1 + order: 1, } GoodsApi.brandList(param).then(res => { let arr = res.data.data @@ -867,7 +871,8 @@ categoryId: val, is_brand: 1, is_new: 0, - order: 1 + order: 1, + is_in_store: this.current==0?0:1 } GoodsApi.brandList(param).then(res => { let arr = res.data.data; @@ -930,6 +935,8 @@ }, changeHome(val) { this.current = val; + this.getTypeList() + // this.getBigList(this.tabList[this.tabCurrent].category_id) }, getCityInfo() { const that = this @@ -944,7 +951,7 @@ async getStore() { newFunApi.storeData().then(res => { if (res.status == 200) { - this.logoImage=res.data.storeInfo.logoImage.preview_url + this.logoImage = res.data.storeInfo.logoImage.preview_url } }) .finally(() => {}) diff --git a/pages/invite/index.vue b/pages/invite/index.vue index 2cf124f..5072613 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -5,7 +5,7 @@ - + @@ -55,10 +55,10 @@ - + diff --git a/pages/news/rules/rulesList.vue b/pages/news/rules/rulesList.vue index 1a9cf99..9013aff 100644 --- a/pages/news/rules/rulesList.vue +++ b/pages/news/rules/rulesList.vue @@ -26,14 +26,15 @@ } }, onLoad(options) { - this.itemInfo = JSON.parse(options.itemInfo) + this.itemInfo = JSON.parse(decodeURIComponent(options.itemInfo)) + console.log(this.itemInfo ) this.title = this.itemInfo.name this.list = this.itemInfo.child }, methods: { goRules(item) { uni.navigateTo({ - url: '/pages/news/rules/index?itemInfo=' + JSON.stringify(item) + url: '/pages/news/rules/index?itemInfo=' + encodeURIComponent(JSON.stringify(item)) }) } } diff --git a/pages/news1/help.vue b/pages/news1/help.vue index bc185242..7a1e06b 100644 --- a/pages/news1/help.vue +++ b/pages/news1/help.vue @@ -50,7 +50,7 @@ methods: { goListPage(item) { uni.navigateTo({ - url: '/pages/news/rules/rulesList?itemInfo=' + JSON.stringify(item) + url: '/pages/news/rules/rulesList?itemInfo=' + encodeURIComponent(JSON.stringify(item)) }) }, getHelpList() { diff --git a/pages/user/index.vue b/pages/user/index.vue index dcd45c4..96605fd 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -120,7 +120,7 @@ 会员分销 - + 会员管理 @@ -529,7 +529,7 @@ - {{item.goods_price_max}} + {{item.goods_price_min}} 到手价 ¥{{item.line_price_min}} @@ -618,6 +618,7 @@ let rawData = JSON.parse(res.rawData) this.userInfo.avatar_url = rawData.avatarUrl; this.userInfo.nick_name = rawData.nickName; + console.log("用户信息", JSON.parse(res.rawData)) if (rawData) { that.headImgUpload(rawData.avatarUrl, rawData.nickName) } else { @@ -627,7 +628,7 @@ } }) }, - nickSubmit(avatar_id, nick_name) { + nickSubmit(avatar_id,nick_name) { UserApi.editUser({ avatar_id: avatar_id, nick_name: nick_name diff --git a/pages/user/vip/goods.vue b/pages/user/vip/goods.vue index a74889e..42557de 100644 --- a/pages/user/vip/goods.vue +++ b/pages/user/vip/goods.vue @@ -2,7 +2,8 @@ - + + @@ -28,8 +29,8 @@ 综合 - + 自营{{item.goods_name}} @@ -69,9 +70,13 @@ categoryChildren: [], list: [], swiperList: [], - orderSort: 1 + orderSort: 1, + type: 0 } }, + onLoad(op) { + this.type = op.type + }, /** * 生命周期函数--监听页面显示 */ @@ -94,7 +99,7 @@ // 获取分类 getCategoryList() { const app = this; - Api.category() + Api.category({is_in_store:this.type==1?1:0}) .then(result => { app.categoryList = result.data.list; app.categoryChildren = result.data.list[0].children; @@ -111,13 +116,14 @@ is_brand: 1, is_new: 0, categoryId: categoryId, - order: app.orderSort + order: app.orderSort, + is_in_store:this.type==1?1:0 } Api.brandList(pamars) .then(result => { let arr = result.data.data; - if(arr && arr.length > 0){ - arr.map(a=>{ + if (arr && arr.length > 0) { + arr.map(a => { a.goods_price_min = Number(a.goods_price_min) a.goods_price_max = Number(a.goods_price_max) a.line_price_min = Number(a.line_price_min) @@ -129,12 +135,12 @@ .finally(() => app.isLoading = false) }, tabItem(index, item) { - console.log(item,'1') + console.log(item, '1') this.tabIndex = index; this.getBrandList(item.category_id) }, tabItem1(item, index) { - console.log(item,'2') + console.log(item, '2') this.tabIndex1 = index; let app = this; app.categoryChildren = []; @@ -183,6 +189,7 @@ &-hd { width: 100%; height: 400rpx; + image { width: 100%; height: 100%;