Commit 7daba106 authored by zhangjianguo's avatar zhangjianguo

1

parent 5b1b3ff3
...@@ -48,21 +48,22 @@ ...@@ -48,21 +48,22 @@
} }
] ]
}, },
{ // {
"root": "pages/member", // "root": "pages/member",
"pages": [{ // "pages": [{
"path": "index/index" // "path": "index/index"
}, // },
{ // {
"path": "privilege" // "path": "privilege"
} // }
] // ]
}, // },
{ {
"root": "pages/balance", "root": "pages/balance",
"pages": [{ "pages": [
"path": "recharge" // {
}, // "path": "recharge"
// },
{ {
"path": "balance" "path": "balance"
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="balance_top" > <view class="balance_top" >
<Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</Text> <Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</Text>
<Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{balance}}</Text> <Text style='margin-top:50rpx ;color: #fff;;font-size: 36px;'>{{balance}}</Text>
<view class="recharge" @click="goUrl('/pages/balance/recharge')"> <view class="recharge" @click="goUrl()">
<Text style='color: #fff;;font-size: 28rpx;'>充值</Text> <Text style='color: #fff;;font-size: 28rpx;'>充值</Text>
</view> </view>
<!-- TODO 暂无余额说明 --> <!-- TODO 暂无余额说明 -->
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<Text @click="edit" v-if="editType == true" class="grid-text_r">完成</Text> <Text @click="edit" v-if="editType == true" class="grid-text_r">完成</Text>
</view> </view>
<view style="width: 100%; height: 30rpx; background: #f7f7f7; margin: 20rpx 0;"></view> <view style="width: 100%; height: 30rpx; background: #f7f7f7; margin: 20rpx 0;"></view>
<u-empty v-if="list.length == 0" text="购物车还是空的哦" mode="car"></u-empty> <u-empty v-if="emptyshow == true" text="购物车还是空的哦" mode="car"></u-empty>
<view <view
v-if="list.length > 0" v-if="list.length > 0"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
" "
> >
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" :style="{ height: '100%' }"> <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" :style="{ height: '100%' }">
<template v-if="list.length > 0"> <template v-if="list.length > 0 && emptyshow==false">
<view class="cartList" :style="{ 'margin-bottom': listbottom }" v-for="(c, i) in list" :key="i"> <view class="cartList" :style="{ 'margin-bottom': listbottom }" v-for="(c, i) in list" :key="i">
<view <view
style=" style="
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
text-overflow: ellipsis; text-overflow: ellipsis;
" "
> >
<view v-for="(attr, inde2x) in item.SpecificationList" :key="inde2x">
<Text <Text v-for="(attr, inde2x) in item.SpecificationList" :key="inde2x"
style=" style="
color: #a0a09d; color: #a0a09d;
font-size: 24rpx; font-size: 24rpx;
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
> >
{{ attr}} {{ attr}}
</Text> </Text>
</view>
</view> </view>
<view <view
style=" style="
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
navHeight: 0, navHeight: 0,
contentHeight: 0, contentHeight: 0,
cstyle: {}, cstyle: {},
emptyshow:false,
allchecked: false, allchecked: false,
TotalPrice: 0, //总价格 TotalPrice: 0, //总价格
bottommargin: 0, bottommargin: 0,
...@@ -282,14 +282,20 @@ export default { ...@@ -282,14 +282,20 @@ export default {
this.isloading = false; this.isloading = false;
if (res.data.pageData.length > 0) { if (res.data.pageData.length > 0) {
let list = res.data.pageData; let list = res.data.pageData;
let empty = true
list.forEach(x => { list.forEach(x => {
x.checked = false; x.checked = false;
x.GoodsList.forEach(j => { x.GoodsList.forEach(j => {
j.checked = false; j.checked = false;
j.id=j.Id; j.id=j.Id;
}); });
if(x.GoodsList.length>0){
empty=false
}
}); });
this.emptyshow = empty
this.list = list; this.list = list;
} else { } else {
this.list = []; this.list = [];
} }
......
...@@ -60,10 +60,11 @@ ...@@ -60,10 +60,11 @@
}); });
}, },
gobalance(){ gobalance(){
uni.showToast({
uni.navigateTo({ title: '正在开发,敬请期待',
url: '/pages/balance/recharge' icon: "none"
}); });
} }
} }
} }
......
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