Commit 38f0b348 by 李嘉林

打log

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