kk.shi 3 роки тому
батько
коміт
1501b72d63

+ 1 - 7
pages/welfareMall/historical/historical.js

@@ -21,13 +21,7 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-    this.setData({
-      isLogin: getMobileCache() != ''
-    })
-    if(this.data.isLogin){
-        this.getOrderList();
-    }
-
+    this.getOrderList();
   },
 
   // 订单数据

+ 0 - 12
pages/welfareMall/personal/personal.js

@@ -17,7 +17,6 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: async function (options) {
-    // await this.getUserPhone();
     let  userMobile = await activity.getMobileCache();
     console.log(userMobile)
     if (userMobile.length !== 0) {
@@ -40,17 +39,6 @@ Page({
 
   },
 
-  /**
-   * 获取用户信息
-   */
-  getUserPhone: async function(){
-    await WelfareMall.getUser({
-      openid: activity.getOpenId(),
-      source:'FREE_MINI_APP',
-    });
-
-  },
-
   getCountNum: async function(){
   /**
    * 福利社