Commit 76f23ffe by 张卓

接口错误

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