Commit 509eb701 authored by 郑秀明's avatar 郑秀明

修改登录显示价格

parent b2195edd
......@@ -14,5 +14,12 @@
</script>
<style>
/*每个页面公共css */
/*每个页面公共css */
.unlogin_price{
font-size: 26rpx;
color: #999999;
height: 44rpx;
line-height: 44rpx;
text-align: left;
}
</style>
......@@ -62,7 +62,7 @@
"disableHostCheck": true,
"proxy": {
"/uni/api": {
"target": "http://192.168.50.133:6564/",
"target": "http://192.168.1.2:9093/",
"changeOrigin": true,
"secure": false,
"pathRewrite": {
......
......@@ -12,7 +12,7 @@
<view class="search-condition_item" :class="{current: param.label === 'default'}" @click="tabClick('default')">
<text>综合排序</text>
<view class="icon_tips">
<text :class="{active: param.order === 'asc' && param.label === 'default'}" class="yticon xia"></text>
<text :class="{active: param.order === 'asc' && param.label === 'default'}" class="yticon"></text>
<text :class="{active: param.order === 'desc' && param.label === 'default'}" class="yticon"></text>
</view>
</view>
......@@ -49,7 +49,8 @@
</view>
<view class="title">{{item._source.goods_name}}</view>
<view class="sub-title">{{item._source.goods_subname}}</view>
<view class="price"><text class="price-tips"></text>{{item._source.price}}</view>
<view v-if="!isLogin" class="price"><text class="price-tips"></text>{{item._source.price}}</view>
<view v-if="isLogin" class="unlogin_price">登录显示价格</view>
<!-- <view class="old-price"><text class="price-tips"></text>30.00</view> -->
<image class="cart-icon" @click="addCart(item._source.default_spec, 1)" src="https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/global/icon_gouwuche%402x.png"></image>
</view>
......@@ -122,7 +123,7 @@
},
methods: {
backHome(){
uni.redirectTo({
uni.reLaunch({
url: '/pages/home/home'
})
},
......@@ -169,6 +170,7 @@
this.goods_list = [];
}
this.goods_list = this.goods_list.concat(data.data);
this.isLogin = data.login_flg === 1;
const {total, page_size, current} = data.page;
this.param.current = current;
//判断是否还有下一页,有是more,没有是nomore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment