From ba14872e89107fa03f3e895becfc3eb4c35ed180 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Wed, 24 Jul 2024 14:45:29 +0800 Subject: [PATCH] =?UTF-8?q?flat:=E7=99=BB=E5=BD=95=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 31 ++-- pages/login/login.vue | 342 +++++++++++++++++++++--------------------- store/models/face.js | 64 ++++---- 3 files changed, 222 insertions(+), 215 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 2842c22..80c2b05 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -191,16 +191,16 @@ - + - + + --> { - const data = res.data.data - if (!(data.education && data.telephone && data.wage && data.workplace)) { - this.goures() - this.$api.sleep(1000).then(() => { - this.$api.msg('请输入基本信息') - }) - } - }) + }, onShow: function() { if (!this.$store.state.user.token) { @@ -319,6 +312,18 @@ this.download() this.getSwiperList() this.getPolicy() + if (this.isResume) { + this.isResume = false + myResume().then(res => { + const data = res.data.data + if (!(data.education && data.telephone && data.wage && data.workplace)) { + this.goures() + this.$api.sleep(1000).then(() => { + this.$api.msg('请输入基本信息') + }) + } + }) + } }, onReady() { uni.setNavigationBarTitle({ diff --git a/pages/login/login.vue b/pages/login/login.vue index 41ad0f1..d844c69 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,170 +1,172 @@ - - - - - + + + + + \ No newline at end of file diff --git a/store/models/face.js b/store/models/face.js index eee7c33..c040ab7 100644 --- a/store/models/face.js +++ b/store/models/face.js @@ -1,32 +1,32 @@ -import { - getStore, - setStore -} from '@/untils/store.js' - -export default { - state: { - homeNavShow: getStore({ - name: 'homeNavShow' - }) !== false, - homeTitle: getStore({ - name: 'homeTitle' - }) || '德阳市智慧就业服务平台' - }, - actions: {}, - mutations: { - SET_HOME_TITLE: (state, status) => { - state.homeTitle = status - setStore({ - name: 'homeTitle', - content: state.homeTitle - }) - }, - SET_HOME_NAV_SHOW: (state, status) => { - state.homeNavShow = status - setStore({ - name: 'homeNavShow', - content: state.homeNavShow - }) - }, - } -} +import { + getStore, + setStore +} from '@/untils/store.js' + +export default { + state: { + homeNavShow: getStore({ + name: 'homeNavShow' + }) !== false, + homeTitle: getStore({ + name: 'homeTitle' + }) || '管陶县智慧就业服务平台' + }, + actions: {}, + mutations: { + SET_HOME_TITLE: (state, status) => { + state.homeTitle = status + setStore({ + name: 'homeTitle', + content: state.homeTitle + }) + }, + SET_HOME_NAV_SHOW: (state, status) => { + state.homeNavShow = status + setStore({ + name: 'homeNavShow', + content: state.homeNavShow + }) + }, + } +} \ No newline at end of file