Ver Fonte

停车场须知判断

wkyy há 1 ano atrás
pai
commit
eb90658ea7
1 ficheiros alterados com 15 adições e 1 exclusões
  1. 15 1
      pages/parking/registration.vue

+ 15 - 1
pages/parking/registration.vue

@@ -34,7 +34,7 @@
 			
 			
 		</view>
 		</view>
 		
 		
-		<view class="notice" >
+		<view class="notice" v-if="titleShow">
 			<view class="title">
 			<view class="title">
 				停车场须知
 				停车场须知
 			</view>
 			</view>
@@ -52,6 +52,13 @@
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
+				idList: [
+					'1597417780772667394',
+					'1597520273619877889',
+					'1597419066154876929',
+					'1598241772815319041'
+				],
+				titleShow: false,
 				channelId:'',
 				channelId:'',
 				detail:{},
 				detail:{},
 			 message:"",
 			 message:"",
@@ -61,6 +68,13 @@
 			this.getNewsInfoDetail()
 			this.getNewsInfoDetail()
 			if(op.id){
 			if(op.id){
 				this.channelId=op.id
 				this.channelId=op.id
+				
+				for (var i = 0; i < this.idList.length; i++) {
+					if(this.idList[i] == this.channelId) {
+						this.titleShow = true;
+					}
+				}
+				
 				this.getInfo()
 				this.getInfo()
 			}else{
 			}else{
 				uni.showModal({
 				uni.showModal({