Commit 620893d3 by 李伟康

提交代码

1 parent a62ee8fe
......@@ -5,7 +5,6 @@ import { senceData } from "~/pages/tab/index/constant/data";
import { IMG_URL } from "~/utils/constantData.js";
import Draw from "~/utils/Draw.js";
import { createQrCodeApi } from "~/api/checkProduct.js";
Page({
/**
* 页面的初始数据
......@@ -248,10 +247,16 @@ Page({
// 分享获取懂得用户数
authorizedFn(e) {
let res = e.detail;
this.setData({
isShare: res.isShare,
phone: res.phone,
});
this.onLoad(null)
wx.nextTick(()=>{
this.setData({
isShare: res.isShare,
// phone: res.phone,
});
})
},
/**
* 生命周期函数--监听页面加载 ()
......
......@@ -173,12 +173,12 @@ Component({
USERAPI.getUserProfile(this.loginToken, detail)
.then((result) => {
// console.log(result)
let { phone } = result;
// let { phone } = result;
// let {
wx.$storage.set("userPhone", phone);
wx.$storage.set('wx_user_info', result);
// }
this.triggerEvent("authorized", {
phone,
// phone,
isShare: false,
});
// this.
......
......@@ -96,7 +96,7 @@ class Share {
unionId: WXUSERINFO.unionId || '',
nickName: WXUSERINFO.nickName || '',
avatar: WXUSERINFO.avatarUrl || '',
phone: USERINFO.phone || '',
phone: WXUSERINFO.phone || USERINFO.phone || '',
...shareInfo
}, 1)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!