|
@@ -46,22 +46,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="cd" @click="go('/pages/job/list')">
|
|
|
- <view class="out">
|
|
|
- <view class="int">
|
|
|
- <view class="icon" style="background-color: #4581fb"></view>
|
|
|
- <view class="title">全职岗位</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="cd" @click="go('/pages/clsd/job/part_time')">
|
|
|
- <view class="out">
|
|
|
- <view class="int">
|
|
|
- <view class="icon" style="background-color: #ff5722"></view>
|
|
|
- <view class="title">兼职岗位</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<view class="cd">
|
|
|
<view class="out">
|
|
|
<view class="int">
|
|
@@ -72,22 +56,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--新闻-->
|
|
|
- <view class="news" @click="go('/pages/news/index')">
|
|
|
+ <view class="news">
|
|
|
<view class="gg">
|
|
|
<view class="title">最新资讯</view>
|
|
|
<view class="bor"></view>
|
|
|
- <view class="more">
|
|
|
+ <view class="more" @click="go('/pages/news/index')">
|
|
|
<text>更多</text>
|
|
|
<text class="icon"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item">
|
|
|
- <view class="title omit">春招进行时......</view>
|
|
|
- <view class="date">04-29</view>
|
|
|
- </view>
|
|
|
- <view class="item">
|
|
|
- <view class="title omit">2022年全区十八大与南宁召开广西大力推广招聘兼职的在线</view>
|
|
|
- <view class="date">04-29</view>
|
|
|
+ <view class="item" v-for="(item, index) in newsList" :key="index" @click="go('/pages/news/detail?id=' + item.id)">
|
|
|
+ <view class="title omit">{{ item.title }}</view>
|
|
|
+ <view class="date">{{ item.createTime.substring(5, 10) }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--横幅-->
|
|
@@ -120,39 +100,21 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- ip: this.http.ip,
|
|
|
- user: {},
|
|
|
- jobs: [1, 2, 3, 4, 5, 6],
|
|
|
bannerList: [],
|
|
|
- noticeList: []
|
|
|
+ newsList: []
|
|
|
};
|
|
|
},
|
|
|
- onShow() {
|
|
|
- if (this.hasLogin()) {
|
|
|
- //this.getUserInfo();
|
|
|
- }
|
|
|
- },
|
|
|
onLoad() {
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
- getUserInfo() {
|
|
|
- this.http.request({
|
|
|
- url: '/app/user/info',
|
|
|
- success: (res) => {
|
|
|
- this.user = res.data.data;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
getData() {
|
|
|
this.http.request({
|
|
|
url: '/app/home/index',
|
|
|
success: (res) => {
|
|
|
this.contract = res.data.data.contract;
|
|
|
this.bannerList = res.data.data.bannerList;
|
|
|
- res.data.data.noticeList.forEach((item) => {
|
|
|
- this.noticeList.push(item.title);
|
|
|
- });
|
|
|
+ this.newsList = res.data.data.newsList;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -174,7 +136,7 @@ export default {
|
|
|
}
|
|
|
.news {
|
|
|
margin-top: 10px;
|
|
|
- background-color: #cfe7fd;
|
|
|
+ background-color: white;
|
|
|
border-radius: 7px;
|
|
|
overflow: hidden;
|
|
|
padding: 12px;
|