点击(此处)折叠或打开
- "path": _this.data.page_route + '?query=' + _this.data.activityId ,
- "is_hyaline": false,
- "width": 400 ,
- "auto_color": false,
- "line_color": { "r": 0, "g": 0, "b": 0 }
返回的结果 :需要的页面小程序码(小程序二维码)的地址在 data=>key
当微信扫一扫,进入页面的操作
ononLoad(option) 获取去生成路径的参数query="xxxxxx'; option.query
有必要的话:可以用 decodeURIComponent(option.query) 解码一下
点击(此处)折叠或打开
- onLoad: function (options) {
- let that = this;
- console.log("获取的参数", options)
- if (options.query){
- let qrUrl = decodeURIComponent(options.query);
- console.log("编码后的参数", qrUrl)
- //今进行逻辑操作
- }
- },