Commit 7daba106 authored by zhangjianguo's avatar zhangjianguo

1

parent 5b1b3ff3
......@@ -48,21 +48,22 @@
}
]
},
{
"root": "pages/member",
"pages": [{
"path": "index/index"
},
{
"path": "privilege"
}
]
},
// {
// "root": "pages/member",
// "pages": [{
// "path": "index/index"
// },
// {
// "path": "privilege"
// }
// ]
// },
{
"root": "pages/balance",
"pages": [{
"path": "recharge"
},
"pages": [
// {
// "path": "recharge"
// },
{
"path": "balance"
},
......
......@@ -3,7 +3,7 @@
<view class="balance_top" >
<Text style='margin-top:50rpx ;color: #fff;;font-size: 24rpx;'>账户余额(元)</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>
</view>
<!-- TODO 暂无余额说明 -->
......
......@@ -14,7 +14,7 @@
<Text @click="edit" v-if="editType == true" class="grid-text_r">完成</Text>
</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
v-if="list.length > 0"
......@@ -26,7 +26,7 @@
"
>
<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
style="
......@@ -90,8 +90,8 @@
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="
color: #a0a09d;
font-size: 24rpx;
......@@ -100,7 +100,7 @@
>
{{ attr}}
</Text>
</view>
</view>
<view
style="
......@@ -186,7 +186,7 @@ export default {
navHeight: 0,
contentHeight: 0,
cstyle: {},
emptyshow:false,
allchecked: false,
TotalPrice: 0, //总价格
bottommargin: 0,
......@@ -282,14 +282,20 @@ export default {
this.isloading = false;
if (res.data.pageData.length > 0) {
let list = res.data.pageData;
let empty = true
list.forEach(x => {
x.checked = false;
x.GoodsList.forEach(j => {
j.checked = false;
j.id=j.Id;
});
if(x.GoodsList.length>0){
empty=false
}
});
this.emptyshow = empty
this.list = list;
} else {
this.list = [];
}
......
......@@ -60,10 +60,11 @@
});
},
gobalance(){
uni.navigateTo({
url: '/pages/balance/recharge'
uni.showToast({
title: '正在开发,敬请期待',
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