Commit 76f23ffe by 张卓

接口错误

parent 68ea55f1
...@@ -8,8 +8,6 @@ console.log(process.env,'-----------------config------') ...@@ -8,8 +8,6 @@ console.log(process.env,'-----------------config------')
getShareSceneRecord(options) { getShareSceneRecord(options) {
return requestPOST(`${process.env.OLSHOP_URL}/shareSceneRecord/getShareSceneRecord/${options}`, {}); return requestPOST(`${process.env.OLSHOP_URL}/shareSceneRecord/getShareSceneRecord/${options}`, {});
}, },
}
export default {
//POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录 //POST /shareSceneRecord/getShareSceneRecord/{sceneCode} 获取分享场景参数记录
addRecord(data) { addRecord(data) {
return requestPOST(`${process.env.OLSHOP_URL}/scanCodeCustomerRecord/addRecord`, {data}); return requestPOST(`${process.env.OLSHOP_URL}/scanCodeCustomerRecord/addRecord`, {data});
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
this.checkLogin(); this.checkLogin();
this.options = options; this.options = options;
console.log('-------') console.log('-------1',options.scene)
console.log(this.options) console.log(this.options)
console.log('-------') console.log('-------')
if (options.share) { if (options.share) {
...@@ -135,15 +135,16 @@ export default { ...@@ -135,15 +135,16 @@ export default {
this.page = options.backpath; this.page = options.backpath;
this.params += "&" + serialize(options.params); this.params += "&" + serialize(options.params);
} else if (options.scene) { } else if (options.scene) {
// console.log()
if(options.scene.indexOf('_') == -1){ if(options.scene.indexOf('_') == -1){
//新二维码扫码进入 //新二维码扫码进入
indexApi.getShareSceneRecord(options.scene).then(res=>{ indexApi.getShareSceneRecord(options.scene).then(res=>{
if(res.data.code == '200'){ if(res.data.code == '200'){
this.page = res.data.data.pageUri; this.page = res.data.data.pageUri;
let paramsObj = JSON.parse(res.data.data.scene); let paramsObj = JSON.parse(res.data.data.scene);
wx.setStorageSync('attractingCustomerChannelId',paramsObj.attractingCustomerChannelId) wx.setStorageSync('attractingCustomerChannelId',paramsObj.attractingCustomerChannelId)
console.log(flag,99999999,wx.getStorageSync('attractingCustomerChannelId'),wx.getStorageSync("openid")) console.log(res.data.data)
console.log(wx.getStorageSync("openid"))
console.log(333333)
if(wx.getStorageSync("openid")) { if(wx.getStorageSync("openid")) {
indexApi.addRecord( indexApi.addRecord(
{ {
...@@ -153,7 +154,6 @@ export default { ...@@ -153,7 +154,6 @@ export default {
newRegisterFlag: 0, newRegisterFlag: 0,
} }
).then(ele=>{ ).then(ele=>{
alert(ele,9999)
}) })
} }
let params = ''; let params = '';
......
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