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

修改登录显示价格

parent b2195edd
...@@ -15,4 +15,11 @@ ...@@ -15,4 +15,11 @@
<style> <style>
/*每个页面公共css */ /*每个页面公共css */
.unlogin_price{
font-size: 26rpx;
color: #999999;
height: 44rpx;
line-height: 44rpx;
text-align: left;
}
</style> </style>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
"disableHostCheck": true, "disableHostCheck": true,
"proxy": { "proxy": {
"/uni/api": { "/uni/api": {
"target": "http://192.168.50.133:6564/", "target": "http://192.168.1.2:9093/",
"changeOrigin": true, "changeOrigin": true,
"secure": false, "secure": false,
"pathRewrite": { "pathRewrite": {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view class="search-condition_item" :class="{current: param.label === 'default'}" @click="tabClick('default')"> <view class="search-condition_item" :class="{current: param.label === 'default'}" @click="tabClick('default')">
<text>综合排序</text> <text>综合排序</text>
<view class="icon_tips"> <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> <text :class="{active: param.order === 'desc' && param.label === 'default'}" class="yticon"></text>
</view> </view>
</view> </view>
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
</view> </view>
<view class="title">{{item._source.goods_name}}</view> <view class="title">{{item._source.goods_name}}</view>
<view class="sub-title">{{item._source.goods_subname}}</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> --> <!-- <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> <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> </view>
...@@ -122,7 +123,7 @@ ...@@ -122,7 +123,7 @@
}, },
methods: { methods: {
backHome(){ backHome(){
uni.redirectTo({ uni.reLaunch({
url: '/pages/home/home' url: '/pages/home/home'
}) })
}, },
...@@ -169,6 +170,7 @@ ...@@ -169,6 +170,7 @@
this.goods_list = []; this.goods_list = [];
} }
this.goods_list = this.goods_list.concat(data.data); this.goods_list = this.goods_list.concat(data.data);
this.isLogin = data.login_flg === 1;
const {total, page_size, current} = data.page; const {total, page_size, current} = data.page;
this.param.current = current; this.param.current = current;
//判断是否还有下一页,有是more,没有是nomore //判断是否还有下一页,有是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