整体调整

This commit is contained in:
liupopo
2023-03-01 17:09:41 +08:00
parent d46da55237
commit 5a52e5de04
35 changed files with 292 additions and 126 deletions

View File

@@ -20,11 +20,11 @@
</view>
<!-- 分类 -->
<view class="cate-section">
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?isFenxiao=1')">
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?productAttributeCategoryId=1005001')">
<image src="/static/nywz_icon.png"></image>
<text>农业物资</text>
</view>
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?isVip=1')">
<view class="cate-item" @click="navToTabPage('../../pagesA/product/list?productAttributeCategoryId=1005000')">
<image src="/static/shwz_icon.png"></image>
<text>生活物资</text>
</view>
@@ -177,7 +177,7 @@
<!-- 新品推荐 -->
<view v-if='homeNewProductList && homeNewProductList.length>0' class="f-header m-t"
@click="navToTabPage('../../pagesA/product/list')">
@click="navToTabPage('../../pagesA/product/list?newStatus=1')">
<image src="/static/temp/h1.png"></image>
<view class="tit-box">
<text class="tit">新品推荐</text>
@@ -203,7 +203,7 @@
</view>
<!-- 人气推荐 -->
<view v-if='homeRecommendProductList && homeRecommendProductList.length>0' class="f-header m-t"
@click="navToTabPage('../../pagesA/product/list')">
@click="navToTabPage('../../pagesA/product/list?recommandStatus=1')">
<image src="/static/temp/h1.png"></image>
<view class="tit-box">
<text class="tit">人气推荐</text>
@@ -229,7 +229,7 @@
<!-- 新品上市 -->
<!-- <view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list')"> -->
<view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list?isFenxiao=1')">
<view class="f-header m-t" @click="navToTabPage('../../pagesA/product/list')">
<image src="/static/temp/h1.png"></image>
<view class="tit-box">
<text class="tit">商品列表</text>

View File

@@ -90,6 +90,8 @@ export default {
isFenxiao: 0,
isVip: 0,
cid: null,
newStatus:null,
recommandStatus:null,
priceOrder: 0, //1 价格从低到高 2价格从高到低
cateList: [],
goodsList: [],
@@ -107,7 +109,8 @@ export default {
this.cateId = options.sid;
this.isVip = options.isVip;
this.isFenxiao = options.isFenxiao;
console.log(options);
this.newStatus= options.newStatus;
this.recommandStatus= options.recommandStatus;
this.productAttributeCategoryId = options.productAttributeCategoryId;
this.loadCateList(options.fid, options.sid);
this.loadData();
@@ -167,8 +170,8 @@ export default {
}
if (this.productAttributeCategoryId) {
params.productAttributeCategoryId = this.productAttributeCategoryId;
}
params.productAttributeCategoryId = this.productAttributeCategoryId;
}
if (this.keyword) {
params.keyword = this.keyword;
}
@@ -178,6 +181,12 @@ export default {
if (this.isFenxiao) {
params.isFenxiao = 1;
}
if (this.newStatus) {
params.newStatus = this.newStatus;
}
if (this.recommandStatus) {
params.recommandStatus = this.recommandStatus;
}
console.log("params>>>>",params)