|
@@ -21,8 +21,14 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
- onLoad: function (options) {
|
|
|
- console.log(options);
|
|
|
+ onLoad: async function (options) {
|
|
|
+ let userMobile = await Activity.getMobileCache();
|
|
|
+ if (userMobile.length !== 0) {
|
|
|
+ this.setData({
|
|
|
+ userMobile: userMobile,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log(userMobile);
|
|
|
if(options.activityId){
|
|
|
this.getActivityDetail(options.activityId)
|
|
|
}
|