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
7e3b1ece
Commit
7e3b1ece
authored
Aug 03, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一些登录问题
parent
952b3cdb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
index.vue
pages/coupon/index/index.vue
+1
-0
list.vue
pages/coupon/list/list.vue
+28
-5
refunds-list.vue
pages/order/after-sale/refunds-list.vue
+1
-1
No files found.
pages/coupon/index/index.vue
View file @
7e3b1ece
...
...
@@ -92,6 +92,7 @@ export default {
return
{
pageTitle
:
"我的优惠券"
,
showAuth
:
false
,
U
:{},
list
:
[
{
name
:
"未使用"
},
{
name
:
"已使用"
},
...
...
pages/coupon/list/list.vue
View file @
7e3b1ece
...
...
@@ -63,13 +63,16 @@
<u-loading
mode=
"flower"
size=
"48"
>
>
</u-loading>
<Text
style=
"color: #fff; margin-top: 10rpx;"
>
加载中...
</Text>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'gbAuth'
></auth>
</view>
</
template
>
<
script
>
import
auth
from
"../../../components/auth/index.vue"
;
export
default
{
components
:
{
auth
},
data
()
{
return
{
pageTitle
:
"领券中心"
,
...
...
@@ -77,6 +80,8 @@ export default {
contentHeight
:
0
,
g
:
[],
loading
:
false
,
showAuth
:
false
,
U
:{},
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
...
...
@@ -111,9 +116,18 @@ export default {
},
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
loading
=
true
;
this
.
init
();
}
this
.
loading
=
true
;
this
.
init
();
},
methods
:
{
...
...
@@ -183,7 +197,16 @@ export default {
});
}
}
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
showAuth
=
false
;
this
.
init
();
},
//关闭登录窗口
gbAuth
(){
uni
.
navigateBack
()
},
},
};
</
script
>
...
...
pages/order/after-sale/refunds-list.vue
View file @
7e3b1ece
...
...
@@ -242,7 +242,7 @@ export default {
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
showAuth
=
false
;
this
.
getOrderStatus
();
this
.
init
();
},
goback
(){
uni
.
navigateBack
()
...
...
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