menc 2 yıl önce
ebeveyn
işleme
82147597cd

+ 49 - 0
pages/early_warning_list/early_warning_list.js

@@ -0,0 +1,49 @@
+// pages/early_warning_list/early_warning_list.js
+import http from '../../base/httputil'
+const app = getApp()
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    mList: null
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+    if (app.globalToken == null || app.globalToken == '') {
+      return
+    }
+    http.send_get("/system/AppIndexController/getLateInspectionList", null, this.getListSuccess)
+  },
+  getListSuccess(res) {
+    if (res.code == 200) {
+      var popInfo = res.data.late_inspection_list
+      console.log(popInfo)
+      if (res.data != null && res.data.late_inspection_list != null && res.data.late_inspection_list.length > 0) {
+        this.data.mList = res.data.late_inspection_list
+        this.setData({
+          mList: this.data.mList
+        })
+      }
+    }
+  },
+  bindViewDetails(res) {
+    let busInspectionId = res.currentTarget.dataset.item.busInspectionId
+    let buslogid = res.currentTarget.dataset.item.busLogId
+    wx.navigateTo({
+      url: '../zhenggaijindu/zhenggaijindu?busInspectionId=' + busInspectionId + "&buslogId=" + buslogid,
+    })
+  },
+
+})

+ 10 - 0
pages/early_warning_list/early_warning_list.json

@@ -0,0 +1,10 @@
+{
+  "component": true, 
+  "usingComponents": {
+    
+  },
+  "navigationBarBackgroundColor": "#f94b0e",
+  "navigationBarTextStyle": "white",
+  "navigationBarTitleText": "预警"
+
+}

+ 33 - 0
pages/early_warning_list/early_warning_list.wxml

@@ -0,0 +1,33 @@
+<!--pages/early_warning_list/early_warning_list.wxml-->
+<view class="container">
+  <!-- 搜索 -->
+  <!-- <view class="search-container" bindtap="bindViewSearchEnd" >
+    <view class="search-left">
+      <input type="text" placeholder="搜索"  />
+    </view>
+    <button class="search-right">
+      <text class="iconfont icon-sousuo"></text>
+    </button>
+  </view> -->
+ 
+  <!-- 列表 -->
+  <view class="list_vi">
+    <!--循环本行-->
+    <view class="list_li flex-c"  wx:for="{{mList}}" wx:key="index" bindtap="bindViewDetails"
+     data-isrisk="{{item.isRisk}}" data-item='{{item}}'>
+      <view class="list_li_1">
+        <text>巡检项目:{{item.busItemsName}}</text>
+         <!-- <i class="iconfont icon-xiangyou list_right"></i> -->
+      </view>
+      <view class="list_li_1" >
+        <text class="time-text list_li_3">所属企业: {{item.busEnterpriseName}}</text>
+      </view>
+      <view class="list_li_1">
+        <text class="time-text list_li_3"  style="color: red;" wx:if="{{item.mu<0}}">整改到期时间: {{item.latTime}}</text>
+        <text class="time-text list_li_3"  style="color:#FFB915;" wx:if="{{item.mu>0}}">整改到期时间: {{item.latTime}}</text>
+      </view>
+    </view>
+     
+    </view>
+
+</view>

+ 61 - 0
pages/early_warning_list/early_warning_list.wxss

@@ -0,0 +1,61 @@
+/* pages/early_warning_list/early_warning_list.wxss */
+/**index.wxss**/
+
+.qy_con{
+  display: flex;
+  flex-direction: row;
+  justify-content:space-around;
+  text-align: center;
+  margin: 30rpx 30rpx;
+}
+.qy_con view{
+height: 140rpx;
+color: #fff;
+display: flex;
+flex-direction: column;
+padding: 15rpx 40rpx;
+position: relative;
+}
+.qy_con view image{
+  position: absolute;
+  top:0px;
+  left: 0px;
+  width: 100%;
+  height: 100%;
+  z-index: -1;
+  }
+.qy_con view h2{
+  font-size: 58rpx;
+  font-weight: bolder;
+  padding-top: 10rpx;
+  }
+  .qy_con view p{
+    font-size: 35rpx;
+    }
+
+  .flex-c{
+    display: flex;
+    flex-direction: column !important;
+  }
+  .list_li_1, .list_li_2{
+    display: flex;
+  }
+  .list_li_2 .time-text{
+    display: block;
+    font-size: 28rpx !important;
+    color: rgb(168, 168, 168) !important;
+    margin-right: 20rpx;
+}
+.list_li_2 .time-text:nth-child(1){
+    margin-left: 55rpx;
+}
+.list_vi .list_li{
+  display: flex;
+  flex-direction: row;
+  height: auto !important;
+  line-height: 60rpx;
+  padding-bottom: 10rpx;
+}
+.list_li_3{
+  font-size: 30rpx !important;
+}