提交 89cca47c authored 作者: 赵世杰's avatar 赵世杰

1

上级 4518cf5f
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
}, },
login(){ login(){
uni.request({ uni.request({
url: 'http://192.168.0.6:8000/loginform', // url: 'http://192.168.0.6:8000/loginform',
// url: 'https://jyzp.365jft.com/jfb-recruit/loginform', url: 'https://jyzp.365jft.com/jfb-recruit/loginform',
method: 'POST', method: 'POST',
data: { data: {
account: this.openId, account: this.openId,
......
// 基础配置 // 基础配置
const baseConfig = { const baseConfig = {
baseUrl: 'http://192.168.0.6:8000', // baseUrl: 'http://192.168.0.6:8000',
// baseUrl: 'https://jyzp.365jft.com/jfb-recruit', baseUrl: 'https://jyzp.365jft.com/jfb-recruit',
timeout: 10000, // 10秒超时 timeout: 10000, // 10秒超时
header: { header: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
......
...@@ -3,17 +3,13 @@ ...@@ -3,17 +3,13 @@
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path" : "pages/user/resume/index",
"style" :
{
"navigationBarTitleText" : "简历"
}
},
{ {
"path": "pages/home/index", "path": "pages/home/index",
"style": { "style": {
"navigationBarTitleText": "君营直聘" "navigationBarTitleText": "君营直聘",
"enablePullDownRefresh": true, // 开启下拉刷新
"backgroundColor": "#F5F5F5", // 下拉刷新背景色
"backgroundTextStyle": "dark" // 下拉刷新文字颜色(dark/light)
} }
}, },
{ {
...@@ -49,18 +45,31 @@ ...@@ -49,18 +45,31 @@
"navigationBarTitleText" : "求职意向" "navigationBarTitleText" : "求职意向"
} }
}, },
{
"path" : "pages/user/resume/index",
"style" :
{
"navigationBarTitleText" : "简历"
}
},
{ {
"path" : "pages/user/deliverLog", "path" : "pages/user/deliverLog",
"style" : "style" :
{ {
"navigationBarTitleText" : "投递记录" "navigationBarTitleText" : "投递记录",
"enablePullDownRefresh": true, // 开启下拉刷新
"backgroundColor": "#F5F5F5", // 下拉刷新背景色
"backgroundTextStyle": "dark" // 下拉刷新文字颜色(dark/light)
} }
}, },
{ {
"path" : "pages/user/collectLog", "path" : "pages/user/collectLog",
"style" : "style" :
{ {
"navigationBarTitleText" : "收藏记录" "navigationBarTitleText" : "收藏记录",
"enablePullDownRefresh": true, // 开启下拉刷新
"backgroundColor": "#F5F5F5", // 下拉刷新背景色
"backgroundTextStyle": "dark" // 下拉刷新文字颜色(dark/light)
} }
}, },
{ {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</view> </view>
<view class="f_b occupational"> <view class="f_b occupational">
<view>{{item.industryName}}</view> <view>{{item.industryName}}</view>
<view>{{item.org.city != '市辖区' ? item.org.city : item.org.province}}</view> <view>{{item.city != '市辖区' ? item.city : item.province + ' ' + item.region}}</view>
</view> </view>
</view> </view>
<u-loadmore <u-loadmore
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
}, },
onLoad() { onLoad() {
}, },
onPullDownRefresh() {
this.load('sx')
},
onShow() { onShow() {
this.getDetail() this.getDetail()
this.load() this.load()
...@@ -114,13 +117,21 @@ ...@@ -114,13 +117,21 @@
this.tabName = e.name this.tabName = e.name
this.load() this.load()
}, },
load() { load(type) {
this.$http.get('/public/recruit/l', { this.$http.get('/public/recruit/l', {
status: 'up',
baseCode: 'jyjfb', baseCode: 'jyjfb',
selTitle: this.selTitle, selTitle: this.selTitle,
industryName: this.tabName == '推荐' ? '' : this.tabName industryName: this.tabName == '推荐' ? '' : this.tabName
}).then(res => { }).then(res => {
this.list = res.data.list this.list = res.data.list
if (type == 'sx') {
uni.stopPullDownRefresh();
uni.showToast({
title: '刷新成功',
icon: 'none'
})
}
}) })
}, },
toDetail(el = {}) { toDetail(el = {}) {
......
...@@ -54,13 +54,23 @@ ...@@ -54,13 +54,23 @@
onLoad() { onLoad() {
this.load() this.load()
}, },
onPullDownRefresh() {
this.load('sx')
},
onShow() { onShow() {
}, },
methods: { methods: {
load() { load(type) {
this.$http.get('/collect/l', {}).then(res => { this.$http.get('/collect/l', {}).then(res => {
this.list = res.data.list this.list = res.data.list
if (type == 'sx') {
uni.stopPullDownRefresh();
uni.showToast({
title: '刷新成功',
icon: 'none'
})
}
}) })
}, },
toDetail(el = {}) { toDetail(el = {}) {
......
...@@ -54,13 +54,23 @@ ...@@ -54,13 +54,23 @@
onLoad() { onLoad() {
this.load() this.load()
}, },
onPullDownRefresh() {
this.load('sx')
},
onShow() { onShow() {
}, },
methods: { methods: {
load() { load(type) {
this.$http.get('/signRecord/l', {}).then(res => { this.$http.get('/signRecord/l', {}).then(res => {
this.list = res.data.list this.list = res.data.list
if (type == 'sx') {
uni.stopPullDownRefresh();
uni.showToast({
title: '刷新成功',
icon: 'none'
})
}
}) })
}, },
toDetail(el = {}) { toDetail(el = {}) {
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<view class="f_s"> <view class="f_s">
{{ userInfo.age || 0 }} {{ userInfo.age || 0 }}
<view style="margin: 0 20rpx;">|</view> <view style="margin: 0 20rpx;">|</view>
{{ userInfo.sex ? '男' : '女' }} {{ userInfo.sex ? '男' : '' }}
{{ userInfo.sex === false ? '女' : '' }}
</view> </view>
<view class="f_s"> <view class="f_s">
<u-icon name="phone-fill" size="20"/> <u-icon name="phone-fill" size="20"/>
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
"pages/home/jobDetails", "pages/home/jobDetails",
"pages/user/resume/intention", "pages/user/resume/intention",
"pages/user/index", "pages/user/index",
"pages/user/resume/index",
"pages/user/resume/personalInfo", "pages/user/resume/personalInfo",
"pages/user/resume/addIntention", "pages/user/resume/addIntention",
"pages/user/resume/index",
"pages/user/deliverLog", "pages/user/deliverLog",
"pages/user/collectLog", "pages/user/collectLog",
"pages/home/companyDetails", "pages/home/companyDetails",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论