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
cfaed020
Commit
cfaed020
authored
Jun 11, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
190431d9
1874162d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
style11.vue
components/cats/style11.vue
+1
-1
style4.vue
components/cats/style4.vue
+1
-1
style8.vue
components/cats/style8.vue
+1
-1
cart.vue
pages/cart/cart.vue
+15
-11
No files found.
components/cats/style11.vue
View file @
cfaed020
...
...
@@ -30,7 +30,7 @@
<view
class=
"good-name"
>
{{
cx
.
name
}}
</view>
<view
class=
"goodprice"
>
<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"
/>
<span
class=
"vip"
>
¥
{{
cx
.
level_price
}}
</span>
</view>
...
...
components/cats/style4.vue
View file @
cfaed020
...
...
@@ -46,7 +46,7 @@
<div
class=
"good-name"
>
{{
cx
.
name
}}
</div>
<div
class=
"goodprice"
>
<div
class=
"left"
>
<div
v-if=
"cx.
level_price
"
>
<div
v-if=
"cx.
is_level==1
"
>
<!-- todo VIP价格显示-->
<u-tag
size=
"mini"
shape=
"circle"
text=
"会员价"
type=
"warning"
/>
<!--
<u-tag
color=
"#f39800"
type=
"warning"
>
会员价
</u-tag>
-->
...
...
components/cats/style8.vue
View file @
cfaed020
...
...
@@ -49,7 +49,7 @@
<view
class=
"good-name"
>
{{
cx
.
name
}}
</view>
<view
class=
"goodprice"
>
<view
class=
"left"
>
<view
v-if=
"cx.
level_price
"
>
<view
v-if=
"cx.
is_level==1
"
>
<van-tag
plain
color=
"#f39800"
>
会员价
</van-tag>
<span
class=
"vip"
>
¥
{{
cx
.
level_price
}}
</span>
</view>
...
...
pages/cart/cart.vue
View file @
cfaed020
...
...
@@ -181,7 +181,7 @@ import auth from "@/components/auth/index.vue";
export
default
{
data
()
{
return
{
isloading
:
tru
e
,
isloading
:
fals
e
,
pageTitle
:
'购物车'
,
navHeight
:
0
,
contentHeight
:
0
,
...
...
@@ -221,14 +221,7 @@ export default {
}
},
onShow
(){
this
.
u
=
uni
.
getStorageSync
(
'mall_UserInfo'
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
'未登录'
,
avatarUrl
:
''
};
this
.
showAuth
=
true
;
}
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
...
...
@@ -246,12 +239,23 @@ export default {
uni
.
setNavigationBarTitle
({
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
:
{
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
'mall_UserInfo'
);
this
.
showAuth
=
false
;
this
.
init
()
},
//关闭登录窗口
gbAuth
(){
...
...
@@ -265,6 +269,7 @@ export default {
init
()
{
uni
.
showNavigationBarLoading
();
let
h
=
this
.
apiheader
();
this
.
isloading
=
true
;
this
.
request2
(
{
url
:
'/api/AppletOrder/GetGoodsShoppingCartPageList'
,
...
...
@@ -272,7 +277,6 @@ export default {
},
res
=>
{
this
.
loading
=
false
;
console
.
log
(
'resggg'
,
res
);
if
(
res
.
resultCode
==
1
)
{
uni
.
hideNavigationBarLoading
();
this
.
isloading
=
false
;
...
...
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