Commit 620893d3 by 李伟康

提交代码

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