Commit e53b6d96 by kyle

解决卡顿

parent 10b4a038
File deleted
...@@ -208,7 +208,6 @@ ...@@ -208,7 +208,6 @@
api.queryOrgList(CffpAreaQueryReqVO).then(res => { api.queryOrgList(CffpAreaQueryReqVO).then(res => {
if (res['success']) { if (res['success']) {
this.queryorgList = res.data.cffpAreaQuerys this.queryorgList = res.data.cffpAreaQuerys
console.log(this.queryorgList, 121255)
this.orgList = res.data.cffpAreaQuerys this.orgList = res.data.cffpAreaQuerys
this.changeorgkey() this.changeorgkey()
...@@ -231,8 +230,6 @@ ...@@ -231,8 +230,6 @@
let that = this let that = this
let orgKey = that.applyIdentity == 0 ? 'B1' : 'A1' let orgKey = that.applyIdentity == 0 ? 'B1' : 'A1'
// that.orgdataList = [] // that.orgdataList = []
console.log(that.orgList, 1115)
that.queryList = that.orgList.map((item) => { that.queryList = that.orgList.map((item) => {
if (item.partnerLevel == orgKey || item.partnerLevel == 'ALL') { if (item.partnerLevel == orgKey || item.partnerLevel == 'ALL') {
return item return item
...@@ -295,10 +292,10 @@ ...@@ -295,10 +292,10 @@
summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`, summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg", imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg",
success: function(res) { success: function(res) {
console.log("success:" + JSON.stringify(res)); // console.log("success:" + JSON.stringify(res));
}, },
fail: function(err) { fail: function(err) {
console.log("fail:" + JSON.stringify(err)); // console.log("fail:" + JSON.stringify(err));
} }
}); });
// else if (type === 2) { // else if (type === 2) {
......
...@@ -58,14 +58,17 @@ ...@@ -58,14 +58,17 @@
}, },
methods: { methods: {
goBack(){ goBack(){
let back = getCurrentPages(); uni.navigateBack({
if(back && back.length>1) { delta: 1
uni.navigateBack({ });
delta: 1 // let back = getCurrentPages();
}); // if(back && back.length>1) {
}else{ // uni.navigateBack({
history.back(); // delta: 1
} // });
// }else{
// history.back();
// }
}, },
userStudyList(){ userStudyList(){
api.userStudyList({userId:this.userId}).then(res=>{ api.userStudyList({userId:this.userId}).then(res=>{
......
...@@ -11,8 +11,6 @@ export default function initApp(){ ...@@ -11,8 +11,6 @@ export default function initApp(){
uni.addInterceptor('navigateTo', { uni.addInterceptor('navigateTo', {
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转 // 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
invoke (e) { invoke (e) {
let app = getCurrentPages()
console.log('页面站===',app)
if(!hasPermission(e.url)){ if(!hasPermission(e.url)){
uni.reLaunch({ uni.reLaunch({
url: '/components/login/login' url: '/components/login/login'
...@@ -28,25 +26,6 @@ export default function initApp(){ ...@@ -28,25 +26,6 @@ export default function initApp(){
uni.addInterceptor('switchTab', { uni.addInterceptor('switchTab', {
// tabbar页面跳转前进行拦截 // tabbar页面跳转前进行拦截
invoke (e) { invoke (e) {
let app = getCurrentPages()
console.log('页面站===',app)
if(!hasPermission(e.url)){
uni.reLaunch({
url: '/components/login/login'
})
return false
}
return true
},
success (e) {
}
})
uni.addInterceptor('reLaunch', {
// tabbar页面跳转前进行拦截
invoke (e) {
let app = getCurrentPages()
console.log('页面站===',app)
if(!hasPermission(e.url)){ if(!hasPermission(e.url)){
uni.reLaunch({ uni.reLaunch({
url: '/components/login/login' url: '/components/login/login'
......
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