修复bug

This commit is contained in:
weipengfei 2023-08-28 11:47:40 +08:00
parent 9fee4cae5c
commit 7f6263863b
4 changed files with 6 additions and 8 deletions

View File

@ -190,6 +190,7 @@ import {
import {
noticeList
} from "@/api/notice.js";
import { mapState } from "@/store/index.js"
// import tabbar from '../components/tabbar'
import {
getIndexListAPI,
@ -251,12 +252,6 @@ export default {
ApproveList: [],
};
},
onReady () {
uni.setNavigationBarColor({
frontColor: "#ffffff",
backgroundColor: "#0122c7",
});
},
onLoad () {
this.is_captain = JSON.parse(uni.getStorageSync("USER_INFO")).is_captain
this.options.data = bj;

View File

@ -3,6 +3,7 @@ export default {
isLogin: state => !!state.app.token,
userInfo: state => state.app.userInfo || {},
eyeType: state => state.config.eyeType || true,
config: state => state.config.config || {}
};
// export default {
// token: state => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJrYWlmYS5jcm1lYi5uZXQiLCJhdWQiOiJrYWlmYS5jcm1lYi5uZXQiLCJpYXQiOjE1NzcwODM1MzQsIm5iZiI6MTU3NzA4MzUzNCwiZXhwIjoxNTc3MDk0MzM0LCJqdGkiOnsiaWQiOjExMCwidHlwZSI6InVzZXIifX0.U-i1pbdRjyXI1gr79Uq2XBPZ89T8f5Ai9jwrR8woTwE',

View File

@ -214,6 +214,7 @@
} else Toast('暂未开放');
},
async initLoad() {
console.log('更新');
this.loadConfig.page = 1;
this.loadConfig.status = "loadmore";
this.list = [];

View File

@ -162,9 +162,10 @@
uni.showToast({
icon: 'none',
title: '更新成功',
success() {
success: ()=> {
setTimeout(() => {
uni.$emit('initOaTask');
if(this.task_id) uni.$emit('loadArchives');
else uni.$emit('initOaTask');
uni.navigateBack()
}, 1000)
}