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
30 KiB
1 lines
30 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?03bf","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?4cbe","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?665b","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?a914","uni-app:///user/pages/choose-technician.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?31f5","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/user/pages/choose-technician.vue?c54c"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","technicianListItem","technicianListPopup","data","isLoad","options","param","page","ser_id","coach_name","list","loading","lockTap","pageLen","computed","primaryColor","subColor","configInfo","cityId","cityIndex","cityList","loginType","userInfo","location","onLoad","onPullDownRefresh","uni","onReachBottom","methods","initIndex","refresh","initRefresh","pickerChange","key","val","toOpenLocation","type","toSearch","toChooseLocation","lat","lng","address","province","city","district","getList","change","store_id","oldList","city_id","ind","last_page","current_page","coach_format","methodModel","newList","toShowPopup","toCollect","id","is_collect","collect_num","coach_id","title","goInfo","store","plugAuth","url","toOrder","is_work","service_id","num","is_top","coach_service","toBack","openType"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,yBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACqE;AACL;AACc;;;AAG9E;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,uFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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;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;;;;;;;;;;;;;;ACjDA;AAAA;AAAA;AAAA;AAAizB,CAAgB,+yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;AC6Fr0B;AAIA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eAGA;EACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;MACA;MACAC;QACAP;MACA;MACAQ;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IAAA;IAAA;MAAA;QAAA;UAAA;YAAA;cACA;cAEA;cAAA;cAAA,OAEA;YAAA;cACA;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA;IAAA;EACA;EACAC;IAEAC;IAEA;IACAA;EACA;EACAC;IACA;IACA;IACA;IACA;EACA;EACAC,uDACA,yCACA;IACAC;MAAA;QAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAAC;gBASA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;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AA;AAAA;AAAA;AAAw/C,CAAgB,86CAAG,EAAC,C;;;;;;;;;;;ACA5gD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"user/pages/choose-technician.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './user/pages/choose-technician.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./choose-technician.vue?vue&type=template&id=427c0419&\"\nvar renderjs\nimport script from \"./choose-technician.vue?vue&type=script&lang=js&\"\nexport * from \"./choose-technician.vue?vue&type=script&lang=js&\"\nimport style0 from \"./choose-technician.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 = \"user/pages/choose-technician.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!./choose-technician.vue?vue&type=template&id=427c0419&\"","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.cityList && _vm.cityList.length > 0\n var g1 =\n g0 && !(_vm.cityIndex === -1)\n ? _vm.cityList[_vm.cityIndex].title.length\n : null\n var g2 =\n g0 && !(_vm.cityIndex === -1) && g1 > 3\n ? _vm.cityList[_vm.cityIndex].title.substring(0, 3)\n : null\n var m0 = _vm.$t(\"action.attendantName\")\n var g3 = _vm.list.data && _vm.list.data.length > 0\n var g4 = _vm.loading\n ? _vm.list.current_page >= _vm.list.last_page &&\n _vm.list.data.length > 0 &&\n _vm.location.lng\n : null\n var g5 =\n !_vm.loading &&\n _vm.list.data.length <= 0 &&\n _vm.list.current_page == 1 &&\n _vm.location.address\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n $event.stopPropagation()\n return _vm.$refs.choose_city_item.close()\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n m0: m0,\n g3: g3,\n g4: g4,\n g5: g5,\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!./choose-technician.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!./choose-technician.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pages-technician\">\r\n\t\t<fixed>\r\n\t\t\t<uni-nav-bar :fixed=\"false\" :shadow=\"false\" :statusBar=\"true\" :onlyLeft=\"true\" :color=\"`#fff`\"\r\n\t\t\t\t:backgroundColor=\"primaryColor\">\r\n\t\t\t\t<view @tap.stop=\"toChooseLocation\" class=\"map-info flex-y-center\" slot=\"left\">\r\n\t\t\t\t\t<view class=\"flex-y-center c-base\">\r\n\t\t\t\t\t\t<i class=\"iconfont iconjuli mr-sm\"></i>\r\n\t\t\t\t\t\t<view class=\"map-text max-400 ellipsis\">\r\n\t\t\t\t\t\t\t{{location&&location.address ?location.address : isLoad ? '定位失败' : '定位中...'}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<i class=\"iconfont icon-down\"></i>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</uni-nav-bar>\r\n\t\t\t<view class=\"fix-info choose fill-body rel\">\r\n\t\t\t\t<view class=\"space-top abs\" :style=\"{background:primaryColor}\"></view>\r\n\t\t\t\t<view class=\"search-info fill-base pt-lg pl-lg pr-lg pb-md abs\">\r\n\t\t\t\t\t<view class=\"flex-center pb-md\">\r\n\t\t\t\t\t\t<view class=\"city-info\">\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=\"city-info flex-y-center\">\r\n\t\t\t\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t\t\t\t<block v-if=\"cityList&&cityList.length > 0\">\r\n\t\t\t\t\t\t\t\t\t\t\t{{cityIndex === -1 ? '未知' : cityList[cityIndex].title.length > 3 ? cityList[cityIndex].title.substring(0,3) + '...':cityList[cityIndex].title}}\r\n\t\t\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\t\t<block v-else>请选择</block>\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 iconshaixuanxia-1 ml-sm\"></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\t<view class=\"flex-1\">\r\n\t\t\t\t\t\t\t<search @input=\"toSearch\" type=\"input\" :keyword=\"param.coach_name\" :padding=\"0\" :radius=\"30\"\r\n\t\t\t\t\t\t\t\tbackgroundColor=\"#F0F0F0\" :placeholder=\"'请输入'+$t('action.attendantName')+'姓名'\">\r\n\t\t\t\t\t\t\t</search>\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</fixed>\r\n\r\n\t\t<view class=\"ml-md mr-md\" :class=\"[{'flex-warp':configInfo.coach_list_format===2}]\"\r\n\t\t\tv-if=\"list.data && list.data.length>0\">\r\n\t\t\t<view\r\n\t\t\t\t:class=\"[{'mt-md':(configInfo.coach_list_format===1&&index!=0) || configInfo.coach_list_format===2},{'mr-md':configInfo.coach_list_format===2 && index%2==0}]\"\r\n\t\t\t\tv-for=\"(item,index) in list.data\" :key=\"index\">\r\n\t\t\t\t<technician-list-item @comment=\"toShowPopup(index,'message')\" @collect=\"toCollect(index)\"\r\n\t\t\t\t\t@order=\"toOrder(index)\" :info=\"item\">\r\n\t\t\t\t</technician-list-item>\r\n\t\t\t</view>\r\n\t\t</view> \r\n\r\n\t\t<!-- #ifdef H5 -->\r\n\t\t<load-more :noMore=\"list.current_page>=list.last_page&&list.data.length>0\" :loading=\"loading\" v-if=\"loading\">\r\n\t\t</load-more>\r\n\t\t<abnor v-if=\"!loading&&list.data.length<=0&&list.current_page==1\"></abnor>\r\n\t\t<!-- #endif -->\r\n\t\t<!-- #ifndef H5 -->\r\n\t\t<load-more :noMore=\"list.current_page>=list.last_page&&list.data.length>0&&location.lng\" :loading=\"loading\"\r\n\t\t\tv-if=\"loading\">\r\n\t\t</load-more>\r\n\t\t<abnor v-if=\"!loading&&list.data.length<=0&&list.current_page==1&&location.address\"></abnor>\r\n\t\t<abnor @confirm=\"toOpenLocation\" :tip=\"[{ text: '定位失败,请开启地理位置授权后刷新页面重试~', color: 0 }]\"\r\n\t\t\t:button=\"[{ text: '开启定位' , type: 'confirm' }]\" btnSize=\"\" v-if=\"!loading && !location.address\"> </abnor>\r\n\t\t<!-- #endif -->\r\n\r\n\t\t<technician-list-popup ref=\"technician_list_popup\"></technician-list-popup>\r\n\r\n\t\t<uni-popup ref=\"choose_city_item\" type=\"top\" :custom=\"true\" :zIndex=\"999\">\r\n\t\t\t<view :style=\"{height:configInfo.navBarHeight + 8 + 'px'}\"></view>\r\n\t\t\t<view class=\"choose-city-popup rel\">\r\n\t\t\t\t<image class=\"city-img\" src=\"https://lbqny.migugu.com/admin/anmo/technician/no_city.png\"></image>\r\n\t\t\t\t<view class=\"text f-paragraph c-base abs\">\r\n\t\t\t\t\t很抱歉,该城市未开通, 点击左上角切换其他城市下单服务\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex-between\">\r\n\t\t\t\t\t<view></view>\r\n\t\t\t\t\t<view @tap.stop=\"$refs.choose_city_item.close()\"\r\n\t\t\t\t\t\tclass=\"item-btn flex-center f-paragraph c-title text-bold radius\">知道了</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\r\n\r\n\t\t<view class=\"space-max-footer\"></view>\r\n\t\t<fix-bottom-button @confirm=\"toBack\" :text=\"[{type:'confirm',text:pageLen>1?`返回上页`:`返回首页`}]\" bgColor=\"#fff\">\r\n\t\t</fix-bottom-button>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapActions,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\timport technicianListItem from \"@/components/technician-list-item.vue\"\r\n\timport technicianListPopup from \"@/components/technician-list-popup.vue\"\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\ttechnicianListItem,\r\n\t\t\ttechnicianListPopup\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\tparam: {\r\n\t\t\t\t\tpage: 1,\r\n\t\t\t\t\tser_id: 0,\r\n\t\t\t\t\tcoach_name: ''\r\n\t\t\t\t},\r\n\t\t\t\tlist: {\r\n\t\t\t\t\tdata: []\r\n\t\t\t\t},\r\n\t\t\t\tloading: true,\r\n\t\t\t\tlockTap: false,\r\n\t\t\t\tpageLen: 1\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\tcityId: state => state.technician.cityId,\r\n\t\t\tcityIndex: state => state.technician.cityIndex,\r\n\t\t\tcityList: state => state.technician.cityList,\r\n\t\t\tloginType: state => state.user.loginType,\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\tthis.options = options\r\n\t\t\t// #ifndef H5\r\n\t\t\tthis.$util.showLoading()\r\n\t\t\t// #endif\r\n\t\t\tawait this.initIndex()\r\n\t\t\tthis.isLoad = true\r\n\t\t},\r\n\t\tonPullDownRefresh() {\r\n\t\t\t// #ifndef APP-PLUS\r\n\t\t\tuni.showNavigationBarLoading()\r\n\t\t\t// #endif\r\n\t\t\tthis.initRefresh();\r\n\t\t\tuni.stopPullDownRefresh()\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tif (this.list.current_page >= this.list.last_page || this.loading) return;\r\n\t\t\tthis.param.page = this.param.page + 1;\r\n\t\t\tthis.loading = true;\r\n\t\t\tthis.getList();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapActions(['getCityList']),\r\n\t\t\t...mapMutations(['updateUserItem', 'updateTechnicianItem']),\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\tthis.pageLen = getCurrentPages().length\r\n\t\t\t\tthis.getList(this.cityList.length == 0)\r\n\t\t\t},\r\n\t\t\tinitRefresh() {\r\n\t\t\t\tthis.param.page = 1\r\n\t\t\t\tthis.initIndex(true)\r\n\t\t\t},\r\n\t\t\tpickerChange(e, val) {\r\n\t\t\t\tlet ind = e.target.value\r\n\t\t\t\tthis.updateTechnicianItem({\r\n\t\t\t\t\tkey: 'cityIndex',\r\n\t\t\t\t\tval: ind\r\n\t\t\t\t})\r\n\t\t\t\tthis.updateTechnicianItem({\r\n\t\t\t\t\tkey: 'cityId',\r\n\t\t\t\t\tval: this.cityList[ind].id\r\n\t\t\t\t})\r\n\t\t\t\tthis.param.page = 1\r\n\t\t\t\tthis.getList()\r\n\t\t\t},\r\n\t\t\ttoOpenLocation() {\r\n\t\t\t\tthis.$util.checkAuth({\r\n\t\t\t\t\ttype: 'userLocation'\r\n\t\t\t\t})\r\n\t\t\t\t// #ifdef APP-PLUS\r\n\t\t\t\tuni.getSystemInfo({\r\n\t\t\t\t\tsuccess: (sys) => {\r\n\t\t\t\t\t\tif (sys.platform == 'ios') {\r\n\t\t\t\t\t\t\tplus.runtime.openURL(\"app-settings://\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tvar main = plus.android.runtimeMainActivity();\r\n\t\t\t\t\t\t\tvar Intent = plus.android.importClass(\r\n\t\t\t\t\t\t\t\t\"android.content.Intent\");\r\n\t\t\t\t\t\t\t//可能应该直接进入应用列表的权限设置?=> android.settings.APPLICATION_SETTINGS \r\n\t\t\t\t\t\t\tvar mIntent = new Intent(\r\n\t\t\t\t\t\t\t\t'android.settings.LOCATION_SOURCE_SETTINGS'\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\tmain.startActivity(mIntent);\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\t// #endif\r\n\t\t\t},\r\n\t\t\ttoSearch(val) {\r\n\t\t\t\tthis.param.page = 1\r\n\t\t\t\tthis.param.coach_name = val\r\n\t\t\t\tthis.getList()\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\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\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: lng,\r\n\t\t\t\t\tlatitude: lat,\r\n\t\t\t\t\tprovince = '',\r\n\t\t\t\t\tcity = '',\r\n\t\t\t\t\tdistrict = '',\r\n\t\t\t\t}] = await uni.chooseLocation(param);\r\n\t\t\t\tif (!lng) return\r\n\t\t\t\tlet location = {\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\tprovince,\r\n\t\t\t\t\tcity,\r\n\t\t\t\t\tdistrict\r\n\t\t\t\t}\r\n\t\t\t\tthis.updateUserItem({\r\n\t\t\t\t\tkey: 'location',\r\n\t\t\t\t\tval: location\r\n\t\t\t\t})\r\n\t\t\t\tthis.param.page = 1\r\n\t\t\t\tawait this.getList(true, 1)\r\n\t\t\t},\r\n\t\t\tasync getList(refresh = false, change = 0) {\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 || (location.lat && location.address == '定位失败')) {\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\tlat = '', lng = ''\r\n\t\t\t\t\t\t} = location\r\n\t\t\t\t\t\tif (!lat && !lng) {\r\n\t\t\t\t\t\t\tlet {\r\n\t\t\t\t\t\t\t\tlatitude,\r\n\t\t\t\t\t\t\t\tlongitude\r\n\t\t\t\t\t\t\t} = await this.$jweixin.getWxLocation()\r\n\t\t\t\t\t\t\tlat = latitude\r\n\t\t\t\t\t\t\tlng = longitude\r\n\t\t\t\t\t\t\tlocation = {\r\n\t\t\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\t\t\taddress: '定位失败',\r\n\t\t\t\t\t\t\t\tprovince: '',\r\n\t\t\t\t\t\t\t\tcity: '',\r\n\t\t\t\t\t\t\t\tdistrict: ''\r\n\t\t\t\t\t\t\t}\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 (refresh) {\r\n\t\t\t\t\tawait this.getCityList({\r\n\t\t\t\t\t\tlng,\r\n\t\t\t\t\t\tlat,\r\n\t\t\t\t\t\tchange\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\tid: ser_id,\r\n\t\t\t\t\tstore_id = 0\r\n\t\t\t\t} = this.options\r\n\t\t\t\tlet {\r\n\t\t\t\t\tlist: oldList,\r\n\t\t\t\t\tparam,\r\n\t\t\t\t\tcityList,\r\n\t\t\t\t\tcityIndex,\r\n\t\t\t\t\tcityId: city_id\r\n\t\t\t\t} = this\r\n\r\n\t\t\t\tlet ind = cityList.findIndex(item => {\r\n\t\t\t\t\treturn item.id == city_id\r\n\t\t\t\t})\r\n\r\n\t\t\t\tif (ind == -1) {\r\n\t\t\t\t\tthis.$refs.choose_city_item.open()\r\n\t\t\t\t\tthis.loading = false\r\n\t\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\t\tthis.list = {\r\n\t\t\t\t\t\tdata: [],\r\n\t\t\t\t\t\tlast_page: 1,\r\n\t\t\t\t\t\tcurrent_page: 1\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\tcity_id = ind == -1 ? 0 : city_id\r\n\t\t\t\tcityIndex = ind == -1 ? 0 : ind\r\n\r\n\r\n\t\t\t\tthis.updateTechnicianItem({\r\n\t\t\t\t\tkey: 'cityIndex',\r\n\t\t\t\t\tval: cityIndex\r\n\t\t\t\t})\r\n\r\n\t\t\t\tthis.updateTechnicianItem({\r\n\t\t\t\t\tkey: 'cityId',\r\n\t\t\t\t\tval: city_id\r\n\t\t\t\t})\r\n\r\n\t\t\t\tparam = Object.assign({}, param, {\r\n\t\t\t\t\tser_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\tcity_id\r\n\t\t\t\t})\r\n\r\n\t\t\t\tlet {\r\n\t\t\t\t\tcoach_format = 1\r\n\t\t\t\t} = this.configInfo\r\n\r\n\t\t\t\tlet methodModel = coach_format == 1 ? 'serviceCoachList' : 'typeServiceCoachList'\r\n\r\n\t\t\t\tlet newList = await this.$api.service[methodModel](param);\r\n\r\n\t\t\t\tif (this.param.page == 1) {\r\n\t\t\t\t\tthis.list = newList\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnewList.data = oldList.data.concat(newList.data)\r\n\t\t\t\t\tthis.list = newList\r\n\t\t\t\t}\r\n\t\t\t\tthis.loading = false\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tasync toShowPopup(index, key) {\r\n\t\t\t\tthis.$refs.technician_list_popup.toShowPopup(this.list.data[index], key)\r\n\t\t\t},\r\n\t\t\tasync toCollect(index) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tis_collect,\r\n\t\t\t\t\tcollect_num\r\n\t\t\t\t} = this.list.data[index]\r\n\t\t\t\tlet methodModel = is_collect ? 'delCollect' : 'addCollect'\r\n\t\t\t\tawait this.$api.mine[methodModel]({\r\n\t\t\t\t\tcoach_id: id\r\n\t\t\t\t})\r\n\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\ttitle: is_collect ? '取消成功' : '收藏成功'\r\n\t\t\t\t})\r\n\t\t\t\tthis.list.data[index].is_collect = is_collect == 1 ? 0 : 1\r\n\t\t\t\tthis.list.data[index].collect_num = is_collect == 1 ? collect_num - 1 : collect_num + 1\r\n\t\t\t},\r\n\t\t\t// 技-师详情\r\n\t\t\tgoInfo(index) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid,\r\n\t\t\t\t\tstore = {}\r\n\t\t\t\t} = this.list.data[index]\r\n\t\t\t\tlet {\r\n\t\t\t\t\tplugAuth = {}\r\n\t\t\t\t} = this.configInfo\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl: plugAuth.store && store && store.id ? `/shopstore/pages/detail?id=${store.id}` :\r\n\t\t\t\t\t\t`/user/pages/technician-info?id=${id}`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 预约\r\n\t\t\tasync toOrder(index) {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid: coach_id,\r\n\t\t\t\t\tis_work = 0\r\n\t\t\t\t} = this.list.data[index]\r\n\t\t\t\tif (!is_work) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tid: service_id\r\n\t\t\t\t} = this.options\r\n\t\t\t\tif (this.lockTap) return;\r\n\t\t\t\tthis.lockTap = true;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tawait this.$api.order.addCar({\r\n\t\t\t\t\t\tservice_id,\r\n\t\t\t\t\t\tcoach_id,\r\n\t\t\t\t\t\tnum: 1,\r\n\t\t\t\t\t\tis_top: 1,\r\n\t\t\t\t\t\tcoach_service: 1\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t\tlet url = `/user/pages/order?id=${coach_id}&ser_id=${service_id}`\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl\r\n\t\t\t\t\t})\r\n\t\t\t\t} catch (e) {\r\n\t\t\t\t\tthis.lockTap = false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttoBack() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\tpageLen\r\n\t\t\t\t} = this\r\n\t\t\t\tlet url = pageLen > 1 ? 1 : `/pages/service`\r\n\t\t\t\tlet openType = pageLen > 1 ? `navigateBack` : `reLaunch`\r\n\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\turl,\r\n\t\t\t\t\topenType\r\n\t\t\t\t})\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.pages-technician {}\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!./choose-technician.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!./choose-technician.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725332666220\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":""} |