wangzizhong пре 2 година
родитељ
комит
1eff128a42
4 измењених фајлова са 18 додато и 10 уклоњено
  1. 2 0
      App.vue
  2. 3 3
      components/J-Picker/jPicker.vue
  3. 10 3
      pages/heatingPage/list.vue
  4. 3 4
      pages/index/index.vue

+ 2 - 0
App.vue

@@ -91,6 +91,7 @@ export default {
 					getApp().globalData.user_status = res.data.data.status;
 					getApp().globalData.user_phone = res.data.data.phone;
 					getApp().globalData.nowTime = this.getNowTime();
+					uni.setStorageSync('openId', res.data.data.openid);
 				//	uni.hideLoading() 
 	  			}
 	  		},
@@ -99,6 +100,7 @@ export default {
 	  		}
 	  	});
 	  },
+	  
   }
 };
 </script>

+ 3 - 3
components/J-Picker/jPicker.vue

@@ -5,7 +5,7 @@
 				{{listData[nSel][showKey]||listData[nSel]}}
 			</view>
 			<view style="color:#7d7d7d;" v-else>
-				未选择
+				请选择小区
 			</view>
 		</view>
 
@@ -13,7 +13,7 @@
 			<view class="alertArea JAnimateBtmIn" @click.stop="doNothing">
 				<view class="searchInput " v-if="searchPosition=='top'">
 					<view class="clickArea">
-						<input class="jInput" placeholder-style="color:#ffffff"  @input="filterOp" placeholder="搜索列表..." />
+						<input class="jInput" placeholder-style="color:#ffffff"  @input="filterOp" placeholder="搜索小区名称..." />
 						<!-- <image class="searchLogo" src="../../static/search.png"></image> -->
 						<icon  class="searchLogo" type="search" />
 					</view>
@@ -58,7 +58,7 @@
 			return {
 				listData: this.options,
 				nSel: -1,
-				pickerVisable: false,
+				pickerVisable: true,
 				searchPosition: "middle",
 				//picker样式
 				// unSelStyle:'',

+ 10 - 3
pages/heatingPage/list.vue

@@ -34,7 +34,7 @@
 				{{item.time}}
 			</view>  
 			<view class="display-flex-start">
-				<view class="notice-content-time" style="color: #d9001b;">{{statusObj[item.type]}}</view>
+				<view class="notice-content-time" :style="{color:statusColor[item.status]}">{{statusObj[item.type]}}</view>
 			</view>
           </view>
         </view>
@@ -53,9 +53,16 @@ export default {
       themeColor: "#007AFF",
       heatList: [],
 	  statusObj:{
+		  '0':'未缴费',
 		  '1':'已缴费',
-		  '2':'待缴费',
-		  '3':'空置已缴费'
+		  '2':'空置已缴费',
+		  '3':'空置转全额'
+	  },
+	  statusColor:{
+		  '0':'#D9001B',
+		  '1':'#70B603',
+		  '2':'#4B7902',
+		  '3':'#BFBF00',
 	  }
     };
   },

+ 3 - 4
pages/index/index.vue

@@ -17,7 +17,6 @@
         autoplay="true"
         duration="500"
         style="height: 440rpx"
-        @change="swiperChange"
       >
         <swiper-item
           v-for="(item, index) in swiperList"
@@ -90,7 +89,7 @@
 				{{item.time}}
 			</view>  
 			<view class="display-flex-start">
-				<view class="notice-content-time" style="">{{statusObj[item.status]}}</view>
+				<view class="notice-content-time" :style="{color:statusColor[item.status]}">{{statusObj[item.status]}}</view>
 			</view>
           </view>
         </view>
@@ -156,7 +155,7 @@ export default {
   },
   onShow() {
     uni.hideTabBar({});
-    this.getHeatList();
+	this.getHeatList()
   },
   onLoad() {
     // uni.showLoading({
@@ -244,7 +243,7 @@ export default {
       let postData = {
         // page: 1,
         // page_size: 2,
-		openId:getApp().globalData.open_id
+		openId:getApp().globalData.open_id ? getApp().globalData.open_id : uni.getStorageSync('openId')
       };
       uni.request({
         url: url,