|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/technician"],{
|
|
|
|
|
|
|
|
/***/ 205:
|
|
|
|
/*!*****************************************************************************!*\
|
|
|
|
!*** C:/Users/18634/Desktop/项目/xxdj1/main.js?{"page":"pages%2Ftechnician"} ***!
|
|
|
|
\*****************************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
|
__webpack_require__(/*! uni-pages */ 26);
|
|
|
|
__webpack_require__(/*! @dcloudio/uni-stat/dist/uni-stat.es.js */ 27);
|
|
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
|
|
|
var _technician = _interopRequireDefault(__webpack_require__(/*! ./pages/technician.vue */ 206));
|
|
|
|
// @ts-ignore
|
|
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
|
|
createPage(_technician.default);
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 206:
|
|
|
|
/*!************************************************************!*\
|
|
|
|
!*** C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue ***!
|
|
|
|
\************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
/* harmony import */ var _technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./technician.vue?vue&type=template&id=5d289ec6&scoped=true& */ 207);
|
|
|
|
/* harmony import */ var _technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./technician.vue?vue&type=script&lang=js& */ 209);
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
/* harmony import */ var _technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./technician.vue?vue&type=style&index=0&id=5d289ec6&lang=scss&scoped=true& */ 211);
|
|
|
|
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 66);
|
|
|
|
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
|
|
|
|
var component = Object(_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
|
|
_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
|
|
_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
|
|
_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
|
|
false,
|
|
|
|
null,
|
|
|
|
"5d289ec6",
|
|
|
|
null,
|
|
|
|
false,
|
|
|
|
_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
|
|
renderjs
|
|
|
|
)
|
|
|
|
|
|
|
|
component.options.__file = "pages/technician.vue"
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 207:
|
|
|
|
/*!*******************************************************************************************************!*\
|
|
|
|
!*** C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=template&id=5d289ec6&scoped=true& ***!
|
|
|
|
\*******************************************************************************************************/
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
/* harmony import */ var _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_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./technician.vue?vue&type=template&id=5d289ec6&scoped=true& */ 208);
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _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_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _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_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _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_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _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_technician_vue_vue_type_template_id_5d289ec6_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 208:
|
|
|
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=template&id=5d289ec6&scoped=true& ***!
|
|
|
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
|
|
var components
|
|
|
|
var render = function () {
|
|
|
|
var _vm = this
|
|
|
|
var _h = _vm.$createElement
|
|
|
|
var _c = _vm._self._c || _h
|
|
|
|
var g0 = _vm.list.data.length
|
|
|
|
var g1 = _vm.loading
|
|
|
|
? _vm.list.current_page >= _vm.list.last_page &&
|
|
|
|
_vm.list.data.length > 0 &&
|
|
|
|
_vm.location.lng
|
|
|
|
: null
|
|
|
|
var g2 =
|
|
|
|
!_vm.loading &&
|
|
|
|
_vm.list.data.length <= 0 &&
|
|
|
|
_vm.list.current_page == 1 &&
|
|
|
|
_vm.location.lng
|
|
|
|
var g3 =
|
|
|
|
_vm.showInd != -1
|
|
|
|
? !_vm.loading &&
|
|
|
|
((_vm.showType == "technician" && _vm.serviceList.length <= 0) ||
|
|
|
|
(_vm.showType == "message" && _vm.commentList.data.length <= 0))
|
|
|
|
: null
|
|
|
|
if (!_vm._isMounted) {
|
|
|
|
_vm.e0 = function ($event) {
|
|
|
|
$event.stopPropagation()
|
|
|
|
return _vm.$refs.technician_item.close()
|
|
|
|
}
|
|
|
|
_vm.e1 = function ($event) {
|
|
|
|
$event.stopPropagation()
|
|
|
|
_vm.$refs.technician_item.close(),
|
|
|
|
_vm.$util.goUrl({
|
|
|
|
url: "/user/pages/comment?index=" + _vm.showInd,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_vm.$mp.data = Object.assign(
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
$root: {
|
|
|
|
g0: g0,
|
|
|
|
g1: g1,
|
|
|
|
g2: g2,
|
|
|
|
g3: g3,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
var recyclableRender = false
|
|
|
|
var staticRenderFns = []
|
|
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 209:
|
|
|
|
/*!*************************************************************************************!*\
|
|
|
|
!*** C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=script&lang=js& ***!
|
|
|
|
\*************************************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
/* harmony import */ var _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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./technician.vue?vue&type=script&lang=js& */ 210);
|
|
|
|
/* harmony import */ var _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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_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_technician_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 210:
|
|
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=script&lang=js& ***!
|
|
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
value: true
|
|
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 36));
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 38));
|
|
|
|
var _vuex = __webpack_require__(/*! vuex */ 48);
|
|
|
|
var _mixin = __webpack_require__(/*! ../uni_modules/uview-ui/libs/mixin/mixin */ 68);
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
|
var _default = {
|
|
|
|
// components: {
|
|
|
|
// tabbar
|
|
|
|
// },
|
|
|
|
data: function data() {
|
|
|
|
return {
|
|
|
|
options: {},
|
|
|
|
imgType: {
|
|
|
|
1: 'top',
|
|
|
|
2: 'hot',
|
|
|
|
3: 'new'
|
|
|
|
},
|
|
|
|
loading: true,
|
|
|
|
showInd: -1,
|
|
|
|
showType: '',
|
|
|
|
lockTap: false,
|
|
|
|
serviceList: [],
|
|
|
|
commentList: [],
|
|
|
|
isLoad: false,
|
|
|
|
sort_order: 'desc',
|
|
|
|
sort_field: ''
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: (0, _vuex.mapState)({
|
|
|
|
pageActive: function pageActive(state) {
|
|
|
|
return state.technician.pageActive;
|
|
|
|
},
|
|
|
|
cityId: function cityId(state) {
|
|
|
|
return state.technician.cityId;
|
|
|
|
},
|
|
|
|
cityIndex: function cityIndex(state) {
|
|
|
|
return state.technician.cityIndex;
|
|
|
|
},
|
|
|
|
cityList: function cityList(state) {
|
|
|
|
return state.technician.cityList;
|
|
|
|
},
|
|
|
|
activeIndex: function activeIndex(state) {
|
|
|
|
return state.technician.activeIndex;
|
|
|
|
},
|
|
|
|
tabList: function tabList(state) {
|
|
|
|
return state.technician.tabList;
|
|
|
|
},
|
|
|
|
tabList1: function tabList1(state) {
|
|
|
|
return state.service.tabList;
|
|
|
|
},
|
|
|
|
param: function param(state) {
|
|
|
|
return state.technician.param;
|
|
|
|
},
|
|
|
|
list: function list(state) {
|
|
|
|
return state.technician.list;
|
|
|
|
},
|
|
|
|
primaryColor: function primaryColor(state) {
|
|
|
|
return state.config.configInfo.primaryColor;
|
|
|
|
},
|
|
|
|
subColor: function subColor(state) {
|
|
|
|
return state.config.configInfo.subColor;
|
|
|
|
},
|
|
|
|
configInfo: function configInfo(state) {
|
|
|
|
return state.config.configInfo;
|
|
|
|
},
|
|
|
|
userInfo: function userInfo(state) {
|
|
|
|
return state.user.userInfo;
|
|
|
|
},
|
|
|
|
location: function location(state) {
|
|
|
|
return state.user.location;
|
|
|
|
},
|
|
|
|
carList: function carList(state) {
|
|
|
|
return state.order.carList;
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
onLoad: function onLoad() {
|
|
|
|
var _this = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context.prev = _context.next) {
|
|
|
|
case 0:
|
|
|
|
console.log("999");
|
|
|
|
_this.$util.showLoading();
|
|
|
|
|
|
|
|
// await this.initIndex(true)
|
|
|
|
if (!_this.pageActive) {
|
|
|
|
_context.next = 7;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_this.isLoad = true;
|
|
|
|
_this.loading = false;
|
|
|
|
_this.$util.hideAll();
|
|
|
|
return _context.abrupt("return");
|
|
|
|
case 7:
|
|
|
|
_this.updateTechnicianItem({
|
|
|
|
key: 'pageActive',
|
|
|
|
val: true
|
|
|
|
});
|
|
|
|
case 8:
|
|
|
|
case "end":
|
|
|
|
return _context.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
onShow: function onShow() {
|
|
|
|
var _this2 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
|
case 0:
|
|
|
|
_context2.next = 2;
|
|
|
|
return _this2.initIndex(true);
|
|
|
|
case 2:
|
|
|
|
case "end":
|
|
|
|
return _context2.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee2);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
onPullDownRefresh: function onPullDownRefresh() {
|
|
|
|
uni.showNavigationBarLoading();
|
|
|
|
this.initRefresh();
|
|
|
|
uni.stopPullDownRefresh();
|
|
|
|
},
|
|
|
|
onReachBottom: function onReachBottom() {
|
|
|
|
if (this.list.current_page >= this.list.last_page || this.loading) return;
|
|
|
|
this.loading = true;
|
|
|
|
this.getList(this.param.page + 1);
|
|
|
|
},
|
|
|
|
onShareAppMessage: function onShareAppMessage(e) {
|
|
|
|
var pid = this.userInfo.id;
|
|
|
|
var path = "/pages/technician?pid=".concat(pid);
|
|
|
|
this.$util.log(path);
|
|
|
|
return {
|
|
|
|
title: '',
|
|
|
|
imageUrl: '',
|
|
|
|
path: path
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: _objectSpread(_objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getConfigInfo', 'getUserInfo', 'getCarList', 'getCityList', 'getServiceCoachList'])), (0, _vuex.mapMutations)(['updateUserItem', 'updateTechnicianItem'])), {}, {
|
|
|
|
initIndex: function initIndex() {
|
|
|
|
var _arguments = arguments,
|
|
|
|
_this3 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
|
|
var refresh;
|
|
|
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context3.prev = _context3.next) {
|
|
|
|
case 0:
|
|
|
|
refresh = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;
|
|
|
|
console.log("777");
|
|
|
|
if (!(!_this3.configInfo.id || refresh)) {
|
|
|
|
_context3.next = 5;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_context3.next = 5;
|
|
|
|
return _this3.getConfigInfo();
|
|
|
|
case 5:
|
|
|
|
_context3.next = 7;
|
|
|
|
return _this3.getList(1, true);
|
|
|
|
case 7:
|
|
|
|
case "end":
|
|
|
|
return _context3.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee3);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
pickerChange: function pickerChange(e, val) {
|
|
|
|
var ind = e.target.value;
|
|
|
|
this.updateTechnicianItem({
|
|
|
|
key: 'cityIndex',
|
|
|
|
val: ind
|
|
|
|
});
|
|
|
|
this.updateTechnicianItem({
|
|
|
|
key: 'cityId',
|
|
|
|
val: this.cityList[ind].id
|
|
|
|
});
|
|
|
|
this.getList(1);
|
|
|
|
},
|
|
|
|
initRefresh: function initRefresh() {
|
|
|
|
this.initIndex(true);
|
|
|
|
},
|
|
|
|
toAppShare: function toAppShare() {
|
|
|
|
var _this4 = this;
|
|
|
|
var pid = this.userInfo.id;
|
|
|
|
var title = '技师';
|
|
|
|
var page_url = window.location.href;
|
|
|
|
if (page_url.includes('?pid=')) {
|
|
|
|
page_url = page_url.split('?pid=')[0];
|
|
|
|
}
|
|
|
|
var href = "".concat(page_url, "?pid=").concat(pid);
|
|
|
|
var imageUrl = '';
|
|
|
|
this.$jweixin.wxReady(function () {
|
|
|
|
_this4.$jweixin.showOptionMenu();
|
|
|
|
_this4.$jweixin.shareAppMessage(title, '', href, imageUrl);
|
|
|
|
_this4.$jweixin.shareTimelineMessage(title, href, imageUrl);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
toOpenLocation: function toOpenLocation() {
|
|
|
|
this.$util.checkAuth({
|
|
|
|
type: 'userLocation'
|
|
|
|
});
|
|
|
|
},
|
|
|
|
toSearch: function toSearch(val) {
|
|
|
|
var _this5 = this;
|
|
|
|
var param = this.$util.deepCopy(this.param);
|
|
|
|
param.page = 1;
|
|
|
|
param.coach_name = val;
|
|
|
|
this.updateTechnicianItem({
|
|
|
|
key: 'param',
|
|
|
|
val: param
|
|
|
|
});
|
|
|
|
setTimeout(function () {
|
|
|
|
_this5.getList();
|
|
|
|
}, 1000);
|
|
|
|
},
|
|
|
|
// 选择地区
|
|
|
|
toChooseLocation: function toChooseLocation(e) {
|
|
|
|
var _this6 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
|
|
var _yield$uni$chooseLoca, _yield$uni$chooseLoca2, _yield$uni$chooseLoca3, _yield$uni$chooseLoca4, address, lng, lat, _yield$uni$chooseLoca5, province, _yield$uni$chooseLoca6, city, _yield$uni$chooseLoca7, district, location;
|
|
|
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context4.prev = _context4.next) {
|
|
|
|
case 0:
|
|
|
|
_context4.next = 2;
|
|
|
|
return _this6.$util.checkAuth({
|
|
|
|
type: 'userLocation'
|
|
|
|
});
|
|
|
|
case 2:
|
|
|
|
_context4.next = 4;
|
|
|
|
return uni.chooseLocation();
|
|
|
|
case 4:
|
|
|
|
_yield$uni$chooseLoca = _context4.sent;
|
|
|
|
_yield$uni$chooseLoca2 = (0, _slicedToArray2.default)(_yield$uni$chooseLoca, 2);
|
|
|
|
_yield$uni$chooseLoca3 = _yield$uni$chooseLoca2[1];
|
|
|
|
_yield$uni$chooseLoca4 = _yield$uni$chooseLoca3.address;
|
|
|
|
address = _yield$uni$chooseLoca4 === void 0 ? '' : _yield$uni$chooseLoca4;
|
|
|
|
lng = _yield$uni$chooseLoca3.longitude;
|
|
|
|
lat = _yield$uni$chooseLoca3.latitude;
|
|
|
|
_yield$uni$chooseLoca5 = _yield$uni$chooseLoca3.province;
|
|
|
|
province = _yield$uni$chooseLoca5 === void 0 ? '' : _yield$uni$chooseLoca5;
|
|
|
|
_yield$uni$chooseLoca6 = _yield$uni$chooseLoca3.city;
|
|
|
|
city = _yield$uni$chooseLoca6 === void 0 ? '' : _yield$uni$chooseLoca6;
|
|
|
|
_yield$uni$chooseLoca7 = _yield$uni$chooseLoca3.district;
|
|
|
|
district = _yield$uni$chooseLoca7 === void 0 ? '' : _yield$uni$chooseLoca7;
|
|
|
|
if (lng) {
|
|
|
|
_context4.next = 19;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return _context4.abrupt("return");
|
|
|
|
case 19:
|
|
|
|
location = {
|
|
|
|
lng: lng,
|
|
|
|
lat: lat,
|
|
|
|
address: address,
|
|
|
|
province: province,
|
|
|
|
city: city,
|
|
|
|
district: district
|
|
|
|
};
|
|
|
|
_this6.updateUserItem({
|
|
|
|
key: 'location',
|
|
|
|
val: location
|
|
|
|
});
|
|
|
|
_this6.param.page = 1;
|
|
|
|
_this6.getList();
|
|
|
|
case 23:
|
|
|
|
case "end":
|
|
|
|
return _context4.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee4);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
getList: function getList() {
|
|
|
|
var _arguments2 = arguments,
|
|
|
|
_this7 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
|
|
var page, refresh, _param, location, _location, _location$lng, lng, _location$lat, lat, oldList, param, tabList, tabList1, activeIndex, cityList, cityIndex, city_id, type, ind;
|
|
|
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context5.prev = _context5.next) {
|
|
|
|
case 0:
|
|
|
|
page = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : 0;
|
|
|
|
refresh = _arguments2.length > 1 && _arguments2[1] !== undefined ? _arguments2[1] : false;
|
|
|
|
if (page) {
|
|
|
|
_param = _this7.$util.deepCopy(_this7.param);
|
|
|
|
_param.page = page;
|
|
|
|
_this7.updateTechnicianItem({
|
|
|
|
key: 'param',
|
|
|
|
val: _param
|
|
|
|
});
|
|
|
|
}
|
|
|
|
location = _this7.location;
|
|
|
|
if (location.lat) {
|
|
|
|
_context5.next = 9;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_context5.next = 7;
|
|
|
|
return _this7.$util.getBmapLocation();
|
|
|
|
case 7:
|
|
|
|
location = _context5.sent;
|
|
|
|
_this7.updateUserItem({
|
|
|
|
key: 'location',
|
|
|
|
val: location
|
|
|
|
});
|
|
|
|
case 9:
|
|
|
|
_location = location, _location$lng = _location.lng, lng = _location$lng === void 0 ? 0 : _location$lng, _location$lat = _location.lat, lat = _location$lat === void 0 ? 0 : _location$lat;
|
|
|
|
oldList = _this7.list, param = _this7.param, tabList = _this7.tabList, tabList1 = _this7.tabList1, activeIndex = _this7.activeIndex, cityList = _this7.cityList, cityIndex = _this7.cityIndex, city_id = _this7.cityId;
|
|
|
|
console.log(activeIndex, tabList);
|
|
|
|
if (!refresh) {
|
|
|
|
_context5.next = 15;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_context5.next = 15;
|
|
|
|
return _this7.getCityList({
|
|
|
|
lng: lng,
|
|
|
|
lat: lat
|
|
|
|
});
|
|
|
|
case 15:
|
|
|
|
type = tabList1[activeIndex].id;
|
|
|
|
console.log(type);
|
|
|
|
ind = cityList.findIndex(function (item) {
|
|
|
|
return item.id == city_id;
|
|
|
|
});
|
|
|
|
city_id = ind == -1 ? 0 : city_id;
|
|
|
|
cityIndex = ind == -1 ? 0 : ind;
|
|
|
|
_this7.updateTechnicianItem({
|
|
|
|
key: 'cityIndex',
|
|
|
|
val: cityIndex
|
|
|
|
});
|
|
|
|
_this7.updateTechnicianItem({
|
|
|
|
key: 'cityId',
|
|
|
|
val: city_id
|
|
|
|
});
|
|
|
|
param = Object.assign({}, param, {
|
|
|
|
lng: lng,
|
|
|
|
lat: lat,
|
|
|
|
type: type,
|
|
|
|
city_id: city_id,
|
|
|
|
sort_field: _this7.sort_field,
|
|
|
|
sort_order: _this7.sort_order
|
|
|
|
});
|
|
|
|
console.log(param, "999");
|
|
|
|
_context5.next = 26;
|
|
|
|
return _this7.getServiceCoachList(param);
|
|
|
|
case 26:
|
|
|
|
_this7.loading = false;
|
|
|
|
_this7.$util.hideAll();
|
|
|
|
case 28:
|
|
|
|
case "end":
|
|
|
|
return _context5.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee5);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
handerTabChange: function handerTabChange(index) {
|
|
|
|
var _this8 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
|
|
var location, _location$lng2, lng, _location$lat2, lat, param;
|
|
|
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context6.prev = _context6.next) {
|
|
|
|
case 0:
|
|
|
|
location = _this8.location;
|
|
|
|
_location$lng2 = location.lng, lng = _location$lng2 === void 0 ? 0 : _location$lng2, _location$lat2 = location.lat, lat = _location$lat2 === void 0 ? 0 : _location$lat2;
|
|
|
|
_this8.param.page = 1;
|
|
|
|
_this8.sort_order == 'desc' ? _this8.tabList1[index].sign = 1 : _this8.tabList1[index].sign = 0;
|
|
|
|
_this8.sort_order == 'desc' ? _this8.sort_order = 'asc' : _this8.sort_order = 'desc';
|
|
|
|
_this8.updateTechnicianItem({
|
|
|
|
key: 'activeIndex',
|
|
|
|
val: index
|
|
|
|
});
|
|
|
|
_this8.showInd = -1;
|
|
|
|
_this8.$util.showLoading();
|
|
|
|
uni.pageScrollTo({
|
|
|
|
scrollTop: 0
|
|
|
|
});
|
|
|
|
index == 2 ? _this8.sort_field = 'distance' : index == 1 ? _this8.sort_field = 'order_num' : index == 3 ? _this8.sort_field = 'star' : _this8.sort_field = '';
|
|
|
|
param = Object.assign({}, _this8.param, {
|
|
|
|
sort_field: _this8.sort_field,
|
|
|
|
sort_order: _this8.sort_order,
|
|
|
|
lng: lng,
|
|
|
|
lat: lat
|
|
|
|
});
|
|
|
|
console.log(param, index);
|
|
|
|
_context6.next = 14;
|
|
|
|
return _this8.getServiceCoachList(param);
|
|
|
|
case 14:
|
|
|
|
_this8.$util.hideAll();
|
|
|
|
// this.getList(1)
|
|
|
|
case 15:
|
|
|
|
case "end":
|
|
|
|
return _context6.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee6);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
goShop: function goShop(item) {
|
|
|
|
console.log(item, "hhhh");
|
|
|
|
this.$util.goUrl({
|
|
|
|
url: '/user/pages/myGroup/myGroup?isGroup=false&company_id=' + item.company_id
|
|
|
|
});
|
|
|
|
},
|
|
|
|
toPreviewImage: function toPreviewImage(index) {
|
|
|
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
|
|
var _this$list$data$index = this.list.data[index],
|
|
|
|
urls = _this$list$data$index.self_img,
|
|
|
|
work_img = _this$list$data$index.work_img;
|
|
|
|
if (key) {
|
|
|
|
urls = [work_img];
|
|
|
|
}
|
|
|
|
this.$util.previewImage({
|
|
|
|
current: urls[0],
|
|
|
|
urls: urls
|
|
|
|
});
|
|
|
|
},
|
|
|
|
toShowPopup: function toShowPopup(index, key) {
|
|
|
|
var _this9 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
|
|
var _this9$list$data$inde, user_id;
|
|
|
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context7.prev = _context7.next) {
|
|
|
|
case 0:
|
|
|
|
_this9.showInd = index;
|
|
|
|
_this9.showType = key;
|
|
|
|
if (!(key == 'technician')) {
|
|
|
|
_context7.next = 10;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_this9$list$data$inde = _this9.list.data[index].user_id, user_id = _this9$list$data$inde === void 0 ? 0 : _this9$list$data$inde;
|
|
|
|
if (user_id) {
|
|
|
|
_context7.next = 6;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return _context7.abrupt("return");
|
|
|
|
case 6:
|
|
|
|
_context7.next = 8;
|
|
|
|
return _this9.getServiceList();
|
|
|
|
case 8:
|
|
|
|
_context7.next = 12;
|
|
|
|
break;
|
|
|
|
case 10:
|
|
|
|
_context7.next = 12;
|
|
|
|
return _this9.getCommentList();
|
|
|
|
case 12:
|
|
|
|
_this9.$refs.technician_item.open();
|
|
|
|
case 13:
|
|
|
|
case "end":
|
|
|
|
return _context7.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee7);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
getCommentList: function getCommentList() {
|
|
|
|
var _this10 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
|
|
var coach_id, param;
|
|
|
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context8.prev = _context8.next) {
|
|
|
|
case 0:
|
|
|
|
coach_id = _this10.list.data[_this10.showInd].id;
|
|
|
|
param = {
|
|
|
|
coach_id: coach_id,
|
|
|
|
page: 1
|
|
|
|
};
|
|
|
|
_context8.next = 4;
|
|
|
|
return _this10.$api.service.commentList(param);
|
|
|
|
case 4:
|
|
|
|
_this10.commentList = _context8.sent;
|
|
|
|
case 5:
|
|
|
|
case "end":
|
|
|
|
return _context8.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee8);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
getServiceList: function getServiceList() {
|
|
|
|
var _this11 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
|
|
var coach_id, _yield$_this11$$api$s, data, arr;
|
|
|
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context9.prev = _context9.next) {
|
|
|
|
case 0:
|
|
|
|
coach_id = _this11.list.data[_this11.showInd].id;
|
|
|
|
_context9.next = 3;
|
|
|
|
return _this11.getCarList({
|
|
|
|
coach_id: coach_id
|
|
|
|
});
|
|
|
|
case 3:
|
|
|
|
_context9.next = 5;
|
|
|
|
return _this11.$api.service.coachServiceList({
|
|
|
|
coach_id: coach_id
|
|
|
|
});
|
|
|
|
case 5:
|
|
|
|
_yield$_this11$$api$s = _context9.sent;
|
|
|
|
data = _yield$_this11$$api$s.data;
|
|
|
|
arr = [];
|
|
|
|
_this11.carList.list.map(function (item) {
|
|
|
|
arr.push(item.service_id);
|
|
|
|
});
|
|
|
|
data.map(function (item) {
|
|
|
|
if (arr.includes(item.id)) {
|
|
|
|
var carInd = arr.findIndex(function (aitem) {
|
|
|
|
return aitem == item.id;
|
|
|
|
});
|
|
|
|
item.num = _this11.carList.list[carInd].num;
|
|
|
|
item.cart_id = _this11.carList.list[carInd].id;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
_this11.serviceList = data;
|
|
|
|
case 11:
|
|
|
|
case "end":
|
|
|
|
return _context9.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee9);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
toCollect: function toCollect(index) {
|
|
|
|
var _this12 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
|
|
var _this12$list$data$ind, id, is_collect, collect_num, methodModel;
|
|
|
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context10.prev = _context10.next) {
|
|
|
|
case 0:
|
|
|
|
_this12$list$data$ind = _this12.list.data[index], id = _this12$list$data$ind.id, is_collect = _this12$list$data$ind.is_collect, collect_num = _this12$list$data$ind.collect_num;
|
|
|
|
methodModel = is_collect ? 'delCollect' : 'addCollect';
|
|
|
|
_context10.next = 4;
|
|
|
|
return _this12.$api.mine[methodModel]({
|
|
|
|
coach_id: id
|
|
|
|
});
|
|
|
|
case 4:
|
|
|
|
_this12.$util.showToast({
|
|
|
|
title: is_collect ? '取消成功' : '收藏成功'
|
|
|
|
});
|
|
|
|
_this12.list.data[index].is_collect = is_collect == 1 ? 0 : 1;
|
|
|
|
_this12.list.data[index].collect_num = is_collect == 1 ? collect_num - 1 : collect_num + 1;
|
|
|
|
case 7:
|
|
|
|
case "end":
|
|
|
|
return _context10.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee10);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
// 技师详情
|
|
|
|
goInfo: function goInfo(index) {
|
|
|
|
var id = this.list.data[index].id;
|
|
|
|
this.$util.goUrl({
|
|
|
|
url: "/user/pages/technician-info?id=".concat(id)
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 服务详情
|
|
|
|
goDetail: function goDetail(index) {
|
|
|
|
var id = this.serviceList[index].id;
|
|
|
|
var url = "/user/pages/detail?id=".concat(id);
|
|
|
|
this.$util.goUrl({
|
|
|
|
url: url
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 加/减数量
|
|
|
|
changeNum: function changeNum(mol, serInd) {
|
|
|
|
var _this13 = this;
|
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
|
|
|
var coach_id, _this13$serviceList$s, service_id, _this13$serviceList$s2, cart_id, methodModel, param, add_cart_id, _this13$serviceList$s3, _this13$serviceList$s4, num, _this13$serviceList$s5, _cart_id;
|
|
|
|
return _regenerator.default.wrap(function _callee11$(_context11) {
|
|
|
|
while (1) {
|
|
|
|
switch (_context11.prev = _context11.next) {
|
|
|
|
case 0:
|
|
|
|
coach_id = _this13.list.data[_this13.showInd].id;
|
|
|
|
_this13$serviceList$s = _this13.serviceList[serInd], service_id = _this13$serviceList$s.id, _this13$serviceList$s2 = _this13$serviceList$s.cart_id, cart_id = _this13$serviceList$s2 === void 0 ? 0 : _this13$serviceList$s2;
|
|
|
|
if (!_this13.lockTap) {
|
|
|
|
_context11.next = 4;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return _context11.abrupt("return");
|
|
|
|
case 4:
|
|
|
|
_this13.lockTap = true;
|
|
|
|
methodModel = mol > 0 ? 'addCar' : 'delCar';
|
|
|
|
param = mol > 0 ? {
|
|
|
|
service_id: service_id,
|
|
|
|
coach_id: coach_id,
|
|
|
|
num: 1
|
|
|
|
} : {
|
|
|
|
id: cart_id,
|
|
|
|
num: 1
|
|
|
|
};
|
|
|
|
if (!(methodModel == 'delCar' && !param.id)) {
|
|
|
|
_context11.next = 10;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_this13.lockTap = false;
|
|
|
|
return _context11.abrupt("return");
|
|
|
|
case 10:
|
|
|
|
_context11.prev = 10;
|
|
|
|
_context11.next = 13;
|
|
|
|
return _this13.$api.order[methodModel](param);
|
|
|
|
case 13:
|
|
|
|
add_cart_id = _context11.sent;
|
|
|
|
_this13$serviceList$s3 = _this13.serviceList[serInd], _this13$serviceList$s4 = _this13$serviceList$s3.num, num = _this13$serviceList$s4 === void 0 ? 0 : _this13$serviceList$s4, _this13$serviceList$s5 = _this13$serviceList$s3.cart_id, _cart_id = _this13$serviceList$s5 === void 0 ? 0 : _this13$serviceList$s5;
|
|
|
|
_this13.serviceList[serInd].num = num + mol;
|
|
|
|
if (add_cart_id && mol > 0 && !_cart_id) {
|
|
|
|
_this13.serviceList[serInd].cart_id = add_cart_id;
|
|
|
|
}
|
|
|
|
if (_this13.serviceList[serInd].num < 1) {
|
|
|
|
_this13.serviceList[serInd].cart_id = 0;
|
|
|
|
}
|
|
|
|
_context11.next = 20;
|
|
|
|
return _this13.getCarList({
|
|
|
|
coach_id: coach_id
|
|
|
|
});
|
|
|
|
case 20:
|
|
|
|
_this13.lockTap = false;
|
|
|
|
_context11.next = 26;
|
|
|
|
break;
|
|
|
|
case 23:
|
|
|
|
_context11.prev = 23;
|
|
|
|
_context11.t0 = _context11["catch"](10);
|
|
|
|
_this13.lockTap = false;
|
|
|
|
case 26:
|
|
|
|
case "end":
|
|
|
|
return _context11.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, _callee11, null, [[10, 23]]);
|
|
|
|
}))();
|
|
|
|
},
|
|
|
|
// 下单
|
|
|
|
toOrder: function toOrder() {
|
|
|
|
if (this.carList.car_count < 1) {
|
|
|
|
this.$util.showToast({
|
|
|
|
title: "\u8BF7\u9009\u62E9\u670D\u52A1"
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var id = this.list.data[this.showInd].id;
|
|
|
|
this.$refs.technician_item.close();
|
|
|
|
this.$util.goUrl({
|
|
|
|
url: "/user/pages/order?id=".concat(id)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 211:
|
|
|
|
/*!**********************************************************************************************************************!*\
|
|
|
|
!*** C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=style&index=0&id=5d289ec6&lang=scss&scoped=true& ***!
|
|
|
|
\**********************************************************************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
/* harmony import */ var _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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./technician.vue?vue&type=style&index=0&id=5d289ec6&lang=scss&scoped=true& */ 212);
|
|
|
|
/* harmony import */ var _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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_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_technician_vue_vue_type_style_index_0_id_5d289ec6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 212:
|
|
|
|
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/18634/Desktop/项目/xxdj1/pages/technician.vue?vue&type=style&index=0&id=5d289ec6&lang=scss&scoped=true& ***!
|
|
|
|
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
if(false) { var cssReload; }
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
|
},[[205,"common/runtime","common/vendor"]]]);
|
|
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages/technician.js.map
|