diff --git a/pages/login/index.vue b/pages/login/index.vue
index 6c85e2b..3b162f7 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -1,33 +1,45 @@
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- {{ loading ? "登录中...":"登录"}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ loading ? "登录中...":"登录"}}
+
+
+
-
+
@@ -87,53 +99,51 @@
// duration:'2000'
// })
request({
- url:'/api/oauth/Login1',
- method:'post',
- data:query,
- header:{
+ url: '/api/oauth/Login1',
+ method: 'post',
+ data: query,
+ header: {
"Content-Type": "application/x-www-form-urlencoded"
}
}).then(res => {
- // this.API.userLogin(query).then(res => {
- console.log('登录信息',res)
+ // this.API.userLogin(query).then(res => {
+ console.log('登录信息', res)
uni.showToast({
- title:'denglu',
- duration:'2000'
+ title: 'denglu',
+ duration: '2000'
})
-
- if(res.code === 200){
+
+ if (res.code === 200) {
let token = res.data.token
// let user = res.data.user
- console.log('token',token)
+ console.log('token', token)
this.$store.commit('user/SET_TOKEN', token)
uni.setStorageSync('AuthToken_KEY', token)
uni.setStorageSync('token', token)
- // uni.switchTab({
- // url: '/pages/index/apply'
- // });
- that.API.getUserInfo().then(res=>{
+
+ that.API.getUserInfo().then(res => {
console.log(res)
-
+
let user = res.data
- uni.setStorageSync('user',user)
- if(uni.getStorageSync('user')){
+ uni.setStorageSync('user', user)
+ if (uni.getStorageSync('user')) {
this.loading = false
uni.showToast({
- icon:"success",
- title:"登陆成功"
+ icon: "success",
+ title: "登陆成功"
})
uni.switchTab({
url: '/pages/home/home'
});
}
-
-
+
+
})
-
- }else{
+
+ } else {
uni.showToast({
- icon:"error",
- title:res.msg
+ icon: "error",
+ title: res.msg
})
this.loading = false
}
@@ -147,108 +157,139 @@
});
},
},
-
+
}
+
\ No newline at end of file
diff --git a/pages/official/official.vue b/pages/official/official.vue
index 5a960e5..e1fd7dc 100644
--- a/pages/official/official.vue
+++ b/pages/official/official.vue
@@ -77,7 +77,7 @@
url: 'http://deyanggaoxin.fengshiyun.com/api/file/Uploader/1', // 不传入上传地址则返回本地链接
// url: '', // 不传入上传地址则返回本地链接
},
- check:false,
+ check: false,
// 文件名
fileName: '文件名',
// 当前用户ID:
@@ -103,10 +103,10 @@
},
methods: {
- change(){
- console.log('check',this.check)
+ change() {
+ console.log('check', this.check)
this.check = !this.check
- console.log('check',this.check)
+ console.log('check', this.check)
},
// 获取用户信息
getUser() {
@@ -117,7 +117,7 @@
this.userName = userCode.userInfo.userAccount
this.userIcon = userCode.userInfo.headIcon
this.organizeName = userCode.userInfo.organizeName
- if(this.userId === 'admin'){
+ if (this.userId === 'admin') {
this.isAdmin = true
}
console.log(userCode)
@@ -135,9 +135,9 @@
},
// 跳转到自定义分组页面
- toGrouping(){
+ toGrouping() {
uni.navigateTo({
- url:'/pages/official/grouping/grouping'
+ url: '/pages/official/grouping/grouping'
})
},
// 获取企业分类
@@ -392,8 +392,7 @@
},
// 进行通知
- tellNotice(id,url){
- // 进行通知
+ tellNotice(id,url){
console.log("进入通知")
request({
url:'/api/extend/demo/SendMessageByApp',
@@ -406,8 +405,8 @@
reid:id,
link:url
}
- }).then(res=>{
- console.log('通知结果',res)
+ }).then(res => {
+ console.log('通知结果', res)
})
},
getCityNames(ids) {
diff --git a/pages/talent/talent.vue b/pages/talent/talent.vue
index 2be6db2..2e7cb60 100644
--- a/pages/talent/talent.vue
+++ b/pages/talent/talent.vue
@@ -67,14 +67,14 @@
{{item.post}}
- 3000-5000/月
+ 3000-5000/月
-
+
@@ -86,8 +86,8 @@
data() {
return {
talentList: [],
- show:false,
- keyword:''
+ show: false,
+ keyword: ''
}
},
onShow() {
@@ -120,11 +120,11 @@
// 获取人才列表
getTalentList() {
this.API.getTalentList().then(res => {
- if(res.code === 600){
+ if (res.code === 600) {
// console.log(res)
uni.showToast({
- icon:'error',
- title:'登录过期,请重新登录'
+ icon: 'error',
+ title: '登录过期,请重新登录'
})
}
if (res.code === 200) {
@@ -134,7 +134,7 @@
createTime: utils.formatTime(it.createTime)
}
})
- if(this.talentList.length > 0){
+ if (this.talentList.length > 0) {
this.show = true
}
}
@@ -147,14 +147,16 @@
})
},
// 跳转到发布人才招聘
- toPostTalent(){
+ toPostTalent() {
uni.navigateTo({
- url:'/pages/postTalent/postTalent'
+ url: '/pages/postTalent/postTalent'
})
},
// 搜索功能
- searchEvt(){
- this.API.getTalentList({keyword:this.keyword}).then(res => {
+ searchEvt() {
+ this.API.getTalentList({
+ keyword: this.keyword
+ }).then(res => {
console.log(res)
if (res.code === 200) {
this.talentList = res.data.list.map(it => {
@@ -163,7 +165,7 @@
createTime: utils.formatTime(it.createTime)
}
})
- if(this.talentList.length > 0){
+ if (this.talentList.length > 0) {
this.show = true
}
}
@@ -171,9 +173,9 @@
})
},
// 跳转到人才推介列表
- toRecommend(){
+ toRecommend() {
uni.navigateTo({
- url:`/pages/recommend/recommend`
+ url: `/pages/recommend/recommend`
})
}
}