diff --git a/images/member/component_lv_0.jpg b/images/member/component_lv_0.jpg
deleted file mode 100644
index 2409c6e..0000000
Binary files a/images/member/component_lv_0.jpg and /dev/null differ
diff --git a/images/member/component_lv_0.png b/images/member/component_lv_0.png
new file mode 100644
index 0000000..52d6a89
Binary files /dev/null and b/images/member/component_lv_0.png differ
diff --git a/images/member/component_lv_1.jpg b/images/member/component_lv_1.jpg
deleted file mode 100644
index 4be1f3b..0000000
Binary files a/images/member/component_lv_1.jpg and /dev/null differ
diff --git a/images/member/component_lv_1.png b/images/member/component_lv_1.png
new file mode 100644
index 0000000..07015f9
Binary files /dev/null and b/images/member/component_lv_1.png differ
diff --git a/images/member/component_lv_2.jpg b/images/member/component_lv_2.jpg
deleted file mode 100644
index 1ffec6a..0000000
Binary files a/images/member/component_lv_2.jpg and /dev/null differ
diff --git a/images/member/component_lv_2.png b/images/member/component_lv_2.png
new file mode 100644
index 0000000..4feea73
Binary files /dev/null and b/images/member/component_lv_2.png differ
diff --git a/images/member/component_lv_3.jpg b/images/member/component_lv_3.jpg
deleted file mode 100644
index c592123..0000000
Binary files a/images/member/component_lv_3.jpg and /dev/null differ
diff --git a/images/member/component_lv_3.png b/images/member/component_lv_3.png
new file mode 100644
index 0000000..4022f6c
Binary files /dev/null and b/images/member/component_lv_3.png differ
diff --git a/images/member/component_lv_4.jpg b/images/member/component_lv_4.jpg
deleted file mode 100644
index e4e106b..0000000
Binary files a/images/member/component_lv_4.jpg and /dev/null differ
diff --git a/images/member/component_lv_4.png b/images/member/component_lv_4.png
new file mode 100644
index 0000000..b66baed
Binary files /dev/null and b/images/member/component_lv_4.png differ
diff --git a/images/member/component_lv_5.jpg b/images/member/component_lv_5.jpg
deleted file mode 100644
index d11f81f..0000000
Binary files a/images/member/component_lv_5.jpg and /dev/null differ
diff --git a/images/member/component_lv_5.png b/images/member/component_lv_5.png
new file mode 100644
index 0000000..3865c11
Binary files /dev/null and b/images/member/component_lv_5.png differ
diff --git a/images/member/component_lv_6.jpg b/images/member/component_lv_6.jpg
deleted file mode 100644
index abb2387..0000000
Binary files a/images/member/component_lv_6.jpg and /dev/null differ
diff --git a/images/member/component_lv_6.png b/images/member/component_lv_6.png
new file mode 100644
index 0000000..b96f23e
Binary files /dev/null and b/images/member/component_lv_6.png differ
diff --git a/pages/member/member.js b/pages/member/member.js
index 793b0c9..c54b66f 100644
--- a/pages/member/member.js
+++ b/pages/member/member.js
@@ -1,18 +1,41 @@
// pages/member/member.js
+var app = getApp()
+var WXAPI = require('../../utils/server.js');
Page({
/**
* 页面的初始数据
*/
data: {
-
+ user: {},
},
-
+ requestMyData: function () {
+ var that = this;
+ WXAPI.userIndex({
+ accessId: app.globalData.accessId,
+ storeId: 239,
+ storeType: 1,
+ }).then(res => {
+ if (res.code == 200) {
+ var data = res.data;
+ if (data.data) {
+ that.setData({
+ user: data.data.user,
+ });
+ }
+ } else {
+ wx.showToast({
+ title: '访问失败!',
+ duration: 2000
+ });
+ }
+ });
+ },
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
-
+ this.requestMyData()
},
/**
diff --git a/pages/member/member.wxml b/pages/member/member.wxml
index e5bdc8e..bfcc7e7 100644
--- a/pages/member/member.wxml
+++ b/pages/member/member.wxml
@@ -1,13 +1,12 @@
- 当前积分0,充值会员即可拥有积分特权
-
-
+ 当前积分{{user.score}},充值会员即可拥有积分特权
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/user/user.wxml b/pages/user/user.wxml
index 8d0b9e5..80710b9 100644
--- a/pages/user/user.wxml
+++ b/pages/user/user.wxml
@@ -43,13 +43,12 @@
{{user.user_name}}
-
-
+
@@ -69,18 +68,18 @@
优惠券
- {{user.score?user.score:'—'}}
+ {{user?user.score:'—'}}
积分
- {{user.money?user.money:'—'}}
+ {{user?user.money:'—'}}
余额
- {{collection_num?collection_num:'—'}}
+ {{user?collection_num:'—'}}
我的收藏