Commit 6f328c30 by daqian

modify: encodeURI_decodeURI

parent c3be6e8f
......@@ -24,12 +24,14 @@ App({
// wxService.router(`${url}`).search(parmas);
wxService.router(`${url}`).search({
activate_ticket,
activate_ticket: encodeURIComponent(activate_ticket),
card_id,
code,
errCode,
wx_activate_after_submit_url: parmas
});
// encodeURIComponent
// decodeURIComponent
}
},
......
......@@ -40,10 +40,9 @@ wxService.page({
handleGoActivateCard(options={}) {
console.log("options", options)
if(!options) return false
options.activate_ticket = decodeURIComponent(options.activate_ticket)
// 解析 url 参数 {}
const parmasSubmitUrl = utils.parseUrl(options.wx_activate_after_submit_url)
console.log('parmasSubmitUrl', parmasSubmitUrl)
// 合并对象
let currentObj = Object.assign(options, parmasSubmitUrl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment