forked from golang/hotime
1 line
38 KiB
Plaintext
1 line
38 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/vant/es/dialog/function-call.js","webpack:///./node_modules/vant/es/action-bar/ActionBar.js","webpack:///./node_modules/vant/es/action-bar/index.js","webpack:///./node_modules/vant/es/action-bar-button/ActionBarButton.js","webpack:///./node_modules/vant/es/action-bar-button/index.js","webpack:///./node_modules/vant/es/dialog/Dialog.js","webpack:///./node_modules/vant/es/dialog/index.js","webpack:///./src/components/Matters.vue","webpack:///./src/components/Matters.vue?b7c9","webpack:///./node_modules/core-js/modules/es.function.name.js","webpack:///./src/api/http.js","webpack:///./src/components/Matters.vue?0236","webpack:///./node_modules/vant/es/dialog/style/index.js"],"names":["instance","bem","create","ACTION_BAR_KEY","Symbol","actionBarProps","safeAreaInsetBottom","name","props","_ref","slots","linkChildren","default","actionBarButtonProps","type","String","text","icon","color","loading","Boolean","disabled","route","parent","index","isFirst","prev","children","value","isLast","next","isButton","last","first","t","dialogProps","title","theme","width","message","Function","callback","allowHtml","className","transition","messageAlign","closeOnPopstate","showCancelButton","cancelButtonText","cancelButtonColor","confirmButtonText","confirmButtonColor","showConfirmButton","closeOnClickOverlay","popupInheritKeys","emits","emit","confirm","cancel","updateShow","close","action","getActionHandler","show","beforeClose","args","onCancel","onConfirm","renderTitle","isolated","renderMessage","hasTitle","classNames","content","renderContent","renderButtons","renderRoundButtons","renderFooter","footer","initInstance","Wrapper","state","toggle","options","Promise","resolve","reject","open","currentOptions","defaultOptions","overlay","teleport","lockScroll","undefined","overlayClass","overlayStyle","alert","setDefaultOptions","resetDefaultOptions","Component","install","app","use","config","globalProperties","$dialog","class","style","left-arrow","onClickLeft","info","questions","q","key","clickLi","status","getTime","question","end_time","start_time","showPreview","lock-scroll","question_data","li","i","label","unit","fileNum","files","f","previewImg","url","height","src","setImg","size","data","finished","refreshing","avatar","company","mounted","this","methods","$router","push","path","unixTime","format","history","back","__exports__","render","DESCRIPTORS","FUNCTION_NAME_EXISTS","EXISTS","uncurryThis","defineProperty","FunctionPrototype","prototype","functionToString","toString","nameRE","regExpExec","exec","NAME","configurable","get","error","baseUrl","token","cache","localStorage","getItem","JSON","parse","setItem","stringify","getToken","setToken","tt","removeItem","reData","window","H","makeUrl","res","upUrl","location","hash","msg","post","urlData"],"mappings":"2IAIIA,E,yKCAC,EAAMC,GAAO,OAAAC,EAAA,MAAgB,cACvBC,EAAiBC,OAAO,GAC/BC,EAAiB,CACnBC,oBAAqB,QAER,iBAAgB,CAC7BC,KAAI,EACJC,MAAOH,EAEP,MAAMG,EAAOC,GACX,IAAI,MACFC,GACED,GACA,aACFE,GACE,eAAYR,GAEhB,OADAQ,IACO,IAAM,eAAa,MAAO,CAC/B,MAAS,CAACV,IAAO,CACf,uBAAwBO,EAAMF,uBAE/B,CAAkB,MAAjBI,EAAME,aAAkB,EAASF,EAAME,eCvBpC,EAAY,eAAY,G,yBCQ9B,EAAM,GAAO,OAAAV,EAAA,MAAgB,qBAC9BW,EAAuB,eAAO,GAAI,OAAY,CAChDC,KAAMC,OACNC,KAAMD,OACNE,KAAMF,OACNG,MAAOH,OACPI,QAASC,QACTC,SAAUD,UAEG,iBAAgB,CAC7Bb,KAAI,EACJC,MAAOK,EAEP,MAAML,EAAOC,GACX,IAAI,MACFC,GACED,EACAa,EAAQ,kBACR,OACFC,EAAM,MACNC,GACE,eAAUrB,GACVsB,EAAU,eAAS,KACrB,GAAIF,EAAQ,CACV,IAAIG,EAAOH,EAAOI,SAASH,EAAMI,MAAQ,GACzC,QAASF,GAAQ,aAAcA,MAG/BG,EAAS,eAAS,KACpB,GAAIN,EAAQ,CACV,IAAIO,EAAOP,EAAOI,SAASH,EAAMI,MAAQ,GACzC,QAASE,GAAQ,aAAcA,MAMnC,OAHA,eAAU,CACRC,UAAU,IAEL,KACL,IAAI,KACFjB,EAAI,KACJG,EAAI,KACJD,EAAI,MACJE,EAAK,QACLC,EAAO,SACPE,GACEb,EACJ,OAAO,eAAa,OAAQ,CAC1B,M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createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { extend, inBrowser, withInstall } from '../utils';\nimport { mountComponent, usePopupState } from '../utils/mount-component';\nimport VanDialog from './Dialog';\nvar instance;\n\nfunction initInstance() {\n var Wrapper = {\n setup() {\n var {\n state,\n toggle\n } = usePopupState();\n return () => _createVNode(VanDialog, _mergeProps(state, {\n \"onUpdate:show\": toggle\n }), null);\n }\n\n };\n ({\n instance\n } = mountComponent(Wrapper));\n}\n\nfunction Dialog(options) {\n /* istanbul ignore if */\n if (!inBrowser) {\n return Promise.resolve();\n }\n\n return new Promise((resolve, reject) => {\n if (!instance) {\n initInstance();\n }\n\n instance.open(extend({}, Dialog.currentOptions, options, {\n callback: action => {\n (action === 'confirm' ? resolve : reject)(action);\n }\n }));\n });\n}\n\nDialog.defaultOptions = {\n title: '',\n width: '',\n theme: null,\n message: '',\n overlay: true,\n callback: null,\n teleport: 'body',\n className: '',\n allowHtml: false,\n lockScroll: true,\n transition: undefined,\n beforeClose: null,\n overlayClass: '',\n overlayStyle: undefined,\n messageAlign: '',\n cancelButtonText: '',\n cancelButtonColor: null,\n confirmButtonText: '',\n confirmButtonColor: null,\n showConfirmButton: true,\n showCancelButton: false,\n closeOnPopstate: true,\n closeOnClickOverlay: false\n};\nDialog.currentOptions = extend({}, Dialog.defaultOptions);\nDialog.alert = Dialog;\n\nDialog.confirm = options => Dialog(extend({\n showCancelButton: true\n}, options));\n\nDialog.close = () => {\n if (instance) {\n instance.toggle(false);\n }\n};\n\nDialog.setDefaultOptions = options => {\n extend(Dialog.currentOptions, options);\n};\n\nDialog.resetDefaultOptions = () => {\n Dialog.currentOptions = extend({}, Dialog.defaultOptions);\n};\n\nDialog.Component = withInstall(VanDialog);\n\nDialog.install = app => {\n app.use(Dialog.Component);\n app.config.globalProperties.$dialog = Dialog;\n};\n\nexport { Dialog };","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from 'vue';\nimport { truthProp, createNamespace } from '../utils';\nimport { useChildren } from '@vant/use';\nvar [name, bem] = createNamespace('action-bar');\nexport var ACTION_BAR_KEY = Symbol(name);\nvar actionBarProps = {\n safeAreaInsetBottom: truthProp\n};\nexport default defineComponent({\n name,\n props: actionBarProps,\n\n setup(props, _ref) {\n var {\n slots\n } = _ref;\n var {\n linkChildren\n } = useChildren(ACTION_BAR_KEY);\n linkChildren();\n return () => _createVNode(\"div\", {\n \"class\": [bem(), {\n 'van-safe-area-bottom': props.safeAreaInsetBottom\n }]\n }, [slots.default == null ? void 0 : slots.default()]);\n }\n\n});","import { withInstall } from '../utils';\nimport _ActionBar from './ActionBar';\nexport var ActionBar = withInstall(_ActionBar);\nexport default ActionBar;","import { createVNode as _createVNode } from \"vue\";\nimport { computed, defineComponent } from 'vue';\nimport { extend, createNamespace } from '../utils';\nimport { ACTION_BAR_KEY } from '../action-bar/ActionBar'; // Composables\n\nimport { useParent } from '@vant/use';\nimport { useExpose } from '../composables/use-expose';\nimport { useRoute, routeProps } from '../composables/use-route'; // Components\n\nimport { Button } from '../button';\nvar [name, bem] = createNamespace('action-bar-button');\nvar actionBarButtonProps = extend({}, routeProps, {\n type: String,\n text: String,\n icon: String,\n color: String,\n loading: Boolean,\n disabled: Boolean\n});\nexport default defineComponent({\n name,\n props: actionBarButtonProps,\n\n setup(props, _ref) {\n var {\n slots\n } = _ref;\n var route = useRoute();\n var {\n parent,\n index\n } = useParent(ACTION_BAR_KEY);\n var isFirst = computed(() => {\n if (parent) {\n var prev = parent.children[index.value - 1];\n return !(prev && 'isButton' in prev);\n }\n });\n var isLast = computed(() => {\n if (parent) {\n var next = parent.children[index.value + 1];\n return !(next && 'isButton' in next);\n }\n });\n useExpose({\n isButton: true\n });\n return () => {\n var {\n type,\n icon,\n text,\n color,\n loading,\n disabled\n } = props;\n return _createVNode(Button, {\n \"class\": bem([type, {\n last: isLast.value,\n first: isFirst.value\n }]),\n \"size\": \"large\",\n \"type\": type,\n \"icon\": icon,\n \"color\": color,\n \"loading\": loading,\n \"disabled\": disabled,\n \"onClick\": route\n }, {\n default: () => [slots.default ? slots.default() : text]\n });\n };\n }\n\n});","import { withInstall } from '../utils';\nimport _ActionBarButton from './ActionBarButton';\nexport var ActionBarButton = withInstall(_ActionBarButton);\nexport default ActionBarButton;","import { mergeProps as _mergeProps, createVNode as _createVNode } from \"vue\";\nimport { reactive, defineComponent } from 'vue'; // Utils\n\nimport { pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from '../utils';\nimport { popupSharedProps, popupSharedPropKeys } from '../popup/shared'; // Components\n\nimport { Popup } from '../popup';\nimport { Button } from '../button';\nimport { ActionBar } from '../action-bar';\nimport { ActionBarButton } from '../action-bar-button'; // Types\n\nvar [name, bem, t] = createNamespace('dialog');\nvar dialogProps = extend({}, popupSharedProps, {\n title: String,\n theme: String,\n width: numericProp,\n message: [String, Function],\n callback: Function,\n allowHtml: Boolean,\n className: unknownProp,\n transition: makeStringProp('van-dialog-bounce'),\n messageAlign: String,\n closeOnPopstate: truthProp,\n showCancelButton: Boolean,\n cancelButtonText: String,\n cancelButtonColor: String,\n confirmButtonText: String,\n confirmButtonColor: String,\n showConfirmButton: truthProp,\n closeOnClickOverlay: Boolean\n});\nvar popupInheritKeys = [...popupSharedPropKeys, 'transition', 'closeOnPopstate'];\nexport default defineComponent({\n name,\n props: dialogProps,\n emits: ['confirm', 'cancel', 'update:show'],\n\n setup(props, _ref) {\n var {\n emit,\n slots\n } = _ref;\n var loading = reactive({\n confirm: false,\n cancel: false\n });\n\n var updateShow = value => emit('update:show', value);\n\n var close = action => {\n updateShow(false);\n props.callback == null ? void 0 : props.callback(action);\n };\n\n var getActionHandler = action => () => {\n // should not trigger close event when hidden\n if (!props.show) {\n return;\n }\n\n emit(action);\n\n if (props.beforeClose) {\n loading[action] = true;\n callInterceptor(props.beforeClose, {\n args: [action],\n\n done() {\n close(action);\n loading[action] = false;\n },\n\n canceled() {\n loading[action] = false;\n }\n\n });\n } else {\n close(action);\n }\n };\n\n var onCancel = getActionHandler('cancel');\n var onConfirm = getActionHandler('confirm');\n\n var renderTitle = () => {\n var title = slots.title ? slots.title() : props.title;\n\n if (title) {\n return _createVNode(\"div\", {\n \"class\": bem('header', {\n isolated: !props.message && !slots.default\n })\n }, [title]);\n }\n };\n\n var renderMessage = hasTitle => {\n var {\n message,\n allowHtml,\n messageAlign\n } = props;\n var classNames = bem('message', {\n 'has-title': hasTitle,\n [messageAlign]: messageAlign\n });\n var content = isFunction(message) ? message() : message;\n\n if (allowHtml && typeof content === 'string') {\n return _createVNode(\"div\", {\n \"class\": classNames,\n \"innerHTML\": content\n }, null);\n }\n\n return _createVNode(\"div\", {\n \"class\": classNames\n }, [content]);\n };\n\n var renderContent = () => {\n if (slots.default) {\n return _createVNode(\"div\", {\n \"class\": bem('content')\n }, [slots.default()]);\n }\n\n var {\n title,\n message,\n allowHtml\n } = props;\n\n if (message) {\n var hasTitle = !!(title || slots.title);\n return _createVNode(\"div\", {\n \"key\": allowHtml ? 1 : 0,\n \"class\": bem('content', {\n isolated: !hasTitle\n })\n }, [renderMessage(hasTitle)]);\n }\n };\n\n var renderButtons = () => _createVNode(\"div\", {\n \"class\": [BORDER_TOP, bem('footer')]\n }, [props.showCancelButton && _createVNode(Button, {\n \"size\": \"large\",\n \"text\": props.cancelButtonText || t('cancel'),\n \"class\": bem('cancel'),\n \"style\": {\n color: props.cancelButtonColor\n },\n \"loading\": loading.cancel,\n \"onClick\": onCancel\n }, null), props.showConfirmButton && _createVNode(Button, {\n \"size\": \"large\",\n \"text\": props.confirmButtonText || t('confirm'),\n \"class\": [bem('confirm'), {\n [BORDER_LEFT]: props.showCancelButton\n }],\n \"style\": {\n color: props.confirmButtonColor\n },\n \"loading\": loading.confirm,\n \"onClick\": onConfirm\n }, null)]);\n\n var renderRoundButtons = () => _createVNode(ActionBar, {\n \"class\": bem('footer')\n }, {\n default: () => [props.showCancelButton && _createVNode(ActionBarButton, {\n \"type\": \"warning\",\n \"text\": props.cancelButtonText || t('cancel'),\n \"class\": bem('cancel'),\n \"color\": props.cancelButtonColor,\n \"loading\": loading.cancel,\n \"onClick\": onCancel\n }, null), props.showConfirmButton && _createVNode(ActionBarButton, {\n \"type\": \"danger\",\n \"text\": props.confirmButtonText || t('confirm'),\n \"class\": bem('confirm'),\n \"color\": props.confirmButtonColor,\n \"loading\": loading.confirm,\n \"onClick\": onConfirm\n }, null)]\n });\n\n var renderFooter = () => {\n if (slots.footer) {\n return slots.footer();\n }\n\n return props.theme === 'round-button' ? renderRoundButtons() : renderButtons();\n };\n\n return () => {\n var {\n width,\n title,\n theme,\n message,\n className\n } = props;\n return _createVNode(Popup, _mergeProps({\n \"role\": \"dialog\",\n \"class\": [bem([theme]), className],\n \"style\": {\n width: addUnit(width)\n },\n \"aria-labelledby\": title || message,\n \"onUpdate:show\": updateShow\n }, pick(props, popupInheritKeys)), {\n default: () => [renderTitle(), renderContent(), renderFooter()]\n });\n };\n }\n\n});","import { Dialog } from './function-call';\nexport default Dialog;\nexport { Dialog };","<template>\r\n <div class=\"Matters\">\r\n <van-nav-bar title=\"调研填报\" left-arrow @click-left=\"onClickLeft\"> </van-nav-bar>\r\n <div class=\"matterList\">\r\n <div class=\"matterLi\" v-for=\"(q,index) in info.questions\" :key=\"index\" @click=\"clickLi(q)\">\r\n <div class=\"mattertitle flexcenter\">\r\n <i class=\"i1\" v-if=\"q.status<2||q.status==4\"></i>\r\n <i class=\"i2\" v-if=\"q.status==2||q.status==3\"></i>\r\n <h1>{{q.name}}-截止{{getTime(q.question.end_time)}}</h1>\r\n </div>\r\n <div class=\"flexcenter\" style=\"justify-content: space-between\">\r\n <div class=\"matterdate\">\r\n <div class=\"mdate\">状态:\r\n <span style=\"color: #e6422d\" v-if=\"q.status==0\">待填报</span>\r\n <span style=\"color: #e6422d\" v-if=\"q.status==1\">待上传文件</span>\r\n <span style=\"color: #e6422d\" v-if=\"q.status==2\">待审核</span>\r\n <span style=\"color: #e6422d\" v-if=\"q.status==3\">填报完成</span>\r\n <span style=\"color: #e6422d\" v-if=\"q.status==4\">驳回重填</span>\r\n </div>\r\n\r\n <div class=\"mdate\">发文日期:<span>{{getTime(q.question.start_time)}}</span></div>\r\n <div class=\"mdate\">截止日期:<span>{{getTime(q.question.end_time)}}</span></div>\r\n </div>\r\n <div class=\"matterbtn mtn1\" v-if=\"q.status<2||q.status==4\">填报</div>\r\n <div class=\"matterbtn mtn2\" v-if=\"q.status==2||q.status==3\">详情</div>\r\n </div>\r\n </div>\r\n<!-- <div class=\"matterLi\">-->\r\n<!-- <div class=\"mattertitle flexcenter\">-->\r\n<!-- <i class=\"i2\"></i><h1>企业信息特项申报填报-截止1月31日</h1>-->\r\n<!-- </div>-->\r\n<!-- <div class=\"flexcenter\" style=\"justify-content: space-between\">-->\r\n<!-- <div class=\"matterdate\">-->\r\n<!-- <div class=\"mdate\">状态:<span style=\"color:#42b983\">待填报</span></div>-->\r\n<!-- <div class=\"mdate\">发文日期:<span>2022/01/20</span></div>-->\r\n<!-- <div class=\"mdate\">截止日期:<span>2022/01/20</span></div>-->\r\n<!-- </div>-->\r\n<!-- <div class=\"matterbtn mtn2\">详情</div>-->\r\n<!-- </div>-->\r\n\r\n<!-- </div>-->\r\n\r\n </div>\r\n <van-overlay :show=\"showPreview\" @click=\"showPreview = false\" :lock-scroll=\"false\">\r\n\r\n <div class=\"wrapper\" @click.stop style=\"background: white;width: 90vw;max-height: 80vh;margin: 10vh 5vw;overflow-y: auto;display: block;position: absolute;-webkit-overflow-scrolling: touch;\">\r\n\r\n <div class=\"block\" style=\"margin: 20px;margin-top: 40px;\">\r\n <h1 style=\"font-size: 2em;text-align: center;margin-bottom: 10px\">查看填报内容</h1>\r\n <template v-for=\"(li,i) in question.question_data\" :key=\"i\">\r\n <p style=\"margin-bottom: 2px\">{{i+1}}、{{li.label}}<span style=\"display: contents\" v-if=\"li.unit!=null&&li.unit !=''\">(单位:{{ li.unit }})</span></p>\r\n <p style=\"margin-left: 10px\">你填报的内容是:{{li.value}}</p>\r\n <p v-if=\"li.fileNum!=0&&li.value!='否'\">\r\n <template v-for=\"f in li.files\" :key=\"f\">\r\n <van-image width=\"100\" @click=\"previewImg(f.url)\" height=\"100\" :src=\"setImg(f.url)\" style=\"margin-left: 15px\"/>\r\n </template>\r\n </p>\r\n </template>\r\n </div>\r\n <p style=\"height:60px\"></p>\r\n <van-button type=\"primary\" @click=\"showPreview=false\" size=\"large\" style=\"position: absolute;margin-left: -0.2vw;width: 90vw;\" >关闭</van-button>\r\n </div>\r\n <van-icon name=\"cross\" @click=\"showPreview=false\" style=\"right: 6vw;top:11vh;position: absolute\" />\r\n </van-overlay>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {baseUrl, cache} from \"../api/http\"\r\n\r\nimport moment from 'moment';\r\nimport {ImagePreview} from \"vant\";\r\n\r\nexport default {\r\n name: \"Matters\",\r\n\r\n data() {\r\n return {\r\n showPreview:false,\r\n loading: false,\r\n finished: false,\r\n refreshing: false,\r\n info:{\r\n name:\"\",\r\n avatar:null,\r\n company:{\r\n name:\"\",\r\n },\r\n questions:[],\r\n\r\n }\r\n }\r\n },\r\n mounted() {\r\n var info=cache(\"user\")\r\n if(info!=null){\r\n this.info=info\r\n }\r\n },\r\n methods: {\r\n previewImg(url){\r\n ImagePreview([this.setImg(url)]);\r\n },\r\n clickLi(question){\r\n if(question.status>1&&question.status!=4){\r\n // Dialog({message:\"你已经完成填报了\"})\r\n this.question=question\r\n this.showPreview=true\r\n return\r\n }\r\n\r\n if(question.status==0||question.status==4){\r\n cache(\"question\",question)\r\n this.$router.push({path:\"matterCon\"})\r\n return;\r\n }\r\n this.$router.push({path:\"matterUp\"})\r\n\r\n },\r\n getTime(unixTime){\r\n\r\n return moment(unixTime * 1000).format(\"MM月DD日\");\r\n },\r\n setImg(src) {\r\n if (src == null || src == \"\") {\r\n return \"./img/logo.png\"\r\n }\r\n return baseUrl + src\r\n },\r\n onClickLeft: () => history.back(),\r\n\r\n },\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.flexcenter{display: flex;align-items: center}\r\n.matterList{}\r\n.matterLi{background: #fff;padding: 0 20px;margin-top: 10px;}\r\n.i1{display: block;width: 20px;height: 20px;flex-shrink:0;background: url(\"../assets/img/load.png\")no-repeat;background-size: 100% 100%;margin-right: 5px}\r\n.i2{display: block;width: 20px;height: 20px;flex-shrink:0;background: url(\"../assets/img/over.png\")no-repeat;background-size: 100% 100%;margin-right: 5px}\r\n.mattertitle h1{font-size: 16px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis }\r\n.mattertitle{padding: 10px 0;border-bottom: 1px solid #eee}\r\n.matterdate{padding: 10px 30px}\r\n.mdate{font-size: 15px;padding: 5px 0;color: #666}\r\n.mdate span{font-size: 14px;margin-left: 10px}\r\n.matterbtn{width:50px;height:50px;color: #fff;border-radius: 12px;text-align: center;line-height: 50px}\r\n.mtn1{background: #e6422d;}\r\n.mtn2{background: #42b983;}\r\n</style>\r\n","import { render } from \"./Matters.vue?vue&type=template&id=06cf0fb4&scoped=true\"\nimport script from \"./Matters.vue?vue&type=script&lang=js\"\nexport * from \"./Matters.vue?vue&type=script&lang=js\"\n\nimport \"./Matters.vue?vue&type=style&index=0&id=06cf0fb4&scoped=true&lang=css\"\n\nimport exportComponent from \"D:\\\\work\\\\zqclj\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-06cf0fb4\"]])\n\nexport default __exports__","var DESCRIPTORS = require('../internals/descriptors');\nvar FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar functionToString = uncurryThis(FunctionPrototype.toString);\nvar nameRE = /function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/;\nvar regExpExec = uncurryThis(nameRE.exec);\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return regExpExec(nameRE, functionToString(this))[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","import {Dialog} from \"vant\";\r\n\r\n// export var baseUrl = \"http://192.168.6.27:8080\"\r\nexport const baseUrl = process.env.NODE_ENV === \"production\" ? \"/\" : \"http://127.0.0.1:8081/\"\r\nvar appsystemUrl = \"http://127.0.0.1\"\r\nvar ocrUrl = \"/appsystem/ocr\"\r\nvar exitUrl = \"/appsystem/exit\"\r\nvar clearCache = \"/appsystem/clearCache\"\r\nvar qrcodeUrl = \"/appsystem/qrcode\"\r\nvar token = null\r\n\r\n\r\nexport function cache(key, value) {\r\n if (value == null) {\r\n value = localStorage.getItem(key)\r\n if (value == null) {\r\n return null\r\n }\r\n value = JSON.parse(value)\r\n return value[\"data\"];\r\n }\r\n localStorage.setItem(key, null)\r\n localStorage.setItem(key, JSON.stringify({data: value}))\r\n}\r\n\r\nexport function getToken() {\r\n if (token == null) {\r\n token = localStorage.getItem(\"token\")\r\n }\r\n return token\r\n}\r\n\r\nexport function setToken(tt) {\r\n\r\n if (tt == null) {\r\n token = null\r\n localStorage.removeItem(\"token\")\r\n return\r\n }\r\n token = localStorage.setItem(\"token\", tt)\r\n return token\r\n}\r\n\r\nexport function install() {\r\n\r\n fetch(\"app.json?time=\" + new Date().getTime()).then(function (response) {\r\n return response.json();\r\n }).then(function (res) {\r\n\r\n let version = localStorage.getItem(\"version\")\r\n\r\n\r\n if (version != null && version != res.version) {\r\n Dialog({message: \"你有新的升级包,点确认开始升级\"}).then(() => {\r\n // on close\r\n fetch(appsystemUrl + clearCache);\r\n });\r\n }\r\n\r\n localStorage.setItem(\"version\", res.version)\r\n\r\n });\r\n\r\n}\r\n\r\nexport function get(url, data) {\r\n if (data == null) {\r\n data = {}\r\n }\r\n if(getToken()!=null){\r\n data[\"token\"] = getToken()\r\n }\r\n const reData = new Promise(function (resolve) { //做一些异步操作\r\n window.H.get(window.H.makeUrl(baseUrl + url, data),function (res) {\r\n // })\r\n // // fetch(window.H.makeUrl(baseUrl + url, data),{\r\n // method: 'GET',\r\n // mode:\"cors\",\r\n // credentials:\"include\",\r\n // headers: {\r\n // 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',\r\n // },\r\n // }).then(function (response) {\r\n // return response.json();\r\n // }).then(function (res) {\r\n if (res.status == 2){\r\n window.H.upUrl('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri='+window.H.makeUrl(\"wx/wx.html\")+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect');\r\n }\r\n if (res.status == 6) {\r\n setToken(null)\r\n location.hash = \"#/companytwo\"\r\n\r\n return\r\n }\r\n if (res.status != 0) {\r\n Dialog({message: res.error.msg});\r\n return\r\n }\r\n resolve(res)\r\n })\r\n });\r\n return reData\r\n}\r\n\r\nexport function post(url, data) {\r\n\r\n // const searchParams = new URLSearchParams(data);\r\n var urlData={}\r\n if(getToken()!=null){\r\n urlData={\"token\": getToken()}\r\n }\r\n const reData = new Promise(function (resolve) { //做一些异步操作\r\n window.H.post(window.H.makeUrl(baseUrl + url,urlData),data,function (res) {\r\n // fetch(window.H.makeUrl(baseUrl + url, urlData), {\r\n // method: 'POST',\r\n // mode:\"cors\",\r\n // credentials:\"include\",\r\n // headers: {\r\n // 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',\r\n // },\r\n // body: searchParams.toString(),\r\n // }).then(function (response) {\r\n // return response.json();\r\n // }).then(function (res) {\r\n if (res.status == 2){\r\n window.H.upUrl('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri='+window.H.makeUrl(\"wx/wx.html\")+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect');\r\n }\r\n if (res.status == 6) {\r\n setToken(null)\r\n location.hash = \"#/companytwo\"\r\n // window.H.upUrl('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri='+window.H.makeUrl(\"wx/code.html\")+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect');\r\n return\r\n }\r\n if (res.status != 0) {\r\n Dialog({message: res.error.msg});\r\n return\r\n }\r\n resolve(res)\r\n })\r\n });\r\n\r\n\r\n return reData\r\n}\r\n\r\n// 新增任务\r\nexport function upload(file) {\r\n let param = new FormData()\r\n // 将得到的文件流添加到FormData对象\r\n param.append('file', file, file.name)\r\n const reData = new Promise(function (resolve) { //做一些异步操作\r\n fetch(baseUrl + \"app/user/upload\", {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n body: param,\r\n }).then(function (response) {\r\n return response.json();\r\n }).then(function (res) {\r\n if (res.status == 2) {\r\n // setToken(null)\r\n localStorage.setItem(\"org_id\", window.H.getParam(\"org_id\"))\r\n location.hash = \"#/login\"\r\n // window.H.upUrl('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2edb802f5c3ae1ae&redirect_uri='+window.H.makeUrl(\"wx/code.html\")+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect');\r\n return\r\n }\r\n if (res.status != 0) {\r\n Dialog({message: res.error.msg});\r\n return\r\n }\r\n resolve(res)\r\n })\r\n });\r\n return reData\r\n}\r\n\r\nexport function ocr(fn) {\r\n window.H.$off(\"ocr\");\r\n window.H.$on(\"ocr\", function (data) {\r\n fn(data.result)\r\n });\r\n fetch(appsystemUrl + ocrUrl);\r\n}\r\n\r\nexport function exit() {\r\n\r\n fetch(appsystemUrl + exitUrl);\r\n}\r\n\r\nexport function qrcode(fn) {\r\n window.H.$off(\"qrcode\");\r\n window.H.$on(\"qrcode\", function (data) {\r\n fn(data)\r\n });\r\n fetch(appsystemUrl + qrcodeUrl);\r\n}\r\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Matters.vue?vue&type=style&index=0&id=06cf0fb4&scoped=true&lang=css\"","import '../../style/base.css';\nimport '../../action-bar/index.css';\nimport '../../badge/index.css';\nimport '../../icon/index.css';\nimport '../../loading/index.css';\nimport '../../button/index.css';\nimport '../../action-bar-button/index.css';\nimport '../../overlay/index.css';\nimport '../../popup/index.css';\nimport '../index.css';"],"sourceRoot":""} |