|
|
@@ -49,12 +49,38 @@
|
|
|
}
|
|
|
).then(res1 => {
|
|
|
console.log('拓客端推广用户绑定成功!')
|
|
|
+
|
|
|
+ that.$api.addRecordForAttach({
|
|
|
+ ...expandParam,
|
|
|
+ isNew:1,
|
|
|
+ isBindSuccess:1,
|
|
|
+ }).then(res=>{
|
|
|
+ console.log('+++++++++新用户,扫码推广成功记录!++++++++++++++++')
|
|
|
+ })
|
|
|
+
|
|
|
uni.removeStorageSync('expandParam');
|
|
|
}).catch(err=>{
|
|
|
+
|
|
|
+ that.$api.addRecordForAttach({
|
|
|
+ ...expandParam,
|
|
|
+ isNew:1,
|
|
|
+ isBindSuccess:0,
|
|
|
+ }).then(res=>{
|
|
|
+ console.log('+++++++++新用户,扫码推广失败记录!++++++++++++++++')
|
|
|
+ })
|
|
|
+
|
|
|
uni.removeStorageSync('expandParam');
|
|
|
})
|
|
|
}else {
|
|
|
- console.log("老用户,删除拓客端携带的参数")
|
|
|
+
|
|
|
+ that.$api.addRecordForAttach({
|
|
|
+ ...expandParam,
|
|
|
+ isNew:0,
|
|
|
+ isBindSuccess:0,
|
|
|
+ }).then(res=>{
|
|
|
+ console.log('+++++++++老用户,扫码推广失败记录!++++++++++++++++')
|
|
|
+ })
|
|
|
+
|
|
|
uni.removeStorageSync('expandParam');
|
|
|
}
|
|
|
|