1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0773":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("fb6a"),i("99af");var n=i("a620"),a={data:function(){return{username:uni.getStorageSync("name"),iptVal:"",noticeArr:[],picUrl:"",avatarUrl:"https://img.51miz.com/Element/00/38/03/97/917488dc_E380397_8f92a53e.png",showNoNotice:!1}},onLoad:function(){},methods:{clickSearch:function(){console.log(this.iptVal),this.fetchHomeNotice(this.iptVal)},jumpEdu:function(){uni.navigateTo({url:"/pages/eduPage/eduPage"})},jumpExam:function(){uni.navigateTo({url:"/pages/exam/exam"})},jumpPrac:function(e){uni.navigateTo({url:"/pages/practice/practice?param=".concat(e)})},jumpMeeting:function(){uni.navigateTo({url:"/pages/meeting/meeting"})},jumpAwardPunish:function(){uni.navigateTo({url:"/pages/awardPunish/awardPunish"})},jumpUser:function(){uni.navigateTo({url:"/pages/user/user"})},jumpMall:function(){uni.navigateTo({url:"/pages/pointsMall/pointsMall"})},jumpScore:function(){uni.navigateTo({url:"/pages/pracResult/pracResult"})},fetchHomeNotice:function(e){var t=this;uni.request({url:n.publicPath+"/backstage/app/getAppNoticeList",method:"POST",header:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},data:{userId:uni.getStorageSync("id"),keyWord:e},success:function(e){console.log(e),200==e.data.code?(t.showNoNotice=!1,t.noticeArr=e.data.data.slice(0,5),console.log(t.noticeArr)):t.showNoNotice=!0},fail:function(e){console.log(e)}})},toggleNotice:function(e,t,i,a,o,c,r,s,u){console.log(t),0==t?uni.request({url:n.publicPath+"/backstage/app/receiveNoticeById",method:"POST",header:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},data:{userId:uni.getStorageSync("id"),id:e},success:function(n){console.log(n),200==n.data.code&&uni.navigateTo({url:"/pages/noticePage/noticePage?id=".concat(e,"&ifReceive=").concat(t,"&ifSign=").concat(i,"&theme=").concat(a,"&cont=").concat(o,"&sTime=").concat(c,"&eTime=").concat(r,"&type=").concat(s,"&workTime=").concat(u)})}}):uni.navigateTo({url:"/pages/noticePage/noticePage?id=".concat(e,"&ifReceive=").concat(t,"&ifSign=").concat(i,"&theme=").concat(a,"&cont=").concat(o,"&sTime=").concat(c,"&eTime=").concat(r,"&type=").concat(s,"&workTime=").concat(u)})},moreDetail:function(){uni.navigateTo({url:"/pages/moreDetail/moreDetail"})}},onShow:function(){uni.getStorageSync("id")?(this.fetchHomeNotice(""),this.iptVal=""):uni.showToast({icon:"none",title:"请重新登录!",success:function(){uni.reLaunch({url:"/pages/login/login"})}}),uni.request({url:n.publicPath+"/backstage/appshoping/getAllpoint",method:"POST",header:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},data:{userId:uni.getStorageSync("id")},success:function(e){console.log(e),200==e.data.code&&uni.setStorageSync("point",e.data.data)}})}};t.default=a},"3a4a":function(e,t,i){"use strict";var n=i("853e"),a=i.n(n);a.a},"3ef7":function(e,t,i){var n=i("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/* 文章场景相关 */.hole-page[data-v-8f8f5fec]{width:100%;background-color:#f7fbfe}.nav-bar[data-v-8f8f5fec]{width:100%;height:0;padding-top:0}.user-area[data-v-8f8f5fec]{width:90%;margin:%?20?% auto;margin-bottom:%?50?%;box-sizing:border-box;padding:%?15?%;display:flex}.user-area .user-lef[data-v-8f8f5fec]{width:20%;height:%?120?%;border-radius:50%;overflow:hidden}.user-area .user-lef uni-image[data-v-8f8f5fec]{width:100%;height:100%}.user-area .user-rig[data-v-8f8f5fec]{flex:1;box-sizing:border-box;padding-left:%?15?%;display:flex;flex-direction:column;justify-content:space-around}.upper-bgd[data-v-8f8f5fec]{width:95%;height:%?300?%;margin:%?20?% auto}.upper-bgd uni-image[data-v-8f8f5fec]{width:100%;height:100%}.select-area[data-v-8f8f5fec]{width:90%;margin:%?20?% auto;box-sizing:border-box;padding:%?20?% 0 0 %?20?%;display:flex;background-color:#fff;border-radius:%?20?%;flex-wrap:wrap;align-items:center}.select-area uni-view[data-v-8f8f5fec]{width:21%;height:%?160?%;display:flex;flex-direction:column;justify-content:space-around;align-items:center;margin-right:4%;margin-bottom:%?45?%}.select-area uni-view h4[data-v-8f8f5fec]{width:65%;height:55%;border-radius:50%}.select-area uni-view h4 uni-image[data-v-8f8f5fec]{width:100%;height:100%;overflow:hidden}.select-area uni-view span[data-v-8f8f5fec]{font-size:16px}.tit[data-v-8f8f5fec]{width:90%;margin:%?20?% auto;margin-top:%?40?%;font-size:24px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.kwd-ipt[data-v-8f8f5fec]{width:95%;margin:%?20?% auto}.kwd-ipt .is-input-border[data-v-abe12412][data-v-8f8f5fec]{border-radius:%?30?%}.lower-cont[data-v-8f8f5fec]{width:90%;margin:%?20?% auto;overflow-y:auto;font-size:12px}.lower-cont .single-notice[data-v-8f8f5fec]{width:100%;box-sizing:border-box;padding:%?12?%;background-color:#fff;margin-bottom:%?20?%}.lower-cont .single-notice .single-exam[data-v-8f8f5fec], .lower-cont .single-notice .single-edu[data-v-8f8f5fec]{width:100%;height:%?100?%;box-sizing:border-box;padding:%?8?%;display:flex\r\n /* .lef{\r\n\t\t\t\twidth: 12%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 100%;\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t}\r\n\t\t\t} */}.lower-cont .single-notice .single-exam .rig[data-v-8f8f5fec], .lower-cont .single-notice .single-edu .rig[data-v-8f8f5fec]{width:100%;height:100%;box-sizing:border-box;padding-left:%?20?%;display:flex;flex-direction:column;justify-content:space-around}.lower-cont .single-notice .single-exam .top-rig[data-v-8f8f5fec], .lower-cont .single-notice .single-edu .top-rig[data-v-8f8f5fec]{flex:1;display:flex}.lower-cont .single-notice .single-exam .top-rig .greenDot[data-v-8f8f5fec], .lower-cont .single-notice .single-edu .top-rig .greenDot[data-v-8f8f5fec]{width:40%;height:40%;border-radius:50%;margin:auto;background-color:green}.lower-cont .single-notice .single-exam .top-rig .redDot[data-v-8f8f5fec], .lower-cont .single-notice .single-edu .top-rig .redDot[data-v-8f8f5fec]{width:40%;height:40%;border-radius:50%;margin:auto;background-color:red}.lower-cont .no-notice[data-v-8f8f5fec]{width:100%;height:40vh;background-color:#fff;display:flex}.lower-cont .no-notice .img[data-v-8f8f5fec]{margin:auto;width:25%;height:12vh;display:flex;flex-direction:column;justify-content:space-around;align-items:center}.lower-cont .no-notice .img uni-image[data-v-8f8f5fec]{width:100%;height:80%}.lower-cont .no-notice .img span[data-v-8f8f5fec]{font-size:14px}',""]),e.exports=t},6926:function(e,t,i){"use strict";i.r(t);var n=i("0773"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"6e9b":function(e,t,i){"use strict";i.r(t);var n=i("b17b"),a=i("6926");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("3a4a");var c=i("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"8f8f5fec",null,!1,n["a"],void 0);t["default"]=r.exports},"853e":function(e,t,i){var n=i("3ef7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("6e91d0ca",n,!0,{sourceMap:!1,shadowMode:!1})},a620:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.publicPath=void 0;t.publicPath="http://192.168.0.14:1996/GsExamWeb"},b17b:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"hole-page"},[i("v-uni-view",{staticClass:"nav-bar"}),i("v-uni-view",{staticClass:"user-area"},[i("v-uni-view",{staticClass:"user-lef",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpUser.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:e.avatarUrl,mode:""}})],1),i("v-uni-view",{staticClass:"user-rig"},[i("h2",[e._v("Hello,"+e._s(e.username))]),i("h5",{staticStyle:{"font-weight":"normal"}},[e._v("甘肃送变电工程有限公司安全教育培训系统")])])],1),i("v-uni-view",{staticClass:"select-area"},[i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpExam.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:"/static/exam.png",mode:""}})],1),i("span",[e._v("考试")])]),i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpPrac("")}}},[i("v-uni-image",{attrs:{src:"/static/prac.png",mode:""}})],1),i("span",[e._v("练习")])]),i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpMeeting.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:"/static/meeting.png",mode:""}})],1),i("span",[e._v("例会")])]),i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpAwardPunish.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:"/static/awardPunish.png",mode:""}})],1),i("span",[e._v("奖惩")])]),i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpPrac(1)}}},[i("v-uni-image",{attrs:{src:"/static/quesAnswer.png",mode:""}})],1),i("span",[e._v("背题")])]),i("v-uni-view",[i("h4",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.jumpMall.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:"/static/mall.png",mode:""}})],1),i("span",[e._v("积分商城")])])],1),i("v-uni-view",{staticClass:"tit"},[i("span",[e._v("通知公告")]),i("v-uni-text",{staticStyle:{"font-size":"16px","font-weight":"normal",color:"#a5a5a5"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.moreDetail.apply(void 0,arguments)}}},[e._v("查看全部 >")])],1),i("v-uni-view",{staticClass:"lower-cont"},[e._l(e.noticeArr,(function(t,n){return i("v-uni-view",{key:n,staticClass:"single-notice",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toggleNotice(t.id,t.ifReceive,t.ifSign,t.noticeTheme,t.noticeContent,t.startTime,t.endTime,t.noticeType,t.workTime)}}},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.noticeType,expression:"notice.noticeType == 1"}],staticClass:"single-exam"},[i("v-uni-view",{staticClass:"rig"},[i("v-uni-view",{staticStyle:{"font-size":"16px","font-weight":"bold"}},[e._v(e._s(t.noticeTheme))]),i("v-uni-view",{staticStyle:{color:"#868686"}},[e._v(e._s(t.startTime+" ~ "+t.endTime))])],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2==t.noticeType,expression:"notice.noticeType == 2"}],staticClass:"single-edu"},[i("v-uni-view",{staticClass:"rig"},[i("v-uni-view",{staticStyle:{"font-size":"16px","font-weight":"bold"}},[e._v(e._s(t.noticeTheme))]),i("v-uni-view",{staticStyle:{color:"#868686"}},[e._v(e._s(t.startTime+" ~ "+t.endTime))])],1)],1)],1)})),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.showNoNotice,expression:"showNoNotice"}],staticClass:"no-notice"},[i("v-uni-view",{staticClass:"img"},[i("v-uni-image",{attrs:{src:"/static/noMeeting.png",mode:""}}),i("span",[e._v("暂无公告")])],1)],1)],2)],1)},a=[]}}]); |