| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970 | <template name="apps">	<view>		<view :class="['custom-header', { 'is-back': isBack }, bgColor]">			<view class="back-container" @click="handleBack">			  <view class="back-text">返回</view>			</view>			<view class="content-container">			  <view class="content-text">企业大走访</view>			</view>		  </view>				<swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000" :duration="800">		  <swiper-item v-for="(item, index) in picture" :key="index">		    <image :src="item" class="swiper-item"></image>		  </swiper-item>		</swiper>		<!-- <view >			<view class="btn-box-1-1 mart-t">				涉企政策集锦			</view>		</view>				<view @click="totongxunlu511" style="display: flex;margin-top: 30rpx;margin-left: 20rpx;padding-left:20rpx ;margin-right:20rpx ;background-color: #FFFF0021;height: 92rpx;align-items: center;">			<image src="/static/img/laba.png" style="width: 42rpx;height: 42rpx;"></image>			<swiper class="swiper2" vertical circular  :autoplay="true" :interval="3000" :duration="800">			  <swiper-item v-for="(item, index) in picture" :key="index">			      <view style="color: #F9AE3D; font-size: 28rpx;padding-left: 10rpx;display: flex;align-items: center;"> 盐城市关于加快推进新型工业化若干政策措施的通知 </view>			  </swiper-item>			</swiper>					</view> -->						<view class="line-box" style="margin-top: 80rpx;">									<view class="center-box">				<view class="kuai-text"></view>												<view class="center-left-box">					<!-- 企业 -->					<view class="btn-Imbox" @click="totongxunlu3" v-if="roleIds=='38a14f1f42ed424eab4cb5d489596b0d'">						<image  class="center-img" src="/static/img/cd1.png"></image>						<p>问题诉求{{p1}}</p>					</view>					<!-- 企业 -->					<view class="btn-Imbox" @click="totongxunlu4" v-if="roleIds=='38a14f1f42ed424eab4cb5d489596b0d'">						<image  class="center-img" src="/static/img/cd2.png"></image>						<p>满意度评价{{p2}}</p>					</view> 					<!-- 企业 -->					<view class="btn-Imbox" @click="totongxunlu3" v-if="roleIds=='38a14f1f42ed424eab4cb5d489596b0d'">						<image  class="center-img" src="/static/img/cd3.png"></image>						<p>诉求记录</p>					</view>															<!-- 挂钩干部 -->					<view class="btn-Imbox" @click="totongxunlu25" v-if="roleIds=='1915280292672946177'">						<image  class="center-img" src="/static/img/cd5.png"></image>						<p>服务对接</p>					</view>					<!-- 挂钩干部或大走访办公室或交办部门 -->					<view class="btn-Imbox" @click="totongxunlu3" v-if="roleIds=='1915280292672946177'||roleIds=='1910175386924417025'||roleIds=='1910175949166673921'">						<image  class="center-img" src="/static/img/cd4.png"></image>						<p>问题处理{{p1}}</p>					</view>										<!-- 大走访办公室或交办部门 -->					<view class="btn-Imbox" @click="totongxunlu5" v-if="roleIds=='1910175386924417025'||roleIds=='1910175949166673921'">						<image  class="center-img" src="/static/img/cd6.png"></image>						<p>进度统计</p>					</view>															<view  v-if="isLogin!=null" class="btn-Imbox" @click="totongxunlu7">						<image  class="center-img" src="/static/img/setting.png"></image>						<p>个人信息</p>					</view>											</view>																									</view>															<view   @click="outlogin" class="fixed-bottom-right" v-if="isLogin!=null">				<image  class="center-img2" src="/static/img/icon_logout.png"></image>			</view>								</view>	</view></template><script>	import loginService from "@/api/auth/loginService";	import uniFab from '@/components/uni-fab/uni-fab.vue';	import DoublePicker from '@/components/DoublePicker/DoublePicker.vue'	import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";	import MescrollMoreItemMixin from "@/components/mescroll-uni/mixins/mescroll-more-item.js";	import {mapActions} from 'vuex'	import * as $auth from "../../common/auth"	export default {		mixins: [MescrollMixin, MescrollMoreItemMixin], // 使用mixin (在main.js注册全局组件)		name: "apps",		components: {			uniFab,			DoublePicker		},		data() {			return {				isBack: true, // 是否显示返回按钮				backText: '返回', // 返回按钮的文本				bgColor: 'bg-blue', // 背景颜色								isLogin:"",				roleIds:'',				pageInfo: {},				loginid:"",				p1:"",				p2:"",				stype: "", // 企业 => 3  楼宇 => 2  园区 => 1  zfadmin => 4  admin=> 5								searchForm: {					des1:"",					industry:"",					name:"",				},				picture:["https://miniapp.huidutech.com.cn/yd_qycpfbH5/workBenchBannar.jpg",				"https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg1.jpg",				"https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg2.jpg",				"https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg3.jpg",				"https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg4.jpg"],				curWord: "", //当前搜索关键词				dataList: [], // 数据列表				modalName: null,				tablePage: {					total: 0,					currentPage: 1,					pageSize: 10,					orders: []				},				loading: false,				parkId: '',				parkList: [],				parkList2: [],				parkList3: [],				parkList4: [],				ddd1:"" ,			};		},		onLoad(query) {			if(query!=undefined&&query!=null&&query!=''){				if(query.loginid!=undefined){					this.loginid=query.loginid					this.autoLogin();				}						}									this.roleIds= $auth.getUserInfo().roleIds;								loginService.getDelCount().then(({				data			}) => {				if(data.qcount!='0'){					this.p1="("+data.qcount+")";				}				if(data.pcount!='0'){					this.p2="("+data.pcount+")";				}			}).catch((e) => {				uni.hideLoading();			})								},		onShow() {			this.isLogin=this.$auth.checkisLogin();		},				created() {					},		methods: {			...mapActions(['refreshUserInfo']),						//选择产业链环节			getParkList3() {				loginService.getIndustryChainList({				}).then(({					data				}) => {					// this.parkList3 = data.map((item) => {					// 	return {					// 		label: item.bz2,					// 		value: item.bz2					// 	}					// });					this.parkList3=[{label: '上游',value: '上游'},{label: '中游',value: '中游'},{label: '下游',value: '下游'}]										this.parkList4 = data					    .map((item) => {					        const match = item.bz2.match(/\((.*?)\)/); // 匹配括号内的内容					        if (match) {					            return {					                label: match[1], // 括号内的内容					                value: match[1] // 括号内的内容					            };					        }					        return null; // 如果没有括号,返回 null					    })					    .filter((item) => item !== null) // 过滤掉 null 值						.reduce((acc, current) => {							// 使用 Set 去重							const existingItem = acc.find((item) => item.value === current.value);							if (!existingItem) {							  acc.push(current);							}							return acc;						  }, []);										this.parkList3.unshift({					    label: "全部",					    value: ""					});					this.parkList4.unshift({					    label: "全部",					    value: ""					});									}).catch(e => {					console.log(e)				})			},												/*获取数据列表 */			upCallback(page) {				//this.loading = true				this.mescroll.endBySize(3, 3);				this.dataList=[{"name":"企业大走访","des":"企业在遇到问题时,可随时填写问题反馈,相关部门会协助企业解决问题,及时跟进相关问题,更好的服务企业。"},				{"name":"都企供需","des":"企业供需、产业图谱、重点园区、产品分布是区域经济发展的重要组成部分。产业图谱解析产业链上下游关系,重点园区承载产业集聚发展,产品分布反映区域产业特色,共同推动区域经济高质量发展。"},				{"name":"涉企政策","des":"对企业的相关优惠政策,我们会及时更公布,让企业更好更精准的了解相关政策优惠,决定企业走向。"}];											},						gotoBuildInfo(name) {				if(name=='企业大走访'){					uni.navigateTo({						url: '/pages/question/questionList'					})				}else if(name=='都企供需'){					uni.navigateTo({						url: '/pages/index/index'					})				}else{					uni.navigateTo({						url: '/pages/policy/policyList'					})				}											},						updateCities(newCities) {			      this.cities = newCities;			},									// 搜索			doSearch() {								if(this.ddd1.column2!=''&&this.ddd1!=''){					this.searchForm.bz2=this.ddd1.column1+'('+this.ddd1.column2+')';				}else if(this.ddd1!=''){					this.searchForm.bz2=this.ddd1.column1;				}								this.dataList = []; // 先清空列表,显示加载进度				this.mescroll.resetUpScroll();			},						totongxunlu(){				uni.navigateTo({					url: '/pages/comList/comList'				})			},						totongxunlu2(){				uni.navigateTo({					url: '/pages/buildList/buildList2?w=1'				})			},			totongxunlu3(){						//window.location.href = "https://dlt.yczgsz.com/mini/pageEnterpriseVisit/workbench/workbench"				uni.navigateTo({					url: '/pages/question/questionList'				})			},			totongxunlu6(){				uni.navigateTo({					url: '/pages/buildList/buildList?w=1'				})			},			totongxunlu4(){				uni.navigateTo({					url: '/pages/question/questionList?w=2'				})			},			totongxunlu5(){															uni.navigateTo({					url: '/pages/progress/progressStatistics'				})			},						totongxunlu7(){															uni.navigateTo({					url: '/pages/user/person/person'				})			},						totongxunlu511(){															uni.navigateTo({					url: '/pages/policy/policyList'				})			},									totongxunlu25(){															uni.navigateTo({					url: '/pages/service/LyService'				})			},						totongxunlu22(){				uni.navigateTo({					url: '/pages/buildList/buildList3?w=1'				})			},			totongxunlu23(){				uni.navigateTo({					url: '/pages/buildList/buildList3?w=2'				})			},						getPageInfo() {			  loginService.InfoStatistics({}).then(({ data }) => {			    this.pageInfo = data;								//103改为 14/103								//this.pageInfo.industryc="14/"+this.pageInfo.industryc;							  });									},						autoLogin(){			  	console.log("登录id"+this.loginid);							loginService.loginid( this.loginid).then(({data}) => {				  this.$store.commit('SET_TOKEN',data.token);				  this.refreshUserInfo();				  				}).catch(e => {				  console.error(e)				})				},			getRole() {				let userInfo = uni.getStorageSync('WMS-userinfo')				var officeId = userInfo.officeDTO.id;				var roleIds = userInfo.roleIds;				if (roleIds.indexOf("17bac1f980264e3e8193bc965538e2c6") != -1) {					//// 管理员					this.stype = 5					uni.setStorageSync('stype', this.stype);				} else if (roleIds.indexOf("ade960e8f02544998b07397304c059c1") != -1) {					// 政府管理员					this.stype = 4					uni.setStorageSync('stype', this.stype);				} else {					console.log('==================>这里走了么','================>存一个stape')					loginService						.getOtherIdByOffceid({							officeid: officeId,						})						.then(({							data						}) => {							console.log(data, "====================>getOtherIdByOffceid");							this.stype = data.stype;							uni.setStorageSync('stype', this.stype);						});				}							},						toOut() {				//window.location.href = "https://miniapp.huidutech.com.cn/yd_qycpfbH5/#/"				window.location.href = "https://dlt.yczgsz.com/mini/pageEnterpriseVisit/workbench/workbench"							},            outloginset(){								loginService.logout().then(({					data				}) => {					this.$store.commit('logout');					uni.clearStorage();									})								this.$store.commit('logout');				uni.clearStorage();				this.isLogin=this.$auth.checkisLogin();				uni.hideLoading()			},			outlogin() {				uni.showModal({					title: '您确认退出么?',					showCancel: true,					success: (res) => {						if (res.confirm) {							uni.showLoading()							this.outloginset();							// uni.reLaunch({							// 	url: '/pages/login/login'							// })						}					}				});			},			tces() {				uni.navigateTo({					url: '/pages/index/AudioToWord'				})			},						// ListTouch触摸开始			ListTouchStart(e) {				this.listTouchStart = e.touches[0].pageX			},						// ListTouch计算方向			ListTouchMove(e) {				this.listTouchDirection = e.touches[0].pageX - this.listTouchStart > -60 ? 'right' : 'left'			},						// ListTouch计算滚动			ListTouchEnd(e) {				if (this.listTouchDirection == 'left') {					this.modalName = e.currentTarget.dataset.target				} else {					this.modalName = null				}				this.listTouchDirection = null			},			handleBack() {			      // 返回逻辑,比如跳转至上一页				  this.$router.go(-1);			      console.log('返回按钮被点击');			}		}	}</script><style>	.page {		height: 100vh;	}	.line-box {		padding-left: 20rpx;		padding-right: 20rpx;		margin-top: 20rpx;	}	.mart-t {		margin-top: 30rpx;	}		.center-box{		margin-top: 20rpx;		width: 100%;		border-radius: 25rpx;		border-radius: 25rpx;				background: #fff;		box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);		padding-bottom: 30rpx;		display: flex;		flex-wrap: wrap;	}		.center-left-box {		width: 100%;				margin-top: 20rpx;		padding-bottom: 30rpx;		display: flex;		flex-wrap: wrap;	}		.btn-box-text {		flex:1;		height: 20rpx;		text-align: center;		color: #000000;		font-size: 14px;		font-weight: 700;	}	.btn-box-1 {		flex:1;		height: 30rpx;		text-align: center;		color: #36A7F3;		font-size: x-large;		font-weight: 700;	}		.btn-box-1-1 {		height: 30rpx;		text-align: left;		color: #269ff8;		font-size:large;		margin-left:30rpx ;		font-weight: 600;	}	.btn-box-2 {		flex:1;		height: 30rpx;		text-align: center;		color:#F3365A;		font-size: x-large;		font-weight: 700;	}	.btn-box-3 {		flex:1;		height: 30rpx;		text-align: center;		color:#15D578;		font-size: x-large;		font-weight: 700;	}	.btn-box-4 {		flex:1;		height: 30rpx;		text-align: center;		color:#F1A31B;		font-size: x-large;		font-weight: 700;	}		.btn-Imbox {		flex:1;		height: 150rpx;		padding-top: 8rpx;		text-align: center;		display: flex;		flex-direction: column;		justify-content: center; /* 子元素内部内容竖向居中 */		align-items: center; /* 子元素内部内容水平居中 */		text-align: center; /* 文字居中 */			}	.btn-Imbox p {	  font-size: 14px; /* 文字大小,可根据需要调整 */	  margin: 0; /* 去掉默认的外边距 */	  font-weight: 700;	}		.center-img{		width: 70rpx;		height: 70rpx;		margin-bottom: 10rpx;		text-align: center;	}		.center-img2{		width: 70rpx;		height: 70rpx;		margin-top: 10rpx;		margin-bottom: 20rpx;		text-align: center;	}		.kuai-text{		color: #000000;		font-weight: 900;		font-size: 34rpx;		padding-top: 20rpx;		padding-left: 20rpx;		margin-bottom: 20rpx;	}	.btn-box-5 {		width: 337rpx;		height: 200rpx;		background-image: url('../../static/img/btn3.png');		background-size: 100% 100%;	}	.btn-box-6 {		width: 337rpx;		height: 200rpx;		background-image: url('../../static/img/btn6.png');		background-size: 100% 100%;	}	.h-200 {		height: 200rpx;	}	.swiper {		width: 750rpx;		height: 310rpx;	}	.swiper-item {		width: 750rpx;		height: 310rpx;		background-color: aliceblue;	}		.swiper2 {		width: 750rpx;		height: 42rpx;			}		.swiper2-item {		width: 750rpx;		height: 42rpx;		background-color: #F9AE3D;	}	.font-size-35 {		font-size: 35px !important;	}	.img-size {		width: 80rpx;		height: 80rpx;	}	.content-box {		width: 437rpx;		height: 200rpx;	}	.my-app .padding-sm {		padding: 6px;	}	.grid .padding-sm .bg-white {		box-shadow: 0 1px 4px #f9f9f9, 1px 1px 40px rgba(0, 0, 0, .06);	}	.bg-blue {		background: #fff;		color: #0081ff !important;	}	.text-white,	.line-white,	.lines-white {		color: #0081ff !important;	}					.cu-bar .search-form {		background-color: white;	}			.item-box{		width: 710rpx;		background: #FFFFFF;		box-shadow: 0px 1px 3px 0px rgba(9,2,4,0.1);		border-radius: 10px;		padding-top: 20rpx;		padding-left: 38rpx;		padding-right: 10rpx;		margin-top: 20rpx;	}		.item-title{		position: relative;		display: flex;		justify-content: space-between;		font-size: 30rpx;		color: #010101;		font-weight: bold;		align-items: center;	}		.item-line{		display: flex;		height: 48rpx;		margin-top: 20rpx;	}		.item-line2{				height: 48rpx;		margin-top: 20rpx;	}		.subtitle{		color: #E5880E;	}		.item-name{		margin-top: 5rpx;		font-size: 29rpx;		color: #666666;	}		.item-name2{		font-size: 29rpx;		color: #676D99;	}		.item-name3{		display: flex;		width: 100%;		padding-right: 30rpx;		flex: 1;		justify-content: flex-end;		font-size: 29rpx;		color: #676D99;	}		.item-content{		color: #1497EF;		font-size: 30rpx;	}		.btn-box{		display: flex;	}		.line-zs{		width: 2rpx;		height: 30rpx;		background: #36A7F3;	}		.edit-botton{		width: 100rpx;		height: 48rpx;		line-height: 48rpx;		color: #fff;		font-size: 28rpx;		margin-right: 20rpx;		border-radius: 10rpx;		background: #5A9EE9;		text-align: center;	}		.del-botton{		width: 100rpx;		height: 48rpx;		line-height: 48rpx;		color: #fff;		font-size: 28rpx;		margin-right: 20rpx;		border-radius: 10rpx;		background: #F27C85;		text-align: center;	}		.color-white{		color: #808080;		font-size: 40rpx;		line-height: 60rpx;	}		.search-box{		padding-left: 20rpx;		padding-right: 20rpx;			padding-top: 20rpx;		margin-top: 20rpx;		width: 100%;		border-radius: 25rpx;		border-radius: 25rpx;				background: #fff;		box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);		padding-bottom: 30rpx;		display: flex;		flex-wrap: wrap;	}		.search-box1{		display: flex;	}				.input-box{		background: #fff;		height: 65rpx;		width: 640rpx;		display: flex;		align-items: center;		border-radius: 30rpx;		padding-left: 30rpx;		margin-right: 20rpx;	}		.input-boxinput{		height: 75rpx;		font-size: 15rpx;	}				.choose-box{		background: #fff;		width: 325rpx;		border-radius: 23rpx;		height: 70rpx;		display: flex;		align-items: center;		justify-content: center;		margin-right: 20rpx;		border: 1rpx  solid #808080;	}		.choose-box2{		background: #fff;		width: 100%;		border-radius: 23rpx;		height: 70rpx;		display: flex;		padding-left: 29rpx;		align-items: center;		border: 1rpx  solid #808080;	}		.choose-box3{		display: flex;	}		.choose-boxp{		font-size: 32rpx;		width: 80rpx;	}		.fixed-bottom-right {		padding: 20rpx;	  position: fixed;	  bottom: 20px; /* 距离底部的距离 */	  right: 20px; /* 距离右侧的距离 */	}			.item-box{				display: flex;				width: 710rpx;		margin-left: 20rpx;		background: #FFFFFF;		box-shadow: 0px 1px 3px 0px rgba(9,2,4,0.1);		border-radius: 10px;		padding-top: 20rpx;		padding-left: 20rpx;		padding-right: 10rpx;		padding-bottom: 20rpx;		margin-top: 20rpx;	}		.item-title-L{		display: flex;		width: 70%;		margin-left: 28rpx;		flex-direction: column;	}		.item-title{		font-size: 30rpx;		color: #333;		font-weight: bold;		align-items: center;	}	.item-des{		margin-top: 10rpx;		color: #565656;							font-size: 24rpx;		overflow: hidden; /* 超出部分隐藏 */		text-overflow: ellipsis; /* 超出部分显示省略号 */		display: -webkit-box; /* 使用Webkit的行盒模型 */		-webkit-line-clamp: 3; /* 限制最多显示2行 */		-webkit-box-orient: vertical; /* 垂直排列 */			}	/* 返回 */	.item-img {		width: 100rpx;		height: 100rpx;	}		/* 返回 */	.item-img {		width: 160rpx;		height: 160rpx;	}		.custom-header {	  display: flex;	  align-items: center;	  justify-content: center;	  padding: 10px;	  width: 100%;	}		.is-back {	  position: relative;	}		.back-container {	  position: absolute;	  left: 10px;	  cursor: pointer;	}		.back-text {	  color: white; /* 返回按钮文本颜色 */	}	.back-text {	  color: white; /* 返回按钮文本颜色 */	}	.content-container {	  flex: 1;	  text-align: center;	}		.content-text {	  color: white; /* 标题文本颜色 */	  font-weight: bold;	}		/* 背景颜色 */	.bg-blue {	  background-color: #4285f4; /* 假设这是一个蓝色背景 */	}</style>
 |