Commit 6b5411ad by 高淑倩

modify: params_activateCardCallback

parent dcbb6513
...@@ -17,10 +17,18 @@ App({ ...@@ -17,10 +17,18 @@ App({
// wxService.getUserInfo() // wxService.getUserInfo()
} }
if (options.referrerInfo.extraData!=null){ if (options.referrerInfo.extraData!=null){
let urlData =options.referrerInfo.extraData.wx_activate_after_submit_url.split("?"); const { activate_ticket, card_id, code, errCode, wx_activate_after_submit_url } = options.referrerInfo.extraData
let url=urlData[0]; let urlData = wx_activate_after_submit_url.split("?");
let parmas=urlData[1]; let url = urlData[0];
wxService.router(`${url}`).search(parmas); let parmas = urlData[1];
// wxService.router(`${url}`).search(parmas);
wxService.router(`${url}`).search({
activate_ticket,
card_id,
code,
errCode,
wx_activate_after_submit_url: parmas
});
} }
}, },
......
...@@ -34,12 +34,14 @@ wxService.page({ ...@@ -34,12 +34,14 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
// activate_ticket, card_id, code, errCode, wx_activate_after_submit_url
this.handleGoActivateCard(this.options) this.handleGoActivateCard(this.options)
}, },
handleGoActivateCard(options) { handleGoActivateCard(options) {
const urls = utils.parseUrl(options) console.log("options", options)
console.log('urls', urls) // const urls = utils.parseUrl(options.wx_activate_after_submit_url)
wxService.post(`/coupon/coupon/get?cardNo=${urls}`).then(res => { // console.log('urls', urls)
wxService.post(`/coupon/coupon/get`, options).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
// wx.hideLoading() // wx.hideLoading()
......
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