Commit ef7ef9da50e0ad6d25980b7a72c3178efc769cd7

Authored by wangfan
1 parent 41b8927b

C端优化

Showing 1 changed file with 5 additions and 0 deletions
@@ -46,13 +46,16 @@ Page({ @@ -46,13 +46,16 @@ Page({
46 /** 46 /**
47 * 生命周期函数--监听页面加载 47 * 生命周期函数--监听页面加载
48 */ 48 */
  49 + hasOnLoad:false,
49 onLoad: async function (options) { 50 onLoad: async function (options) {
  51 + this.hasOnLoad=true;
50 // this.qqmapsdk=new QQMapWX({ 52 // this.qqmapsdk=new QQMapWX({
51 // key: 'SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ' 53 // key: 'SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ'
52 // }); 54 // });
53 this.setData({ 55 this.setData({
54 multiArray:[['不确定'].concat(renNum()), ['全部菜系'].concat(await DA.getCates())] 56 multiArray:[['不确定'].concat(renNum()), ['全部菜系'].concat(await DA.getCates())]
55 }) 57 })
  58 +
56 }, 59 },
57 60
58 /** 61 /**
@@ -86,6 +89,8 @@ Page({ @@ -86,6 +89,8 @@ Page({
86 this.getClassNameFlag=true; 89 this.getClassNameFlag=true;
87 //this.getPos(); 90 //this.getPos();
88 if(this.data.hasSuggestion) return; 91 if(this.data.hasSuggestion) return;
  92 + if(!this.hasOnLoad) return;
  93 + this.hasOnLoad=false;
89 //导航栏自适应 94 //导航栏自适应
90 let systemInfo = wx.getSystemInfoSync(); 95 let systemInfo = wx.getSystemInfoSync();
91 let reg = /ios/i; 96 let reg = /ios/i;