|
@@ -1,5 +1,6 @@
|
|
// pages/welfareMall/personal/personal.js
|
|
// pages/welfareMall/personal/personal.js
|
|
import WelfareMall from '../../../api/welfareMall'
|
|
import WelfareMall from '../../../api/welfareMall'
|
|
|
|
+import activity from '../../../api/activity'
|
|
import {getMobileCache, getPhoneNumber as getPhoneNumberSync} from '../../../utils/user'
|
|
import {getMobileCache, getPhoneNumber as getPhoneNumberSync} from '../../../utils/user'
|
|
Page({
|
|
Page({
|
|
|
|
|
|
@@ -16,6 +17,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: async function (options) {
|
|
onLoad: async function (options) {
|
|
|
|
+ // await this.getUserPhone();
|
|
this.setData({
|
|
this.setData({
|
|
isLogin: getMobileCache() != '',
|
|
isLogin: getMobileCache() != '',
|
|
mobileTop: getMobileCache(),
|
|
mobileTop: getMobileCache(),
|
|
@@ -30,6 +32,17 @@ Page({
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取用户信息
|
|
|
|
+ */
|
|
|
|
+ getUserPhone: async function(){
|
|
|
|
+ await activity.getUser({
|
|
|
|
+ openId: activity.getOpenId(),
|
|
|
|
+ source:'FREE_MINI_APP',
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
getCountNum: async function(){
|
|
getCountNum: async function(){
|
|
/**
|
|
/**
|
|
* 福利社
|
|
* 福利社
|