flat: 国庆节暂存
This commit is contained in:
@@ -191,16 +191,16 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info_market">
|
||||
<!-- <view class="info_market">
|
||||
<view class="market_top">
|
||||
<view class="top_log"></view>
|
||||
<view class="next_market" @click="navTo('/pages/market/market')">去市场</view>
|
||||
</view>
|
||||
<!-- <view class="market_bottom">
|
||||
<view class="market_bottom">
|
||||
<view>了解市场<u-icon name="arrow-right" color="#666666" size="13"></u-icon></view>
|
||||
<view>我要咨询<u-icon name="arrow-right" color="#666666" size="13"></u-icon></view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="latestMission">
|
||||
<view class="cardTips"
|
||||
@@ -293,36 +293,21 @@
|
||||
};
|
||||
},
|
||||
onLoad: function(options) {
|
||||
|
||||
if (this.$api.haslogin()) {
|
||||
this.$store.dispatch('getResumeInfo')
|
||||
}
|
||||
},
|
||||
onShow: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('refreshAuthState').then((e) => {
|
||||
var auth = this.$store.state.auth
|
||||
if (!auth.bankCardState) {
|
||||
this.step()
|
||||
}
|
||||
})
|
||||
|
||||
this.download()
|
||||
this.getSwiperList()
|
||||
this.getPolicy()
|
||||
if (this.IsResume) {
|
||||
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('请输入基本信息')
|
||||
})
|
||||
if (this.$api.haslogin()) {
|
||||
this.$store.dispatch('refreshAuthState').then((e) => {
|
||||
var auth = this.$store.state.auth
|
||||
if (!auth.bankCardState) {
|
||||
this.step()
|
||||
}
|
||||
})
|
||||
this.IsResume = false
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
@@ -399,11 +384,11 @@
|
||||
})
|
||||
},
|
||||
download: function() {
|
||||
this.isLogin = this.$store.state.user.token ? true : false;
|
||||
this.isLogin = this.$api.haslogin() ? true : false;
|
||||
newMission().then(res => {
|
||||
this.companyList = res.data.data;
|
||||
});
|
||||
if (this.$store.state.user.token) {
|
||||
if (this.$api.haslogin()) {
|
||||
uni.$emit('newsReadChange')
|
||||
this.$store.dispatch("getUnreadNum");
|
||||
recMission().then(res => {
|
||||
@@ -412,25 +397,7 @@
|
||||
};
|
||||
},
|
||||
goLocation: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未登录,点击确认去登录',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
return
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
});
|
||||
}
|
||||
this.navTo('../mapSeach/mapSeach', true)
|
||||
},
|
||||
goResume: function() {
|
||||
uni.navigateTo({
|
||||
@@ -444,40 +411,16 @@
|
||||
});
|
||||
},
|
||||
goures: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未登录,点击确认去登录',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
return
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pageMy/my/resume/index'
|
||||
});
|
||||
}
|
||||
this.navTo('/pageMy/my/resume/index', true)
|
||||
},
|
||||
toNewTask() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/project/newProject?tabIndex=${0}`
|
||||
});
|
||||
this.navTo(`/pages/project/newProject?tabIndex=${0}`, false)
|
||||
},
|
||||
toNewWork() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/project/newProject?tabIndex=${1}`
|
||||
});
|
||||
this.navTo(`/pages/project/newProject?tabIndex=${1}`, false)
|
||||
},
|
||||
toNewProject() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/project/newProject?tabIndex=${2}`
|
||||
});
|
||||
this.navTo(`/pages/project/newProject?tabIndex=${2}`, false)
|
||||
},
|
||||
toArticleDetail(id) {
|
||||
if (id) {
|
||||
@@ -487,49 +430,11 @@
|
||||
}
|
||||
},
|
||||
gouserSet: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未登录,点击确认去登录',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
return
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pageMy/setUserBase/index'
|
||||
});
|
||||
}
|
||||
this.navTo('/pageMy/setUserBase/index', true)
|
||||
},
|
||||
goSeach: function() {
|
||||
if (!this.$store.state.user.token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未登录,点击确认去登录',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
} else if (res.cancel) {
|
||||
return
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// if (this.keywords) {
|
||||
uni.navigateTo({
|
||||
url: '../seach/seach?keywords=' + this.keywords
|
||||
});
|
||||
this.keywords = ''
|
||||
// }
|
||||
}
|
||||
this.navTo('../seach/seach?keywords=' + this.keywords, true)
|
||||
this.keywords = ''
|
||||
},
|
||||
getSwiperList() {
|
||||
getSwiperList(this.swiperType).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user