1 line
35 KiB
JavaScript
1 line
35 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-projectEnd-projectIndex-projectIndex"],{"0cd6":function(e,t,o){"use strict";o.r(t);var n=o("4159"),i=o("815a");for(var a in i)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(a);o("af42");var s=o("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"79177165",null,!1,n["a"],void 0);t["default"]=r.exports},1763:function(e,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceFound=a,t.closeBle=s,t.createBLE=r,t.getBlooth=function(){return n=[],new Promise((function(e,t){uni.openBluetoothAdapter({success:function(o){(function(){return new Promise((function(e,t){uni.startBluetoothDevicesDiscovery({success:function(t){console.log(t,"startBluetoothDevicesDiscovery"),e(t)},fail:function(e){t(e)}})}))})().then((function(o){console.log(o,"searchBlooth"),uni.onBluetoothDeviceFound((function(e){console.log(e,"搜索到蓝牙设备"),console.log(e.devices[0]);var t=function(e,t,o){for(var n=0;n<e.length;n++)if(e[n][t]===o)return n;return-1}(n,"deviceId",e.devices[0].deviceId);console.log(t,"idx"),"-1"==t&&(!e.devices[0].localName||e.devices[0].name&&"未知设备"!=e.devices[0].name?e.devices[0].name&&"未知设备"!=e.devices[0].name&&n.push(e.devices[0]):(e.devices[0].name=e.devices[0].localName,n.push(e.devices[0])))})),setTimeout((function(){a().then((function(t){console.log(t,"DeviceFound"),console.log(n,"BLEList"),function(){console.log("onBLEConnectionStateChange"),uni.onBLEConnectionStateChange((function(e){console.log("device ".concat(e.deviceId," state has changed, connected: ").concat(e.connected)),e.deviceId&&e.connected&&(uni.setStorageSync("BLECONNID",e.deviceId),uni.setStorageSync("deviceName",name))}))}(),e(t)})).catch((function(e){console.log(e,"searchBlooth1"),t(e)}))}),5e3)})).catch((function(e){console.log(e,"DeviceFound1"),t(e)}))},fail:function(e){console.log(e,"openBluetoothAdapter err"),t(e)}})}))},t.notify=c,t.readBLE=function(e,t,o){uni.readBLECharacteristicValue({deviceId:e,serviceId:t,characteristicId:o,success:function(e){},fail:function(e){}})},t.watchNotify=u,t.writeBLE=function(e){console.log("writeBLE before",e);var t=l(e);console.log(t),console.log("writeBLE after");var o=uni.getStorageSync("deviceId"),n=uni.getStorageSync("serviceId"),i=uni.getStorageSync("characteristicId");return console.log(o,n,i),new Promise((function(e,a){for(var s=0;s<t.length;s+=20){var r=0;if(s+20<t.length){for(var c=t,u=new ArrayBuffer(20),l=new DataView(u),p=s;p<s+20;p++)l.setUint8(p-s,c[p]);uni.writeBLECharacteristicValue({deviceId:o,serviceId:n,characteristicId:i,value:l.buffer,success:function(t){e(t)},fail:function(e){a(e)}}),d(.02)}else{c=t;r=20<t.length?c.length-s:c.length;for(var f=new ArrayBuffer(r),g=new DataView(f),h=s;h<c.length;h++)g.setUint8(h-s,c[h]);console.log("最后一包或第一数据:"),console.log(g.buffer),uni.writeBLECharacteristicValue({deviceId:o,serviceId:n,characteristicId:i,value:g.buffer,success:function(t){e(t)},fail:function(e){a(e)}}),d(.02)}}}))},o("d3b7"),o("14d9"),o("99af"),o("159b"),o("4d63"),o("c607"),o("ac1f"),o("2c3e"),o("25f0"),o("d81d"),o("ace4"),o("5cc6"),o("907a"),o("9a8c"),o("a975"),o("735e"),o("c1ac"),o("d139"),o("3a7b"),o("986a"),o("1d02"),o("d5d6"),o("82f8"),o("e91f"),o("60bd"),o("5f96"),o("3280"),o("3fcc"),o("ca91"),o("25a1"),o("cd26"),o("3c5d"),o("2954"),o("649e"),o("219c"),o("b39a"),o("72f7"),o("fb6a"),o("d401"),o("498a"),o("e25e"),o("5319"),o("a434"),o("c19f");var n=[],i=0;function a(){return function(){uni.stopBluetoothDevicesDiscovery({success:function(e){console.log(e,"蓝牙停止")}})}(),new Promise((function(e,t){uni.getBluetoothDevices({success:function(t){console.log(t,"蓝牙列表"),console.log(n,"BLEListBLEList"),e({devices:n})},fail:function(e){console.log(e,"错误的"),t(e)}})}))}function s(e,t){return console.log("closeBle"),new Promise((function(o,n){var i=uni.getStorageSync("BLECONNID");console.log(i,"closeBle"),i&&(uni.closeBLEConnection({deviceId:i,success:function(e){console.log("断开蓝牙连接",e),uni.removeStorageSync("RESCODE"),uni.removeStorageSync("BLECONNID")}}),uni.closeBluetoothAdapter({success:function(i){console.log("断开蓝牙模块",i),e&&uni.openBluetoothAdapter({success:function(o){console.log("打开蓝牙模块"),r({deviceId:e},t)},fail:function(e){console.log(e,"openBluetoothAdapter err"),n(e)}}),o(i)},fail:function(e){console.log(e),n(e)}}))}))}function r(e,t){return console.log("开始连接"),new Promise((function(o,n){uni.createBLEConnection({deviceId:e.deviceId,success:function(a){console.log(a,"createBLE success"),i=0,setTimeout((function(){(function e(t,o){return new Promise((function(n,a){uni.getBLEDeviceServices({deviceId:t,success:function(a){console.log("uni.getBLEDeviceServices"),console.log(a,i),0==a.services.length?(i++,i>3?s(t,o):e(t,o)):a.services.forEach((function(e,i){console.log(e,"deviceid"),e.isPrimary&&e.uuid===o&&(uni.setStorageSync("deviceId",t),uni.setStorageSync("serviceId",e.uuid),n(e))}))},fail:function(e){uni.hideLoading(),a(e)}})}))})(e.deviceId,t).then((function(t){console.log("createBLE getAllService"),function(e,t){return new Promise((function(o,n){uni.getBLEDeviceCharacteristics({deviceId:e,serviceId:t,success:function(i){i.characteristics.forEach((function(a,s){a.properties.notify||a.properties.read||!a.properties.write||(uni.setStorageSync("characteristicId",a.uuid),console.log("characteristicId1",a.uuid)),!a.properties.notify||a.properties.read||a.properties.write?s!=i.characteristics.length-1||a.properties.write||(setTimeout((function(){uni.showToast({title:"该设备不支持读和写",icon:"none"})}),500),n(i)):(console.log("characteristicId2",a.uuid),c(e,t,a.uuid).then((function(e){o(e)})),u())}))},fail:function(e){n(e)}})}))}(e.deviceId,t.uuid).then((function(e){console.log("createBLE getCharacteristics",e),o(e)})).catch((function(e){uni.hideLoading(),n(e)}))})).catch((function(e){uni.hideLoading(),n(e)}))}),2e3),console.log("create end")},fail:function(e){uni.hideLoading(),n(e)}})}))}function c(e,t,o){return new Promise((function(n,i){uni.notifyBLECharacteristicValueChange({state:!0,deviceId:e,serviceId:t,characteristicId:o,success:function(e){n(e)},fail:function(e){i(e)}})}))}function u(e){return console.log("开始监听。。。"),new Promise((function(e,t){uni.onBLECharacteristicValueChange((function(e){console.log(e);var t=function(e){var t=Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)}));return t.join("")}(e.value),o=t.toUpperCase();console.log(o,"收到的");var n=function(e){var t,o=e.trim(),n="0x"===o.substr(0,2).toLowerCase()?o.substr(2):o,i=n.length;if(i%2!==0)return alert("Illegal Format ASCII Code!"),"";for(var a=[],s=0;s<i;s+=2)t=parseInt(n.substr(s,2),16),a.push(String.fromCharCode(t));return a.join("")}(o);uni.$emit("recvEvent",n)}))}))}function l(e){var t=0;e=e.replace(/\s*/g,"");var o=e.length;if(o%2!=0)return null;o/=2;for(var n=new Array,i=0;i<o;i++){var a=e.substr(t,2),s=parseInt(a,16);n.push(s),t+=2}return n}function d(e){var t=(new Date).getTime();while((new Date).getTime()-t<e);}},1895:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"footerBox",class:5==e.userInfo.accountType||6==e.userInfo.accountType?"footerBox2":""},e._l(e.tabList,(function(t,n){return 1==t.appShow?o("v-uni-view",{key:n,staticClass:"footerItem",class:e.activeTab==t.plugin?"active":"",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.tabClick(t.plugin)}}},[o("v-uni-image",{staticClass:"tabIcon tabIcon1",attrs:{src:"/static/"+t.moduleIcon2+".png"}}),o("v-uni-image",{staticClass:"tabIcon tabIcon2",attrs:{src:"/static/"+t.moduleIcon+".png"}}),o("v-uni-view",{staticClass:"desc"},[e._v(e._s(t.appName))])],1):e._e()})),1)},i=[]},2355:function(e,t,o){"use strict";var n=o("3b21"),i=o.n(n);i.a},3173:function(e,t,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("c975"),o("e9c4"),o("d3b7"),o("159b");var i=n(o("f9d8")),a=n(o("897d")),s=o("1763"),r={components:{headers:i.default,footers:a.default},data:function(){return{qrCode:{},projectDetail:{projectName:"",contractPeriodEndTime:"",contractPeriodStartTime:"",contractPeriodType:1,periodRatio:0},userInfo:{},searchsn:"",accountType:1,list:[],weatherInfo:{city:"--",weather:"-",temperature:"--",winddirection:"--",windpower:"--",humidity:"--"},iconType:"1",systemInfo:{statusBarHeight:0},styType:"",imgUrl:"",date:"",adressDetail:"--",city:"",url:""}},mounted:function(){this.loadWeather()},onShow:function(){this.getSystemLogoConfig(),(0,s.closeBle)().then((function(e){console.log("断开蓝牙成功")})).catch((function(e){console.log("断开蓝牙失败")})),uni.getStorageSync("oldObj")&&uni.removeStorageSync("oldObj"),uni.getStorageSync("buildObj")&&uni.removeStorageSync("buildObj")},onLoad:function(){var e=JSON.parse(uni.getStorageSync("userInfo"));console.log("userInfo===========",e),this.userInfo=e,this.accountType=e.accountType,this.accountType=e.accountType,this.styType=e.styleType;var t=e.menuAuthority.moduleList;console.log("上面的",t),this.systemInfo=uni.getStorageSync("systemInfo"),this.getSystemLogoConfig(),this.getAllModule(t),5==this.accountType||6==this.accountType?(this.searchsn=e.sn,this.getProjectDetail()):(this.projectDetail=JSON.parse(uni.getStorageSync("projectDetail")),this.loadWeather()),this.viewVersionInfo()},onReady:function(){},methods:{viewVersionInfo:function(){return!1},weatherIcon:function(e){return"晴"==e?"w_sun":"多云"==e?"w_overcast":"阴"==e?"w_cloud":e.indexOf("雨")?"w_rain":e.indexOf("雷")?"w_thunder":e.indexOf("雪")?"w_snow":e.indexOf("雾")?"w_fog":"w_cloud"},getSystemLogoConfig:function(){var e=this;this.sendRequest({url:"xmgl/systemLogoConfig/selectSystemLogoConfig",data:{},method:"GET",success:function(t){console.log(t.result.iconType),e.iconType=t.result.iconType?t.result.iconType:"1"}})},loadWeather:function(){console.log("进来了吗:==========");var e=this;uni.getLocation({type:"wgs84",success:function(t){console.log("当前位置的经度:"+t.longitude),console.log("当前位置的纬度:"+t.latitude);var o=t.longitude+","+t.latitude;uni.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:"56c91fb2683e5bf0f46014ac200d4c1b",location:o},method:"GET",success:function(t){if(console.log("地址",t),"1"==t.data.status){var o=t.data.regeocode.formatted_address;o&&(e.adressDetail=o.substr(3,3)+o.substr(9,4)+o.substr(20,7));var n=t.data.regeocode.addressComponent.city;console.log("地址",e.adressDetail),uni.request({url:"http://restapi.amap.com/v3/weather/weatherInfo",data:{key:"56c91fb2683e5bf0f46014ac200d4c1b",city:n,extensions:"base",output:"JSON"},method:"GET",success:function(t){"1"==t.data.status&&(e.weatherInfo=t.data.lives[0],console.log("成功获取天气",t))}})}}})}})},goMoudleFn:function(e){switch(console.log("item.plugin===================",e),e.plugin){case"markRoom":uni.navigateTo({url:"../markRoom/markRoom"});break;case"videoMonitor":uni.navigateTo({url:"../../videoManage/videoList?sn="+this.projectDetail.projectSn+"&pageType=backEnd"});break;case"projectInfo":uni.navigateTo({url:"../project/projectInfo"});break;case"environmentMonitor":uni.navigateTo({url:"../environment/menu"});break;case"laborManage":uni.navigateTo({url:"../laborManage/index"});break;case"constructionLog":uni.navigateTo({url:"../constructionLog/list"});break;case"electricBoxMange":uni.navigateTo({url:"../electricBox/index"});break;case"lifterManage":uni.navigateTo({url:"../lifterMonitoring/index"});break;case"carManage":uni.navigateTo({url:"../carManage/index"});break;case"towerManage":uni.navigateTo({url:"../towerManage/index"});break;case"dailyInspection":uni.navigateTo({url:"../dailyCheck/index"});break;case"qualitySpringback":uni.navigateTo({url:"../qualitySpringback/index"});break;case"unloadManage":uni.navigateTo({url:"../unload/index"});break;case"concreteMonitoring":uni.navigateTo({url:"../concreteMonitoring/index"});break;case"safeManage":uni.navigateTo({url:"../safeManage/safeIndex"});break;case"qualityManage":uni.navigateTo({url:"../qualityManage/index"});break;case"carWashManage":uni.navigateTo({url:"../carWashManage/index"});break;case"dangerBigProject":uni.navigateTo({url:"../dangerBigProject/index"});break;case"fileManage":uni.navigateTo({url:"../../fileManage/fileManage"});break;case"betonManage":uni.navigateTo({url:"../betonManage/index"});break;case"progressManage":uni.navigateTo({url:"../progressManagement/index"});break;case"dangerBroadcast":uni.navigateTo({url:"../../alarmPage/index"});break;case"saosao":console.log("打开saosao"),uni.scanCode({scanType:["qrCode"],success:function(e){console.log("扫一扫得到的数据:"+e.result),uni.navigateTo({url:"../scan/saoSao?data="+e.result})}});break;default:uni.showToast({icon:"none",title:"该产品暂未开放,敬请期待!"})}},getProjectDetail:function(){var e=this;this.sendRequest({url:"xmgl/project/getProjectInfoBySn",data:{projectSn:this.searchsn},method:"POST",success:function(t){e.projectDetail=t.result,uni.setStorageSync("projectDetail",JSON.stringify(t.result)),e.loadWeather()}})},getAllModule:function(e){console.log("half====",e);var t=this;this.sendRequest({url:"xmgl/baseModule/list",data:{styleType:this.styType},method:"POST",success:function(o){var n=o.result;n.forEach((function(t,o){n[o].operation=!1,e.forEach((function(e){e.moduleId==t.moduleId&&(n[o].operation=!0,n[o].menuList=e.menuList);n[o].menuList}))})),t.list=n,console.log("用户列表",t.list)}})}}};t.default=r},"3b21":function(e,t,o){var n=o("bad1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("4f06").default;i("371ec1c6",n,!0,{sourceMap:!1,shadowMode:!1})},"404d":function(e,t,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("c975");var i=n(o("5d3d")),a={name:"uniPopup",components:{keypress:i.default},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup:function(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var e=this;(function(){var t=uni.getSystemInfoSync(),o=t.windowWidth,n=t.windowHeight,i=t.windowTop,a=t.safeArea,s=(t.screenHeight,t.safeAreaInsets);e.popupWidth=o,e.popupHeight=n+(i||0),a&&e.safeArea?e.safeAreaInsets=s.bottom:e.safeAreaInsets=0})()},destroyed:function(){this.setH5Visible()},created:function(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible:function(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(e){e.stopPropagation(),this.clearPropagation=!0},open:function(e){this.showPopup&&(clearTimeout(this.timer),this.showPopup=!1);e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close:function(e){var t=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){t.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(e){var t=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){t.messageChild&&"message"===t.type&&t.messageChild.timerClose()})))},bottom:function(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center:function(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left:function(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right:function(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};t.default=a},4159:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return n}));var n={uniTransition:o("d360").default},i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.showPopup?o("v-uni-view",{staticClass:"uni-popup",class:[e.popupstyle,e.isDesktop?"fixforpc-z-index":""]},[o("v-uni-view",{on:{touchstart:function(t){arguments[0]=t=e.$handleEvent(t),e.touchstart.apply(void 0,arguments)}}},[e.maskShow?o("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:e.maskClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}):e._e(),o("uni-transition",{key:"2",attrs:{"mode-class":e.ani,name:"content",styles:e.transClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"uni-popup__wrapper",class:[e.popupstyle],style:{backgroundColor:e.bg},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._t("default")],2)],1)],1),e.maskShow?o("keypress",{on:{esc:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}):e._e()],1):e._e()},a=[]},"497b":function(e,t,o){"use strict";o.r(t);var n=o("b413"),i=o("ea2f");for(var a in i)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(a);o("d88d");var s=o("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"561cb616",null,!1,n["a"],void 0);t["default"]=r.exports},"50e1":function(e,t,o){"use strict";o.r(t);var n=o("ae68"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},"5d3d":function(e,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("7db0"),o("d3b7"),o("b64b"),o("caad"),o("2532");var n={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(function(o){if(!e.disable){var n=Object.keys(t).find((function(e){var n=o.key,i=t[e];return i===n||Array.isArray(i)&&i.includes(n)}));n&&setTimeout((function(){e.$emit(n,{})}),0)}}))},render:function(){}};t.default=n},"815a":function(e,t,o){"use strict";o.r(t);var n=o("404d"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},"897d":function(e,t,o){"use strict";o.r(t);var n=o("1895"),i=o("50e1");for(var a in i)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(a);o("2355");var s=o("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"024dbb9b",null,!1,n["a"],void 0);t["default"]=r.exports},"8a2e":function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.qrcodeItem[data-v-561cb616]{padding:%?40?% %?30?%;width:%?480?%;background-color:#fff;border-radius:%?8?%}.qrcodeItem .title[data-v-561cb616]{text-align:center;margin-bottom:%?12?%}.topBoxContent[data-v-561cb616]{color:#fff;font-size:14px;height:260px;position:relative}.topBoxContent .dateBox[data-v-561cb616]{display:flex;align-items:center;justify-content:center;position:relative;z-index:2}.topBoxContent .dateBox .item[data-v-561cb616]{flex:1;text-align:center}.topBoxContent .dateBox .item2[data-v-561cb616]{border-left:1px dashed #fff}.progressBox[data-v-561cb616]{width:150px;height:150px;position:relative;text-align:center;margin:0 auto 25px}.progressBox .title1[data-v-561cb616]{padding-top:24px}.progressBox .title2[data-v-561cb616]{font-size:33px;margin:6px 0}.progressBox .title2 .unit[data-v-561cb616]{font-size:20px}.progressBox .status[data-v-561cb616]{width:52px;height:25px;background:#8fda5c;border-radius:12px;display:inline-block;line-height:25px}.progressBox .redStatus[data-v-561cb616]{background:#ea6868}.progressBox .progressLine[data-v-561cb616]{position:absolute;left:0;top:0;width:100%;height:100%}.weatherBox[data-v-561cb616]{position:absolute;top:15px;right:15px;text-align:center}.weatherBox .top[data-v-561cb616]{font-size:27px;display:flex;align-items:center}.weatherBox .weatherIcon[data-v-561cb616]{width:36px;height:36px}.weatherBox .bottom[data-v-561cb616]{font-size:10px}.projectIndexPage[data-v-561cb616] .headerBox{background-color:initial;border-bottom:none}.progressBox[data-v-561cb616]{width:150px;height:150px;position:relative;text-align:center;margin:0 auto 24px}.progressBox .title1[data-v-561cb616]{padding-top:24px}.progressBox .title2[data-v-561cb616]{font-size:33px;margin:6px 0}.progressBox .title2 .unit[data-v-561cb616]{font-size:20px}.progressBox .status[data-v-561cb616]{width:52px;height:25px;background:#8fda5c;border-radius:12px;display:inline-block;line-height:25px}.progressBox .redStatus[data-v-561cb616]{background:#ea6868}.progressBox .progressLine[data-v-561cb616]{position:absolute;left:0;top:0;width:100%;height:100%}.weatherBox[data-v-561cb616]{position:absolute;top:10px;right:15px;text-align:center}.weatherBox .top[data-v-561cb616]{font-size:27px;display:flex;align-items:center}.weatherBox .weatherIcon[data-v-561cb616]{width:36px;height:36px}.weatherBox .bottom[data-v-561cb616]{font-size:10px}.moudleBox2[data-v-561cb616]{opacity:.6}.moudleBox[data-v-561cb616]{overflow:hidden}.moudleItem[data-v-561cb616]{float:left;width:33.33%;font-size:13px;text-align:center;margin-bottom:10px}.moudleItem .inner[data-v-561cb616]{border:1px solid rgba(18,41,75,.06);padding:15px 0 15px;margin:0 5px;border-radius:5px}.moudleItem .img[data-v-561cb616]{width:40px;height:40px;color:red}.moudleItem .desc[data-v-561cb616]{margin-top:6px;color:rgba(38,45,71,.77)}.moudleTitle[data-v-561cb616]{color:rgba(42,43,91,.5);font-size:13px;margin:0 0 15px;text-align:center}.smallHeight[data-v-561cb616]{height:calc(100% - 63px)}.moudleContent[data-v-561cb616]{box-shadow:0 4px 16px 0 rgba(212,220,236,.59);border-radius:8px;padding:15px 15px;margin:55px 15px 15px;position:relative;z-index:2}.projectIndexBG[data-v-561cb616]{width:100%;height:357px;position:absolute;top:0;left:0}',""]),e.exports=t},"8bf5":function(e,t,o){var n=o("ad95");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("4f06").default;i("d69e02c8",n,!0,{sourceMap:!1,shadowMode:!1})},ad95:function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-popup[data-v-79177165]{position:fixed;z-index:99}.uni-popup.top[data-v-79177165], .uni-popup.left[data-v-79177165], .uni-popup.right[data-v-79177165]{top:var(--window-top)}.uni-popup .uni-popup__wrapper[data-v-79177165]{display:block;position:relative\r\n /* iphonex 等安全区设置,底部安全区适配 */}.uni-popup .uni-popup__wrapper.left[data-v-79177165], .uni-popup .uni-popup__wrapper.right[data-v-79177165]{padding-top:var(--window-top);flex:1}.fixforpc-z-index[data-v-79177165]{z-index:999}.fixforpc-top[data-v-79177165]{top:0}',""]),e.exports=t},ae68:function(e,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("14d9");var n={props:["activeTab"],data:function(){return{tabList:[],userInfo:{accountType:1}}},mounted:function(){if(this.userInfo=JSON.parse(uni.getStorageSync("userInfo")),5==this.userInfo.accountType||6==this.userInfo.accountType)this.tabList.push({appName:"首页",moduleIcon2:"tabIcon-index",moduleIcon:"tabIcon-index-active",plugin:"projectEnd",appShow:1},{appName:"我的",moduleIcon2:"tabIcon-my2",moduleIcon:"tabIcon-my2-active",plugin:"my",appShow:1});else{for(var e=this.userInfo.menuAuthority.moduleList,t=0;t<e.length;t++)1==e[t].moduleType&&this.tabList.push(e[t]);this.tabList.push({appName:"首页总览",moduleIcon2:"sjjt_syzl",moduleIcon:"sjjt_syzl-tab",plugin:"projectManage",appShow:1},{appName:"我的",moduleIcon2:"tabIcon-my",moduleIcon:"tabIcon-my-select",plugin:"my",appShow:1})}},methods:{tabClick:function(e){switch(console.log(e),e){case"projectManage":uni.redirectTo({url:"../../pages/projectManage/projectManage"});break;case"videoManage":5==this.userInfo.accountType?uni.redirectTo({url:"../../pages/videoManage/videoList?sn="+that.userInfo.sn}):uni.redirectTo({url:"../../pages/areaTree/areaTree"});break;case"my":uni.redirectTo({url:"/pages/my/my"});break;case"personManage":uni.redirectTo({url:"../../pages/personManage/personManage"});break;case"projectEnd":uni.redirectTo({url:"/pages/projectEnd/projectIndex/projectIndex"});break;case"deviceManage":uni.redirectTo({url:"../../pages/deviceManage/deviceManage"});break;case"markRoom":uni.redirectTo({url:"../../pages/markRoomManage/markRoomManage"});break}}}};t.default=n},af42:function(e,t,o){"use strict";var n=o("8bf5"),i=o.n(n);i.a},b413:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return n}));var n={headers:o("f9d8").default,uniPopup:o("0cd6").default,footers:o("897d").default},i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"fullHeight projectIndexPage",staticStyle:{"background-color":"white"}},[o("v-uni-scroll-view",{class:5==e.accountType||6==e.accountType?"smallHeight":"",attrs:{"scroll-y":!0}},[o("headers",{attrs:{showBack:5!=e.accountType&&6!=e.accountType,themeType:"white"}},[o("v-uni-view",{staticClass:"headerName"},[e._v(e._s(e.projectDetail.projectName))])],1),o("v-uni-image",{staticClass:"projectIndexBG",style:{height:e.systemInfo.statusBarHeight+357+"px"},attrs:{src:"/static/projectIndexBG.png"}}),o("v-uni-view",{staticClass:"topBoxContent"},[o("v-uni-view",{staticStyle:{height:"20px"}}),o("v-uni-view",{staticClass:"progressBox"},[o("v-uni-image",{staticClass:"progressLine",attrs:{src:"/static/progressLine.png"}}),o("v-uni-view",{staticClass:"title1"},[e._v("工程进度")]),o("v-uni-view",{staticClass:"title2"},[o("v-uni-text",[e._v(e._s(e.projectDetail.periodRatio?e.projectDetail.periodRatio:"--"))]),o("v-uni-text",{staticClass:"unit"},[e._v("%")])],1),o("v-uni-text",{staticClass:"status",class:2==e.projectDetail.contractPeriodType?"redStatus":""},[e._v(e._s(1==e.projectDetail.contractPeriodType?"正常":"已延期"))])],1),o("v-uni-view",{staticClass:"weatherBox"},[o("v-uni-view",{staticClass:"top"},[e._v(e._s(e.weatherInfo.temperature)+"℃"),o("v-uni-image",{staticClass:"weatherIcon",attrs:{src:"/static/weatherIcon/"+e.weatherIcon(e.weatherInfo.weather)+".png"}})],1),o("v-uni-view",{staticClass:"bottom"},[e._v(e._s(e.weatherInfo.winddirection)+"风 "+e._s(e.weatherInfo.windpower)+"级")])],1),o("v-uni-view",{staticClass:"dateBox"},[o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{},[e._v(e._s(null!=e.projectDetail.contractPeriodStartTime?e.projectDetail.contractPeriodStartTime:"—.—.—"))]),o("v-uni-view",{},[e._v("项目开工日期")])],1),o("v-uni-view",{staticClass:"item item2"},[o("v-uni-view",{},[e._v(e._s(null!=e.projectDetail.contractPeriodEndTime?e.projectDetail.contractPeriodEndTime:"—.—.—"))]),o("v-uni-view",{},[e._v("要求完成日期")])],1)],1)],1),o("v-uni-view",{staticClass:"moudleContent"},[o("v-uni-view",{staticClass:"moudleTitle"},[e._v("·已有产品·")]),o("v-uni-view",{staticClass:"moudleBox"},e._l(e.list,(function(t,n){return t.operation&&2==t.moduleType&&1==t.appShow?o("v-uni-view",{key:n,staticClass:"moudleItem",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.goMoudleFn(t)}}},["sanjiang"==e.COMPANY?o("v-uni-view",{staticClass:"inner"},[t.bigModuleIcon?o("v-uni-view",{staticClass:"imgBox"},[o("v-uni-image",{staticClass:"img",attrs:{src:"/static/sjjtIcon/"+t.bigModuleIcon+".png"}})],1):e._e(),o("v-uni-view",{staticClass:"desc"},[e._v(e._s(t.appName))])],1):o("v-uni-view",{staticClass:"inner"},[1==e.iconType?o("v-uni-view",{staticClass:"imgBox"},[o("v-uni-image",{staticClass:"img",attrs:{src:"/static/moudleImg/"+t.moduleIcon+".png"}})],1):e._e(),2==e.iconType?o("v-uni-view",{staticClass:"imgBox"},[o("v-uni-image",{staticClass:"img",attrs:{src:"/static/moudleImg/"+t.bigModuleIcon+".png"}})],1):e._e(),o("v-uni-view",{staticClass:"desc"},[e._v(e._s(t.appName))])],1)],1):e._e()})),1)],1)],1),o("uni-popup",{ref:"popupqrcode",attrs:{type:"center"}},[o("v-uni-view",{staticClass:"qrcodeItem"},[o("v-uni-view",{staticClass:"title"},[e._v("打卡成功")]),o("v-uni-view",{staticClass:"checkingPointName"},[e._v("巡检点:"+e._s(e.qrCode.checkingPointName))]),o("v-uni-view",{staticClass:"position"},[e._v("巡检点位置:"+e._s(e.qrCode.position))])],1)],1),5==e.accountType||6==e.accountType?o("footers",{attrs:{activeTab:"projectEnd"}}):e._e()],1)},a=[]},bad1:function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.footerBox[data-v-024dbb9b]{background-color:#fff;display:flex;width:100%;position:fixed;bottom:0;left:0;z-index:9999;border-top:1px solid hsla(0,0%,59.2%,.15)}.footerItem[data-v-024dbb9b]{font-size:12px;flex:1;justify-content:center;text-align:center;color:#9495ad}.footerItem .tabIcon2[data-v-024dbb9b]{display:none}.footerItem.active[data-v-024dbb9b]{color:#5181f6}.footerItem.active .tabIcon2[data-v-024dbb9b]{display:inline-block}.footerItem.active .tabIcon1[data-v-024dbb9b]{display:none}.footerItem .desc[data-v-024dbb9b]{padding-bottom:5px}.tabIcon[data-v-024dbb9b]{width:26px;height:26px}.footerBox2 .desc[data-v-024dbb9b]{padding-bottom:8px}.footerBox2 .footerItem:first-child .tabIcon[data-v-024dbb9b]{padding-top:10px;width:23px;height:21px}.footerBox2 .footerItem:last-child .tabIcon[data-v-024dbb9b]{padding-top:8px;width:20px;height:23px}',""]),e.exports=t},d88d:function(e,t,o){"use strict";var n=o("e290"),i=o.n(n);i.a},e290:function(e,t,o){var n=o("8a2e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=o("4f06").default;i("1539399a",n,!0,{sourceMap:!1,shadowMode:!1})},ea2f:function(e,t,o){"use strict";o.r(t);var n=o("3173"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a}}]); |