Commit 38f0b348 by 李嘉林

打log

parent 6a02560f
<template>
<div class="contact">
<div class="contact-img">
<img src="https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/product/HCe2iRXHsP.png" alt="" />
<img src="https://cdn.mayi888.com/product/HCe2iRXHsP.png" alt="" />
</div>
<div class="btn-wrap" v-if="defaultContact == true">
<button open-type="contact" @contact="handleContact" show-message-card :send-message-title="wxConcatGoods.title" :send-message-img="wxConcatGoods.img"
......@@ -9,22 +9,22 @@
:session-from="sessionFrom">
<div class="btn-main">
<div class="main-img">
<img src="../../../static/images/wx.png" alt="" />
<img src="http://cdn.mayi888.com/public/png/8782e194-b208-44d6-99c1-10935ce36e2f.png" alt="" />
</div>
<div class="main-text">官方微信客服</div>
</div>
<img class="btn-next" src="../../../static/images/next.png" alt="" />
<img class="btn-next" src="http://cdn.mayi888.com/public/png/a054b29e-8929-415e-9017-dda875e25968.png" alt="" />
</button>
</div>
<div class="btn-wrap" v-else-if="defaultContact == false" @click="myOpeChat">
<button>
<div class="btn-main">
<div class="main-img">
<img src="../../../static/images/wx.png" alt="" />
<img src="http://cdn.mayi888.com/public/png/8782e194-b208-44d6-99c1-10935ce36e2f.png" alt="" />
</div>
<div class="main-text">官方微信客服</div>
</div>
<img class="btn-next" src="../../../static/images/next.png" alt="" />
<img class="btn-next" src="http://cdn.mayi888.com/public/png/a054b29e-8929-415e-9017-dda875e25968.png" alt="" />
</button>
</div>
</div>
......
......@@ -355,6 +355,7 @@ export default {
that.showMyCard = res;
})
//获取分销信息
log.info(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'','becomeInfo--358')
this.getSpokesmanInit(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'')
}
// 来源
......@@ -622,6 +623,7 @@ export default {
log.info(extConfig,'getSpokesmanInit-extConfig');
//绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then(res=>{
log.info('getSpokesmanInit调用becomeRelation')
log.info(res,'getSpokesmanInit-becomeRelation');
if(res) {
wx.removeStorage({
......@@ -630,6 +632,8 @@ export default {
}
//获取分销基本信息
this.getSpokesmanInfo(extConfig)
}).catch(res=>{
log.info(res,'becomeRelation-catch-636')
})
},
getSpokesmanInfo(extConfig) {
......@@ -654,6 +658,7 @@ export default {
res.id
){
app.fenxiaoModel.getDistributorHomepage(res).then(ele=>{
log.info(ele,'getDistributorHomepage-661')
if(ele.id) {
this.getDistributorHomepageName = '我的小店';
}else {
......@@ -908,10 +913,17 @@ export default {
// 不是冬奥会项目不调用此接口
if(wx.getStorageSync("sessionid") && this.$store.state.mixid !='CL') {
await app.fenxiaoModel.getSpokesmanidByShare().then(data=>{
log.info(data,'onShareAppMessage-getSpokesmanidByShare')
log.info('onShareAppMessage-getSpokesmanidByShare-917')
hasInvitationStatus = data.hasInvitationStatus;
}).catch(res=>{
log.info(res,'getSpokesmanidByShare-catch-920')
})
log.info(hasInvitationStatus,'onShareAppMessage-hasInvitationStatus')
await app.fenxiaoModel.getSpokesmanInfo().then(data=>{
log.info('onShareAppMessage调用getSpokesmanInfo')
let newData = {}
log.info(data,'getSpokesmanInfo.data')
if(data != null ) {
if (hasInvitationStatus == 1) {
newData = {
......@@ -927,6 +939,8 @@ export default {
}
}
newHref = concatUrl(newHref,newData)
}).catch(res=>{
log.info(res,'getSpokesmanInfo-catch-943')
})
}
let imageUrl = '';
......
......@@ -376,14 +376,18 @@ export default {
pushPageType(){
//绑定上下级关系
log.info(this.scene,'this.scene====',this.backPath)
log.info(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'','pushPageType-getStorageSync-becomeInfo')
log.info(wx.getStorageSync("becomeInfo"),'pushPageType-getStorageSync-becomeInfo')
app.fenxiaoModel.becomeRelation(wx.getStorageSync("becomeInfo")?JSON.parse(wx.getStorageSync("becomeInfo")):'').then(res=>{
log.info('pushPageType调用becomeRelation-381')
log.info(res,'pushPageType-becomeRelation')
if(res) {
wx.removeStorage({
key: "becomeInfo"
});
}
}).catch(res=>{
log.info('becomeRelation-catch-389')
log.info(res,'becomeRelation-catch-390')
})
let parseLink=decodeURIComponent(this.backPath);
......@@ -431,6 +435,7 @@ export default {
}
},
getPhoneNumber(e) {
log.info('点击微信一键绑定手机号');
if(this.content&&!this.checked) {
wx.showToast({
title: '您还未同意协议',
......@@ -461,6 +466,7 @@ export default {
});
},
bindUser() {
log.info('进入bindUser方法-469')
wx.showLoading({
title: '绑定中...',
mask: true
......@@ -482,12 +488,16 @@ export default {
customerSourceType: wx.getStorageSync(this.$store.state.mixid+"articleId")?8:'',
customerSourceId: wx.getStorageSync(this.$store.state.mixid+"articleId") || ''
};
log.info(query,'bindUser-query-491')
log.info(this.$store.state.spokesmanGroupId,'bindUser-spokesmanGroupId')
log.info(this.$store.state.spokesmanRelId,'bindUser-spokesmanRelId')
log.info(this.$store.state.spokesmanShopId,'bindUser-spokesmanShopId')
if (this.$store.state.spokesmanGroupId != "") {
query.spokesmanRelId = this.$store.state.spokesmanRelId;
query.spokesmanGroupId = this.$store.state.spokesmanGroupId;
query.spokesmanShopId = this.$store.state.spokesmanShopId;
}
log.info(query,'bindUser-query-500')
login
.bindUser(query)
.then(res => {
......
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