优化:绑定上下级时 支持错误弹框提示
This commit is contained in:
parent
dcf5974380
commit
05999b15c0
|
|
@ -1,13 +1,25 @@
|
||||||
|
import {spread} from '@/api/user.js'
|
||||||
import { spread } from '@/api/user.js'
|
|
||||||
import Cache from '@/utils/cache'
|
import Cache from '@/utils/cache'
|
||||||
|
|
||||||
const shareScence = function(spid,islogin) {
|
const shareScence = function (spid, islogin, isTips = false) {
|
||||||
if(spid)Cache.set("spread", spid || 0);
|
if (spid) Cache.set("spread", spid || 0);
|
||||||
if(spid && islogin){
|
if (spid && islogin) {
|
||||||
spread(spid).then(res=>{
|
// 判断:是否已经提示
|
||||||
})
|
spread(spid).then(res => {
|
||||||
}
|
console.log("绑定关系 回调", res)
|
||||||
|
}).catch(err => {
|
||||||
|
console.log('错误', err)
|
||||||
|
console.log('是否提示',isTips)
|
||||||
|
if(isTips){
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: err,
|
||||||
|
confirmText: '关闭',
|
||||||
|
showCancel: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
export default shareScence
|
export default shareScence
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -593,7 +593,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
shareScence(that.currSpid, that.isLogin);
|
shareScence(that.currSpid, that.isLogin, true);
|
||||||
this.isLogin && silenceBindingSpread();
|
this.isLogin && silenceBindingSpread();
|
||||||
this.reloadData();
|
this.reloadData();
|
||||||
Promise.all([
|
Promise.all([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue