k94314517
2025-07-01 f7a3d41075e00498f7033475108c0bcd86cda733
wx/unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{163:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(164));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},164:function(e,n,t){"use strict";t.r(n);var o=t(165),r=t(167);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(178);var c,i=t(32),u=Object(i["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"57280228",null,!1,o["components"],c);u.options.__file="pages/index/index.vue",n["default"]=u.exports},165:function(e,n,t){"use strict";t.r(n);var o=t(166);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},166:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,416))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,425))},uPicker:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(t.bind(null,435))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!0})},a=!1,c=[];r._withStripped=!0},167:function(e,n,t){"use strict";t.r(n);var o=t(168),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},168:function(e,n,t){"use strict";(function(e,o){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(55)),c=r(t(57)),i=r(t(11)),u=t(160);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d={computed:l({},(0,u.mapState)(["userInfo","cookies"])),data:function(){return{num:0,show:!1,companyList:[],backgroundImg:t(169),backgroundImg1:t(170),backgroundImg2:t(171),backgroundImg3:t(172),backgroundImg4:t(173),backgroundImg5:t(174),backgroundImg6:t(175),backgroundImg7:t(176),backgroundImg8:t(177)}},onShow:function(){this.getNum()},methods:{test:function(){e.chooseImage({count:1,success:function(){var n=(0,c.default)(a.default.mark((function n(t){var o;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log(new e.serviceMarket.CDN({type:"filePath",filePath:t.tempFilePaths[0]})),n.prev=1,n.next=4,e.serviceMarket.invokeService({service:"wx79ac3de8be320b71",api:"OcrAllInOne",data:{img_url:new e.serviceMarket.CDN({type:"filePath",filePath:t.tempFilePaths[0]}),data_type:3,ocr_type:1}});case 4:o=n.sent,console.log("invokeService success",o),e.showModal({title:"success",content:JSON.stringify(o)}),n.next=13;break;case 9:n.prev=9,n.t0=n["catch"](1),console.log(JSON.stringify(n.t0)),e.showModal({title:"fail",content:n.t0});case 13:case"end":return n.stop()}}),n,null,[[1,9]])})));function t(e){return n.apply(this,arguments)}return t}(),fail:function(e){},complete:function(e){}})},cancel:function(){this.show=!1},confirmCompany:function(e){var n=this;e.value[0].companyId!==this.userInfo.companyId?this.$u.api.switchCompany({companyId:e.value[0].companyId}).then(function(){var e=(0,c.default)(a.default.mark((function e(t){var o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$u.api.getUserInfo();case 2:o=e.sent,200===o.code&&(n.$store.commit("setUserInfo",o.data),n.show=!1);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()):o.showToast({title:"不能切换当前企业",icon:"none"})},getNum:function(){var e=this;this.$u.api.guaranteeNum().then((function(n){200===n.code&&(e.num=n.data)}))},loginOut:function(){var e=this;this.$u.api.logout().then((function(n){200===n.code&&(e.$store.commit("empty"),o.navigateTo({url:"/pages/login/login"}))}))},jump:function(e){switch(this.cookies&&this.userInfo||o.navigateTo({url:"/pages/login/login"}),e){case 1:o.navigateTo({url:"/pages/insuranceApplication/insuranceApplication"});break;case 2:o.navigateTo({url:"/pages/myPolicy/myPolicy"});break;case 3:o.navigateTo({url:"/pages/online_reporting/online_reporting"});break;case 4:o.navigateTo({url:"/pages/addition_subtraction_application/addition_subtraction_application"});break;case 5:o.navigateTo({url:"/pages/add_subtract_insurance/add_subtract_insurance"});break;case 6:o.navigateTo({url:"/pages/factoryChange/factoryChange"});break;case 7:o.navigateTo({url:"/pages/dispatch_unit_records/dispatch_unit_records"});break;case 8:o.navigateTo({url:"/pages/employee_management/employee_management"});break}}}};n.default=d}).call(this,t(1)["default"],t(2)["default"])},178:function(e,n,t){"use strict";t.r(n);var o=t(179),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},179:function(e,n,t){}},[[163,"common/runtime","common/vendor"]]]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{163:function(t,n,e){"use strict";e.r(n);var r=e(164),i=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=i.a},164:function(t,n,e){},165:function(t,n,e){"use strict";e.r(n);var r=e(166),i=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=i.a},166:function(t,n,e){},173:function(t,n,e){"use strict";(function(t,n){var r=e(4);e(26);r(e(25));var i=r(e(174));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},174:function(t,n,e){"use strict";e.r(n);var r=e(175),i=e(177);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e(163),e(165);var o,u=e(32),c=Object(u["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"57280228",null,!1,r["components"],o);c.options.__file="pages/index/index.vue",n["default"]=c.exports},175:function(t,n,e){"use strict";e.r(n);var r=e(176);e.d(n,"render",(function(){return r["render"]})),e.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(n,"components",(function(){return r["components"]}))},176:function(t,n,e){"use strict";var r;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return o})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return r}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.list.length),r=e>0?t.__map(t.list,(function(n,e){var r=t.__get_orig(n),i=t.returnStyle(n.statusCollect);return{$orig:r,m0:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,l0:r}})},a=!1,o=[];i._withStripped=!0},177:function(t,n,e){"use strict";e.r(n);var r=e(178),i=e.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);n["default"]=i.a},178:function(t,n,e){"use strict";(function(t){var r=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e(18)),a=function(){e.e("components/search/search").then(function(){return resolve(e(436))}.bind(null,e)).catch(e.oe)},o=function(){Promise.all([e.e("common/vendor"),e.e("components/my-tabbar/my-tabbar")]).then(function(){return resolve(e(443))}.bind(null,e)).catch(e.oe)},u={components:{Search:a,MyTabbar:o},data:function(){return{list:[],next:!1,cate:[{name:"全部",id:""},{name:"保障中",id:"2"},{name:"待审核",id:"0"},{name:"待签署",id:"7"},{name:"待出单",id:"1"},{name:"已退回",id:"4"},{name:"申请退回",id:"5"},{name:"已关闭",id:"6"},{name:"已过期",id:"3"},{name:"投保中",id:"26"}],form:{solutionName:"",startTimeE:"",startTimeS:"",statusCollect:""},page:1,currentPage:"/pages/index/index"}},onLoad:function(){this.getList()},onReachBottom:function(){this.getList()},methods:{jump:function(n){t.navigateTo({url:"/pages/policyDetails/policyDetails?orderId=".concat(n)})},getValue:function(t){this.next=!1,this.page=1,this.list=[],this.form.solutionName=t.name,this.form.startTimeE=t.endTime,this.form.startTimeS=t.startTime,this.form.statusCollect=t.status,this.getList()},returnStyle:function(t){return[2,26,27].includes(t)?"linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%);":[0,7,1,22,28,23].includes(t)?"linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);":[5,4,6,3,25,24].includes(t)?"#ffffff":void 0},getList:function(){var t=this;this.next||this.$u.api.insuranceApplyPage({capacity:10,page:this.page,model:this.form}).then((function(n){var e;200===n.code&&(n.data.records.length>0?(t.page++,(e=t.list).push.apply(e,(0,i.default)(n.data.records))):t.next=!0)}))}}};n.default=u}).call(this,e(2)["default"])}},[[173,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map