Sfoglia il codice sorgente

修改前端问题

wzz 4 anni fa
parent
commit
6aba3d9bba

+ 3 - 2
pages/activity/index.vue

@@ -59,7 +59,7 @@
         <div class="readShare">
           <div v-show="active.status == '待开始'" class="active-tips-box wait-color">
              <!-- 活动待开始 -->
-			{{timeStatus}}日开始
+			{{active.timeStatus}}日开始
           </div>
          <div v-show="active.status == '已开始'" class="active-tips-box ing-color">
             活动进行中
@@ -245,6 +245,7 @@ export default {
                 status: "",
                 id: "",
                 status: 0,
+				timeStatus:""
               };
               ob.url = item.pic_url ? getApp().globalData.shareUrl + item.pic_url : '/static/activity/default.png';
               ob.title = item.name;
@@ -253,7 +254,7 @@ export default {
             //  let timeSecond = this.$options.filters["globalTime"](item.end_time);
 			  let timeEnd = this.$options.filters["globalTime"](item.end_time) + ' ' + this.$options.filters["globalTimeSecond"](item.end_time);
               ob.date = timeStart + " 至 " + timeEnd;
-			  this.timeStatus = timeStart.substr(5,5).replace('-', '月').replace(/0/g,'');
+			  ob.timeStatus = (timeStart.substr(5,5)).replace('-', '月');
               ob.read = parseInt(item.base_read_count) + parseInt(item.real_read_count);
               ob.share = parseInt(item.real_repost_count) + parseInt(item.base_repost_count);
               ob.type = item.type;

+ 2 - 1
pages/enterprise/index.vue

@@ -160,7 +160,8 @@ export default {
           "content-type": "application/x-www-form-urlencoded",
         },
         data: {
-          ss_name: this.searchVal, //1.省 2.市 3.区 4.新城
+          ss_name: this.searchVal,
+		  s_pub:1
         },
         success: (res) => {
           if (res.data.code === 200) {

+ 8 - 4
pages/park/index.vue

@@ -35,11 +35,15 @@
 				 <view class="park-content-box">
 					 <view class="park-title">{{item.name || '-'}}</view>
 					 <view class="park-address display-flex-start">
-						 <view class="display-flex-start" style="margin-right: 10rpx;"><image src="/static/park/park-time.png" mode="aspectFill" class="park-title-img"></image>
+						 <view class="display-flex-start" style="margin-right: 10rpx;">
+							 <image src="/static/park/park-time.png" mode="aspectFill" class="park-title-img"></image>
 						 <!-- {{ item.addtime | globalTime }}建成 -->
-						 {{ item.start_date}}建成
+							{{ item.start_date}}建成
+						 </view>
+						 <view class="display-flex-start" style="width: 65%;display:block;text-overflow:ellipsis;white-space:nowrap;overflow: hidden;">
+							 <image src="/static/park/park-name.png" mode="aspectFill" class="park-title-img"></image>
+							 {{item.manager || '-'}}
 						 </view>
-						 <view class="display-flex-start"><image src="/static/park/park-name.png" mode="aspectFill" class="park-title-img"></image>{{item.manager || '-'}}</view>
 					 </view>
 					 <view class="park-footer-box display-between">
 						  <view class="display-between-column width-30">
@@ -55,7 +59,7 @@
 						  <view class="display-between-column" style="width: 33%;">
 							  <view class="display-flex-start">
 								  <image src="/static/park/park-area2.png" mode="aspectFill" class="park-footer-img"></image>
-								  {{item.building_area  || '-'}}<text style="font-size: 18rpx;">万㎡</text></view>
+								  {{Number(item.building_area).toFixed(2)  || '-'}}<text style="font-size: 18rpx;">万㎡</text></view>
 							  <view class="park-footer-font">建设面积</view>
 						  </view>
 					 </view>

+ 7 - 3
pages/policy/search.vue

@@ -47,6 +47,9 @@ export default {
   },
   onLoad(option) {
 	 if(option.val){
+		 uni.showLoading({
+		 	title:'加载中...'
+		 })
 	   this.searchPolicy(option.val) 
 	 } 
   },
@@ -80,9 +83,10 @@ export default {
 				  order_by : 'project_sort_time asc'
 				},
 				success: (res) => {
-          if (res.data.code === 200) {
-            this.policyData = res.data.data.list
-				  }
+						if (res.data.code === 200) {
+							this.policyData = res.data.data.list;
+			                uni.hideLoading()
+						}
 				},
 				fail: () => {
 				  console.log("连接失败");

+ 3 - 3
pages/service/index.vue

@@ -146,10 +146,10 @@ export default {
 	  background-color: #F2F2F2;
   }
   .menus {
-    height: 100%;
+    // height: 100%;
 	display: flex;
 	flex-wrap: wrap;
-	justify-content: center;
+	// justify-content: center;
 	margin-bottom:20rpx;
     .menu {
 		margin: 2%;
@@ -162,7 +162,7 @@ export default {
 	  }
       image {
         width: 100%;
-        height: 100%;
+        height: 140rpx;
 		border-radius: 20rpx;
 		margin-top: 10rpx;
       }