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
6009139c
Commit
6009139c
authored
May 26, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式的修改
parent
fadcb43a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
709 additions
and
681 deletions
+709
-681
AddAddress.vue
pages/address/AddAddress.vue
+4
-1
address.vue
pages/address/address.vue
+17
-4
cart.vue
pages/cart/cart.vue
+592
-661
favorite.vue
pages/favorite/favorite.vue
+17
-0
index.vue
pages/foot/index/index.vue
+25
-8
index.vue
pages/order/index/index.vue
+44
-6
user-center.vue
pages/user-center/user-center.vue
+10
-1
plugins-out.png
static/images/icon/plugins-out.png
+0
-0
No files found.
pages/address/AddAddress.vue
View file @
6009139c
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
pageTitle
:
'收货地址'
,
contentHeight
:
0
,
contentHeight
:
0
,
mainColor
:
''
,
mainColor
:
''
,
msg
:{
msg
:{
...
@@ -75,7 +76,9 @@
...
@@ -75,7 +76,9 @@
created
(){
created
(){
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
},
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
if
(
option
.
u
!=
undefined
){
if
(
option
.
u
!=
undefined
){
...
...
pages/address/address.vue
View file @
6009139c
...
@@ -70,6 +70,7 @@ import auth from "../../components/auth/index.vue";
...
@@ -70,6 +70,7 @@ import auth from "../../components/auth/index.vue";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'收货地址'
,
loading
:
true
,
loading
:
true
,
list
:
[],
list
:
[],
showAuth
:
false
,
showAuth
:
false
,
...
@@ -88,8 +89,22 @@ export default {
...
@@ -88,8 +89,22 @@ export default {
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
()
{
onLoad
()
{
console
.
log
(
wx
.
getStorageSync
(
"basedata"
));
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
if
(
!
this
.
u
)
{
if
(
!
this
.
u
)
{
this
.
u
=
{
this
.
u
=
{
...
@@ -190,9 +205,7 @@ export default {
...
@@ -190,9 +205,7 @@ export default {
});
});
}
}
},
},
mounted
()
{
}
};
};
</
script
>
</
script
>
...
...
pages/cart/cart.vue
View file @
6009139c
This diff is collapsed.
Click to expand it.
pages/favorite/favorite.vue
View file @
6009139c
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'我的收藏'
,
loading
:
true
,
loading
:
true
,
contentHeight
:
0
,
contentHeight
:
0
,
showAuth
:
false
,
showAuth
:
false
,
...
@@ -84,6 +85,21 @@
...
@@ -84,6 +85,21 @@
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
init
()
this
.
init
()
},
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
(){
onLoad
(){
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
if
(
!
this
.
u
)
{
if
(
!
this
.
u
)
{
...
@@ -185,6 +201,7 @@
...
@@ -185,6 +201,7 @@
margin-bottom
:
3px
;
margin-bottom
:
3px
;
font-size
:
13px
;
font-size
:
13px
;
margin
:
7px
10px
;
margin
:
7px
10px
;
height
:
36px
;
}
}
.favoriteStyle
.u-good-list
.good
.good-info
{
.favoriteStyle
.u-good-list
.good
.good-info
{
display
:
flex
;
display
:
flex
;
...
...
pages/foot/index/index.vue
View file @
6009139c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</view>
</view>
<view
v-if=
"g.length > 0"
<view
v-if=
"g.length > 0"
style=
"
style=
"
height: calc(100vh -
4
0px);
height: calc(100vh -
5
0px);
width: calc(100vw);
width: calc(100vw);
overflow: hidden;
overflow: hidden;
padding-top: 10px;
padding-top: 10px;
...
@@ -60,14 +60,15 @@
...
@@ -60,14 +60,15 @@
</view>
</view>
</view>
</view>
<u-divider
contentPosition=
"center"
v-if=
"isover"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
'#f3f4f6'
>
没有更多足迹了
</u-divider>
</scroll-view>
</scroll-view>
<u-divider
contentPosition=
"center"
v-if=
"isover"
:margin-top=
"20"
:margin-bottom=
"20"
>
没有更多商品了
</u-divider>
</view>
</view>
<!--
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
></auth>
-->
<!--
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
></auth>
-->
<view
class=
"loading"
v-show=
"loading"
>
<view
class=
"loading"
v-show=
"loading"
>
...
@@ -128,6 +129,7 @@
...
@@ -128,6 +129,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pageTitle
:
"我的足迹"
,
isloading
:
true
,
isloading
:
true
,
loading
:
false
,
loading
:
false
,
loading2
:
false
,
loading2
:
false
,
...
@@ -165,6 +167,21 @@
...
@@ -165,6 +167,21 @@
this
.
fun_date
(
0
)
this
.
fun_date
(
0
)
},
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
(){
onLoad
(){
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
this
.
u
=
wx
.
getStorageSync
(
"userinfo"
);
if
(
!
this
.
u
)
{
if
(
!
this
.
u
)
{
...
...
pages/order/index/index.vue
View file @
6009139c
...
@@ -63,7 +63,9 @@
...
@@ -63,7 +63,9 @@
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<Text
style=
'font-size: 32rpx;text-align: right;width: 100%;'
>
¥{{item.total_price}}
</Text>
<Text
style=
'font-size: 32rpx;text-align: right;width: 100%;'
>
合计:¥{{item.total_price}}
<Text
v-if=
'item.express_price!=0'
style=
'font-size: 20rpx;color: #A0A09D;'
>
(含运费 ¥{{item.express_price}})
</Text>
</Text>
<!-- TODO 样式结构修改-->
<!-- TODO 样式结构修改-->
<view
class=
"handle"
>
<view
class=
"handle"
>
...
@@ -77,7 +79,13 @@
...
@@ -77,7 +79,13 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-divider
contentPosition=
"center"
v-if=
"isover"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
'#f3f4f6'
>
没有更多订单了
</u-divider>
</scroll-view>
</scroll-view>
...
@@ -110,12 +118,13 @@
...
@@ -110,12 +118,13 @@
},
},
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'我的订单'
,
current
:
0
,
current
:
0
,
list
:
[{
name
:
'全部'
},
{
name
:
'待付款'
},{
name
:
'待发货'
},{
name
:
'待收货'
},{
name
:
'待评价'
},],
list
:
[{
name
:
'全部'
},
{
name
:
'待付款'
},{
name
:
'待发货'
},{
name
:
'待收货'
},{
name
:
'待评价'
},],
mainColor
:
""
,
mainColor
:
""
,
contentHeight
:
0
,
contentHeight
:
0
,
page
:
1
,
page
:
1
,
page_count
:
0
,
page_count
:
1
,
g
:[],
g
:[],
loading
:
false
,
loading
:
false
,
showModal
:
false
,
showModal
:
false
,
...
@@ -123,6 +132,7 @@
...
@@ -123,6 +132,7 @@
index
:
0
,
index
:
0
,
goodData
:[],
goodData
:[],
showGoodList
:
false
,
showGoodList
:
false
,
isover
:
false
};
};
},
},
created
(){
created
(){
...
@@ -130,6 +140,21 @@
...
@@ -130,6 +140,21 @@
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
this
.
current
=
option
.
status
;
this
.
current
=
option
.
status
;
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -144,9 +169,8 @@
...
@@ -144,9 +169,8 @@
this
.
init
()
this
.
init
()
},
},
init
(){
init
(){
this
.
isover
=
false
;
let
h
=
this
.
apiheader
()
let
h
=
this
.
apiheader
()
this
.
request
(
this
.
request
(
{
{
url
:
""
,
url
:
""
,
...
@@ -160,11 +184,25 @@
...
@@ -160,11 +184,25 @@
},
},
res
=>
{
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
g
=
res
.
data
.
list
;
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
this
.
page_count
=
res
.
data
.
pagination
.
page_count
;
if
(
this
.
page_count
==
1
)
{
this
.
isover
=
true
;
}
}
}
);
);
},
},
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
this
.
page
++
;
this
.
init
();
}
else
{
this
.
isover
=
true
;
}
},
cancel
(
e
,
index
){
cancel
(
e
,
index
){
this
.
showModal
=
true
;
this
.
showModal
=
true
;
this
.
index
=
index
;
this
.
index
=
index
;
...
...
pages/user-center/user-center.vue
View file @
6009139c
...
@@ -77,6 +77,7 @@
...
@@ -77,6 +77,7 @@
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
'item.icon_url'
style=
"width: 66rpx;height: 60rpx;"
></image>
<image
:src=
'item.icon_url'
style=
"width: 66rpx;height: 60rpx;"
></image>
<Text
style=
'margin-top: 10rpx;'
>
{{
item
.
name
}}
</Text>
<Text
style=
'margin-top: 10rpx;'
>
{{
item
.
name
}}
</Text>
<!--
<view
class=
'badge'
>
{{
item
.
}}
</view>
-->
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -157,7 +158,6 @@
...
@@ -157,7 +158,6 @@
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
:
[];
...
@@ -167,6 +167,9 @@
...
@@ -167,6 +167,9 @@
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
}
});
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
this
.
userinfo
()
this
.
userinfo
()
this
.
getmeue
()
this
.
getmeue
()
...
@@ -324,6 +327,12 @@
...
@@ -324,6 +327,12 @@
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
position
:
relative
}
.userStyle
.badge
{
position
:
absolute
;
right
:
-10
rpx
;
top
:
-10
rpx
;
}
}
.userStyle
.menus
{
.userStyle
.menus
{
width
:
94%
;
width
:
94%
;
...
...
static/images/icon/plugins-out.png
0 → 100644
View file @
6009139c
13.9 KB
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