小程序码带参数,,为何部分手机获取失败?

发布于 8 年前作者 xiangjun14760 次浏览最后编辑 8 年前来自 issues

app.js

onLaunch: function (options) {
    let _this = this;
    this.System();
    wx.getSystemInfo({
    success: function(res) {
        _this.data.model = res.model;
        _this.debugApp(options)
        if(options.query.recom){
            _this.data.recom = options.query.recom;
        }
        }
    })    
},

目标页面

onLoad: function (options) {

  // 页面初始化 options为页面跳转所带来的参数
  try{
      app.debugApp(options);
  }catch(e){
      console.log(e)
  }
  if(options.recom){
      app.data.recom = options.recom;

  }

}

通过扫小程序,在app.js记录下的路径

同样的码却出现两种路径,,主要iPhone XS居多

1 回复
ping34
ping341 楼6 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

以及小程序码