|
@@ -44,8 +44,8 @@
|
|
<view v-if="priceLoading" class="list-price-loding">正在获取价格...</view>
|
|
<view v-if="priceLoading" class="list-price-loding">正在获取价格...</view>
|
|
<view v-else class="list-shop">
|
|
<view v-else class="list-shop">
|
|
<view class="list-price">
|
|
<view class="list-price">
|
|
- <text class="price-view activity" v-if="item.isShowActFlg">活动价</text>
|
|
|
|
<text class="price-larger">¥{{item.price}}</text>
|
|
<text class="price-larger">¥{{item.price}}</text>
|
|
|
|
+ <text class="price-view activity" v-if="item.isShowActFlg">活</text>
|
|
<text class="price-view ladder" v-if="item.ladderPriceFlag == '1'" @click.stop="alertjieti(item)">阶</text>
|
|
<text class="price-view ladder" v-if="item.ladderPriceFlag == '1'" @click.stop="alertjieti(item)">阶</text>
|
|
</view>
|
|
</view>
|
|
<view class="list-price-none" v-if="item.repurchasePriceState">
|
|
<view class="list-price-none" v-if="item.repurchasePriceState">
|
|
@@ -65,8 +65,8 @@
|
|
</view>
|
|
</view>
|
|
<!-- 组合商品 -->
|
|
<!-- 组合商品 -->
|
|
<view :class="tabIndex" v-if="tabIndex === 1">
|
|
<view :class="tabIndex" v-if="tabIndex === 1">
|
|
- <scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower(tabIndex)" scroll-y>
|
|
|
|
- <view class="all-zuhe-list" v-for="(item,index) in combinationProduct" :key="index" :id="item.id" :style="{paddingTop:searchStatus?'112rpx':''}" >
|
|
|
|
|
|
+ <scroll-view :style="{'height':scrollHeight+'px',paddingTop:searchStatus?'112rpx':''}" @scrolltolower="scrolltolower(tabIndex)" scroll-y>
|
|
|
|
+ <view class="all-zuhe-list" v-for="(item,index) in combinationProduct" :key="index" :id="item.id">
|
|
<view class="zuhe_title" :class="index%2==0 ? 'active' : ''">{{item.name}}</view>
|
|
<view class="zuhe_title" :class="index%2==0 ? 'active' : ''">{{item.name}}</view>
|
|
<view v-for="(pros,proIndex) in item.combinationProductList" :class="index%2==0 ? 'stylecontent' : ''" :key="proIndex" :id="pros.productID" class="zuhe-list-content commodity-list" >
|
|
<view v-for="(pros,proIndex) in item.combinationProductList" :class="index%2==0 ? 'stylecontent' : ''" :key="proIndex" :id="pros.productID" class="zuhe-list-content commodity-list" >
|
|
<view class="list-details-info" >
|
|
<view class="list-details-info" >
|
|
@@ -160,7 +160,8 @@
|
|
priceLoading:true,
|
|
priceLoading:true,
|
|
isShowEmpty: false,
|
|
isShowEmpty: false,
|
|
isShowEmptyText: '搜索相关商品',
|
|
isShowEmptyText: '搜索相关商品',
|
|
- clubUserId: '',
|
|
|
|
|
|
+ clubUserId: '',
|
|
|
|
+ identity:'',
|
|
scrollHeight: '',
|
|
scrollHeight: '',
|
|
listData: [],
|
|
listData: [],
|
|
combinationProduct:[],
|
|
combinationProduct:[],
|
|
@@ -189,10 +190,18 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.setScrollHeight();
|
|
|
|
|
|
+ this.setScrollHeight();
|
|
|
|
+ this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
|
|
+ if(resolve.userIdentity = 1){
|
|
|
|
+ this.identity = 1
|
|
|
|
+ }
|
|
|
|
+ }).catch(error =>{
|
|
|
|
+ console.log(error)
|
|
|
|
+ })
|
|
this.$api.getComStorage('orderUserInfo').then((resolve) =>{
|
|
this.$api.getComStorage('orderUserInfo').then((resolve) =>{
|
|
this.clubUserId = resolve.userID
|
|
this.clubUserId = resolve.userID
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ this.getProductAgainInfo()
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin','userInfo'])
|
|
...mapState(['hasLogin','userInfo'])
|
|
@@ -221,7 +230,7 @@
|
|
this.loadingText = '加载中';
|
|
this.loadingText = '加载中';
|
|
this.isShowEmpty = false;
|
|
this.isShowEmpty = false;
|
|
if(loadMore) {this.pageNum += 1;}
|
|
if(loadMore) {this.pageNum += 1;}
|
|
- let params = {keyword:this.searchInputVal,pageNum:this.pageNum,pageSize:this.pageSize,sortField:'',sortType:''}
|
|
|
|
|
|
+ let params = {identity:this.identity,keyword:this.searchInputVal,pageNum:this.pageNum,pageSize:this.pageSize,sortField:'',sortType:''}
|
|
queryNewSearchProduct(params).then(response =>{
|
|
queryNewSearchProduct(params).then(response =>{
|
|
this.isShowWrapper = true
|
|
this.isShowWrapper = true
|
|
const resData = JSON.parse(response.data);
|
|
const resData = JSON.parse(response.data);
|
|
@@ -448,11 +457,11 @@
|
|
changeTab(index){
|
|
changeTab(index){
|
|
this.tabIndex = index;
|
|
this.tabIndex = index;
|
|
if(index == 0){
|
|
if(index == 0){
|
|
- this.loadingNow = false
|
|
|
|
- this.isShowEmpty = true;
|
|
|
|
- this.isShowEmptyText ='暂无相关商品'
|
|
|
|
|
|
+ this.getProductAgainInfo()
|
|
|
|
+ }else{
|
|
|
|
+ this.getcombinationProduct()
|
|
}
|
|
}
|
|
- this.$emit('changetab',index);
|
|
|
|
|
|
+ // this.$emit('changetab',index);
|
|
},
|
|
},
|
|
navToDetailPage(id) {
|
|
navToDetailPage(id) {
|
|
this.isModallayer = true;
|
|
this.isModallayer = true;
|
|
@@ -812,7 +821,7 @@
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 40rpx;
|
|
width: 40rpx;
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
- font-size: $font-size-24;
|
|
|
|
|
|
+ font-size: $font-size-22;
|
|
text-align: center;
|
|
text-align: center;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
height: 36rpx;
|
|
height: 36rpx;
|