Просмотр исходного кода

Merge branch 'master' of http://121.37.83.100:3000/sooka_edyj/sooka_edyj_minapp

menc 2 лет назад
Родитель
Сommit
1d754833b8

+ 3 - 1
app.json

@@ -20,8 +20,10 @@
     "pages/xqzggzs2/xqzggzs2",
     "pages/xunjian/xunjian",
     "pages/xunjiancz/xunjiancz",
-    "pages/qianming/qianming"
+    "pages/qianming/qianming",
+    "pages/xunjianmore/xunjianmore"
   ],
+
   "requiredPrivateInfos": [
     "getLocation"
   ],

+ 1 - 1
base/httputil.js

@@ -5,7 +5,7 @@
 
 
 
-// let BASE_Server = "https://192.168.1.100:18080"
+ //let BASE_Server = "https://192.168.1.100:18080"
 let BASE_Server = "https://sookajs.top:18080"
 
 let app = getApp()

+ 19 - 3
iconfont.wxss

@@ -1,8 +1,8 @@
 @font-face {
   font-family: "iconfont"; /* Project id 3264694 */
-  src: url('//at.alicdn.com/t/c/font_3264694_vvd9ofl6l5.woff2?t=1669682527309') format('woff2'),
-       url('//at.alicdn.com/t/c/font_3264694_vvd9ofl6l5.woff?t=1669682527309') format('woff'),
-       url('//at.alicdn.com/t/c/font_3264694_vvd9ofl6l5.ttf?t=1669682527309') format('truetype');
+  src: url('//at.alicdn.com/t/c/font_3264694_gxhod5vh9pc.woff2?t=1672883976549') format('woff2'),
+       url('//at.alicdn.com/t/c/font_3264694_gxhod5vh9pc.woff?t=1672883976549') format('woff'),
+       url('//at.alicdn.com/t/c/font_3264694_gxhod5vh9pc.ttf?t=1672883976549') format('truetype');
 }
 
 .iconfont {
@@ -13,6 +13,22 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.icon-yunongtongqingchuhuancun:before {
+  content: "\e638";
+}
+
+.icon-tongxunlu:before {
+  content: "\e670";
+}
+
+.icon-guanyuwomen:before {
+  content: "\e69a";
+}
+
+.icon-wnt_qingchuhuancun:before {
+  content: "\e644";
+}
+
 .icon-wodetijiao:before {
   content: "\e6d3";
 }

BIN
pages/images/me.png


BIN
pages/images/metit.png


BIN
pages/images/metit1.png


+ 4 - 4
pages/index/index.wxss

@@ -130,12 +130,12 @@ justify-content:space-around;
 background: none;
 }
 .top_banner .xszn{
-      left:5% ;
-      top:38%;
+      left:10% ;
+      top:43%;
 }
 .top_banner .sygl{
-    right:5% ;
-    top:39%;
+    right:10% ;
+    top:44%;
 }
 .top_banner .xszn span{
   background-image:-webkit-linear-gradient(right,#ff2e56,#d260a8); 

+ 28 - 2
pages/me/me.js

@@ -10,7 +10,7 @@ Page({
     isShowAccoutDialog : false,
     isBindSuccess : false,
     userInfo:null,
-    userName :null,
+    userName :"点击登录",
     password: null,
     openid: null
   },
@@ -22,6 +22,7 @@ Page({
   },
 
   init_userInfo() {
+
     let that = this
     if (app.globalToken == null) {
       http.showLoading()
@@ -58,7 +59,7 @@ Page({
     })
   },
   loginSuccess(res) {
-    
+   console.log(res)
     let that = this
     if (res.data.code != 200) {
       that.openid = res.data.data
@@ -82,6 +83,31 @@ Page({
     }
   },
 
+clear(){
+  wx.clearStorage({
+    success: (res) => {
+      wx.showToast({
+        title: '清理成功',
+      })
+      wx.removeStorageSync('userInfo');
+      wx.removeStorageSync('openid');
+      app.globalToken=null;
+     this.setData({
+        isShowAccoutDialog : false,
+      isBindSuccess : false,
+      userInfo:null,
+      
+      userName :"游客",
+      password: null,
+      openid: null
+     
+     })
+    wx.reLaunch({
+      url: '../index/index'
+    })
+    },
+  })
+},
   modalCancel(){
     this.setData({
       isShowAccoutDialog : false

+ 43 - 10
pages/me/me.wxml

@@ -1,15 +1,48 @@
 <view class="container_c">
-
-
-  <image src="{{userInfo.avatarUrl}}" class="wd_img"></image>
-
-  <div type="userNickName" lang="zh_CN" class="wd_txt">
+<view class="top_con">
+  <image src="{{userInfo.avatarUrl}}" class="wd_img" wx:if="{{!isBindSuccess}}" bindtap="init_userInfo"   ></image>
+   <image src="{{userInfo.avatarUrl}}" class="wd_img" wx:if="{{isBindSuccess}}"></image>
+  <view class="top_txt">
+    <!-- <div type="userNickName" lang="zh_CN" class="wd_txt">
     {{userInfo.nickName}}
-  </div>
-
-
-  <button wx:if="{{!isBindSuccess}}" bindtap="init_userInfo" class="wd_btn">绑定账号</button>
-  <label wx:if="{{isBindSuccess}}">账号绑定成功</label>
+  </div> -->
+  <text class="userNickName"  wx:if="{{!isBindSuccess}}">{{userName}}</text>
+  <text class="userNickName" wx:if="{{isBindSuccess}}" >{{userInfo.nickName}}</text>
+  <text>技术部</text>
+  </view>
+  <image src="../images/me.png" class="me_bg"/>
+</view>
+<view class="me_tit">
+  <view class="tit_two">
+    <image src="../images/metit.png" class="metit" />
+      <view class="meline">
+        <i class="iconfont icon-tongxunlu"></i>
+        <text>通讯录</text>
+        <i class="iconfont icon-xiangyou"></i>
+      </view>
+      <view class="meline" bindtap="clear">
+        <i class="iconfont icon-yunongtongqingchuhuancun" ></i>
+        <text>清除缓存</text>
+        <i class="iconfont icon-xiangyou"></i>
+      </view>
+  </view>
+  <view class="tit_one">
+    <image src="../images/metit1.png" class="metit" />
+    <view class="meline">
+    <i class="iconfont icon-guanyuwomen"></i>
+        <text>关于我们</text>
+        <i class="iconfont icon-xiangyou"></i>
+      </view>
+  </view>
+</view>
+
+ 
+
+  
+
+
+  <!-- <button wx:if="{{!isBindSuccess}}" bindtap="init_userInfo" class="wd_btn">绑定账号</button>
+  <label wx:if="{{isBindSuccess}}">账号绑定成功</label> -->
 
 
 

+ 92 - 5
pages/me/me.wxss

@@ -4,19 +4,34 @@
   flex-direction: column;
   align-items: center;
   justify-content: center;
-  padding-top: 5rem;
+}
+.top_con{
+  display: flex;
+  flex-direction: row;
+  padding: 6% 8%;
+  width: 84%;
+  align-items: center;
+  background-color: #f94b0e;
+  position: relative;
+}
+.me_bg{
+  position: absolute;
+  bottom: -90rpx;
+  width: 100%;
+  left: 0px;
+  height: 100rpx;
 }
 .wd_img{
-  width: 200rpx;
-  height: 200rpx;
+  width: 160rpx;
+  height: 160rpx;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
-  border: 12rpx solid #f6f6f6c7;
+  border: 8rpx solid #f6f6f6c7;
   background: rgb(255, 201, 164);
-  margin-bottom: 20rpx;
+ margin-right: 30rpx;
 }
 .wd_img img{
   display: flex;
@@ -45,4 +60,76 @@
   height: 100rpx;
   line-height: 100rpx;
   padding-left: 20rpx;
+}
+.top_txt{
+  display: flex;
+  flex-direction: column;
+}
+.top_txt{
+  display: flex;
+  flex-direction: column;
+  color: #fff;
+  font-size: 32rpx;
+}
+.top_txt .name{
+  font-size: 38rpx;
+  font-weight: 500;
+  padding-bottom: 15rpx;
+}
+.me_tit{
+  margin-top: 40rpx;
+  margin:150rpx 30rpx 0rpx 30rpx;
+  
+  width: 92%;
+  display: flex;
+  flex-direction: column;
+}
+.tit_two{
+  position: relative;
+  width: 100%;
+  height: 240rpx;
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+}
+.tit_two .metit{
+  width: 100%;
+  height: 240rpx;
+  display: block;
+  position: absolute;
+  z-index: -1;
+}
+.meline{
+  height: 120rpx;
+  align-items: center;
+  display: flex;
+  flex-direction: row;
+  padding: 0px 30rpx;
+  font-size: 32rpx;
+  color: rgb(88, 88, 88);
+  font-weight: 500;
+}
+.meline .iconfont{
+  font-size: 50rpx;
+  color: #f94b0e;
+  margin-right: 20rpx;
+}
+.meline .icon-xiangyou{
+  margin-left: auto;
+  color:rgb(207, 207, 207);
+    font-size: 40rpx;
+}
+.tit_one{
+  position: relative;
+  width: 100%;
+  height: 120rpx;
+  justify-content: center;
+  margin-top: 30rpx;
+}
+.tit_one .metit{
+  width: 100%;
+  height: 120rpx;
+  display: block;
+  position: absolute;
+  z-index: -1;
 }

+ 2 - 1
pages/menu/menu.wxss

@@ -51,7 +51,8 @@ height: 50rpx;
   font-size: 50rpx;
 
   color: #fff;
-  margin: auto;
+  /* margin: auto; */
+  position: absolute;top:50%;left:50%;transform:translate(-50%,-50%);
 }
 .menu_bg{
   background: rgb(236, 235, 235);

+ 7 - 2
pages/xuncha/xuncha.js

@@ -16,7 +16,7 @@ Page({
     menulist: [{
         "id": "1",
         "url": "icon-anquanxuncha",
-        "title": "巡",
+        "title": "巡",
       },
       {
         "id": "2",
@@ -69,8 +69,13 @@ Page({
         title: '没有发现安全隐患,请放心!!',
         icon: "none" 
       })
+    }else{
+      console.log(isrisk,"####",buslogid)
+      wx.navigateTo({
+        url: '../xunjianmore/xunjianmore?buslogid='+buslogid
+      })
     }
-    console.log(isrisk,"####",buslogid)
+   
   },
 
   menuItemClick: function (res) {

+ 3 - 1
pages/xunjianimg/xunjianimg.js

@@ -7,7 +7,9 @@ Page({
    */
 
   getXunjianimgList() {
-    http.post("/system/AppXunjianimgController/getXunjianimgList",null,this.getXunjianimgListSuccess)
+    let obj = new Object()
+    obj.isPass = 'N' 
+    http.post("/system/AppXunjianimgController/getXunjianimgList",obj,this.getXunjianimgListSuccess)
   },
   getXunjianimgListSuccess(res){
     console.log("@@@@@",res)

+ 56 - 0
pages/xunjianmore/xunjianmore.js

@@ -0,0 +1,56 @@
+// pages/xunjianmore/xunjianmore.js
+import http from '../../base/httputil'
+const app = getApp()
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+
+   
+  data: {
+    host: app.globalData.host,
+    buslogid: null,
+    mapdata : null,
+    pictureBasePath : null,
+    hiddenName:true
+  },
+  onLoad(e) {
+    this.initData(e)
+  },
+  initData(e){
+     let buslogid = e.buslogid
+     this.data.buslogid = buslogid
+    console.log("####",this.data.buslogid)
+
+    let obj = new Object()
+    obj.busLogId = this.data.buslogid 
+    http.post("/system/AppXunjianimgController/getXunjianimgList",obj,this.getXunjianMoreListSuccess)
+  },
+  getXunjianMoreListSuccess(res){
+    console.log("@@@@@",res)
+    this.setData({
+      pictureBasePath : res.data.pictureBasePath+"/",
+      mapdata : res.data.xunjianimgMap
+    })
+  },
+  bindViewZhengGaiJinDu(e){
+    let businspectionid = e.currentTarget.dataset.businspectionid
+   
+    wx.navigateTo({
+      url: '../zhenggaijindu/zhenggaijindu?busInspectionId='+businspectionid,
+    })
+  },
+    // 按钮显示隐藏
+    shghnn:function(){
+      this.setData({
+          hiddenName:!this.data.hiddenName
+      })
+  },
+  // 跳转整改进度
+  bindViewXqZgGzS(){
+    // wx.navigateTo({
+    //   url: '../xqzggzs/xqzggzs',
+    // })
+  },
+})

+ 6 - 0
pages/xunjianmore/xunjianmore.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {},
+  "navigationBarBackgroundColor": "#f94b0e",
+  "navigationBarTextStyle": "white",
+  "navigationBarTitleText": "巡检"
+}

+ 31 - 0
pages/xunjianmore/xunjianmore.wxml

@@ -0,0 +1,31 @@
+<!--pages/xunjianmore/xunjianmore.wxml-->
+<view class="container">
+  <view style="display: flex; flex-direction: column;" wx:for="{{mapdata}}" wx:for-index="key" wx:for-item="value">
+    <view class="xj_nav">
+      <text class="nav_text1">{{value[0][0]}}</text>
+      <text class="iconfont icon-dian"></text>
+      <text class="nav_text2">{{value[0][1]}}</text>
+    </view>
+    <view class="txt_vi" bindtap="bindViewZhengGaiJinDu" wx:for="{{value[1]}}" data-businspectionid="{{item.busInspectionId}}">
+      <view class="txt flex_row">
+        <!-- <image src="{{pictureBasePath+item.attachUrl}}" />  -->
+        <view class="txt_wz">
+          <text class="">{{index+1}}、{{item.busItemName}}</text>
+          <view class="span_vi">
+            <span class="yellow">{{item.itemsTypeValue}}</span>
+            <span class="yellow">{{item.riskStatusValue}}</span>
+          </view>
+          <!-- <view class="qy_txt">{{item.busEnterpriseName}}</view> -->
+
+        </view>
+      </view>
+    </view>
+    <!-- 巡检悬浮按钮 -->
+    <view class="float_btn iconfont icon-wenjianjia" bindtap="shghnn"></view>
+    <view class="tab_nav" hidden="{{hiddenName}}">
+      <text mode="heightFix">隐患限期整改告知书</text>
+      <text mode="heightFix">复查意见告知书</text>
+      <i class="iconfont icon-zengjiashuzi" bindtap="bindViewXqZgGzS"></i>
+    </view>
+  </view>
+</view>

+ 123 - 0
pages/xunjianmore/xunjianmore.wxss

@@ -0,0 +1,123 @@
+/* pages/xunjianimg/xunjianimg.wxss */
+.xj_nav{
+  height: 90rpx;
+  line-height: 90rpx;
+  display: flex;
+  flex-wrap: wrap;
+  background: rgb(252, 239, 236);
+  padding-left: 30rpx;
+}
+.xj_nav .nav_text1{
+  font-size: 40rpx;
+  color:#f94b0e ;
+  font-weight: bolder;
+}
+.xj_nav .iconfont{
+  font-size: 40rpx;
+  color: #999;
+}
+.xj_nav .nav_text2{
+  font-size: 30rpx;
+  color:#999 ;
+}
+.txt_vi{
+  margin: 20rpx 30rpx;
+  display: flex;
+  flex-direction: column;
+}
+.txt_vi .txt{
+  display: flex;
+  flex-direction: column;
+  border-bottom: 1px solid #eee;
+  font-size: 32rpx;
+}
+.txt_vi text{
+  margin: 20rpx 0rpx;
+  display: inline-flex;
+  text-align: justify;
+  color: #333;
+}
+.txt_vi form{
+  margin-left: auto;
+  display: inline-flex;
+}
+.page-section{
+  display: inline-table;
+}
+.span_vi{
+  display: flex;
+  flex-direction: row;
+  margin-bottom: 20rpx;
+}
+.span_vi span{
+  margin-right: 30rpx;
+  padding: 8rpx 20rpx;
+  line-height:normal!important;
+  border-radius: 10rpx;
+  font-size: 28rpx;
+}
+.red{
+  border: 1px solid #f00;
+  color:#f00 ;
+}
+.yellow{
+  border: 1px solid rgb(238, 167, 15);
+  color:rgb(238, 167, 15) ;
+}
+.green{
+  border: 1px solid rgb(12, 207, 45);
+  color:rgb(12, 207, 45) ;
+}
+.icon-wenjianjia{
+  font-size: 54rpx;
+}
+.tab_nav{
+  position: fixed;
+  bottom: 270rpx;
+  right: 30rpx;
+  display: flex;
+  flex-direction: column-reverse;
+  text-align: right;
+}
+.tab_nav text{
+ padding: 14rpx 30rpx;
+ background: rgba(212, 212, 212, 0.9);
+ border-radius: 50rpx;
+ margin-top: 25rpx;
+ width: auto;
+ display: inline;
+ font-size: 28rpx;
+ color: #333;
+}
+.tab_nav .icon-zengjiashuzi{
+  font-size: 60rpx;
+  color: rgb(153, 153, 153);
+  margin-right: 20rpx;
+}
+ .flex_row{
+   display: flex;
+   flex-direction: row!important;
+   padding-top: 20rpx;
+ }
+ .flex_row image{
+  width: 200rpx;
+  height: 160rpx;
+  background: #ccc;
+  display: inline-table;
+}
+.txt_wz{
+  /* width: 50%; */
+  display: flex;
+  flex-direction: column;
+  margin-left: 30rpx;
+}
+.txt_wz text{
+  margin-top: 0rpx!important;
+}
+.qy_txt{
+  font-size: 28rpx;
+  color: #333;
+  background-color: #f5f5f5;
+  margin-bottom: 20rpx;
+  padding: 10rpx 0rpx 10rpx 20rpx;
+}

+ 7 - 11
project.config.json

@@ -1,12 +1,8 @@
 {
   "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-  "packOptions": {
-    "ignore": [],
-    "include": []
-  },
   "setting": {
     "urlCheck": false,
-    "es6": true,
+    "es6": false,
     "enhance": true,
     "postcss": true,
     "preloadBackgroundData": false,
@@ -24,8 +20,6 @@
     "compileHotReLoad": false,
     "lazyloadPlaceholderEnable": false,
     "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],
@@ -44,12 +38,14 @@
     "useStaticServer": true
   },
   "compileType": "miniprogram",
-  "libVersion": "2.27.1",
-  "appid": "wx29240c3e95eeed24",
-  "projectname": "edyj_minapp",
   "condition": {},
   "editorSetting": {
     "tabIndent": "insertSpaces",
     "tabSize": 2
-  }
+  },
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "appid": "wx29240c3e95eeed24"
 }

+ 3 - 3
project.private.config.json

@@ -1,8 +1,8 @@
 {
-  "projectname": "edyj_minapp",
+  "projectname": "sooka_edyj_minapp",
   "setting": {
-    "compileHotReLoad": true,
-    "urlCheck": false
+    "compileHotReLoad": false,
+    "urlCheck": true
   },
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "libVersion": "2.16.0"