收藏
回答

getwxacodeunlimit 接口scene参数可以直接拼接到path里吗?

scene 必须配合前端来接收吗, 可以扫码后直接拼接到小程序地址中吗?每次都需要前端来配合接收 太麻烦啦~

回答关注问题邀请回答
收藏

13 个回答

  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26

    2024-08-26
    有用 1
    回复
  • fancy
    fancy
    2024-12-07

    用户扫码之后,微信是不是取消了扫码事件的推送?

    2024-12-07
    有用
    回复
  • 跨商通
    跨商通
    2024-08-26

    自定义的字串,只要不超过32位,你想怎么传都行。

    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26
    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    


    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26
    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || app.globalData.query.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    


    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26

    我们是这样写的:

    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || app.globalData.query.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    




    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26

    我们是这样写的:

    ```

    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || app.globalData.query.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    
    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26
    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || app.globalData.query.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    


    我们这样的


    2024-08-26
    有用
    回复
  • 胃里养了只霸王龙
    胃里养了只霸王龙
    2024-08-26
    onLoad() {
      if (!options.scene) {
          this.setData({
            partJobId: options.partJobId || app.globalData.query.partJobId || ''
          })
        } else {
        let getQueryString = {}
        const strs = decodeURIComponent(options.scene).split('&') //以&分割
        //取得全部并赋值
        for (var i = 0; i < strs.length; i++) {
          getQueryString[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1])
        }
        this.setData({
          partJobId: getQueryString['partJobId'] || ''
        })
      }
    }
    
    
    2024-08-26
    有用
    回复

正在加载...

登录 后发表内容