更新
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
<view class="content">
|
||||
<view class="typeButtonWrapper">
|
||||
<view class="typeButtonLeft">
|
||||
|
||||
<view v-for="(item, index) in nonReactiveArray" :key="index" v-show="(activeTab!=2)&&(index==1||index==0)"
|
||||
:class="['typeButton', index == activeTab ? 'activeButton' : '']" @click="changeTab(index)">{{ item
|
||||
}}</view>
|
||||
<view v-for="(item, index) in nonReactiveArray" :key="index"
|
||||
v-show="(activeTab != 2) && (index == activeTab)"
|
||||
:class="['typeButton', index == activeTab ? 'activeButton' : '']" @click="changeTab(index)">{{
|
||||
item
|
||||
}}</view>
|
||||
</view>
|
||||
<!-- 筛选 -->
|
||||
<!-- <view class="screenButton" @click="showPopUp = true">
|
||||
@@ -77,7 +78,9 @@
|
||||
完善技能
|
||||
</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" @click="goPolicyInfo(item.id)">
|
||||
<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"
|
||||
@click="goPolicyInfo(item.id)">
|
||||
<image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image>
|
||||
<view style="font-size: 26rpx;">{{ item.articleTitle }}</view>
|
||||
</view>
|
||||
@@ -99,7 +102,7 @@ import {
|
||||
recommendMission,
|
||||
nearMission
|
||||
} from '@/api/mission.js';
|
||||
import {getPolicyContent} from '@/api/newIndex.js'
|
||||
import { getPolicyContent } from '@/api/newIndex.js'
|
||||
import {
|
||||
getcoder
|
||||
} from "@/api/map.js";
|
||||
@@ -108,7 +111,7 @@ import verticalMenu from '@/components/vertical-menu/vertical-menu.vue';
|
||||
export default {
|
||||
components: {
|
||||
vTabs,
|
||||
companyList,
|
||||
companyList,
|
||||
verticalMenu,
|
||||
workList
|
||||
},
|
||||
@@ -120,7 +123,7 @@ export default {
|
||||
companyList: [],
|
||||
recommendList: [],
|
||||
newList: [],
|
||||
|
||||
|
||||
nearPage: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
@@ -149,7 +152,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad: function (option) {
|
||||
if(option.tabIndex) {
|
||||
if (option.tabIndex) {
|
||||
this.activeTab = option.tabIndex
|
||||
}
|
||||
this.getData()
|
||||
@@ -249,9 +252,9 @@ export default {
|
||||
url: '../mapSeach/mapSeach'
|
||||
})
|
||||
},
|
||||
getPolicy(){
|
||||
getPolicyContent(1).then(res=>{
|
||||
this.policyContentList=res.data.data.records
|
||||
getPolicy() {
|
||||
getPolicyContent(1).then(res => {
|
||||
this.policyContentList = res.data.data.records
|
||||
})
|
||||
},
|
||||
changeTab: function (e) {
|
||||
@@ -270,16 +273,16 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
goPolicyInfo(data){
|
||||
if(data){
|
||||
goPolicyInfo(data) {
|
||||
if (data) {
|
||||
// var val=encodeURIComponent(data)
|
||||
|
||||
|
||||
uni.navigateTo({
|
||||
url:`/pages/user/policyContent?id=${data}`
|
||||
url: `/pages/user/policyContent?id=${data}`
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
else {
|
||||
// uni.showToast({
|
||||
// title:'暂无内容',
|
||||
// icon:'none'
|
||||
@@ -396,8 +399,8 @@ export default {
|
||||
closePopUp() {
|
||||
this.showPopUp = false
|
||||
},
|
||||
subMitPopUp({submitData,areaModal,industryModal}) {
|
||||
console.log(submitData,areaModal,industryModal,"------确定");
|
||||
subMitPopUp({ submitData, areaModal, industryModal }) {
|
||||
console.log(submitData, areaModal, industryModal, "------确定");
|
||||
this.showPopUp = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user