menc hace 2 años
padre
commit
3c849b1cb3

+ 1 - 1
app.js

@@ -2,7 +2,7 @@
 App({
   globalToken: null,
   globalData:{
-    host : "http://ccsjkj.top:4002"
+    host : "http://sookajs.top:4002"
   },
   isLoginSuccess:false,
 })

+ 1 - 0
pages/early_warning_list/early_warning_list.js

@@ -26,6 +26,7 @@ Page({
     }
     http.send_get("/system/AppIndexController/getLateInspectionList", null, this.getListSuccess)
   },
+  
   getListSuccess(res) {
     if (res.code == 200) {
       var popInfo = res.data.late_inspection_list

+ 1 - 0
pages/early_warning_list/early_warning_list.json

@@ -7,4 +7,5 @@
   "navigationBarTextStyle": "white",
   "navigationBarTitleText": "预警"
 
+  
 }

+ 0 - 1
pages/early_warning_list/early_warning_list.wxml

@@ -27,7 +27,6 @@
         <text class="time-text list_li_3"  style="color:#FFB915;" wx:if="{{item.mu>0}}">整改到期时间: {{item.latTime}}</text>
       </view>
     </view>
-     
     </view>
 
 </view>

+ 1 - 1
pages/early_warning_list/early_warning_list.wxss

@@ -58,4 +58,4 @@ position: relative;
 }
 .list_li_3{
   font-size: 30rpx !important;
-}
+}

+ 9 - 6
pages/notice/notice.js

@@ -145,11 +145,14 @@ Page({
    
   },
 
-
   bindViewDetails(e) {
-    let details = e.currentTarget.dataset.index
-    wx.navigateTo({
-      url: '../notice/notice_details?details='+JSON.stringify(details)
+    let details = e.currentTarget.dataset.index
+    let competition = {}//这是一个很长的很多数据的对象
+    //转成String编码一下
+    competition = encodeURIComponent(JSON.stringify(details))
+        wx.navigateTo({
+       
+          url:`../notice/notice_details?details=${competition}`
+        })
+      }
     })
-  }
-})

+ 9 - 13
pages/notice/notice_details.js

@@ -17,22 +17,18 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad(options) {
-  let details=JSON.parse(options.details)
-    this.setData({
-      noticeTitle: details.noticeTitle,
-      noticeType: details.noticeType,
-       noticeBy: details.createBy,
-       noticeTime: details.createTime,
-       noticeContent: details.noticeContent
-    })
+     let info= decodeURIComponent(options.details)
+     let details=JSON.parse(info)
+      this.setData({
+        noticeTitle: details.noticeTitle,
+        noticeType: details.noticeType,
+        noticeBy: details.createBy,
+        noticeTime: details.createTime,
+        noticeContent: details.noticeContent
+      })
   
   },
 
-
-
-
-
-
   /**
    * 用户点击右上角分享
    */