Commit 08343556 authored by 黄媛媛's avatar 黄媛媛

update

parent 94635118
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<view class="good-name">{{ cx.name }}</view> <view class="good-name">{{ cx.name }}</view>
<view class="goodprice"> <view class="goodprice">
<view class="left"> <view class="left">
<view v-if="cx.level_price"> <view v-if="cx.is_level==1">
<u-tag size="mini" text="会员价" shape="circle" type="warning" /> <u-tag size="mini" text="会员价" shape="circle" type="warning" />
<span class="vip">{{ cx.level_price }}</span> <span class="vip">{{ cx.level_price }}</span>
</view> </view>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div class="good-name">{{ cx.name }}</div> <div class="good-name">{{ cx.name }}</div>
<div class="goodprice"> <div class="goodprice">
<div class="left"> <div class="left">
<div v-if="cx.level_price"> <div v-if="cx.is_level==1">
<!-- todo VIP价格显示--> <!-- todo VIP价格显示-->
<u-tag size="mini" shape="circle" text="会员价" type="warning" /> <u-tag size="mini" shape="circle" text="会员价" type="warning" />
<!-- <u-tag color="#f39800" type="warning">会员价</u-tag> --> <!-- <u-tag color="#f39800" type="warning">会员价</u-tag> -->
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<view class="good-name">{{ cx.name }}</view> <view class="good-name">{{ cx.name }}</view>
<view class="goodprice"> <view class="goodprice">
<view class="left"> <view class="left">
<view v-if="cx.level_price"> <view v-if="cx.is_level==1">
<van-tag plain color="#f39800">会员价</van-tag> <van-tag plain color="#f39800">会员价</van-tag>
<span class="vip">{{cx.level_price}}</span> <span class="vip">{{cx.level_price}}</span>
</view> </view>
......
...@@ -181,7 +181,7 @@ import auth from "@/components/auth/index.vue"; ...@@ -181,7 +181,7 @@ import auth from "@/components/auth/index.vue";
export default { export default {
data() { data() {
return { return {
isloading: true, isloading: false,
pageTitle: '购物车', pageTitle: '购物车',
navHeight: 0, navHeight: 0,
contentHeight: 0, contentHeight: 0,
...@@ -221,14 +221,7 @@ export default { ...@@ -221,14 +221,7 @@ export default {
} }
}, },
onShow(){ onShow(){
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
}
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -246,12 +239,23 @@ export default { ...@@ -246,12 +239,23 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle title: this.pageTitle
}); });
this.init(); this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
}else{
this.init();
}
}, },
methods: { methods: {
reloadUserinfo() { reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo'); this.u = uni.getStorageSync('mall_UserInfo');
this.showAuth = false; this.showAuth = false;
this.init()
}, },
//关闭登录窗口 //关闭登录窗口
gbAuth(){ gbAuth(){
...@@ -265,6 +269,7 @@ export default { ...@@ -265,6 +269,7 @@ export default {
init() { init() {
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
let h = this.apiheader(); let h = this.apiheader();
this.isloading=true;
this.request2( this.request2(
{ {
url: '/api/AppletOrder/GetGoodsShoppingCartPageList', url: '/api/AppletOrder/GetGoodsShoppingCartPageList',
...@@ -272,7 +277,6 @@ export default { ...@@ -272,7 +277,6 @@ export default {
}, },
res => { res => {
this.loading = false; this.loading = false;
console.log('resggg', res);
if (res.resultCode == 1) { if (res.resultCode == 1) {
uni.hideNavigationBarLoading(); uni.hideNavigationBarLoading();
this.isloading = false; this.isloading = false;
......
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