You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
44 KiB
1 lines
44 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?2999","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?328d","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?01de","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?7068","uni-app:///agent/pages/technician/apply.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?c888","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/agent/pages/technician/apply.vue?05e5"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","wPicker","data","isLoad","options","cityList","cityIndex","storeList","storeIndex","toDay","toDayTime","showKey","showTime","workList","id","title","fdd_agreement","form","user_id","nickName","coach_name","mobile","sex","birthday","work_time","city_id","store_id","lng","lat","address","text","id_code","id_card","id_card_fan","id_card_people","license","work_img","self_img","rule","name","checkType","errorMsg","regType","have_user_id","lockTap","computed","primaryColor","subColor","configInfo","userInfo","location","onLoad","coach_status","uni","methods","initIndex","refresh","bg","cur_time","Promise","path","initRefresh","getStoreList","store","getCityList","key","val","city","toFddSign","viewpdf_url","url","pickerChange","imgUpload","imagelist","e","imgtype","toSetItem","toShowTime","onConfirm","toChooseLocation","type","addrLat","addrLng","locaLat","locaLng","param","longitude","latitude","toChooseUser","validate","item","submit","arr","msg","is_work","start","start_time","end","end_time","work","is_edit","methodModel","setTimeout","openType","filters","handleStartEndTime"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,yLAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvEA;AAAA;AAAA;AAAA;AAAozB,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;AC0Nx0B;AAEA;AAIA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eACA;EACAC;IACAC;EACA;EACAC;IAAA;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;MACA;QACAD;QACAC;MACA;MACAC;MACAC;QACAH;QACAI;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;MAAA,mDACA,mDACA,uDACA,oDACA,uDACA,2DACA,gBACA;MACAC;QACAC;QACAC;QACAC;QACAC;MACA;QACAH;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;MACA;QACAF;QACAC;QACAC;MACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA;QACAF;QACAC;QACAC;QACAC;MACA;QACAH;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;QACAC;MACA,EACA;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IAAA;IAAA;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA,cAGA/C,QADAU;cAEA;cACA;cAAA;cAAA,OACA;YAAA;cAEAsC,eACA,MADAA;cAEAC;gBACAtC,mCACA;cACA;cACA;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA;IAAA;EACA;EACAuC,uDACA,0DACA;IACAC;MAAA;QAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAAC;gBAAA,MASA,2DACA,gDACA,0DACA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;cAAA;gBAEA;kBACAC;gBACA;gBACAC;gBACA;gBACA;gBAAA;gBAAA,OACAC;cAAA;gBAAA,oBAGA,eADA7C;gBAAA,IAEAA;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;cAAA;gBAAA;gBAAA,OAIA;kBACAA;gBACA;cAAA;gBAFAZ;gBAGAA;kBACA;oBACA0D;kBACA;gBACA;gBACA1D;g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","file":"agent/pages/technician/apply.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './agent/pages/technician/apply.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./apply.vue?vue&type=template&id=6f9ac274&\"\nvar renderjs\nimport script from \"./apply.vue?vue&type=script&lang=js&\"\nexport * from \"./apply.vue?vue&type=script&lang=js&\"\nimport style0 from \"./apply.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"agent/pages/technician/apply.vue\"\nexport default component.exports","export * from \"-!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./apply.vue?vue&type=template&id=6f9ac274&\"","var components\ntry {\n components = {\n wPicker: function () {\n return import(\n /* webpackChunkName: \"components/w-picker/w-picker\" */ \"@/components/w-picker/w-picker.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.isLoad\n ? _vm.configInfo.plugAuth.store && _vm.storeList.length > 0\n : null\n var m0 = _vm.isLoad ? _vm.$t(\"action.attendantName\") : null\n var m1 = _vm.isLoad ? _vm.$t(\"action.attendantName\") : null\n var g1 = _vm.isLoad ? _vm.form.text.length : null\n var g2 = _vm.isLoad && !(g1 > 300) ? _vm.form.text.length : null\n var f0 =\n _vm.isLoad && _vm.form.is_work === 1\n ? _vm._f(\"handleStartEndTime\")(_vm.form, _vm.toDay)\n : null\n var g3 = _vm.isLoad\n ? _vm.fdd_agreement && _vm.fdd_agreement.hasOwnProperty(\"viewpdf_url\")\n : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event, index) {\n var _temp = arguments[arguments.length - 1].currentTarget.dataset,\n _temp2 = _temp.eventParams || _temp[\"event-params\"],\n index = _temp2.index\n var _temp, _temp2\n $event.stopPropagation()\n _vm.form.sex = index\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n m0: m0,\n m1: m1,\n g1: g1,\n g2: g2,\n f0: f0,\n g3: g3,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./apply.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./apply.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"apply-pages\" v-if=\"isLoad\">\r\n\t\t<view class=\"apply-form\">\r\n\t\t\t<view class=\"fill-base radius-16\">\r\n\t\t\t\t<view @tap.stop=\"toChooseUser\" class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text\">关联用户</view>\r\n\t\t\t\t\t<view class=\"item-input text\">\r\n\t\t\t\t\t\t<view class=\"flex-between\">\r\n\t\t\t\t\t\t\t{{form.user_id ? form.nickName :'请选择'}}\r\n\t\t\t\t\t\t\t<i class=\"iconfont icon-right ml-sm\" style=\"font-size: 28rpx;\"></i>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>姓名</view>\r\n\t\t\t\t\t<input v-model=\"form.coach_name\" type=\"text\" class=\"item-input flex-1\" maxlength=\"20\"\r\n\t\t\t\t\t\t:placeholder=\"rule[0].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>性别</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1 flex-y-center\">\r\n\t\t\t\t\t\t<view @tap.stop=\"form.sex = index\" class=\"flex-y-center\" :class=\"[{'mr-lg':index==0}]\"\r\n\t\t\t\t\t\t\t:style=\"{color:form.sex == index ? primaryColor:''}\" v-for=\"(item,index) in ['男','女']\"\r\n\t\t\t\t\t\t\t:key=\"index\"><i class=\"iconfont icon-xuanze mr-sm\"\r\n\t\t\t\t\t\t\t\t:class=\"[{'icon-xuanze-fill':form.sex == index}]\"></i>{{item}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between ml-lg mr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>生日</view>\r\n\t\t\t\t\t<view class=\"item-input text flex-1\">\r\n\t\t\t\t\t\t<picker @change=\"pickerChange($event,'birthday')\" mode=\"date\" :end=\"endYear\"\r\n\t\t\t\t\t\t\t:value=\"form.birthday\">\r\n\t\t\t\t\t\t\t<view class=\"flex-between\">\r\n\t\t\t\t\t\t\t\t{{form.birthday||'请选择'}}\r\n\t\t\t\t\t\t\t\t<i class=\"iconfont icon-right ml-sm\" style=\"font-size: 28rpx;\"></i>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</picker>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>手机号</view>\r\n\t\t\t\t\t<input v-model=\"form.mobile\" type=\"text\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t:placeholder=\"rule[2].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>从业年份</view>\r\n\t\t\t\t\t<input v-model=\"form.work_time\" type=\"number\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t:placeholder=\"rule[3].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\" style=\"width:230rpx\"><i\r\n\t\t\t\t\t\t\tclass=\"iconfont icon-required c-warning\"></i>意向工作城市</view>\r\n\t\t\t\t\t<view class=\"item-input text\">\r\n\t\t\t\t\t\t<picker @change=\"pickerChange($event,'city')\" :value=\"cityIndex\" :range=\"cityList\"\r\n\t\t\t\t\t\t\trange-key=\"title\">\r\n\t\t\t\t\t\t\t<view class=\"flex-between\">\r\n\t\t\t\t\t\t\t\t{{cityIndex!=-1?cityList[cityIndex].title:'请选择'}}\r\n\t\t\t\t\t\t\t\t<i class=\"iconfont icon-right ml-sm\" style=\"font-size: 28rpx;\"></i>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</picker>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\" v-if=\"configInfo.plugAuth.store && storeList.length>0\">\r\n\t\t\t\t\t<view class=\"item-text\">挂靠门店</view>\r\n\t\t\t\t\t<view class=\"item-input text\">\r\n\t\t\t\t\t\t<picker @change=\"pickerChange($event,'store')\" :value=\"storeIndex\" :range=\"storeList\"\r\n\t\t\t\t\t\t\trange-key=\"title\">\r\n\t\t\t\t\t\t\t<view class=\"flex-between\">\r\n\t\t\t\t\t\t\t\t<view class=\"max-400 ellipsis\">{{storeIndex!=-1?storeList[storeIndex].title:'请选择'}}\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<i class=\"iconfont icon-right ml-sm\" style=\"font-size: 28rpx;\"></i>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</picker>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>所在地址</view>\r\n\t\t\t\t\t<view class=\"item-input text flex-1\">\r\n\t\t\t\t\t\t<view @tap.stop=\"toChooseLocation\" class=\"flex-between\">\r\n\t\t\t\t\t\t\t<view>{{form.address || `点击右边图标设置`}}</view>\r\n\t\t\t\t\t\t\t<i class=\"iconfont iconjuli ml-sm\" :style=\"{color: primaryColor}\"></i>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\" style=\"width:auto\"><i\r\n\t\t\t\t\t\t\tclass=\"iconfont icon-required c-warning\"></i>{{$t('action.attendantName')}}简介</view>\r\n\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<textarea v-model=\"form.text\" class=\"item-textarea pd-lg\" maxlength=\"300\"\r\n\t\t\t\t\t:placeholder=\"'输入'+$t('action.attendantName')+'简介'\" />\r\n\t\t\t\t<view class=\"text-right pb-lg pr-lg\">\r\n\t\t\t\t\t{{form.text.length>300?300:form.text.length}}/300\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>身份证号</view>\r\n\t\t\t\t\t<input v-model=\"form.id_code\" type=\"text\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t:placeholder=\"rule[7].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>身份证照片</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\">图片大小不超过10M</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.id_card\" imgtype=\"id_card\" imgclass=\"md\" text=\"身份证人像面\"\r\n\t\t\t\t\t\t:imgsize=\"1\"></upload>\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.id_card_fan\" imgtype=\"id_card_fan\" imgclass=\"md\"\r\n\t\t\t\t\t\ttext=\"身份证国徽面\" :imgsize=\"1\"></upload>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.id_card_people\" imgtype=\"id_card_people\" imgclass=\"md\"\r\n\t\t\t\t\t\ttext=\"手持身份证照片\" :imgsize=\"1\"></upload>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>资格证书</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\">图片大小不超过10M</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.license\" imgtype=\"license\" text=\"上传图片\"\r\n\t\t\t\t\t\t:imgsize=\"15\">\r\n\t\t\t\t\t</upload>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>工作形象照</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\">图片建议尺寸: 750 * 750,大小不超过10M</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.work_img\" imgtype=\"work_img\" text=\"上传图片\" :imgsize=\"1\">\r\n\t\t\t\t\t</upload>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>个人生活照</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\">图片建议尺寸: 750 * n,大小不超过10M</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.self_img\" filetype=\"picture\"\r\n\t\t\t\t\t\timgtype=\"self_img\" text=\"上传图片\" :imgsize=\"9\">\r\n\t\t\t\t\t</upload>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t<view class=\"item-text\">个人视频介绍</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\">视频大小不超过50M</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.video\" filetype=\"video\"\r\n\t\t\t\t\t\timgtype=\"video\" text=\"上传视频\" :imgsize=\"1\">\r\n\t\t\t\t\t</upload>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>虚拟订单</view>\r\n\t\t\t\t\t<input v-model=\"form.order_num\" type=\"number\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t:placeholder=\"rule[14].errorMsg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text flex-y-center\"><i class=\"iconfont icon-required c-warning\"></i>是否接单</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1 flex-y-center\">\r\n\t\t\t\t\t\t<view @tap.stop=\"toSetItem(index)\" class=\"flex-y-center\" :class=\"[{'mr-lg':item.id==1}]\"\r\n\t\t\t\t\t\t\t:style=\"{color:form.is_work == item.id ? primaryColor:''}\" v-for=\"(item,index) in workList\"\r\n\t\t\t\t\t\t\t:key=\"index\"><i class=\"iconfont mr-sm\"\r\n\t\t\t\t\t\t\t\t:class=\"[{'icon-xuanze':form.is_work != item.id},{'icon-radio-fill':form.is_work == item.id}]\"></i>{{item.title}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between pd-lg\" v-if=\"form.is_work===1\">\r\n\t\t\t\t\t<view @tap.stop=\"toShowTime('start_time')\" class=\"item-time flex-center flex-column\">\r\n\t\t\t\t\t\t<view>开始时间</view>\r\n\t\t\t\t\t\t<view class=\"mt-sm\" :style=\"{color:form.start_time ? primaryColor : '#999'}\">\r\n\t\t\t\t\t\t\t{{form.start_time || '选择时间'}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @tap.stop=\"toShowTime('end_time')\" class=\"item-time flex-center flex-column b-1px-l\">\r\n\t\t\t\t\t\t<view>结束时间</view>\r\n\t\t\t\t\t\t<view class=\"mt-sm\" :style=\"{color:form.end_time ? primaryColor : '#999'}\">\r\n\t\t\t\t\t\t\t{{form | handleStartEndTime(toDay)}}{{form.end_time || '选择时间'}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view @tap.stop=\"toFddSign\" class=\"fill-base mt-md radius-16\"\r\n\t\t\t\tv-if=\"fdd_agreement && fdd_agreement.hasOwnProperty('viewpdf_url')\">\r\n\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t<view class=\"item-text\">电子签约</view>\r\n\t\t\t\t\t<view class=\"item-input flex-1\" :style=\"{color:primaryColor}\">\r\n\t\t\t\t\t\t查看签约合同\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"space-max-footer\"></view>\r\n\r\n\t\t<fix-bottom-button @confirm=\"submit\" :text=\"[{text:'确定提交',type:'confirm',isAuth:true}]\" bgColor=\"#fff\">\r\n\t\t</fix-bottom-button>\r\n\r\n\r\n\t\t<w-picker :visible.sync=\"showTime\" mode=\"time\" :value=\"toDayTime\" :current=\"false\" :second=\"false\"\r\n\t\t\t:themeColor=\"primaryColor\" @confirm=\"onConfirm\" ref=\"time\"></w-picker>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport $util from \"@/utils/index.js\"\r\n\timport wPicker from \"@/components/w-picker/w-picker.vue\";\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\twPicker\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisLoad: false,\r\n\t\t\t\toptions: {},\r\n\t\t\t\tcityList: [],\r\n\t\t\t\tcityIndex: -1,\r\n\t\t\t\tstoreList: [],\r\n\t\t\t\tstoreIndex: -1,\r\n\t\t\t\ttoDay: '',\r\n\t\t\t\ttoDayTime: '',\r\n\t\t\t\tshowKey: '',\r\n\t\t\t\tshowTime: false,\r\n\t\t\t\tworkList: [{\r\n\t\t\t\t\tid: 1,\r\n\t\t\t\t\ttitle: '接单'\r\n\t\t\t\t}, {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\ttitle: '休息'\r\n\t\t\t\t}],\r\n\t\t\t\tfdd_agreement: {},\r\n\t\t\t\tform: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tuser_id: '',\r\n\t\t\t\t\tnickName: '',\r\n\t\t\t\t\tcoach_name: '', //姓名 \r\n\t\t\t\t\tmobile: '', //手机号 \r\n\t\t\t\t\tsex: 0, //性别 \r\n\t\t\t\t\tbirthday: '',\r\n\t\t\t\t\twork_time: '', //从业年份 \r\n\t\t\t\t\tcity_id: '', // 城市id\r\n\t\t\t\t\tstore_id: '', // 门店id\r\n\t\t\t\t\tlng: '',\r\n\t\t\t\t\tlat: '',\r\n\t\t\t\t\taddress: '', //详细地址 \r\n\t\t\t\t\ttext: '', //备注 \r\n\t\t\t\t\tid_code: '', //身份证号\r\n\t\t\t\t\tid_card: [], //身份证\r\n\t\t\t\t\tid_card_fan: [], // 身份证反面\r\n\t\t\t\t\tid_card_people: [], //手持身份证\r\n\t\t\t\t\tlicense: [], //资格证书\r\n\t\t\t\t\twork_img: [], // 工作照\r\n\t\t\t\t\tself_img: [], // 生活照\r\n\t\t\t\t\tcity_id: '', // 城市 id\r\n\t\t\t\t\tvideo: [],\r\n\t\t\t\t\torder_num: 0,\r\n\t\t\t\t\tis_work: 1,\r\n\t\t\t\t\tstart_time: '00:00',\r\n\t\t\t\t\tend_time: '23:59'\r\n\t\t\t\t},\r\n\t\t\t\trule: [{\r\n\t\t\t\t\t\tname: \"coach_name\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"输入您的姓名\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"birthday\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请选择您的生日\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"mobile\",\r\n\t\t\t\t\t\tcheckType: \"isMobile\",\r\n\t\t\t\t\t\terrorMsg: \"输入手机号\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"work_time\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请输入从业年份,例如:5\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"city_id\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请选择意向工作城市\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"address\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请选择所在地址\"\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"text\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请输入\" + this.$t('action.attendantName') + \"简介\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\tname: \"id_code\",\r\n\t\t\t\t\t\tcheckType: \"isIdCard\",\r\n\t\t\t\t\t\terrorMsg: \"输入您的身份证号码\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"id_card\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传身份证人像面\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"id_card_fan\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传身份证国徽面\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"id_card_people\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传手持身份证照片\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"license\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传资格证书\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"work_img\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传工作形象照\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"self_img\",\r\n\t\t\t\t\t\tcheckType: \"isNotNull\",\r\n\t\t\t\t\t\terrorMsg: \"请上传个人生活照\"\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: \"order_num\",\r\n\t\t\t\t\t\tcheckType: \"isNumber\",\r\n\t\t\t\t\t\terrorMsg: \"请输入虚拟订单量\",\r\n\t\t\t\t\t\tregType: 2\r\n\t\t\t\t\t},\r\n\t\t\t\t],\r\n\t\t\t\thave_user_id: false,\r\n\t\t\t\tlockTap: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t\tconfigInfo: state => state.config.configInfo,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t\tlocation: state => state.user.location,\r\n\t\t}),\r\n\t\tasync onLoad(options) {\r\n\t\t\tlet {\r\n\t\t\t\tid = 0\r\n\t\t\t} = options\r\n\t\t\tthis.options = options\r\n\t\t\tthis.$util.showLoading()\r\n\t\t\tawait this.initIndex()\r\n\t\t\tlet {\r\n\t\t\t\tcoach_status\r\n\t\t\t} = this\r\n\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\ttitle: id ? '编辑' : '新增' + this.$t(\r\n\t\t\t\t\t'action.attendantName')\r\n\t\t\t})\r\n\t\t\tthis.isLoad = true\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getConfigInfo', 'getUserInfo']),\r\n\t\t\t...mapMutations(['updateUserItem']),\r\n\t\t\tasync initIndex(refresh = false) {\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tif (!refresh && this.$jweixin.isWechat()) {\r\n\t\t\t\t\tawait this.$jweixin.initJssdk();\r\n\t\t\t\t\tthis.$jweixin.wxReady(() => {\r\n\t\t\t\t\t\tthis.$jweixin.hideOptionMenu()\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tif (!this.configInfo.id || !this.configInfo.hasOwnProperty(\r\n\t\t\t\t\t\t'plugAuth') || (this.configInfo.hasOwnProperty(\r\n\t\t\t\t\t\t'plugAuth') && !this.configInfo.plugAuth.hasOwnProperty(\r\n\t\t\t\t\t\t'store')) || refresh) {\r\n\t\t\t\t\tawait this.getConfigInfo()\r\n\t\t\t\t}\r\n\t\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\t\tbg: this.primaryColor\r\n\t\t\t\t})\r\n\t\t\t\tlet cur_time = new Date(Math.ceil(new Date().getTime()))\r\n\t\t\t\tthis.toDay = this.$util.formatTime(cur_time, 'YY-M-D')\r\n\t\t\t\tthis.toDayTime = this.$util.formatTime(cur_time, 'h:m')\r\n\t\t\t\tawait Promise.all([this.getCityList(), this.getStoreList()])\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid = 0\r\n\t\t\t\t} = this.options\r\n\t\t\t\tif (!id) {\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet data = await this.$api.agent.coachInfo({\r\n\t\t\t\t\tid\r\n\t\t\t\t})\r\n\t\t\t\tdata.id_card = data.id_card.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tpath: item\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tdata.id_card_fan = [data.id_card[1]]\r\n\t\t\t\tdata.id_card_people = [data.id_card[2]]\r\n\t\t\t\tdata.id_card.splice(1, 3)\r\n\t\t\t\tdata.license = data.license.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tpath: item\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tdata.work_img = [{\r\n\t\t\t\t\tpath: data.work_img\r\n\t\t\t\t}]\r\n\t\t\t\tdata.self_img = data.self_img.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tpath: item\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tdata.video = data.video && data.video.length > 0 ? [{\r\n\t\t\t\t\tpath: data.video\r\n\t\t\t\t}] : []\r\n\t\t\t\tthis.cityIndex = this.cityList.findIndex(item => {\r\n\t\t\t\t\treturn item.id == data.city_id\r\n\t\t\t\t})\r\n\t\t\t\tthis.storeIndex = this.storeList.findIndex(item => {\r\n\t\t\t\t\treturn item.id == data.store_id\r\n\t\t\t\t})\r\n\t\t\t\tdata.birthday = data.birthday ? this.$util.formatTime(data.birthday * 1000, 'YY-M-D') : ''\r\n\t\t\t\tfor (let key in this.form) {\r\n\t\t\t\t\tthis.form[key] = data[key]\r\n\t\t\t\t}\r\n\t\t\t\tthis.have_user_id = data.id && data.user_id\r\n\t\t\t\tthis.fdd_agreement = data.fdd_agreement\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tinitRefresh() {\r\n\t\t\t\tthis.initIndex(true)\r\n\t\t\t},\r\n\t\t\tasync getStoreList() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tstore = false\r\n\t\t\t\t} = this.configInfo.plugAuth\r\n\t\t\t\tif (store) {\r\n\t\t\t\t\tlet data = await this.$api.agent.storeSelect()\r\n\t\t\t\t\tdata.unshift({\r\n\t\t\t\t\t\tid: 0,\r\n\t\t\t\t\t\ttitle: '不挂靠门店'\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.storeList = data\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync getCityList() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlocation\r\n\t\t\t\t} = this\r\n\t\t\t\tif (!location.lat) {\r\n\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\t\t\t// await this.$jweixin.initJssdk();\r\n\t\t\t\t\t\tawait this.$jweixin.wxReady2();\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\tlatitude: lat = 0,\r\n\t\t\t\t\t\t\tlongitude: lng = 0\r\n\t\t\t\t\t\t} = await this.$jweixin.getWxLocation()\r\n\t\t\t\t\t\tlocation = {\r\n\t\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\t\taddress: '定位失败',\r\n\t\t\t\t\t\t\tprovince: '',\r\n\t\t\t\t\t\t\tcity: '',\r\n\t\t\t\t\t\t\tdistrict: ''\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (lat && lng) {\r\n\t\t\t\t\t\t\tlet key = `${lat},${lng}`\r\n\t\t\t\t\t\t\tlet data = await this.$api.base.getMapInfo({\r\n\t\t\t\t\t\t\t\tlocation: key\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\t\tstatus,\r\n\t\t\t\t\t\t\t\tresult\r\n\t\t\t\t\t\t\t} = JSON.parse(data)\r\n\t\t\t\t\t\t\tif (status == 0) {\r\n\t\t\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\t\t\taddress,\r\n\t\t\t\t\t\t\t\t\taddress_component\r\n\t\t\t\t\t\t\t\t} = result\r\n\t\t\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\t\t\tcity,\r\n\t\t\t\t\t\t\t\t\tdistrict\r\n\t\t\t\t\t\t\t\t} = address_component\r\n\t\t\t\t\t\t\t\tlocation = {\r\n\t\t\t\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\t\t\t\taddress,\r\n\t\t\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\t\t\tcity,\r\n\t\t\t\t\t\t\t\t\tdistrict\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifndef H5\r\n\t\t\t\t\tlocation = await this.$util.getBmapLocation()\r\n\t\t\t\t\t// #endif\r\n\r\n\t\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\t\tkey: 'location',\r\n\t\t\t\t\t\tval: location\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlng = 0,\r\n\t\t\t\t\t\tlat = 0\r\n\t\t\t\t} = location\r\n\t\t\t\tif (lat && lng) {\r\n\t\t\t\t\tlet city = await this.$api.base.getCity({\r\n\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\tlat\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.cityList = city\r\n\t\t\t\t\tthis.cityIndex = city.length > 0 ? 0 : -1\r\n\t\t\t\t\tthis.form.city_id = city.length > 0 ? city[0].id : ''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync toFddSign() {\r\n\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\tkey: 'fddExtsign',\r\n\t\t\t\t\tval: ''\r\n\t\t\t\t})\r\n\t\t\t\tlet {\r\n\t\t\t\t\tviewpdf_url = ''\r\n\t\t\t\t} = this.fdd_agreement\r\n\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\tkey: 'fddExtsign',\r\n\t\t\t\t\tval: viewpdf_url\r\n\t\t\t\t})\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl: `/user/pages/common/web?url=fddExtsign`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tpickerChange(e, key) {\r\n\t\t\t\tlet ind = e.target.value\r\n\t\t\t\tif (key === 'birthday') {\r\n\t\t\t\t\tlet unix = this.$util.DateToUnix(ind)\r\n\t\t\t\t\tif (unix > new Date(Math.ceil(new Date().getTime())) / 1000) {\r\n\t\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\t\ttitle: `不能选择未来时间哦`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.form[key] = ind\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis[`${key}Index`] = ind\r\n\t\t\t\tthis.form[`${key}_id`] = this[`${key}List`][ind].id\r\n\t\t\t},\r\n\t\t\timgUpload(e) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\timagelist,\r\n\t\t\t\t\timgtype\r\n\t\t\t\t} = e;\r\n\t\t\t\tthis.form[imgtype] = imagelist;\r\n\t\t\t},\r\n\t\t\ttoSetItem(index) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid\r\n\t\t\t\t} = this.workList[index]\r\n\t\t\t\tthis.form.is_work = id\r\n\t\t\t},\r\n\t\t\ttoShowTime(key) {\r\n\t\t\t\tthis.showKey = key\r\n\t\t\t\tthis.showTime = true\r\n\t\t\t},\r\n\t\t\tonConfirm(val) {\r\n\t\t\t\tthis.form[this.showKey] = val.result;\r\n\t\t\t},\r\n\t\t\t// 选择地区\r\n\t\t\tasync toChooseLocation(e) {\r\n\t\t\t\tawait this.$util.checkAuth({\r\n\t\t\t\t\ttype: 'userLocation'\r\n\t\t\t\t})\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlat: locaLat = '',\r\n\t\t\t\t\tlng: locaLng = ''\r\n\t\t\t\t} = this.location\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid = 0,\r\n\t\t\t\t\t\tlat: addrLat,\r\n\t\t\t\t\t\tlng: addrLng\r\n\t\t\t\t} = this.form\r\n\r\n\t\t\t\tif (id) {\r\n\t\t\t\t\tlocaLat = addrLat\r\n\t\t\t\t\tlocaLng = addrLng\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet param = {}\r\n\t\t\t\tif (!locaLat && !locaLng) {\r\n\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\t\t\tawait this.$jweixin.wxReady2();\r\n\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\tlatitude,\r\n\t\t\t\t\t\t\tlongitude\r\n\t\t\t\t\t\t} = await this.$jweixin.getWxLocation()\r\n\t\t\t\t\t\tlocaLat = latitude\r\n\t\t\t\t\t\tlocaLng = longitude\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\t\tlet location = await this.$util.getBmapLocation()\r\n\t\t\t\t\tlocaLat = location.lat\r\n\t\t\t\t\tlocaLng = location.lng\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// #ifndef MP-WEIXIN\r\n\t\t\t\tparam = {\r\n\t\t\t\t\tlatitude: locaLat,\r\n\t\t\t\t\tlongitude: locaLng\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tlet [, {\r\n\t\t\t\t\taddress = '',\r\n\t\t\t\t\tlongitude,\r\n\t\t\t\t\tlatitude\r\n\t\t\t\t}] = await uni.chooseLocation(param);\r\n\t\t\t\tif (!address) return\r\n\t\t\t\tthis.form.address = address\r\n\t\t\t\tthis.form.lng = longitude\r\n\t\t\t\tthis.form.lat = latitude\r\n\t\t\t},\r\n\t\t\ttoChooseUser() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\thave_user_id\r\n\t\t\t\t} = this\r\n\t\t\t\tif (have_user_id) return\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl: `/agent/pages/technician/user`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//表单验证\r\n\t\t\tvalidate(param) {\r\n\t\t\t\tlet validate = new this.$util.Validate();\r\n\t\t\t\tthis.rule.map(item => {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tname,\r\n\t\t\t\t\t} = item\r\n\t\t\t\t\tvalidate.add(param[name], item);\r\n\t\t\t\t})\r\n\t\t\t\tlet message = validate.start();\r\n\t\t\t\treturn message;\r\n\t\t\t},\r\n\t\t\tasync submit() {\r\n\t\t\t\tlet param = this.$util.deepCopy(this.form)\r\n\t\t\t\tlet arr = ['id_card', 'id_card_fan', 'id_card_people', 'work_img', 'video']\r\n\t\t\t\tarr.map(item => {\r\n\t\t\t\t\tparam[item] = param[item].length > 0 ? param[item][0].path : ''\r\n\t\t\t\t})\r\n\t\t\t\tparam.license = param.license.map(item => {\r\n\t\t\t\t\treturn item.path\r\n\t\t\t\t})\r\n\t\t\t\tparam.self_img = param.self_img.map(item => {\r\n\t\t\t\t\treturn item.path\r\n\t\t\t\t})\r\n\t\t\t\tlet msg = this.validate(param);\r\n\t\t\t\tif (msg) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: msg\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlet {\r\n\t\t\t\t\tis_work: work = 0,\r\n\t\t\t\t\tstart_time: start,\r\n\t\t\t\t\tend_time: end\r\n\t\t\t\t} = param\r\n\t\t\t\tif (work && (!start || !end)) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: !start ? '请选择开始时间' : '请选择结束时间'\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\r\n\t\t\t\tparam.birthday = this.$util.DateToUnix(param.birthday)\r\n\t\t\t\tparam.id_card = [param.id_card, param.id_card_fan, param.id_card_people]\r\n\t\t\t\tdelete param.id_card_fan\r\n\t\t\t\tdelete param.id_card_people\r\n\t\t\t\tdelete param.nickName\r\n\t\t\t\tif (param.id) {\r\n\t\t\t\t\tdelete param.admin_id\r\n\t\t\t\t}\r\n\t\t\t\tif (this.lockTap) return\r\n\t\t\t\tthis.lockTap = true\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlet {\r\n\t\t\t\t\t\tis_edit = 0\r\n\t\t\t\t\t} = this.options\r\n\t\t\t\t\tlet methodModel = param.id ? 'coachDataUpdate' : 'coachApply'\r\n\t\t\t\t\tawait this.$api.agent[methodModel](param)\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: `提交成功`\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.$util.back()\r\n\t\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\t\turl: 1,\r\n\t\t\t\t\t\t\topenType: `navigateBack`\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\t}, 2000)\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t},\r\n\t\tfilters: {\r\n\t\t\thandleStartEndTime(val, toDay) {\r\n\t\t\t\tlet text = ''\r\n\t\t\t\tlet {\r\n\t\t\t\t\tstart_time,\r\n\t\t\t\t\tend_time\r\n\t\t\t\t} = val\r\n\t\t\t\tlet start = `${toDay} ${start_time}`\r\n\t\t\t\tlet end = `${toDay} ${end_time}`\r\n\t\t\t\tif (start_time && end_time && $util.DateToUnix(start) >= $util.DateToUnix(end)) {\r\n\t\t\t\t\ttext = '次日'\r\n\t\t\t\t}\r\n\t\t\t\treturn text\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n\t.item-time {\r\n\t\twidth: 50%;\r\n\t}\r\n</style>","import mod from \"-!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./apply.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./apply.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720663654156\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |