直接贴代码
if (options.scene) {//参数二维码进入 let sceneStr = decodeURIComponent(options.scene) if (sceneStr.indexOf('&') != -1) { let sceneArr = sceneStr.split('&'); let sceneObj ={}; for (let i = 0; i < sceneArr.length; i++) { let keyAndyValue = sceneArr[i].split('=') let key = keyAndyValue[0] let value = keyAndyValue[1] sceneObj[key] = value } if(sceneObj.s==1 ||sceneObj.s=='1'){//业务1 }
} }
结束