修复bug
This commit is contained in:
parent
9fee4cae5c
commit
7f6263863b
@ -190,6 +190,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
noticeList
|
noticeList
|
||||||
} from "@/api/notice.js";
|
} from "@/api/notice.js";
|
||||||
|
import { mapState } from "@/store/index.js"
|
||||||
// import tabbar from '../components/tabbar'
|
// import tabbar from '../components/tabbar'
|
||||||
import {
|
import {
|
||||||
getIndexListAPI,
|
getIndexListAPI,
|
||||||
@ -251,12 +252,6 @@ export default {
|
|||||||
ApproveList: [],
|
ApproveList: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady () {
|
|
||||||
uni.setNavigationBarColor({
|
|
||||||
frontColor: "#ffffff",
|
|
||||||
backgroundColor: "#0122c7",
|
|
||||||
});
|
|
||||||
},
|
|
||||||
onLoad () {
|
onLoad () {
|
||||||
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
|
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
|
||||||
this.options.data = bj;
|
this.options.data = bj;
|
||||||
|
@ -3,6 +3,7 @@ export default {
|
|||||||
isLogin: state => !!state.app.token,
|
isLogin: state => !!state.app.token,
|
||||||
userInfo: state => state.app.userInfo || {},
|
userInfo: state => state.app.userInfo || {},
|
||||||
eyeType: state => state.config.eyeType || true,
|
eyeType: state => state.config.eyeType || true,
|
||||||
|
config: state => state.config.config || {}
|
||||||
};
|
};
|
||||||
// export default {
|
// export default {
|
||||||
// token: state => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJrYWlmYS5jcm1lYi5uZXQiLCJhdWQiOiJrYWlmYS5jcm1lYi5uZXQiLCJpYXQiOjE1NzcwODM1MzQsIm5iZiI6MTU3NzA4MzUzNCwiZXhwIjoxNTc3MDk0MzM0LCJqdGkiOnsiaWQiOjExMCwidHlwZSI6InVzZXIifX0.U-i1pbdRjyXI1gr79Uq2XBPZ89T8f5Ai9jwrR8woTwE',
|
// token: state => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJrYWlmYS5jcm1lYi5uZXQiLCJhdWQiOiJrYWlmYS5jcm1lYi5uZXQiLCJpYXQiOjE1NzcwODM1MzQsIm5iZiI6MTU3NzA4MzUzNCwiZXhwIjoxNTc3MDk0MzM0LCJqdGkiOnsiaWQiOjExMCwidHlwZSI6InVzZXIifX0.U-i1pbdRjyXI1gr79Uq2XBPZ89T8f5Ai9jwrR8woTwE',
|
||||||
|
@ -214,6 +214,7 @@
|
|||||||
} else Toast('暂未开放');
|
} else Toast('暂未开放');
|
||||||
},
|
},
|
||||||
async initLoad() {
|
async initLoad() {
|
||||||
|
console.log('更新');
|
||||||
this.loadConfig.page = 1;
|
this.loadConfig.page = 1;
|
||||||
this.loadConfig.status = "loadmore";
|
this.loadConfig.status = "loadmore";
|
||||||
this.list = [];
|
this.list = [];
|
||||||
|
@ -162,9 +162,10 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '更新成功',
|
title: '更新成功',
|
||||||
success() {
|
success: ()=> {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.$emit('initOaTask');
|
if(this.task_id) uni.$emit('loadArchives');
|
||||||
|
else uni.$emit('initOaTask');
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user