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
38 KiB
1 lines
38 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?8569","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?cfbf","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?de65","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?d48d","uni-app:///technician/pages/apply.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?ddb0","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/apply.vue?3dab"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","wPicker","data","isLoad","options","cityList","cityIndex","storeList","storeIndex","tipArr","text","color","buttonArr","type","title","image","coach_status","max_level","authTime","timer","form","id","admin_id","partner_id","coach_name","mobile","short_code","sex","birthday","work_time","city_id","store_id","lng","lat","address","id_code","id_card","license","work_img","self_img","video","rule","name","checkType","errorMsg","regType","lockTap","computed","primaryColor","subColor","configInfo","userInfo","location","onLoad","uni","onUnload","methods","initIndex","refresh","Promise","bg","imgArr","path","imgArrs","status","sh_text","initRefresh","getCityList","key","val","city","getStoreList","pickerChange","toSend","phone","time","clearInterval","setTimeout","imgUpload","imagelist","e","imgtype","toChooseLocation","addrLat","addrLng","locaLat","locaLng","param","longitude","latitude","confirm","url","openType","validate","item","submit","msg","short_code_status"],"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;AAC0M;AAC1M,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpCA;AAAA;AAAA;AAAA;AAAqyB,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;AC2GzzB;AAIA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eACA;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACA;MACAC;QACA;UACAC;UACAC;QACA;QACA;UACAD;UACAC;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;MACA;MACAC;QACA;UACAF;UACAG;QACA;QACA;UACAH;UACAG;QACA;QACA;UACAH;UACAG;QACA;QACA;UACAH;UACAG;QACA;UACAH;UACAG;QACA;MACA;MACAC;QACA;QACA;QACA;QACA;MACA;MACAC;QACA;QACA;QACA;QACA;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;QAAA;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;QACAC;QAAA;QACAxB;QAAA;QACAyB;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;MACA;MACAC;QACAC;QACAC;QACAC;QACAC;MAC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BACA;gBACA;kBACA8D;gBACA;gBACAC;kBACA;oBACA;kBACA;kBACA;oBACAc;oBACAC;kBACA;gBACA;gBAAA;gBAAA;cAAA;gBAAA;gBAAA;gBAEAf;kBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;EAAA;AAEA;AAAA,2B;;;;;;;;;;;;;ACpoBA;AAAA;AAAA;AAAA;AAA4+C,CAAgB,k6CAAG,EAAC,C;;;;;;;;;;;ACAhgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"technician/pages/apply.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './technician/pages/apply.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./apply.vue?vue&type=template&id=2068c046&\"\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 = \"technician/pages/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=2068c046&\"","var components\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.options.admin_id && _vm.coach_status != -1) ||\n (!_vm.options.admin_id && [1, 2, 3].includes(_vm.coach_status))\n : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n return _vm.$util.goUrl({\n url: \"/pages/mine\",\n openType: \"reLaunch\",\n })\n }\n _vm.e1 = 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 },\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\r\n\t\t<view class=\"page-height\"\r\n\t\t\tv-if=\"(options.admin_id && coach_status != -1) || (!options.admin_id && [1,2,3].includes(coach_status))\">\r\n\t\t\t<abnor percent=\"150%\" @confirm=\"confirm\" @cancel=\"$util.goUrl({url:`/pages/mine`,openType: `reLaunch`})\"\r\n\t\t\t\t:title=\"title[coach_status]\" :tip=\"tipArr[coach_status]\" :button=\"buttonArr[coach_status]\"\r\n\t\t\t\t:image=\"image[coach_status]\" :tipMax=\"coach_status == 4? '690rpx':''\"></abnor>\r\n\t\t</view>\r\n\r\n\t\t<block v-else>\r\n\r\n\t\t\t<view class=\"apply-info-box rel\" :style=\"{background:primaryColor}\">\r\n\t\t\t\t<image class=\"bg-1 abs\" src=\"https://lbqny.migugu.com/admin/anmo/apply/bg-1.png\">\r\n\t\t\t\t</image>\r\n\t\t\t\t<image class=\"bg-2 abs\" src=\"https://lbqny.migugu.com/admin/anmo/apply/bg-2.png\">\r\n\t\t\t\t</image>\r\n\t\t\t\t<view class=\"technician-money flex-center f-md-title c-title text-bold abs\">{{max_level || 0}}</view>\r\n\t\t\t\t<image class=\"join-us abs\" src=\"https://lbqny.migugu.com/admin/anmo/apply/join-us.png\">\r\n\t\t\t\t</image>\r\n\t\t\t\t<view class=\"join-us pd-lg abs\" style=\"z-index: 3;\">\r\n\t\t\t\t\t<view style=\"height:90rpx\"></view>\r\n\t\t\t\t\t<view class=\"f-title c-title text-bold\">您的姓名</view>\r\n\t\t\t\t\t<input v-model=\"form.coach_name\" type=\"text\"\r\n\t\t\t\t\t\tclass=\"item-input fill-base f-mini-title c-title mt-sm pl-lg pr-lg radius-10\" maxlength=\"20\"\r\n\t\t\t\t\t\tplaceholder-class=\"c-caption\" :placeholder=\"rule[0].errorMsg\"\r\n\t\t\t\t\t\t:style=\"{borderColor:primaryColor}\" />\r\n\t\t\t\t\t<view class=\"mt-md f-title c-title text-bold\">您的性别</view>\r\n\t\t\t\t\t<view class=\"flex-y-center mt-sm\">\r\n\t\t\t\t\t\t<view @tap.stop=\"form.sex = index\" class=\"flex-y-center f-mini-title c-title\"\r\n\t\t\t\t\t\t\t:style=\"{color:form.sex == index ? primaryColor:'',marginRight:index===0?'80rpx':''}\"\r\n\t\t\t\t\t\t\tv-for=\"(item,index) in ['男','女']\" :key=\"index\"><i class=\"iconfont mr-sm\"\r\n\t\t\t\t\t\t\t\t:class=\"[{'icon-xuanze':form.sex != index},{'icon-radio-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\t<view class=\"mt-md f-title c-title text-bold\">您的生日</view>\r\n\t\t\t\t\t<view class=\"item-input fill-base text f-mini-title c-title mt-sm pl-lg pr-md radius-10\"\r\n\t\t\t\t\t\t:style=\"{borderColor:primaryColor}\">\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<view class=\"max-400 ellipsis\">{{form.birthday||'请选择'}}</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\t<view class=\"mt-md f-title c-title text-bold\">手机号</view>\r\n\t\t\t\t\t<view class=\"item-input fill-base f-mini-title c-title mt-sm pl-lg pr-lg radius-10\"\r\n\t\t\t\t\t\tstyle=\"height:auto;min-height:82rpx\" :style=\"{borderColor:primaryColor}\">\r\n\t\t\t\t\t\t<input v-model=\"form.mobile\" type=\"text\" maxlength=\"11\" placeholder-class=\"c-caption\"\r\n\t\t\t\t\t\t\t:placeholder=\"rule[2].errorMsg\" style=\"margin-top: 15rpx;\" />\r\n\t\t\t\t\t\t<view class=\"flex-between\" v-if=\"configInfo.short_code_status\">\r\n\t\t\t\t\t\t\t<input v-model=\"form.short_code\" type=\"text\" maxlength=\"6\" placeholder-class=\"c-caption\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"请输入验证码\" :style=\"{borderColor:primaryColor}\" />\r\n\t\t\t\t\t\t\t<view @tap.stop=\"toSend\" :style=\"{color:primaryColor}\">\r\n\t\t\t\t\t\t\t\t{{authTime>0?`重新获取(${authTime}s)`:'获取验证码'}}\r\n\t\t\t\t\t\t\t</view>\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 class=\"mt-md f-title c-title text-bold\">意向工作城市</view>\r\n\t\t\t\t\t<view class=\"item-input fill-base text f-mini-title c-title mt-sm pl-lg pr-md radius-10\"\r\n\t\t\t\t\t\t:style=\"{borderColor:primaryColor}\">\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<view class=\"max-400 ellipsis\">{{cityIndex!=-1?cityList[cityIndex].title:'请选择'}}</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\t<block v-if=\"configInfo.plugAuth.store && form.admin_id\">\r\n\t\t\t\t\t\t<view class=\"mt-md f-title c-title text-bold\">挂靠门店</view>\r\n\t\t\t\t\t\t<view class=\"item-input fill-base text f-mini-title c-title mt-sm pl-lg pr-md radius-10\"\r\n\t\t\t\t\t\t\t:style=\"{borderColor:primaryColor}\">\r\n\t\t\t\t\t\t\t<picker @change=\"pickerChange($event,'store')\" :value=\"storeIndex\" :range=\"storeList\"\r\n\t\t\t\t\t\t\t\trange-key=\"title\">\r\n\t\t\t\t\t\t\t\t<view class=\"flex-between\">\r\n\t\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\t</view>\r\n\t\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\t</view>\r\n\t\t\t\t\t\t\t</picker>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</block>\r\n\t\t\t\t\t<view class=\"flex-y-baseline mt-md\">\r\n\t\t\t\t\t\t<view class=\"f-title c-title text-bold\">工作形象照</view>\r\n\t\t\t\t\t\t<view class=\"f-caption c-caption ml-sm\">图片建议尺寸: 750 * 750</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"f-caption c-caption mt-sm\">请上传本人近期照片,图片大小不超过10M</view>\r\n\t\t\t\t\t<view class=\"flex-between mt-sm\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.work_img\" imgtype=\"work_img\" text=\"上传图片\"\r\n\t\t\t\t\t\t\t:imgsize=\"1\" imgclass=\"apply\">\r\n\t\t\t\t\t\t</upload>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-center f-caption c-title abs\" style=\"width:100%;top:1842rpx;left:0;\">\r\n\t\t\t\t\t平台不会通过任何渠道泄露您的个人信息,请放心输入\r\n\t\t\t\t</view>\r\n\t\t\t\t<image @tap.stop=\"submit\" class=\"submit abs\" src=\"https://lbqny.migugu.com/admin/anmo/apply/submit.png\">\r\n\t\t\t\t</image>\r\n\t\t\t</view>\r\n\t\t</block>\r\n\t</view>\r\n</template>\r\n\r\n<script>\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: 0,\r\n\t\t\t\t// -1未申请,1审核中,2审核通过,3取消授权,4审核失败(可再次申请)\r\n\t\t\t\ttipArr: {\r\n\t\t\t\t\t'1': [{\r\n\t\t\t\t\t\ttext: '审核成功后将直接入驻平台',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'2': [{\r\n\t\t\t\t\t\ttext: '恭喜您,审核通过!',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\ttext: '快去管理订单吧',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'3': [{\r\n\t\t\t\t\t\ttext: '平台管理员已取消授权',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'4': [{\r\n\t\t\t\t\t\ttext: '请联系平台管理人员询问原因',\r\n\t\t\t\t\t\tcolor: 0\r\n\t\t\t\t\t}]\r\n\t\t\t\t},\r\n\t\t\t\tbuttonArr: {\r\n\t\t\t\t\t'1': [{\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'2': [{\r\n\t\t\t\t\t\ttext: '去管理',\r\n\t\t\t\t\t\ttype: 'confirm'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'3': [{\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\t'4': [{\r\n\t\t\t\t\t\ttext: '再次申请',\r\n\t\t\t\t\t\ttype: 'confirm'\r\n\t\t\t\t\t}, {\r\n\t\t\t\t\t\ttext: '个人中心',\r\n\t\t\t\t\t\ttype: 'cancel'\r\n\t\t\t\t\t}]\r\n\t\t\t\t},\r\n\t\t\t\ttitle: {\r\n\t\t\t\t\t'1': '等待审核',\r\n\t\t\t\t\t'2': '您已经是' + this.$t('action.attendantName') + '了',\r\n\t\t\t\t\t'3': '取消授权',\r\n\t\t\t\t\t'4': '申请失败',\r\n\t\t\t\t},\r\n\t\t\t\timage: {\r\n\t\t\t\t\t'1': 'https://lbqny.migugu.com/admin/public/apply_wait.jpg',\r\n\t\t\t\t\t'2': 'https://lbqny.migugu.com/admin/public/apply_suc.jpg',\r\n\t\t\t\t\t'3': 'https://lbqny.migugu.com/admin/public/apply_fail.jpg',\r\n\t\t\t\t\t'4': 'https://lbqny.migugu.com/admin/public/apply_fail.jpg',\r\n\t\t\t\t},\r\n\t\t\t\tcoach_status: -1,\r\n\t\t\t\tmax_level: 0,\r\n\t\t\t\tauthTime: 0,\r\n\t\t\t\ttimer: null,\r\n\t\t\t\tform: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tadmin_id: 0,\r\n\t\t\t\t\tpartner_id: 0,\r\n\t\t\t\t\tcoach_name: '', //姓名 \r\n\t\t\t\t\tmobile: '', //手机号 \r\n\t\t\t\t\tshort_code: '',\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: '', //城市 \r\n\t\t\t\t\tstore_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\tlicense: [], //资格证书\r\n\t\t\t\t\twork_img: [], // 工作照\r\n\t\t\t\t\tself_img: [], // 生活照\r\n\t\t\t\t\tvideo: []\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// {\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: \"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],\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\tadmin_id = 0,\r\n\t\t\t\t\tpartner_id = 0,\r\n\t\t\t} = options\r\n\t\t\toptions = admin_id || partner_id ? await this.updateCommonOptions(options) : options\r\n\t\t\tthis.options = options\r\n\t\t\tthis.form.admin_id = admin_id\r\n\t\t\tthis.form.partner_id = partner_id\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: coach_status == -1 ? `申请` + 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\tonUnload() {\r\n\t\t\tif (this.timer) clearInterval(this.timer)\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getConfigInfo', 'getUserInfo', 'updateCommonOptions']),\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\tawait this.getCityList()\r\n\r\n\t\t\t\tlet [data] = await Promise.all([this.$api.technician.coachInfo(), this.getStoreList()])\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\tthis.max_level = data.max_level\r\n\t\t\t\tif (data && !data.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\t\t\t\tlet imgArr = ['id_card', 'license', 'self_img']\r\n\t\t\t\timgArr.map(item => {\r\n\t\t\t\t\tdata[item] = data[item] && data[item].length > 0 ? data[item].map(aitem => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tpath: aitem\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}) : []\r\n\t\t\t\t})\r\n\t\t\t\tif (data.id_card && data.id_card.length > 1) {\r\n\t\t\t\t\tdata.id_card_fan = [data.id_card[1]]\r\n\t\t\t\t\tdata.id_card_people = [data.id_card[2]]\r\n\t\t\t\t\tdata.id_card.splice(1, 3)\r\n\t\t\t\t}\r\n\t\t\t\tlet imgArrs = ['work_img', 'video']\r\n\t\t\t\timgArrs.map(item => {\r\n\t\t\t\t\tdata[item] = data[item] && data[item].length > 0 ? [{\r\n\t\t\t\t\t\tpath: data[item]\r\n\t\t\t\t\t}] : []\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\tlet {\r\n\t\t\t\t\tadmin_id = 0,\r\n\t\t\t\t\t\tpartner_id = 0,\r\n\t\t\t\t} = this.options\r\n\t\t\t\tif (admin_id) {\r\n\t\t\t\t\tdata.admin_id = admin_id\r\n\t\t\t\t}\r\n\t\t\t\tif (partner_id) {\r\n\t\t\t\t\tdata.partner_id = partner_id\r\n\t\t\t\t}\r\n\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\tlet {\r\n\t\t\t\t\tcity_id,\r\n\t\t\t\t\tstore_id,\r\n\t\t\t\t\tstatus,\r\n\t\t\t\t\tsh_text\r\n\t\t\t\t} = data\r\n\t\t\t\tthis.cityIndex = this.cityList.findIndex(item => {\r\n\t\t\t\t\treturn item.id == 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 == store_id\r\n\t\t\t\t})\r\n\t\t\t\tthis.coach_status = !admin_id && status == 4 ? -1 : status\r\n\t\t\t\tif (status == 4 && sh_text) {\r\n\t\t\t\t\tthis.tipArr[4][0].text = sh_text\r\n\t\t\t\t}\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 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.form.city_id = city.length > 0 ? city[0].id : 0\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync getStoreList() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tadmin_id = 0\r\n\t\t\t\t} = this.form\r\n\t\t\t\tif (!admin_id) return\r\n\t\t\t\tlet data = await this.$api.mine.getStoreSelect({\r\n\t\t\t\t\tadmin_id\r\n\t\t\t\t})\r\n\t\t\t\tdata.unshift({\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\tthis.storeList = data\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\t// 发送验证码\r\n\t\t\tasync toSend() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tauthTime\r\n\t\t\t\t} = this\r\n\t\t\t\tif (authTime) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tmobile = ''\r\n\t\t\t\t} = this.form\r\n\t\t\t\tif (mobile == null || !/^(1[0-9]{10})$/.test(mobile)) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: mobile == null ? `请输入手机号` : `${mobile} 手机号无效`\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn;\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\tawait this.$api.user.sendShortMsg({\r\n\t\t\t\t\t\tphone: mobile\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\tlet time = 60\r\n\t\t\t\t\tthis.timer = setInterval(() => {\r\n\t\t\t\t\t\tif (time === 0) {\r\n\t\t\t\t\t\t\tclearInterval(this.timer)\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttime--\r\n\t\t\t\t\t\tthis.authTime = time\r\n\t\t\t\t\t}, 1000)\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\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\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\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\t// 去管理/再次申请\r\n\t\t\tasync confirm() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tcoach_status\r\n\t\t\t\t} = this\r\n\t\t\t\tif (coach_status == 4) {\r\n\t\t\t\t\tthis.coach_status = -1\r\n\t\t\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\t\t\ttitle: this.$t('action.attendantName')\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl: `/pages/mine?type=2`,\r\n\t\t\t\t\topenType: `reLaunch`\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\tparam.work_img = param.work_img.length > 0 ? param.work_img[0].path : ''\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\t\t\t\tlet {\r\n\t\t\t\t\tshort_code_status\r\n\t\t\t\t} = this.configInfo\r\n\t\t\t\tif (short_code_status && (param.short_code == null || param.short_code.length != 6)) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: `请输入6位数短信验证码`\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tif (!short_code_status) {\r\n\t\t\t\t\tdelete param.short_code\r\n\t\t\t\t}\r\n\t\t\t\tparam.birthday = this.$util.DateToUnix(param.birthday)\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\tawait this.$api.technician.coachApply(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\tif (this.timer) {\r\n\t\t\t\t\t\tclearInterval(this.timer)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tif (getCurrentPages().length > 1) {\r\n\t\t\t\t\t\t\tthis.$util.back()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\t\turl: '/pages/mine',\r\n\t\t\t\t\t\t\topenType: `reLaunch`\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}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n\t.apply-info-box {\r\n\t\twidth: 100%;\r\n\t\theight: 2050rpx;\r\n\r\n\t\t.bg-1 {\r\n\t\t\twidth: 750rpx;\r\n\t\t\theight: 1999rpx;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tz-index: 1;\r\n\t\t}\r\n\r\n\t\t.bg-2 {\r\n\t\t\twidth: 750rpx;\r\n\t\t\theight: 620rpx;\r\n\t\t\ttop: 30rpx;\r\n\t\t\tz-index: 2;\r\n\t\t}\r\n\r\n\t\t.technician-money {\r\n\t\t\twidth: 45rpx;\r\n\t\t\ttop: 355rpx;\r\n\t\t\tleft: 460rpx;\r\n\t\t\tz-index: 3;\r\n\t\t}\r\n\r\n\t\t.join-us {\r\n\t\t\twidth: 668rpx;\r\n\t\t\theight: 1351rpx;\r\n\t\t\ttop: 468rpx;\r\n\t\t\tleft: 44rpx;\r\n\t\t\tz-index: 2;\r\n\r\n\t\t\t.item-input {\r\n\t\t\t\theight: 74rpx;\r\n\t\t\t\tborder: 4rpx solid #069F5E;\r\n\r\n\t\t\t\t.flex-between {\r\n\t\t\t\t\theight: 74rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.item-input.text {\r\n\t\t\t\theight: 82rpx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.submit {\r\n\t\t\twidth: 662rpx;\r\n\t\t\theight: 93rpx;\r\n\t\t\ttop: 1900rpx;\r\n\t\t\tleft: 47rpx;\r\n\t\t\tz-index: 2;\r\n\t\t}\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 // 1720663652481\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":""} |