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
39 KiB
1 lines
39 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?b5f8","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?bf6a","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?4e5c","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?aa51","uni-app:///technician/pages/apply.vue","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?8b93","webpack:///C:/Users/18634/Desktop/项目/xxdj1/technician/pages/apply.vue?2158"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","wPicker","data","isLoad","options","cityList","cityIndex","tipArr","text","color","buttonArr","type","title","image","is_update","coach_status","form","id","coach_name","mobile","company_id","sex","work_time","lng","lat","address","id_code","id_card","id_card_fan","id_card_people","license","work_img","self_img","city_id","video","healthy_img","store_name","rule","name","checkType","errorMsg","regType","lockTap","companyListData","show","computed","primaryColor","subColor","userInfo","location","onLoad","is_edit","admin_id","uni","methods","companyList","initIndex","refresh","bg","path","initRefresh","getCityList","console","key","val","city","pickerChange","pickerChangeCompany","cancelHandle","imgUpload","imagelist","e","imgtype","toChooseLocation","longitude","latitude","confirm","page","url","openType","validate","item","submit","param","arr","msg","methodModel","res","setTimeout"],"mappings":";;;;;;;;;;;;;AAAA;AAE2D;AAC3D;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;AACqK;AACrK,gBAAgB,+KAAU;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,6SAEN;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,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACpEA;AAAA;AAAA;AAAA;AAA+lB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;AC0LnnB;AAIA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eACA;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACA;MACAC;QACA;UACAC;UACAC;QACA;QACA;UACAD;UACAC;QACA;QACA;UACAD;UACAC;QACA;MACA;MACAC;QACA;UACAF;UACAG;QACA;QACA;UACAH;UACAG;QACA;QACA;UACAH;UACAG;QACA;UACAH;UACAG;QACA;MACA;MACAC;QACA;QACA;QACA;MACA;MACAC;QACA;QACA;QACA;MACA;MACAC;MACAC;MACAC;QACAC;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;QAAA;QACAC;QAAA;QACA;QACAC;QACAC;QACAC;QAAA;QACAjB;QAAA;QACAkB;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QAAA;QACAC;QACAC;MACA;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;MACA,GACA;QACAH;QACAC;QACAC;MACA;QACAF;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;MACA,EACA;MACAE;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IAAA;IAAA;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA,WAGA9C,qCADA+C;cAEA;cACA/C;cAAA;cAAA,OACA;YAAA;cAAAA;cACA;cACA;cAAA;cAAA,OACA;YAAA;cAAA,YAGAA,wCADAgD;cAGArC,eACA,MADAA;cAEAsC;gBACAzC;cACA;cACA;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA;IAAA;EACA;EACA0C,uDACA,gEACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAArD;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IAEAsD;MAAA;QAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAAC;gBAAA;gBAAA,OAUA;cA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","file":"technician/pages/apply.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/uni-stat/dist/uni-stat.es.js';\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 \"!D:\\\\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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./apply.vue?vue&type=template&id=2068c046&\"","var components\ntry {\n components = {\n uPicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-picker/u-picker\" */ \"@/uni_modules/uview-ui/components/u-picker/u-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.options.admin_id && [2, 3].includes(_vm.coach_status)) ||\n _vm.is_update\n : null\n var g1 = _vm.isLoad && !g0 ? _vm.form.text.length : null\n var g2 = _vm.isLoad && !g0 && !(g1 > 300) ? _vm.form.text.length : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n return _vm.$util.goUrl({\n url: 1,\n openType: \"navigateBack\",\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 _vm.e2 = function ($event) {\n _vm.show = true\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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\" v-if=\"options.admin_id && [2,3].includes(coach_status) || is_update\">\r\n\t\t\t<abnor percent=\"150%\" @confirm=\"confirm\" @cancel=\"$util.goUrl({ url: 1, openType: `navigateBack` })\"\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]\"></abnor>\r\n\t\t</view>\r\n\t\t<block v-else>\r\n\t\t\t<view class=\"apply-form\">\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">姓名</view>\r\n\t\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\t:placeholder=\"rule[0].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">性别</view>\r\n\t\t\t\t\t\t<view class=\"item-input flex-1 flex-y-center\">\r\n\t\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\t:style=\"{color:form.sex == index ? primaryColor:''}\" v-for=\"(item,index) in ['男','女']\"\r\n\t\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\t:class=\"[{'icon-xuanze-fill':form.sex == index}]\"></i>{{item}}\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=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">手机号</view>\r\n\t\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\t:placeholder=\"rule[1].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- <view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">商家名称</view> -->\r\n\t\t\t\t\t\t<!-- <input v-model=\"form.store_name\" type=\"text\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t\t:placeholder=\"rule[2].errorMsg\" /> -->\r\n\t\t\t\t\t\t<!-- \t<picker @change=\"pickerChangeCompany($event)\" :value=\"cityIndex\" :range=\"companyListData\"\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-y-center\">\r\n\t\t\t\t\t\t\t\t\t{{cityIndex!=-1?cityList[cityIndex].title:'请选择'}}\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<!-- </view> -->\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\" @click=\"show=true\">\r\n\t\t\t\t\t\t<view class=\"item-text\" >商家名称</view>\r\n\t\t\t\t\t\t<input v-model=\"store_name\" type=\"text\" class=\"item-input flex-1\"\r\n\t\t\t\t\t\t\t:placeholder=\"rule[2].errorMsg\" disabled/>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<u-picker :show=\"show\" :columns=\"companyListData\"\r\n\t\t\t\t\tconfirmText=\"完成\"\r\n\t\t\t\t\t@cancel=\"cancelHandle\"\r\n\t\t\t\t\t@confirm=\"pickerChangeCompany\"\r\n\t\t\t\t\tkeyName=\"name\"></u-picker>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">从业年份</view>\r\n\t\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\t:placeholder=\"rule[3].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg b-1px-b\">\r\n\t\t\t\t\t\t<view class=\"item-text\">意向工作城市</view>\r\n\t\t\t\t\t\t<view class=\"item-input text\">\r\n\t\t\t\t\t\t\t<picker @change=\"pickerChange($event)\" :value=\"cityIndex\" :range=\"cityList\"\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-y-center\">\r\n\t\t\t\t\t\t\t\t\t{{cityIndex!=-1?cityList[cityIndex].title:'请选择'}}\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</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">所在地址</view>\r\n\t\t\t\t\t\t<view class=\"item-input text flex-1\">\r\n\t\t\t\t\t\t\t<view @tap.stop=\"toChooseLocation\" class=\"flex-y-center text-right\">\r\n\t\t\t\t\t\t\t\t<view class=\"flex-1 text-right\">{{form.address || `点击右边图标设置`}}</view><i\r\n\t\t\t\t\t\t\t\t\tclass=\"iconfont iconjuli ml-sm\" :style=\"{color: primaryColor}\"></i>\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</view>\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">技师简介</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<textarea v-model=\"form.text\" class=\"item-textarea pd-lg\" maxlength=\"300\" placeholder=\"输入技师简介\" />\r\n\t\t\t\t\t<view class=\"text-right pb-lg pr-lg\">\r\n\t\t\t\t\t\t{{form.text.length>300?300:form.text.length}}/300\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">身份证号</view>\r\n\t\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\t:placeholder=\"rule[7].errorMsg\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">身份证照片</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.id_card\" imgtype=\"id_card\" imgclass=\"md\"\r\n\t\t\t\t\t\t\ttext=\"身份证人像面\" :imgsize=\"1\"></upload>\r\n\t\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\t\ttext=\"身份证国徽面\" :imgsize=\"1\"></upload>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.id_card_people\" imgtype=\"id_card_people\"\r\n\t\t\t\t\t\t\timgclass=\"md\" text=\"手持身份证照片\" :imgsize=\"1\"></upload>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">资格证书</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.license\" imgtype=\"license\"\r\n\t\t\t\t\t\t\ttext=\"上传图片\" :imgsize=\"15\">\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=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">工作形象照</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\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\">\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\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">健康证</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" :imagelist=\"form.healthy_img\" imgtype=\"healthy_img\" text=\"上传图片\"\r\n\t\t\t\t\t\t\t:imgsize=\"1\">\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\r\n\t\t\t\t<view class=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">个人生活照</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.self_img\" filetype=\"picture\"\r\n\t\t\t\t\t\t\timgtype=\"self_img\" text=\"上传图片\" :imgsize=\"9\">\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=\"fill-base mt-md radius-16\">\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg\">\r\n\t\t\t\t\t\t<view class=\"item-text\">个人视频介绍</view>\r\n\t\t\t\t\t\t<input :disabled=\"true\" type=\"text\" class=\"item-input flex-1\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"flex-between pl-lg pr-lg pb-md\">\r\n\t\t\t\t\t\t<upload @upload=\"imgUpload\" @del=\"imgUpload\" :imagelist=\"form.video\" filetype=\"video\"\r\n\t\t\t\t\t\t\timgtype=\"video\" text=\"上传视频\" :imgsize=\"1\">\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-caption pd-lg\">\r\n\t\t\t\t\t{{options.is_edit == 1 ? '编辑资料将进入重新审核,审核通过之前将显示原资料' : '平台不会通过任何渠道泄露您的个人信息,请放心输入'}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"space-max-footer\"></view>\r\n\r\n\t\t\t<auth :needAuth=\"userInfo && !userInfo.nickName\" :must=\"true\" type=\"userInfo\" @go=\"submit\">\r\n\t\t\t\t<fix-bottom-button :text=\"[{text:'确定申请',type:'confirm'}]\" bgColor=\"#fff\"></fix-bottom-button>\r\n\t\t\t</auth>\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\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'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},\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: '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': '您已经是技师了',\r\n\t\t\t\t\t'3': '平台管理员已取消授权'\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},\r\n\t\t\t\tis_update: 0,\r\n\t\t\t\tcoach_status: 0,\r\n\t\t\t\tform: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tcoach_name: '', //姓名 \r\n\t\t\t\t\tmobile: '', //手机号 \r\n\t\t\t\t\tcompany_id:null,\r\n\t\t\t\t\tsex: 0, //性别 \r\n\t\t\t\t\twork_time: '', //从业年份 \r\n\t\t\t\t\t// city: '', //城市 \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\thealthy_img:[]\r\n\t\t\t\t},\r\n\t\t\t\tstore_name:'',\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{\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: \"company_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\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: \"请输入技师简介\",\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: \"healthy_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],\r\n\t\t\t\tlockTap: false,\r\n\t\t\t\tcompanyListData:[],\r\n\t\t\t\tshow: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\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\tis_edit = 0\r\n\t\t\t} = options\r\n\t\t\tthis.companyList()\r\n\t\t\toptions.is_edit = is_edit\r\n\t\t\toptions = await this.updateCommonOptions(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\tadmin_id = 0,\r\n\t\t\t} = options\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: is_edit ? '编辑资料' : admin_id && [2, 3].includes(coach_status) ? `` : `申请技师`\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(['getUserInfo', 'updateCommonOptions']),\r\n\t\t\t...mapMutations(['updateUserItem']),\r\n\t\t\tasync companyList(){\r\n\t\t\t\tlet data = await this.$api.mine.companyList()\r\n\t\t\t\tthis.companyListData.push(data)\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\tasync initIndex(refresh = false) {\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tawait this.getCityList()\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\tawait this.getCityList()\r\n\t\t\t\tlet data = await this.$api.technician.coachInfo()\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\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\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.healthy_img = [{\r\n\t\t\t\t\tpath: data.healthy_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\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.coach_status = data.is_update == 1 ? -1 : data.status\r\n\t\t\t\tthis.is_update = data.is_update\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\t// if (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\t\t\t\t\t// location = await this.$util.getBmapLocation()\r\n\t\t\t\t\tconsole.log(location,\"mmnn111\")\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\tconsole.log(location,\"uuuuii\")\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\tconsole.log(city,\"jjjjj\")\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\tpickerChange(e, val) {\r\n\t\t\t\tconsole.log('picker发送选择改变,携带值为', e.target.value)\r\n\t\t\t\tthis.cityIndex = e.target.value\r\n\t\t\t\tthis.form.city_id = this.cityList[this.cityIndex].id\r\n\t\t\t},\r\n\t\t\tpickerChangeCompany(val) {\r\n\t\t\t\tconsole.log('picker发送选择改变,携带值为', val.value)\r\n\t\t\t\t// this.cityIndex = e.target.value\r\n\t\t\t\tthis.store_name = val.value[0].name\r\n\t\t\t\tthis.form.company_id = val.value[0].id\r\n\t\t\t\tthis.show = false\r\n\t\t\t},\r\n\t\t\tcancelHandle(){\r\n\t\t\t\tthis.show = false\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\taddress = '',\r\n\t\t\t\t\tlongitude,\r\n\t\t\t\t\tlatitude\r\n\t\t\t\t}] = await uni.chooseLocation();\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\tlet page = {\r\n\t\t\t\t\t2: `/pages/mine`,\r\n\t\t\t\t\t3: `/technician/pages/apply`,\r\n\t\t\t\t}\r\n\t\t\t\tlet url = page[coach_status]\r\n\t\t\t\tthis.$util.log(url)\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl,\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\tlet arr = ['id_card', 'id_card_fan', 'id_card_people', 'work_img','healthy_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\t\t\t\tlet {\r\n\t\t\t\t\tadmin_id = 0\r\n\t\t\t\t} = this.options\r\n\t\t\t\tif (admin_id) {\r\n\t\t\t\t\tparam.admin_id = admin_id\r\n\t\t\t\t}\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\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 && is_edit ? 'coachUpdateV2' : 'coachApply'\r\n\t\t\t\t\tlet res = await this.$api.technician[methodModel](\r\n\t\t\t\t\t\tparam)\r\n\t\t\t\t\tconsole.log(res,\"lldd\")\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tlet msg = param.id && is_edit ? `` : `,即将跳转个人中心`\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\t\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tif (param.id && is_edit) {\r\n\t\t\t\t\t\t\tthis.coach_status = -1\r\n\t\t\t\t\t\t\tthis.is_update = 1;\r\n\t\t\t\t\t\t\t// this.$util.goUrl({\r\n\t\t\t\t\t\t\t// \turl: '/pages/mine',\r\n\t\t\t\t\t\t\t// \topenType: `reLaunch`\r\n\t\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\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: '/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}, 1500)\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.page-height {\r\n\t\twidth: 100%;\r\n\t\theight: 100vh;\r\n\t\tbackground: #fff;\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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 // 1693649188597\n var cssReload = require(\"D:/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":""} |