Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
7daba106
Commit
7daba106
authored
Jun 23, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5b1b3ff3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
23 deletions
+31
-23
pages.json
pages.json
+14
-13
balance.vue
pages/balance/balance.vue
+1
-1
cart.vue
pages/cart/cart.vue
+12
-6
index.vue
pages/member/index/index.vue
+4
-3
No files found.
pages.json
View file @
7daba106
...
...
@@ -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"
},
...
...
pages/balance/balance.vue
View file @
7daba106
...
...
@@ -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 暂无余额说明 -->
...
...
pages/cart/cart.vue
View file @
7daba106
...
...
@@ -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
=
[];
}
...
...
pages/member/index/index.vue
View file @
7daba106
...
...
@@ -60,10 +60,11 @@
});
},
gobalance
(){
uni
.
navigateTo
({
url
:
'/pages/balance/recharge'
uni
.
showToast
({
title
:
'正在开发,敬请期待'
,
icon
:
"none"
});
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment