pages-my-scan-scan_result-scan_result.ea6cecc4.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-scan-scan_result-scan_result"],{2034:function(t,n,i){"use strict";i.r(n);var e=i("ba40"),a=i.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(s);n["default"]=a.a},"32fb":function(t,n,i){var e=i("93d7");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("4f06").default;a("36759c32",e,!0,{sourceMap:!1,shadowMode:!1})},"349b":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return s})),i.d(n,"a",(function(){return e}));var e={uniIcons:i("898d").default},a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[e("v-uni-view",{staticClass:"top"},[e("v-uni-image",{attrs:{src:i("f7ca1"),mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"section_1"},[e("v-uni-view",{staticClass:"user"},[e("v-uni-view",{staticClass:"name"},[t._v(t._s(t.name))]),e("v-uni-view",{staticClass:"inner"},[e("v-uni-view",{staticClass:"text"},[t._v("工号:"+t._s(t.staff_num))]),e("v-uni-view",{staticClass:"text"},[t._v("部门:"+t._s(t.section))])],1)],1),e("v-uni-view",{staticClass:"result"},[e("uni-icons",{attrs:{type:"checkbox",size:"100",color:"#52C41A"}}),e("v-uni-view",{staticClass:"text"},[t._v("正常")])],1)],1),e("v-uni-view",{staticClass:"section_2"},[e("v-uni-view",{staticClass:"btn_list"},[e("v-uni-view",{staticClass:"btn",style:t.state?"":"background-color: #ccc;",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.post_result(1)}}},[e("v-uni-view",{staticClass:"icon"},[e("uni-icons",{attrs:{type:"download-filled",size:"30",color:"#fff"}})],1),e("v-uni-view",{staticClass:"text"},[t._v("入矿")])],1),e("v-uni-view",{staticClass:"btn",style:t.state?"":"background-color: #ccc;",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.post_result(2)}}},[e("v-uni-view",{staticClass:"icon"},[e("uni-icons",{attrs:{type:"home-filled",size:"30",color:"#fff"}})],1),e("v-uni-view",{staticClass:"text"},[t._v("堂食")])],1)],1)],1)],1)},s=[]},"93d7":function(t,n,i){var e=i("24fb"),a=i("1de5"),s=i("fcf3"),o=i("d0a7");n=e(!1);var c=a(s),r=a(o);n.push([t.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/* 文章场景相关 */.top[data-v-d3ea6cd2]{z-index:-1;position:fixed;top:0;left:0}.top uni-image[data-v-d3ea6cd2]{width:%?750?%;height:%?746?%}.section_1[data-v-d3ea6cd2]{margin:0 auto;margin-top:%?50?%;width:%?700?%;height:%?640?%;background-image:url('+c+");background-size:cover}.section_1 .user[data-v-d3ea6cd2]{padding-top:%?90?%;padding-bottom:%?30?%}.section_1 .user .name[data-v-d3ea6cd2]{font-size:%?42?%;font-weight:700;text-align:center;margin-bottom:%?20?%}.section_1 .user .inner[data-v-d3ea6cd2]{display:flex;justify-content:space-between;line-height:%?40?%;box-sizing:border-box;padding:0 %?100?%}.section_1 .user .inner .text[data-v-d3ea6cd2]{font-size:%?28?%;color:#666}.section_1 .result[data-v-d3ea6cd2]{margin-top:%?20?%;text-align:center}.section_1 .result .text[data-v-d3ea6cd2]{margin-top:%?20?%;color:#52c41a;font-size:%?40?%;font-weight:700}.section_2[data-v-d3ea6cd2]{margin:%?-26?% auto 0;box-sizing:border-box;padding:%?50?% %?20?%;width:%?650?%;height:%?420?%;background-image:url("+r+");background-size:cover}.section_2 .btn_list[data-v-d3ea6cd2]{margin-top:%?50?%;display:flex;justify-content:space-around}.section_2 .btn_list .btn[data-v-d3ea6cd2]{display:flex;align-items:center;justify-content:center;width:%?270?%;height:%?100?%;background-color:#009dd1;border-radius:%?20?%}.section_2 .btn_list .btn .icon[data-v-d3ea6cd2]{margin-right:%?20?%}.section_2 .btn_list .btn .text[data-v-d3ea6cd2]{font-size:%?46?%;font-weight:700;color:#fff}.section_2 .btn_list .btn[data-v-d3ea6cd2]:nth-child(2){background-color:#ff7e00}",""]),t.exports=n},97769:function(t,n,i){"use strict";var e=i("32fb"),a=i.n(e);a.a},ba40:function(t,n,i){"use strict";i("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("25f0"),i("c975"),i("466d");var e={data:function(){return{staff_num:"",section:"",name:"",state:!0}},onLoad:function(){function t(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i");if(window.location.hash.indexOf("?")<0)return null;var i=window.location.hash.split("?")[1].match(n);return null!=i?decodeURIComponent(i[2]):null}this.staff_num=t("staff_num"),this.name=t("name"),this.section=t("section_fullname")},methods:{post_result:function(t){var n=this;this.state?(console.log(t),this.$api.qr_code_scanningRecord({staff_num:this.staff_num,type:t}).then((function(t){uni.showToast({icon:"none",title:"记录成功"}),n.state=!1}))):uni.showToast({icon:"none",title:"已经提交过了,请不要重复提交!"})}}};n.default=e},d0a7:function(t,n,i){t.exports=i.p+"static/img/section_2.6dea78df.png"},f7ca1:function(t,n,i){t.exports=i.p+"static/img/bg.a3f4a318.png"},fcf3:function(t,n,i){t.exports=i.p+"static/img/section_1.d78a8df6.png"},fd81:function(t,n,i){"use strict";i.r(n);var e=i("349b"),a=i("2034");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(s);i("97769");var o=i("f0c5"),c=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"d3ea6cd2",null,!1,e["a"],void 0);n["default"]=c.exports}}]);