界面调整
This commit is contained in:
@@ -41,16 +41,16 @@
|
||||
|
||||
<block v-if="activeTab == 1">
|
||||
<view>
|
||||
<view class="location" @click="gomap">
|
||||
<!-- <view class="location" @click="gomap">
|
||||
<image src="../../static/img/location.svg" mode=""></image>
|
||||
{{ currentAddress }}(切换位置)
|
||||
<image src="../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view v-if="companyList.length > 0">
|
||||
<block v-for="(item, index) in companyList" :key="item.id">
|
||||
<companyList :companyitem="item" :near="activeTab === 0"></companyList>
|
||||
<workList :companyitem="item" :near="activeTab === 0"></workList>
|
||||
</block>
|
||||
</view>
|
||||
<view v-else>
|
||||
@@ -62,7 +62,7 @@
|
||||
</block>
|
||||
|
||||
<block v-if="activeTab == 2">
|
||||
<view v-if="recommendList.length > 0">
|
||||
<!-- <view v-if="recommendList.length > 0">
|
||||
<block v-for="(item, index) in recommendList" :key="item.id">
|
||||
<companyList :companyitem="item"></companyList>
|
||||
</block>
|
||||
@@ -76,6 +76,10 @@
|
||||
<view class="btn" @click="goResume">
|
||||
完善技能
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-for="(item, index) in policyContentList" :key="index" style="width: 90%;height: 100rpx;background-color: #fff;border-radius: 10rpx;margin:20rpx 5% 20rpx 5%;display: flex;align-items: center">
|
||||
<image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image>
|
||||
<view style="font-size: 26rpx;">{{ item.articleTitle }}</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
@@ -89,11 +93,13 @@
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
import testData from '@/common/textdata.js';
|
||||
import companyList from '@/components/companyList/companyList.vue';
|
||||
import workList from '@/components/companyList/workList.vue'
|
||||
import {
|
||||
newMissionAll,
|
||||
recommendMission,
|
||||
nearMission
|
||||
} from '@/api/mission.js';
|
||||
import {getPolicyContent} from '@/api/newIndex.js'
|
||||
import {
|
||||
getcoder
|
||||
} from "@/api/map.js";
|
||||
@@ -102,15 +108,19 @@ import verticalMenu from '@/components/vertical-menu/vertical-menu.vue';
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList, verticalMenu
|
||||
companyList,
|
||||
verticalMenu,
|
||||
workList
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
policyContentList: [],
|
||||
activeTab: 0,
|
||||
companyList: [],
|
||||
recommendList: [],
|
||||
newList: [],
|
||||
|
||||
nearPage: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
@@ -135,11 +145,12 @@ export default {
|
||||
open: false,
|
||||
showPopUp: false,
|
||||
|
||||
nonReactiveArray: ["任务", "岗位", "推荐"],
|
||||
nonReactiveArray: ["推荐任务", "推荐岗位", "推荐政策"],
|
||||
}
|
||||
},
|
||||
onLoad: function () {
|
||||
this.getData()
|
||||
this.getPolicy()
|
||||
},
|
||||
onShow: function () {
|
||||
if (this.$store.state.user.token) {
|
||||
@@ -235,12 +246,17 @@ export default {
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
getPolicy(){
|
||||
getPolicyContent(1).then(res=>{
|
||||
this.policyContentList=res.data.data.records
|
||||
})
|
||||
},
|
||||
changeTab: function (e) {
|
||||
this.activeTab = e;
|
||||
},
|
||||
//附近任务;
|
||||
getNearList: function (point) {
|
||||
nearMission(this.nearPage.current, this.nearPage.size, point.latitude, point.longitude, 50).then(res => {
|
||||
nearMission(this.nearPage.current, this.nearPage.size).then(res => {
|
||||
if (this.nearPage.current === 1) {
|
||||
this.companyList = [];
|
||||
}
|
||||
@@ -353,6 +369,7 @@ export default {
|
||||
this.getLocation();
|
||||
this.getRecommendList();
|
||||
this.getNewList();
|
||||
this.getNearList();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user