Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
af470e8f
Commit
af470e8f
authored
Sep 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页
parent
022fc59a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
userCenter.js
src/pages/userCenter/userCenter.js
+21
-25
No files found.
src/pages/userCenter/userCenter.js
View file @
af470e8f
...
...
@@ -31,31 +31,13 @@ wxService.page({
pageBackgroundColor
:
0
,
guidePageModalShow
:
false
,
currHomePageId
:
''
,
skuVOList
:[]
skuVOList
:
[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
this
.
setData
(
{
pages
:
[],
groupLoadState
:
'complete'
,
// 活动分组加载标志
homeApiLoading
:
true
,
render
:
null
,
// 渲染页面数据对象(安全渲染)
isLastPage
:
false
,
// 页面段落加载完成
renderPageOver
:
false
,
// 渲染页面结束
// isAuthorization: true,
outoHeigth
:
500
,
},
()
=>
{
// this.loadMore()
}
)
handlerDataOnPage
=
new
utils
.
HandlerDataOnPage
()
renderPage
=
require
(
'../../utils/renderPage'
).
getRenderPage
()
handlerDataOnPage
.
init
(
this
,
'pages'
)
this
.
initPage
(
this
.
data
.
pageId
)
this
.
initPage
()
let
memberId
=
options
.
memberId
;
if
(
memberId
)
{
...
...
@@ -89,7 +71,7 @@ wxService.page({
*/
onShow
()
{
let
tentacleInfo
=
wx
.
getStorageSync
(
'TENTACLE_CONTENT'
);
// 取会员卡号
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
cardMember
=
wx
.
getStorageSync
(
'_cardMember'
)
...
...
@@ -186,14 +168,28 @@ wxService.page({
})
},
// page 信息
initPage
(
pageId
)
{
initPage
()
{
this
.
setData
({
products
:
[]
pages
:
[],
products
:
[],
groupLoadState
:
'complete'
,
// 活动分组加载标志
homeApiLoading
:
true
,
render
:
null
,
// 渲染页面数据对象(安全渲染)
isLastPage
:
false
,
// 页面段落加载完成
renderPageOver
:
false
,
// 渲染页面结束
// isAuthorization: true,
outoHeigth
:
500
,
})
handlerDataOnPage
=
new
utils
.
HandlerDataOnPage
()
renderPage
=
require
(
'../../utils/renderPage'
).
getRenderPage
()
handlerDataOnPage
.
init
(
this
,
'pages'
)
this
.
initHomePage
()
},
initHomePage
()
{
wx
.
showLoading
({
title
:
'加载中'
})
// wxService.post(`/merchant/modelPage/getDetailById?pageId=${pageId}&brandId=${app.globalData.brandId}`).then(res => {
wxService
.
post
(
`/merchant/modelPage/mainSetting/mall?brandId=
${
app
.
globalData
.
brandId
}
`
).
then
(
res
=>
{
if
(
!
res
)
return
false
const
{
result
,
data
}
=
res
.
data
...
...
@@ -259,7 +255,7 @@ wxService.page({
wx
.
hideLoading
()
})
},
// 获取plus购买信息
// getPlusPurchase() {
// wxService.get(`/sale/premium/query`).then(res => {
...
...
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