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
6f15f6d5
Commit
6f15f6d5
authored
Oct 23, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩界面
parent
708d5d3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
46 deletions
+17
-46
achievement.js
src/shoppingGuid/page/pages/achievement/achievement.js
+14
-43
achievement.wxml
src/shoppingGuid/page/pages/achievement/achievement.wxml
+3
-3
No files found.
src/shoppingGuid/page/pages/achievement/achievement.js
View file @
6f15f6d5
// shoppingGuid/page/pages/achievement/achievement.js
// shoppingGuid/page/pages/achievement/achievement.js
Page
({
const
wxService
=
require
(
'../../../../utils/wxService'
)
wxService
.
page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
info
:
{},
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
currentUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
);
let
userInfo
=
wx
.
getStorageSync
(
'_userInfo'
);
if
(
currentUserInfo
.
member
)
{
if
(
!
currentUserInfo
.
member
.
name
)
{
currentUserInfo
.
member
.
name
=
userInfo
.
nickName
;
}
}
},
console
.
log
(
currentUserInfo
)
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
this
.
setData
({
info
:
currentUserInfo
});
},
},
/**
/**
...
@@ -29,38 +35,4 @@ Page({
...
@@ -29,38 +35,4 @@ Page({
},
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
}
})
})
\ No newline at end of file
src/shoppingGuid/page/pages/achievement/achievement.wxml
View file @
6f15f6d5
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<!-- 个人信息 -->
<!-- 个人信息 -->
<view class='info'>
<view class='info'>
<view class='center'>
<view class='center'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/
default_logo_icon
.png' mode='aspectFit'></image>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/
biaka_default_u_logo
.png' mode='aspectFit'></image>
<view class='rg-name'>
<view class='rg-name'>
<view>
会员名称
</view>
<view>
{{info.member.name}}
</view>
<view>
235525352525204
</view>
<view>
{{info.memberCardNo}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
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