修复bug
This commit is contained in:
parent
7f23c975c5
commit
fcd2e196bb
@ -190,7 +190,6 @@ 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,
|
||||||
@ -199,6 +198,7 @@ import {
|
|||||||
getApproveListAPI,
|
getApproveListAPI,
|
||||||
getUserIndexAPI,
|
getUserIndexAPI,
|
||||||
} from "@/api/oaApi.js";
|
} from "@/api/oaApi.js";
|
||||||
|
import { mapState } from 'vuex';
|
||||||
import bj from "@/static/animation/home.json"
|
import bj from "@/static/animation/home.json"
|
||||||
//#ifdef APP-PLUS
|
//#ifdef APP-PLUS
|
||||||
var jpushModule = uni.requireNativePlugin("JG-JPush");
|
var jpushModule = uni.requireNativePlugin("JG-JPush");
|
||||||
|
@ -37,9 +37,9 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
loginAccount,
|
loginAccount,
|
||||||
userInfo,
|
userInfo
|
||||||
test
|
|
||||||
} from "@/api/oaUser.js"
|
} from "@/api/oaUser.js"
|
||||||
|
import { getConfig } from "@/api/config.js";
|
||||||
import {
|
import {
|
||||||
Toast
|
Toast
|
||||||
} from "../../libs/uniApi";
|
} from "../../libs/uniApi";
|
||||||
@ -102,8 +102,6 @@
|
|||||||
if (this.formData.scene == 1 && !this.formData.password) return Toast('密码不能为空');
|
if (this.formData.scene == 1 && !this.formData.password) return Toast('密码不能为空');
|
||||||
if (this.formData.scene == 2 && !this.formData.code) return Toast('验证码不能为空');
|
if (this.formData.scene == 2 && !this.formData.code) return Toast('验证码不能为空');
|
||||||
let that = this;
|
let that = this;
|
||||||
// let res = await test();
|
|
||||||
// console.log(res);
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '正在登录中'
|
title: '正在登录中'
|
||||||
})
|
})
|
||||||
@ -117,20 +115,30 @@
|
|||||||
data
|
data
|
||||||
} = await userInfo();
|
} = await userInfo();
|
||||||
this.$store.commit('setUserInfo', data);
|
this.$store.commit('setUserInfo', data);
|
||||||
await this.$store.dispatch('initConfig');
|
let config = await getConfig();
|
||||||
|
this.$store.commit('SET_CONFIG', config.data);
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if (data.is_new_user) {
|
if (data.is_new_user) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
mask: true,
|
mask: true,
|
||||||
title: '加载中'
|
title: '加载中'
|
||||||
})
|
})
|
||||||
uni.switchTab({
|
// #ifdef APP-PLUS
|
||||||
|
return uni.switchTab({
|
||||||
url: '/pages/oaHome/oaHome',
|
url: '/pages/oaHome/oaHome',
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.$emit('initOaTask'); // 更新任务
|
uni.$emit('initOaTask'); // 更新任务
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// #endif
|
||||||
|
return uni.reLaunch({
|
||||||
|
url: '/pages/oaHome/oaHome',
|
||||||
|
success: () => {
|
||||||
|
uni.$emit('initOaTask'); // 更新任务
|
||||||
|
uni.hideLoading()
|
||||||
|
}
|
||||||
|
})
|
||||||
} else uni.navigateTo({
|
} else uni.navigateTo({
|
||||||
url: '/pages/updatePassword/updatePassword'
|
url: '/pages/updatePassword/updatePassword'
|
||||||
});
|
});
|
||||||
|
@ -91,10 +91,20 @@
|
|||||||
mask: true,
|
mask: true,
|
||||||
title: '加载中'
|
title: '加载中'
|
||||||
})
|
})
|
||||||
uni.switchTab({
|
// #ifdef APP-PLUS
|
||||||
|
return uni.switchTab({
|
||||||
|
url: '/pages/oaHome/oaHome',
|
||||||
|
success: () => {
|
||||||
|
uni.$emit('initOaTask'); // 更新任务
|
||||||
|
uni.hideLoading()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
|
return uni.reLaunch({
|
||||||
url: '/pages/oaHome/oaHome',
|
url: '/pages/oaHome/oaHome',
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.hideLoading()
|
uni.$emit('initOaTask'); // 更新任务
|
||||||
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -17,7 +17,7 @@ const mutations = {
|
|||||||
Cache.set('request', state.request);
|
Cache.set('request', state.request);
|
||||||
},
|
},
|
||||||
SET_CONFIG(state, data){
|
SET_CONFIG(state, data){
|
||||||
state.config = data;
|
state.config = {...data};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="title">详情描述</view>
|
<view class="title">详情描述</view>
|
||||||
<u-line style="margin: 14rpx 0;"></u-line>
|
<u-line style="margin: 14rpx 0;"></u-line>
|
||||||
<u--textarea v-model="formData.text" placeholder="请输入内容" style="font-size: 28rpx;background-color: #eee;" autoHeight></u--textarea>
|
<u--textarea v-model="formData.text" height="80" placeholder="请输入内容" placeholderStyle="font-size: 28rpx;" style="font-size: 28rpx;background-color: #eee;" autoHeight></u--textarea>
|
||||||
</view>
|
</view>
|
||||||
<mybtn text="确认提交"></mybtn>
|
<mybtn text="确认提交"></mybtn>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user