Commit 44ec7684 by 李嘉林

feat: 新用户绑定关系优化

parent 1ccd41d1
...@@ -873,7 +873,7 @@ export default { ...@@ -873,7 +873,7 @@ export default {
app.fenxiaoModel.becomeRelation(extConfig).then(res=>{ app.fenxiaoModel.becomeRelation(extConfig).then(res=>{
log.info('getSpokesmanInit调用becomeRelation') log.info('getSpokesmanInit调用becomeRelation')
log.info(res,'getSpokesmanInit-becomeRelation'); log.info(res,'getSpokesmanInit-becomeRelation');
if(res) { if(res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo" key: "becomeInfo"
}); });
......
...@@ -666,7 +666,7 @@ export default { ...@@ -666,7 +666,7 @@ export default {
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('pushPageType调用becomeRelation-381')
log.info(res,'pushPageType-becomeRelation') log.info(res,'pushPageType-becomeRelation')
if(res) { if(res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo" key: "becomeInfo"
}); });
......
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
getSpokesmanInit(extConfig) { getSpokesmanInit(extConfig) {
//绑定上下级关系 //绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then(res => { app.fenxiaoModel.becomeRelation(extConfig).then(res => {
if (res) { if (res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo" key: "becomeInfo"
}); });
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
getSpokesmanInit(extConfig) { getSpokesmanInit(extConfig) {
//绑定上下级关系 //绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then((res) => { app.fenxiaoModel.becomeRelation(extConfig).then((res) => {
if (res) { if (res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo", key: "becomeInfo",
}); });
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
getSpokesmanInit(extConfig) { getSpokesmanInit(extConfig) {
//绑定上下级关系 //绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then((res) => { app.fenxiaoModel.becomeRelation(extConfig).then((res) => {
if (res) { if (res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo", key: "becomeInfo",
}); });
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
getSpokesmanInit(extConfig) { getSpokesmanInit(extConfig) {
//绑定上下级关系 //绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then((res) => { app.fenxiaoModel.becomeRelation(extConfig).then((res) => {
if (res) { if (res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo", key: "becomeInfo",
}); });
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
getSpokesmanInit(extConfig) { getSpokesmanInit(extConfig) {
//绑定上下级关系 //绑定上下级关系
app.fenxiaoModel.becomeRelation(extConfig).then((res) => { app.fenxiaoModel.becomeRelation(extConfig).then((res) => {
if (res) { if (res && res.data == 'true') {
wx.removeStorage({ wx.removeStorage({
key: "becomeInfo", key: "becomeInfo",
}); });
......
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