Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
83eddcba
Commit
83eddcba
authored
Apr 24, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b2aa54c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/pages/memberCode/index.vue
+12
-4
No files found.
src/pages/memberCode/index.vue
View file @
83eddcba
...
...
@@ -41,6 +41,12 @@ export default {
},
components
:
{},
computed
:
{},
created
()
{
console
.
log
(
"进入created"
)
},
onLoad
()
{
console
.
log
(
"进入onLoad"
)
},
onShow
()
{
let
_this
=
this
;
wx
.
getScreenBrightness
({
...
...
@@ -58,19 +64,20 @@ export default {
},
onHide
()
{
this
.
setScreenBrightness
(
this
.
currentBrightness
);
clearInterval
(
this
.
TimeOut
);
},
onUnload
()
{
this
.
setScreenBrightness
(
this
.
currentBrightness
);
clearInterval
(
this
.
TimeOut
);
},
methods
:
{
// 获取缓存用户信息
getSync
()
{
log
.
info
(
this
.
getStep
,
'getSync'
)
if
(
this
.
getStep
>
10
)
return
;
this
.
getStep
++
;
let
loginUserInfo
=
wx
.
getStorageSync
(
"loginUserInfo"
)
||
null
;
if
(
loginUserInfo
&&
loginUserInfo
.
mobilephone
&&
!
this
.
mobilephone
)
{
log
.
info
(
this
.
mobilephone
,
loginUserInfo
,
'loginUserInfo'
)
console
.
log
(
this
.
mobilephone
,
loginUserInfo
,
'loginUserInfo'
)
if
(
loginUserInfo
&&
loginUserInfo
.
mobilephone
)
{
this
.
mobilephone
=
loginUserInfo
.
mobilephone
;
this
.
getStep
=
0
;
this
.
init
();
...
...
@@ -82,6 +89,7 @@ export default {
},
init
()
{
console
.
log
(
"开始初始化"
);
log
.
info
(
'开始初始化生成码'
)
this
.
getBarCode
();
this
.
getQrCode
();
},
...
...
@@ -155,7 +163,7 @@ export default {
width
:
308
rpx
;
height
:
308
rpx
;
border
:
1px
solid
#F3F3F3
;
padding
:
20
px
;
padding
:
16
px
;
justify-content
:
center
;
align-items
:
center
;
}
...
...
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