flat: 暂存
This commit is contained in:
@@ -1,154 +1,184 @@
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <view class="tab">
|
||||
<v-tabs :tabs="['全部任务','全部岗位']" v-model="activeTab" color="#999" activeColor="#000" fontSize="36rx"
|
||||
activeFontSize="36rpx" @change='changeTab' />
|
||||
</view> -->
|
||||
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<company-list :companyitem="item" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
<!-- <block>
|
||||
<image src="/static/img/tab.orange.svg" mode="" v-if="item.status === 1"></image>
|
||||
<image src="/static/img/tab.blue.svg" mode="" v-else-if="item.status === 2"></image>
|
||||
<image src="/static/img/tab.green.svg" mode="" v-else-if="item.status === 3"></image>
|
||||
<image src="/static/img/tab.gray.svg" mode="" v-else></image>
|
||||
</block> -->
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<empty v-if="data.length === 0" content="暂无岗位信息" mrTop="300"></empty>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
import companyList from '@/components/companyList/newJobList.vue';
|
||||
import {
|
||||
tuiJianMission
|
||||
} from '@/api/mission.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
data: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh:function(){
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init(){
|
||||
this.current = 1
|
||||
this.data = []
|
||||
this.getData()
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
// let ids = ["1758500271264247928","1758500271264247929","1758500271264247930","1758500271264247931","1758500271264247932","1758500271264247933"]
|
||||
// let type = 0
|
||||
// 岗位
|
||||
let ids = ["1758500271264247823","1758500271264247824","1758500271264247825","1758500271264247826","1758500271264247827"]
|
||||
let type = 1
|
||||
tuiJianMission(ids, type).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.data = [];
|
||||
}
|
||||
this.current += 1;
|
||||
this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
this.data.push(res.data.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <view class="tab">
|
||||
<v-tabs :tabs="['全部任务','全部岗位']" v-model="activeTab" color="#999" activeColor="#000" fontSize="36rx"
|
||||
activeFontSize="36rpx" @change='changeTab' />
|
||||
</view> -->
|
||||
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<view v-if="!item.isRead" class="point"></view>
|
||||
<company-list :companyitem="item" @befor="clickBefor" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
<!-- <block>
|
||||
<image src="/static/img/tab.orange.svg" mode="" v-if="item.status === 1"></image>
|
||||
<image src="/static/img/tab.blue.svg" mode="" v-else-if="item.status === 2"></image>
|
||||
<image src="/static/img/tab.green.svg" mode="" v-else-if="item.status === 3"></image>
|
||||
<image src="/static/img/tab.gray.svg" mode="" v-else></image>
|
||||
</block> -->
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<empty v-if="data.length === 0" content="暂无岗位信息" mrTop="300"></empty>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
import companyList from '@/components/companyList/newJobList.vue';
|
||||
import {
|
||||
tuiJianMission
|
||||
} from '@/api/mission.js';
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
data: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function({
|
||||
type
|
||||
}) {
|
||||
this.id = type
|
||||
},
|
||||
onShow() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh: function() {
|
||||
this.init()
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.current = 1
|
||||
this.data = []
|
||||
this.getData()
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
// let ids = ["1758500271264247928","1758500271264247929","1758500271264247930","1758500271264247931","1758500271264247932","1758500271264247933"]
|
||||
// let type = 0
|
||||
// 岗位
|
||||
let ids = ["1758500271264247823", "1758500271264247824", "1758500271264247825", "1758500271264247826",
|
||||
"1758500271264247827"
|
||||
]
|
||||
let type = 1
|
||||
tuiJianMission(ids, type).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.data = [];
|
||||
}
|
||||
this.current += 1;
|
||||
this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
this.data.push(res.data.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
clickBefor(item) {
|
||||
if (!item.isRead) {
|
||||
console.log('brfor', this.id, item)
|
||||
this.news.data[this.id].navigateTo(item, this.$store.dispatch)
|
||||
}
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.point {
|
||||
position: absolute;
|
||||
top: 32rpx;
|
||||
left: 20rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: red;
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
@@ -3,7 +3,7 @@
|
||||
<view v-for="(value,key) in data" class="newsList" @click="goList(value)" :key="key">
|
||||
<view class="newsIcon">
|
||||
<image :src="value.icon" mode=""></image>
|
||||
<view v-if="news.unread[value.id] > 0" class="point"></view>
|
||||
<view v-if="news.unread[value.uid] > 0" class="point"></view>
|
||||
</view>
|
||||
<view class="newsListRight">
|
||||
<view class="head">
|
||||
@@ -43,6 +43,7 @@
|
||||
} else {
|
||||
uni.$emit('newsReadChange')
|
||||
}
|
||||
console.log(this.news)
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.loading = true
|
||||
@@ -68,21 +69,21 @@
|
||||
if (item.uid === '1') {
|
||||
console.log('零工岗位推送')
|
||||
uni.navigateTo({
|
||||
url: './taskProjectList'
|
||||
url: './taskProjectList?type=' + item.uid
|
||||
})
|
||||
} else if (item.uid === '2') {
|
||||
console.log('全职岗位推送')
|
||||
uni.navigateTo({
|
||||
url: './jobProjectList'
|
||||
url: './jobProjectList?type=' + item.uid
|
||||
})
|
||||
} else if (item.uid == '4') {
|
||||
} else if (item.uid == '3') {
|
||||
console.log('政策推送')
|
||||
uni.navigateTo({
|
||||
url: './policyList'
|
||||
url: './policyList?type=' + item.uid
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: './newsList?type=' + item.id
|
||||
url: './newsList?type=' + item.uid
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,202 +1,204 @@
|
||||
<template>
|
||||
<view>
|
||||
<view :key="group" v-for="(item,group) in list">
|
||||
<m-slide-list :prop="prop" :key="value.id" v-for="(value,index) in item" :value="value" :button="buttonList" @remove="click(value,group,index)"
|
||||
@controller-reg="controller.reg" @controller-moving="controller.moving" @controller-opened="controller.opened"
|
||||
@controller-closed="controller.closed">
|
||||
<view class="news-item">
|
||||
<view class="now-message-info" hover-class="uni-item--hover" @click="clickMethod(value)" :style="{width:windowWidth}">
|
||||
<view class="list-right">
|
||||
<view v-if="value[prop.isRead] === 0" class="point"></view>
|
||||
<view class="list-title">{{ value[prop.title] }}</view>
|
||||
<view class="list-detail">{{ value[prop.listDesc] }}</view>
|
||||
</view>
|
||||
<view class="list-right-1" v-if="value[prop.time]">{{ value[prop.time] }}</view>
|
||||
</view>
|
||||
<view style="clear:both"></view>
|
||||
</view>
|
||||
</m-slide-list>
|
||||
<!-- <view class="news-loading">
|
||||
加载中...
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mSlideList from '../../components/mark-slide-list/mark-slide-list.vue';
|
||||
import controller from '../../components/mark-slide-list/controller';
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
mSlideList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
id: '',
|
||||
controller: new controller(),
|
||||
buttonList: [{
|
||||
title: '删除',
|
||||
background: '#ff3b32',
|
||||
clickName: 'remove'
|
||||
}]
|
||||
};
|
||||
},
|
||||
onLoad({
|
||||
type
|
||||
}) {
|
||||
this.id = type
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.news.data[type].title
|
||||
});
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.loading = true
|
||||
this.$store.dispatch("newsReload", this.id).then(() => {
|
||||
this.loading = false
|
||||
uni.stopPullDownRefresh();
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
// onPageScroll(obj) {},
|
||||
onReachBottom() {
|
||||
if (!this.loading) {
|
||||
this.loading = true
|
||||
this.$store.dispatch("newsGetNextPage", this.id).then(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//查看详情
|
||||
clickMethod(data) {
|
||||
this.news.data[this.id].navigateTo(data, this.$store.dispatch)
|
||||
},
|
||||
click(value, group, index) {
|
||||
this.$store.dispatch('removeNew', {
|
||||
id: value.id,
|
||||
key: this.id,
|
||||
group,
|
||||
index
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
list() {
|
||||
if (this.id) {
|
||||
return this.news.data[this.id].data
|
||||
}
|
||||
},
|
||||
prop() {
|
||||
if (this.id) {
|
||||
return this.news.data[this.id].prop
|
||||
}
|
||||
},
|
||||
windowWidth() {
|
||||
return uni.getSystemInfoSync().windowWidth + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.uni-item--hover {
|
||||
background-color: #f1f1f1 !important;
|
||||
}
|
||||
|
||||
.news-item {
|
||||
height: 160rpx;
|
||||
}
|
||||
|
||||
.now-message-info {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
/* justify-content: space-between; */
|
||||
font-size: 16px;
|
||||
clear: both;
|
||||
height: 160rpx;
|
||||
padding: 0 30rpx;
|
||||
// margin-bottom: 20rpx;
|
||||
background: #ffffff;
|
||||
float: left;
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
|
||||
.icon-image {
|
||||
border-radius: 10rpx;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.icon-circle {
|
||||
background: #3396fb;
|
||||
border-radius: 100%;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.list-right {
|
||||
position: relative;
|
||||
float: left;
|
||||
margin-left: 25rpx;
|
||||
margin-right: 30rpx;
|
||||
|
||||
.point {
|
||||
position: absolute;
|
||||
top: 15rpx;
|
||||
left: -25rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: red;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.list-title {
|
||||
width: 350rpx;
|
||||
line-height: 1.5;
|
||||
overflow: hidden;
|
||||
margin-bottom: 10rpx;
|
||||
color: #333;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.list-detail {
|
||||
width: 350rpx;
|
||||
font-size: 14px;
|
||||
color: #a9a9a9;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.list-right-1 {
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
color: #a9a9a9;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.news-loading {}
|
||||
</style>
|
||||
<template>
|
||||
<view>
|
||||
<view :key="group" v-for="(item,group) in list">
|
||||
<m-slide-list :prop="prop" :key="value.id" v-for="(value,index) in item" :value="value" :button="buttonList"
|
||||
@remove="click(value,group,index)" @controller-reg="controller.reg"
|
||||
@controller-moving="controller.moving" @controller-opened="controller.opened"
|
||||
@controller-closed="controller.closed">
|
||||
<view class="news-item">
|
||||
<view class="now-message-info" hover-class="uni-item--hover" @click="clickMethod(value)"
|
||||
:style="{width:windowWidth}">
|
||||
<view class="list-right">
|
||||
<view v-if="value[prop.isRead] === 0" class="point"></view>
|
||||
<view class="list-title">{{ value[prop.title] }}</view>
|
||||
<view class="list-detail">{{ value[prop.listDesc] }}</view>
|
||||
</view>
|
||||
<view class="list-right-1" v-if="value[prop.time]">{{ value[prop.time] }}</view>
|
||||
</view>
|
||||
<view style="clear:both"></view>
|
||||
</view>
|
||||
</m-slide-list>
|
||||
<!-- <view class="news-loading">
|
||||
加载中...
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mSlideList from '../../components/mark-slide-list/mark-slide-list.vue';
|
||||
import controller from '../../components/mark-slide-list/controller';
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
mSlideList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
id: '',
|
||||
controller: new controller(),
|
||||
buttonList: [{
|
||||
title: '删除',
|
||||
background: '#ff3b32',
|
||||
clickName: 'remove'
|
||||
}]
|
||||
};
|
||||
},
|
||||
onLoad({
|
||||
type
|
||||
}) {
|
||||
this.id = type
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.news.data[type].title
|
||||
});
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.loading = true
|
||||
this.$store.dispatch("newsReload", this.id).then(() => {
|
||||
this.loading = false
|
||||
uni.stopPullDownRefresh();
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
uni.stopPullDownRefresh();
|
||||
})
|
||||
},
|
||||
// onPageScroll(obj) {},
|
||||
onReachBottom() {
|
||||
if (!this.loading) {
|
||||
this.loading = true
|
||||
this.$store.dispatch("newsGetNextPage", this.id).then(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//查看详情
|
||||
clickMethod(data) {
|
||||
this.news.data[this.id].navigateTo(data, this.$store.dispatch)
|
||||
},
|
||||
click(value, group, index) {
|
||||
this.$store.dispatch('removeNew', {
|
||||
id: value.id,
|
||||
key: this.id,
|
||||
group,
|
||||
index
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
list() {
|
||||
if (this.id) {
|
||||
return this.news.data[this.id].data
|
||||
}
|
||||
},
|
||||
prop() {
|
||||
if (this.id) {
|
||||
return this.news.data[this.id].prop
|
||||
}
|
||||
},
|
||||
windowWidth() {
|
||||
return uni.getSystemInfoSync().windowWidth + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.uni-item--hover {
|
||||
background-color: #f1f1f1 !important;
|
||||
}
|
||||
|
||||
.news-item {
|
||||
height: 160rpx;
|
||||
}
|
||||
|
||||
.now-message-info {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
/* justify-content: space-between; */
|
||||
font-size: 16px;
|
||||
clear: both;
|
||||
height: 160rpx;
|
||||
padding: 0 30rpx;
|
||||
// margin-bottom: 20rpx;
|
||||
background: #ffffff;
|
||||
float: left;
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
|
||||
.icon-image {
|
||||
border-radius: 10rpx;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.icon-circle {
|
||||
background: #3396fb;
|
||||
border-radius: 100%;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.list-right {
|
||||
position: relative;
|
||||
float: left;
|
||||
margin-left: 25rpx;
|
||||
margin-right: 30rpx;
|
||||
|
||||
.point {
|
||||
position: absolute;
|
||||
top: 15rpx;
|
||||
left: -25rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: red;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.list-title {
|
||||
width: 350rpx;
|
||||
line-height: 1.5;
|
||||
overflow: hidden;
|
||||
margin-bottom: 10rpx;
|
||||
color: #333;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.list-detail {
|
||||
width: 350rpx;
|
||||
font-size: 14px;
|
||||
color: #a9a9a9;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.list-right-1 {
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
color: #a9a9a9;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.news-loading {}
|
||||
</style>
|
||||
@@ -1,182 +1,210 @@
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<company-list :companyitem="item" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
</view>
|
||||
</block>
|
||||
</block> -->
|
||||
<view class="newPeojectList">
|
||||
<view style="background-color: #fff;padding: 20rpx 30rpx;">
|
||||
<view v-for="(item,index) in policyContentList" :key="index" style="display: flex;align-items: center;padding: 20rpx 0;border-bottom:1rpx solid #ddd;" @click="toArticleDetail(item.id)">
|
||||
<image src="../../static/img/policy_icon.png" style="width: 60rpx;height:60rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image>
|
||||
<view style="font-size: 32rpx;">{{ item.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<empty v-if="policyContentList.length<=0" content="暂无最新资讯" mrTop="300"></empty>
|
||||
</view>
|
||||
<!-- <view class="nothing" v-if="data.length === 0">
|
||||
<image src="/static/img/pic_notask.svg" mode=""></image>
|
||||
<view class="nothingContnt">
|
||||
暂无政策信息
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
// import companyList from '@/components/companyList/applyList.vue';
|
||||
import {
|
||||
getNewsPolicyList
|
||||
} from '@/api/mission.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
// companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
policyContentList: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh:function(){
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init(){
|
||||
this.current = 1
|
||||
this.policyContentList = []
|
||||
this.getData()
|
||||
},
|
||||
toArticleDetail(id) {
|
||||
if(id){
|
||||
uni.navigateTo({
|
||||
url:`/pages/user/policyDetail?id=${id}`
|
||||
})
|
||||
}
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
let ids = ["1767522008019800065","1767523160165748738"]
|
||||
// let type = 0
|
||||
// 岗位
|
||||
// let ids = ["1758500271264247823","1758500271264247824","1758500271264247825","1758500271264247826","1758500271264247827"]
|
||||
// let type = 1
|
||||
getNewsPolicyList(ids).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.policyContentList = [];
|
||||
}
|
||||
this.current += 1;
|
||||
// this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
this.policyContentList = res.data.data;
|
||||
// console.log(this.policyContentList)
|
||||
}
|
||||
})
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
width: 345px;
|
||||
height: 130px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nothing_text {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
margin-bottom: 20rpx;
|
||||
width: 690rpx;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<company-list :companyitem="item" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
</view>
|
||||
</block>
|
||||
</block> -->
|
||||
<view class="newPeojectList">
|
||||
<view style="background-color: #fff;padding: 20rpx 30rpx;">
|
||||
<view v-for="(item,index) in policyContentList" :key="index"
|
||||
style="position: relative; display: flex;align-items: center;padding: 20rpx 0;border-bottom:1rpx solid #ddd;"
|
||||
@click="toArticleDetail(item)">
|
||||
<view v-if="!item.isRead" class="point"></view>
|
||||
<image src="../../static/img/policy_icon.png"
|
||||
style="width: 60rpx;height:60rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image>
|
||||
<view style="font-size: 32rpx;">{{ item.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<empty v-if="policyContentList.length<=0" content="暂无最新资讯" mrTop="300"></empty>
|
||||
</view>
|
||||
<!-- <view class="nothing" v-if="data.length === 0">
|
||||
<image src="/static/img/pic_notask.svg" mode=""></image>
|
||||
<view class="nothingContnt">
|
||||
暂无政策信息
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
// import companyList from '@/components/companyList/applyList.vue';
|
||||
import {
|
||||
getNewsPolicyList
|
||||
} from '@/api/mission.js';
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
// companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
policyContentList: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function({
|
||||
type
|
||||
}) {
|
||||
this.id = type
|
||||
},
|
||||
onShow() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh: function() {
|
||||
this.init()
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.current = 1
|
||||
this.policyContentList = []
|
||||
this.getData()
|
||||
},
|
||||
toArticleDetail(item) {
|
||||
if (!item.isRead) {
|
||||
this.news.data[this.id].navigateTo(item, this.$store.dispatch)
|
||||
}
|
||||
if (item.id) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/policyDetail?id=${item.id}`
|
||||
})
|
||||
}
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
let ids = ["1767522008019800065", "1767523160165748738"]
|
||||
// let type = 0
|
||||
// 岗位
|
||||
// let ids = ["1758500271264247823","1758500271264247824","1758500271264247825","1758500271264247826","1758500271264247827"]
|
||||
// let type = 1
|
||||
getNewsPolicyList(ids).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.policyContentList = [];
|
||||
}
|
||||
this.current += 1;
|
||||
// this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
this.policyContentList = res.data.data;
|
||||
// console.log(this.policyContentList)
|
||||
}
|
||||
})
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
width: 345px;
|
||||
height: 130px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nothing_text {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
margin-bottom: 20rpx;
|
||||
width: 690rpx;
|
||||
}
|
||||
|
||||
.point {
|
||||
position: absolute;
|
||||
top: 38rpx;
|
||||
left: -18rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: red;
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
@@ -1,154 +1,185 @@
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <view class="tab">
|
||||
<v-tabs :tabs="['全部任务','全部岗位']" v-model="activeTab" color="#999" activeColor="#000" fontSize="36rx"
|
||||
activeFontSize="36rpx" @change='changeTab' />
|
||||
</view> -->
|
||||
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<company-list :companyitem="item" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
<!-- <block>
|
||||
<image src="/static/img/tab.orange.svg" mode="" v-if="item.status === 1"></image>
|
||||
<image src="/static/img/tab.blue.svg" mode="" v-else-if="item.status === 2"></image>
|
||||
<image src="/static/img/tab.green.svg" mode="" v-else-if="item.status === 3"></image>
|
||||
<image src="/static/img/tab.gray.svg" mode="" v-else></image>
|
||||
</block> -->
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<empty v-if="data.length === 0" content="暂无岗位信息" mrTop="300"></empty>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
import companyList from '@/components/companyList/newTaskList.vue';
|
||||
import {
|
||||
tuiJianMission
|
||||
} from '@/api/mission.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
data: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh:function(){
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init(){
|
||||
this.current = 1
|
||||
this.data = []
|
||||
this.getData()
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
let ids = ["1758500271264247928","1758500271264247929","1758500271264247930","1758500271264247931","1758500271264247932","1758500271264247933"]
|
||||
let type = 0
|
||||
// 岗位
|
||||
// let ids = ["1758500271264247823","1758500271264247824","1758500271264247825","1758500271264247826","1758500271264247827"]
|
||||
// let type = 1
|
||||
tuiJianMission(ids, type).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.data = [];
|
||||
}
|
||||
this.current += 1;
|
||||
this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
this.data.push(res.data.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<view class="body">
|
||||
<!-- <view class="tab">
|
||||
<v-tabs :tabs="['全部任务','全部岗位']" v-model="activeTab" color="#999" activeColor="#000" fontSize="36rx"
|
||||
activeFontSize="36rpx" @change='changeTab' />
|
||||
</view> -->
|
||||
<block v-for="(page, pIndex) in data" :key="pIndex">
|
||||
<block v-for="(item, index) in page" :key="item.id">
|
||||
<view class="probody">
|
||||
<view v-if="!item.isRead" class="point"></view>
|
||||
<company-list :companyitem="item" @befor="clickBefor" :noApply="false"></company-list>
|
||||
<view class="baddd"></view>
|
||||
<!-- <block>
|
||||
<image src="/static/img/tab.orange.svg" mode="" v-if="item.status === 1"></image>
|
||||
<image src="/static/img/tab.blue.svg" mode="" v-else-if="item.status === 2"></image>
|
||||
<image src="/static/img/tab.green.svg" mode="" v-else-if="item.status === 3"></image>
|
||||
<image src="/static/img/tab.gray.svg" mode="" v-else></image>
|
||||
</block> -->
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<empty v-if="data.length === 0" content="暂无岗位信息" mrTop="300"></empty>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import vTabs from '@/components/v-tabs/v-tabs.vue';
|
||||
import companyList from '@/components/companyList/newTaskList.vue';
|
||||
import {
|
||||
tuiJianMission
|
||||
} from '@/api/mission.js';
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
data: [],
|
||||
activeTab: 0,
|
||||
current: 1,
|
||||
size: 10,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
onLoad: function({
|
||||
type
|
||||
}) {
|
||||
this.id = type
|
||||
},
|
||||
onShow() {
|
||||
this.init()
|
||||
},
|
||||
/*页面滚动到底部 换页*/
|
||||
onReachBottom: function() {
|
||||
if (this.current <= Math.ceil(this.total / this.size)) {
|
||||
this.getData();
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '已经是最后一页',
|
||||
})
|
||||
}
|
||||
},
|
||||
/*下拉刷新*/
|
||||
onPullDownRefresh: function() {
|
||||
this.init()
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.current = 1
|
||||
this.data = []
|
||||
this.getData()
|
||||
},
|
||||
getData() {
|
||||
var status = Number(this.activeTab) + 1
|
||||
// 任务
|
||||
let ids = ["1758500271264247928", "1758500271264247929", "1758500271264247930", "1758500271264247931",
|
||||
"1758500271264247932", "1758500271264247933"
|
||||
]
|
||||
let type = 0
|
||||
// 岗位
|
||||
// let ids = ["1758500271264247823","1758500271264247824","1758500271264247825","1758500271264247826","1758500271264247827"]
|
||||
// let type = 1
|
||||
tuiJianMission(ids, type).then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (this.current === 1) {
|
||||
this.data = [];
|
||||
}
|
||||
this.current += 1;
|
||||
this.total = res.data.data.total;
|
||||
if (res.data.data && res.data.data.length) {
|
||||
console.log(this.data)
|
||||
this.data.push(res.data.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
clickBefor(item) {
|
||||
if (!item.isRead) {
|
||||
this.news.data[this.id].navigateTo(item, this.$store.dispatch)
|
||||
}
|
||||
},
|
||||
gomap: function() {
|
||||
uni.navigateTo({
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
changeTab: function(e) {
|
||||
this.activeTab = e;
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tab {
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.probody image {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.probody {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.baddd {
|
||||
background: #f6f6f6;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.nothing {
|
||||
height: 100%;
|
||||
padding-top: 50%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nothing image {
|
||||
width: 400rpx;
|
||||
height: 200rpx;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nothingContnt {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-top: 30rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.point {
|
||||
position: absolute;
|
||||
top: 32rpx;
|
||||
left: 20rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
background: red;
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
@@ -126,7 +126,11 @@
|
||||
</u-form-item>
|
||||
<u-form-item label="详细地址" prop="address" borderBottom labelWidth="80" ref="item1">
|
||||
<u--input v-model="info.address" border="none" placeholder="请输入详细地址"></u--input>
|
||||
<!-- <lin-select :list="addressOptions" value-key="location" name-key="title" max-height="180"
|
||||
:loading="loading" loading-text="数据加载中" placeholder="请输入详细地址" @input="selectInput"
|
||||
v-model="info.address" @confirm="selectConfirm" /> -->
|
||||
</u-form-item>
|
||||
|
||||
<map class="map" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
|
||||
</u--form>
|
||||
<u-button type="primary" text="提交" customStyle="margin-top: 50px" @click="submit"></u-button>
|
||||
@@ -172,9 +176,17 @@
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
import {
|
||||
querySearch
|
||||
} from '../../../api/map'
|
||||
import {
|
||||
debounce
|
||||
} from '@/untils/tools.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
addressOptions: [],
|
||||
loading: false,
|
||||
latitude: 31.05, //中心点
|
||||
longitude: 104.20,
|
||||
covers: [{ //marker标记位置
|
||||
@@ -399,7 +411,6 @@
|
||||
}
|
||||
this.getWorkTypes()
|
||||
this.dictionary()
|
||||
console.log(this.area)
|
||||
},
|
||||
watch: {
|
||||
company(val) {
|
||||
@@ -409,6 +420,15 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
selectInput: debounce(function(val) {
|
||||
// querySearch(val, '3CXBZ-SKHCL-QC6PH-MLJAE-ZYCFK-6MBR5').then(res => {
|
||||
// console.log(res)
|
||||
// if (res.data.status === 0) {
|
||||
// this.addressOptions = res.data.data;
|
||||
// }
|
||||
// });
|
||||
}, 600),
|
||||
selectConfirm() {},
|
||||
onBlurWage(value) {
|
||||
const val = this.wallMaxAndMin
|
||||
if (!val.length) {
|
||||
@@ -623,6 +643,8 @@
|
||||
if (!this.info.wageUnitCategory) {
|
||||
return this.$api.msg('请选择参考工资单位')
|
||||
}
|
||||
params.lon = that.longitude
|
||||
params.lat = that.latitude
|
||||
submitInfo(params).then(res => {
|
||||
if (res.data.code == 200) {
|
||||
that.reset()
|
||||
|
||||
@@ -618,6 +618,8 @@
|
||||
if (!this.info.wageUnitCategory) {
|
||||
return this.$api.msg('请选择参考工资单位')
|
||||
}
|
||||
params.lon = that.longitude
|
||||
params.lat = that.latitude
|
||||
submitInfo(params).then(res => {
|
||||
if (res.data.code == 200) {
|
||||
that.reset()
|
||||
|
||||
Reference in New Issue
Block a user