|
@@ -53,7 +53,10 @@ Page({
|
|
|
memberId: options.memberId,
|
|
memberId: options.memberId,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ wx.showLoading({
|
|
|
|
|
+ title: "加载中...",
|
|
|
|
|
+ mobile: true,
|
|
|
|
|
+ });
|
|
|
wx.login({
|
|
wx.login({
|
|
|
success(res) {
|
|
success(res) {
|
|
|
App._post_form(
|
|
App._post_form(
|
|
@@ -62,6 +65,7 @@ Page({
|
|
|
code: res.code,
|
|
code: res.code,
|
|
|
},
|
|
},
|
|
|
(data) => {
|
|
(data) => {
|
|
|
|
|
+ wx.hideLoading();
|
|
|
if (data.code == 0) {
|
|
if (data.code == 0) {
|
|
|
wx.setStorageSync("openid", data.data.openid);
|
|
wx.setStorageSync("openid", data.data.openid);
|
|
|
wx.setStorageSync("session_key", data.data.session_key);
|
|
wx.setStorageSync("session_key", data.data.session_key);
|
|
@@ -329,7 +333,7 @@ Page({
|
|
|
inviteCode: this.data.inviteCode,
|
|
inviteCode: this.data.inviteCode,
|
|
|
memberPhoto: this.data.params.memberphoto,
|
|
memberPhoto: this.data.params.memberphoto,
|
|
|
mobile: this.data.params.mobile,
|
|
mobile: this.data.params.mobile,
|
|
|
- name: his.data.params.vipname,
|
|
|
|
|
|
|
+ name: this.data.params.vipname,
|
|
|
openid: wx.getStorageSync("openid"),
|
|
openid: wx.getStorageSync("openid"),
|
|
|
// shortMessageCode: this.data.code,
|
|
// shortMessageCode: this.data.code,
|
|
|
};
|
|
};
|
|
@@ -396,6 +400,7 @@ Page({
|
|
|
filePath: res.detail.avatarUrl,
|
|
filePath: res.detail.avatarUrl,
|
|
|
name: 'file',
|
|
name: 'file',
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
|
|
+ // console.log("上传成功", res)
|
|
|
const newData = JSON.parse(res.data)
|
|
const newData = JSON.parse(res.data)
|
|
|
if (newData.code == '000000') {
|
|
if (newData.code == '000000') {
|
|
|
that.setData({
|
|
that.setData({
|
|
@@ -404,7 +409,8 @@ Page({
|
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- fail() {
|
|
|
|
|
|
|
+ fail(err) {
|
|
|
|
|
+ // console.log("上传失败", err)
|
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|