Commit 6f15f6d5 by 谢中龙

业绩界面

parent 708d5d3a
// shoppingGuid/page/pages/achievement/achievement.js
Page({
const wxService = require('../../../../utils/wxService')
wxService.page({
/**
* 页面的初始数据
*/
data: {
info : {},
},
/**
* 生命周期函数--监听页面加载
*/
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;
}
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
console.log(currentUserInfo)
this.setData({
info: currentUserInfo
});
},
/**
......@@ -29,38 +35,4 @@ Page({
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
......@@ -4,10 +4,10 @@
<!-- 个人信息 -->
<view class='info'>
<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>会员名称</view>
<view>235525352525204</view>
<view>{{info.member.name}}</view>
<view>{{info.memberCardNo}}</view>
</view>
</view>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment