|
@@ -32,19 +32,30 @@
|
|
|
<view>商品编码:{{item.productCode}}</view>
|
|
|
</view>
|
|
|
<view class="list-details-price">
|
|
|
- <view v-if="!hasLogin" class="list-login-now">
|
|
|
- <text class="p-no">价格:</text>
|
|
|
- <uni-stars :stars="parseInt(item.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
|
|
|
- </view>
|
|
|
- <view class="list-price" v-else>
|
|
|
- <view class="price-larger" v-if="item.price1TextFlag == '1'">
|
|
|
- <text class="txt">该未公开价格</text>
|
|
|
+ <view v-if="hasLogin"class="list-price">
|
|
|
+ <view v-if="userIdentity == 1">
|
|
|
+ <text>¥<text class="price-larger">{{item.retailPrice?item.retailPrice.toFixed(2):'0.00'}}</text></text>
|
|
|
+ </view>
|
|
|
+ <view v-if="userIdentity == 4">
|
|
|
+ <view class="price-larger" v-if="item.price1TextFlag == '1'">
|
|
|
+ <text class="txt">未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <view class="price-larger" v-if="item.price1TextFlag == '2'">
|
|
|
+ <text class="txt">价格仅会员可见</text>
|
|
|
+ <text class="btn" @click.stop="this.$api.navigateTo(`/pages/login/apply?clubStatus=${clubStatus}`)">去升级</text>
|
|
|
+ </view>
|
|
|
+ <text v-if="item.price1TextFlag == '0'">¥<text class="price-larger">{{item.retailPrice?item.retailPrice.toFixed(2):'0.00'}}</text></text>
|
|
|
</view>
|
|
|
- <view class="price-larger" v-if="item.price1TextFlag == '2'">
|
|
|
- <text class="txt">价格仅会员可见</text>
|
|
|
- <text class="btn" @click.stop="this.$api.navigateTo(`/pages/login/apply?clubStatus=${clubStatus}`)">去升级</text>
|
|
|
+ <view v-if="userIdentity == 2">
|
|
|
+ <view class="price-larger" v-if="item.price1TextFlag == '1'">
|
|
|
+ <text class="txt">未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <text v-else>¥<text class="price-larger">{{item.retailPrice?item.retailPrice.toFixed(2):'0.00'}}</text></text>
|
|
|
</view>
|
|
|
- <text v-if="item.price1TextFlag == '0'">¥<text class="price-larger">{{item.retailPrice?item.retailPrice.toFixed(2):'0.00'}}</text></text>
|
|
|
+ </view>
|
|
|
+ <view class="list-login-now" v-else>
|
|
|
+ <text class="p-no">价格:</text>
|
|
|
+ <uni-stars :stars="parseInt(item.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -61,7 +72,6 @@
|
|
|
</view>
|
|
|
<!-- 透明模态层 -->
|
|
|
<modal-layer v-if='isModallayer'></modal-layer>
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -83,7 +93,8 @@
|
|
|
return {
|
|
|
userID:'',
|
|
|
themeClass: 'block',
|
|
|
- searchInputVal:'', //搜索关键词
|
|
|
+ searchInputVal:'', //搜索关键词
|
|
|
+ userIdentity:'',
|
|
|
isShowClose:false, //是否显示清空输入框图标
|
|
|
isSearchHistory:false, //是都显示搜索历史
|
|
|
serachRecordList:[], //历史搜索记录
|
|
@@ -113,6 +124,7 @@
|
|
|
initGetSerachRecord(){
|
|
|
this.$api.getStorage().then((resolve) =>{
|
|
|
this.userID = resolve.userID ? resolve.userID : '';
|
|
|
+ this.userIdentity = resolve.userIdentity
|
|
|
querySearchHistory({userId:this.userID}).then(response =>{
|
|
|
if(response.code == 0){
|
|
|
this.serachRecordList = response.data
|