909 lines
60 KiB
JavaScript
909 lines
60 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/shop/add-service"],{
|
||
|
||
/***/ 1068:
|
||
/*!***************************************************************************************************!*\
|
||
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/main.js?{"page":"pages%2Fshop%2Fadd-service"} ***!
|
||
\***************************************************************************************************/
|
||
/*! 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 */ 30);
|
||
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
||
var _addService = _interopRequireDefault(__webpack_require__(/*! ./pages/shop/add-service.vue */ 1069));
|
||
// @ts-ignore
|
||
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
||
createPage(_addService.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"]))
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1069:
|
||
/*!********************************************************************************!*\
|
||
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.vue ***!
|
||
\********************************************************************************/
|
||
/*! no static exports found */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
__webpack_require__.r(__webpack_exports__);
|
||
/* harmony import */ var _add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-service.vue?vue&type=template&id=2151ec69& */ 1070);
|
||
/* harmony import */ var _add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./add-service.vue?vue&type=script&lang=js& */ 1072);
|
||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _add_service_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 _add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||
/* harmony import */ var _add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./add-service.vue?vue&type=style&index=0&lang=less& */ 1074);
|
||
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 42);
|
||
|
||
var renderjs
|
||
|
||
|
||
|
||
|
||
|
||
/* normalize component */
|
||
|
||
var component = Object(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||
_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||
_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||
_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||
false,
|
||
null,
|
||
null,
|
||
null,
|
||
false,
|
||
_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||
renderjs
|
||
)
|
||
|
||
component.options.__file = "pages/shop/add-service.vue"
|
||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1070:
|
||
/*!***************************************************************************************************************!*\
|
||
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.vue?vue&type=template&id=2151ec69& ***!
|
||
\***************************************************************************************************************/
|
||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
__webpack_require__.r(__webpack_exports__);
|
||
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-service.vue?vue&type=template&id=2151ec69& */ 1071);
|
||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||
|
||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||
|
||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||
|
||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_template_id_2151ec69___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1071:
|
||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
!*** ./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!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.vue?vue&type=template&id=2151ec69& ***!
|
||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||
/*! 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
|
||
try {
|
||
components = {
|
||
agreeRadio: function () {
|
||
return __webpack_require__.e(/*! import() | components/agree-radio/agree-radio */ "components/agree-radio/agree-radio").then(__webpack_require__.bind(null, /*! @/components/agree-radio/agree-radio.vue */ 1538))
|
||
},
|
||
aliOssUploader: function () {
|
||
return Promise.all(/*! import() | components/ali-oss-uploader/ali-oss-uploader */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/ali-oss-uploader/ali-oss-uploader")]).then(__webpack_require__.bind(null, /*! @/components/ali-oss-uploader/ali-oss-uploader.vue */ 1573))
|
||
},
|
||
popupPicker: function () {
|
||
return __webpack_require__.e(/*! import() | components/popup-picker/popup-picker */ "components/popup-picker/popup-picker").then(__webpack_require__.bind(null, /*! @/components/popup-picker/popup-picker.vue */ 1580))
|
||
},
|
||
}
|
||
} catch (e) {
|
||
if (
|
||
e.message.indexOf("Cannot find module") !== -1 &&
|
||
e.message.indexOf(".vue") !== -1
|
||
) {
|
||
console.error(e.message)
|
||
console.error("1. 排查组件名称拼写是否正确")
|
||
console.error(
|
||
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
||
)
|
||
console.error(
|
||
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
||
)
|
||
} else {
|
||
throw e
|
||
}
|
||
}
|
||
var render = function () {
|
||
var _vm = this
|
||
var _h = _vm.$createElement
|
||
var _c = _vm._self._c || _h
|
||
if (!_vm._isMounted) {
|
||
_vm.e0 = function ($event) {
|
||
_vm.showServiceTypePicker = false
|
||
}
|
||
_vm.e1 = function ($event) {
|
||
_vm.showCategoryPicker = false
|
||
}
|
||
_vm.e2 = function ($event) {
|
||
_vm.isShow = false
|
||
}
|
||
}
|
||
}
|
||
var recyclableRender = false
|
||
var staticRenderFns = []
|
||
render._withStripped = true
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1072:
|
||
/*!*********************************************************************************************************!*\
|
||
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.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 _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-service.vue?vue&type=script&lang=js& */ 1073);
|
||
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_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 _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1073:
|
||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
!*** ./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!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.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 */ 34));
|
||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
|
||
var _request = _interopRequireDefault(__webpack_require__(/*! ../../utils/request */ 37));
|
||
var _sparkMd = _interopRequireDefault(__webpack_require__(/*! spark-md5 */ 189));
|
||
var _debounce = __webpack_require__(/*! @/utils/debounce.js */ 190);
|
||
var _per = _interopRequireDefault(__webpack_require__(/*! ../../utils/per */ 191));
|
||
var _locationService = _interopRequireDefault(__webpack_require__(/*! ../../utils/locationService */ 192));
|
||
var _public2 = _interopRequireDefault(__webpack_require__(/*! ../../utils/public */ 193));
|
||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||
var PopupPicker = function PopupPicker() {
|
||
__webpack_require__.e(/*! require.ensure | components/popup-picker/popup-picker */ "components/popup-picker/popup-picker").then((function () {
|
||
return resolve(__webpack_require__(/*! @/components/popup-picker/popup-picker.vue */ 1580));
|
||
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
||
};
|
||
var CircleProgress = function CircleProgress() {
|
||
__webpack_require__.e(/*! require.ensure | components/circle-progress/circle-progress */ "components/circle-progress/circle-progress").then((function () {
|
||
return resolve(__webpack_require__(/*! @/components/circle-progress/circle-progress.vue */ 1587));
|
||
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
||
};
|
||
var AliOssUploader = function AliOssUploader() {
|
||
Promise.all(/*! require.ensure | components/ali-oss-uploader/ali-oss-uploader */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/ali-oss-uploader/ali-oss-uploader")]).then((function () {
|
||
return resolve(__webpack_require__(/*! ../../components/ali-oss-uploader/ali-oss-uploader.vue */ 1573));
|
||
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
||
};
|
||
var _default = {
|
||
components: {
|
||
PopupPicker: PopupPicker,
|
||
CircleProgress: CircleProgress,
|
||
AliOssUploader: AliOssUploader
|
||
},
|
||
data: function data() {
|
||
return {
|
||
artisanType: getApp().globalData.artisanType,
|
||
nowQer: 'xc',
|
||
progress: 0,
|
||
isShow: false,
|
||
state: null,
|
||
isShowPer: false,
|
||
formData: {
|
||
publish_user_id: null,
|
||
server_kind: getApp().globalData.artisanType,
|
||
title: '',
|
||
server_price: '',
|
||
line_price: '',
|
||
server_time: '',
|
||
first_class_id: '',
|
||
second_class_id: '',
|
||
detail: [],
|
||
process: [],
|
||
video: '',
|
||
photo: [],
|
||
graphic_details: "",
|
||
sj_see: null // 1代表商家端不可见 2代表商家端可见
|
||
},
|
||
|
||
ratio: null,
|
||
detailList: [{
|
||
id: 0,
|
||
detailItem: '服务功效',
|
||
choose: false
|
||
}, {
|
||
id: 1,
|
||
detailItem: '温馨提示',
|
||
choose: false
|
||
}, {
|
||
id: 2,
|
||
detailItem: '备注',
|
||
choose: false
|
||
}, {
|
||
id: 3,
|
||
detailItem: '适用人群',
|
||
choose: false
|
||
}, {
|
||
id: 4,
|
||
detailItem: '使用范围',
|
||
choose: false
|
||
}, {
|
||
id: 5,
|
||
detailItem: '注意事项',
|
||
choose: false
|
||
}, {
|
||
id: 6,
|
||
detailItem: '场地要求',
|
||
choose: false
|
||
}, {
|
||
id: 7,
|
||
detailItem: '产品清单',
|
||
choose: false
|
||
}],
|
||
nowDetailList: [{
|
||
id: 0,
|
||
detailItem: '服务功效',
|
||
choose: false
|
||
}, {
|
||
id: 1,
|
||
detailItem: '温馨提示',
|
||
choose: false
|
||
}, {
|
||
id: 2,
|
||
detailItem: '备注',
|
||
choose: false
|
||
}, {
|
||
id: 3,
|
||
detailItem: '适用人群',
|
||
choose: false
|
||
}, {
|
||
id: 4,
|
||
detailItem: '使用范围',
|
||
choose: false
|
||
}, {
|
||
id: 5,
|
||
detailItem: '注意事项',
|
||
choose: false
|
||
}, {
|
||
id: 6,
|
||
detailItem: '场地要求',
|
||
choose: false
|
||
}, {
|
||
id: 7,
|
||
detailItem: '产品清单',
|
||
choose: false
|
||
}],
|
||
serviceTypes: [],
|
||
// 服务分类
|
||
categoryAll: [],
|
||
showServiceTypePicker: false,
|
||
showCategoryPicker: false,
|
||
selectedServiceTypeIndex: 0,
|
||
selectedCategoryIndex: 0,
|
||
serviceType: '',
|
||
category: '',
|
||
imagesList: [],
|
||
// 临时图片地址
|
||
addDetailList: [],
|
||
showCategory: false,
|
||
showProgress: false,
|
||
publish_user_id: null,
|
||
isAdd: false,
|
||
isDraft: false
|
||
};
|
||
},
|
||
onShow: function onShow() {
|
||
var _this = this;
|
||
uni.$on('updateGraphicDetails', function (data) {
|
||
_this.$set(_this.formData, 'graphic_details', JSON.stringify(data));
|
||
// 这里可以添加其他处理逻辑
|
||
});
|
||
},
|
||
onLoad: function onLoad(options) {
|
||
var _this2 = this;
|
||
this.state = options.state || '';
|
||
console.log(222, options);
|
||
if (options.id) {
|
||
this.formData.id = options.id;
|
||
this.getInit();
|
||
} else {
|
||
_request.default.post('/sj/firstclass', {
|
||
id: this.$store.state.sjInfo.id
|
||
}).then(function (res) {
|
||
_this2.serviceTypes = _this2.serviceTypes.concat(res.data);
|
||
});
|
||
}
|
||
this.getUserInfo();
|
||
},
|
||
computed: {
|
||
showShopPrice: function showShopPrice() {
|
||
return this.artisanType == 1 && this.formData.sj_see == 2 && this.formData.server_price && this.formData.first_class_id;
|
||
},
|
||
shopPrice: function shopPrice() {
|
||
return _public2.default.roundUpToTwoDecimals(this.formData.server_price, this.ratio);
|
||
}
|
||
},
|
||
methods: {
|
||
goImgAndText: function goImgAndText() {
|
||
uni.navigateTo({
|
||
url: "/pages/shop/add-img-text?list=".concat(this.formData.graphic_details)
|
||
});
|
||
},
|
||
ckeckisShowPer: function ckeckisShowPer(value) {
|
||
console.log('ckeckisShowPer==========', value);
|
||
this.isShowPer = value;
|
||
},
|
||
ckecknowQer: function ckecknowQer(value) {
|
||
this.nowQer = value;
|
||
},
|
||
addVideo: function addVideo(value) {
|
||
this.formData.video = value;
|
||
},
|
||
// addImg(arr) {
|
||
// this.formData.photo = this.formData.photo.concat(arr);
|
||
// },
|
||
// deleteImage(index) {
|
||
// this.formData.photo.splice(index, 1)
|
||
// },
|
||
onUploadSuccess: function onUploadSuccess(file) {
|
||
console.log('添加的图片', this.formData.photo);
|
||
},
|
||
onUploadError: function onUploadError(error) {
|
||
console.error('上传失败:', error);
|
||
uni.showToast({
|
||
title: '上传失败',
|
||
icon: 'none'
|
||
});
|
||
},
|
||
onFileDelete: function onFileDelete(file, index) {
|
||
console.log('删除文件:', this.formData.photo, index);
|
||
},
|
||
uploadVideoSuc: function uploadVideoSuc(file) {
|
||
this.formData.video = file;
|
||
},
|
||
uploadVideoErr: function uploadVideoErr() {},
|
||
uploadVideoDel: function uploadVideoDel() {
|
||
this.formData.video = null;
|
||
},
|
||
getInit: function getInit() {
|
||
var _this3 = this;
|
||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||
var firstclass;
|
||
return _regenerator.default.wrap(function _callee$(_context) {
|
||
while (1) {
|
||
switch (_context.prev = _context.next) {
|
||
case 0:
|
||
_context.next = 2;
|
||
return _request.default.post('/sj/firstclass', {
|
||
id: _this3.$store.state.sjInfo.id
|
||
});
|
||
case 2:
|
||
firstclass = _context.sent;
|
||
_this3.serviceTypes = _this3.serviceTypes.concat(firstclass.data);
|
||
_context.next = 6;
|
||
return _request.default.post('/user/serverdetail', {
|
||
id: _this3.formData.id
|
||
}).then(function (res) {
|
||
_this3.formData.state = res.data.state;
|
||
_this3.formData.back_text = res.data.back_text;
|
||
_this3.formData.title = res.data.title;
|
||
_this3.formData.server_price = res.data.server_price;
|
||
_this3.formData.line_price = res.data.line_price;
|
||
_this3.formData.server_time = res.data.server_time;
|
||
_this3.formData.first_class_id = res.data.first_class_id;
|
||
_this3.formData.second_class_id = res.data.second_class_id;
|
||
_this3.formData.detail = res.data.detail;
|
||
_this3.formData.process = res.data.process;
|
||
_this3.formData.video = res.data.video;
|
||
_this3.formData.photo = res.data.photo;
|
||
_this3.formData.sj_see = res.data.sj_see;
|
||
_this3.formData.graphic_details = res.data.graphic_details || "";
|
||
firstclass.data.filter(function (item, i) {
|
||
if (item.id == _this3.formData.first_class_id) {
|
||
_this3.selectedServiceTypeIndex = i;
|
||
_this3.serviceType = item.title;
|
||
_this3.ratio = item.ratio;
|
||
}
|
||
});
|
||
});
|
||
case 6:
|
||
_request.default.post('/user/secondclass', {
|
||
id: _this3.formData.first_class_id
|
||
}).then(function (result) {
|
||
if (result.data.length == 0 || !result.data) {
|
||
_this3.showCategory = false;
|
||
} else {
|
||
_this3.categoryAll = result.data;
|
||
_this3.categoryAll.filter(function (e, i) {
|
||
if (e.id == _this3.formData.second_class_id) {
|
||
_this3.selectedCategoryIndex = i;
|
||
_this3.category = e.title;
|
||
}
|
||
});
|
||
_this3.showCategory = true;
|
||
}
|
||
});
|
||
case 7:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}
|
||
}, _callee);
|
||
}))();
|
||
},
|
||
getUserInfo: function getUserInfo() {
|
||
var _this4 = this;
|
||
var type = this.artisanType == 1 ? 2 : this.artisanType == 2 ? 3 : 1;
|
||
_request.default.post('/user/getuser', {
|
||
type: type
|
||
}).then(function (result) {
|
||
_this4.formData.publish_user_id = result.data.id;
|
||
});
|
||
},
|
||
// 是否在商家端售卖
|
||
changeSale: function changeSale(value) {
|
||
this.formData.sj_see = value;
|
||
},
|
||
// 输入价格
|
||
inpPrice: function inpPrice(e) {
|
||
var that = this;
|
||
var value = e.detail.value;
|
||
|
||
// 1. 移除非数字和小数点
|
||
value = value.replace(/[^\d.]/g, '');
|
||
|
||
// 2. 确保只有一个小数点
|
||
var parts = value.split('.');
|
||
if (parts.length > 2) {
|
||
value = parts[0] + '.' + parts.slice(1).join('');
|
||
}
|
||
|
||
// 3. 限制小数点后最多一位
|
||
if (parts.length > 1) {
|
||
value = parts[0] + '.' + parts[1].slice(0, 2);
|
||
}
|
||
// 4. 如果以小数点开头,前面补0
|
||
if (value.startsWith('.')) {
|
||
value = '0' + value;
|
||
}
|
||
that.$set(that.formData, 'server_price', value);
|
||
},
|
||
inpPrice2: function inpPrice2(e) {
|
||
var that = this;
|
||
var value = e.detail.value;
|
||
|
||
// 1. 移除非数字和小数点
|
||
value = value.replace(/[^\d.]/g, '');
|
||
|
||
// 2. 确保只有一个小数点
|
||
var parts = value.split('.');
|
||
if (parts.length > 2) {
|
||
value = parts[0] + '.' + parts.slice(1).join('');
|
||
}
|
||
|
||
// 3. 限制小数点后最多一位
|
||
if (parts.length > 1) {
|
||
value = parts[0] + '.' + parts[1].slice(0, 2);
|
||
}
|
||
// 4. 如果以小数点开头,前面补0
|
||
if (value.startsWith('.')) {
|
||
value = '0' + value;
|
||
}
|
||
that.$set(that.formData, 'line_price', value);
|
||
},
|
||
addDetailItem: function addDetailItem(item) {
|
||
var detailItem = {
|
||
title: item.detailItem,
|
||
text: '',
|
||
photo: ''
|
||
};
|
||
var targetItem = this.detailList.find(function (detail) {
|
||
return detail.id == item.id;
|
||
});
|
||
if (targetItem) {
|
||
targetItem.choose = true;
|
||
}
|
||
this.formData.detail.push(detailItem);
|
||
this.isShow = false;
|
||
},
|
||
deleteDetailItem: function deleteDetailItem(item, i) {
|
||
var targetItem = this.detailList.find(function (detail) {
|
||
return detail.detailItem == item.title;
|
||
});
|
||
if (targetItem) {
|
||
targetItem.choose = false;
|
||
}
|
||
this.formData.detail.splice(i, 1);
|
||
},
|
||
deleteStep: function deleteStep(i) {
|
||
this.formData.process.splice(i, 1);
|
||
},
|
||
showDetailCont: function showDetailCont() {
|
||
this.nowDetailList = this.detailList.filter(function (item) {
|
||
return !item.choose;
|
||
});
|
||
this.isShow = true;
|
||
},
|
||
addStep: function addStep() {
|
||
var i = this.formData.process.length + 1;
|
||
var arr = {
|
||
title: '第' + i + '步',
|
||
text: '',
|
||
photo: ''
|
||
};
|
||
this.formData.process.push(arr);
|
||
},
|
||
// 删除视频
|
||
deleteVideo: function deleteVideo() {
|
||
this.formData.video = '';
|
||
},
|
||
// 保存草稿
|
||
saveDraft: (0, _debounce.debounce)(function () {
|
||
var _this5 = this;
|
||
if (this.isDraft) return;
|
||
var _this$formData = this.formData,
|
||
title = _this$formData.title,
|
||
server_price = _this$formData.server_price,
|
||
line_price = _this$formData.line_price,
|
||
server_time = _this$formData.server_time,
|
||
first_class_id = _this$formData.first_class_id,
|
||
second_class_id = _this$formData.second_class_id,
|
||
detail = _this$formData.detail,
|
||
process = _this$formData.process,
|
||
video = _this$formData.video,
|
||
photo = _this$formData.photo;
|
||
var item = {
|
||
title: title,
|
||
server_price: server_price,
|
||
line_price: line_price,
|
||
server_time: server_time,
|
||
first_class_id: first_class_id,
|
||
second_class_id: second_class_id,
|
||
detail: detail,
|
||
process: process,
|
||
video: video,
|
||
photo: photo
|
||
};
|
||
// 检查是否所有字段都为空
|
||
var isEmpty = Object.values(item).every(function (value) {
|
||
if (Array.isArray(value)) {
|
||
return value.length === 0;
|
||
}
|
||
return !value;
|
||
});
|
||
if (isEmpty) {
|
||
uni.showToast({
|
||
title: '请至少填写一项内容',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
|
||
// 实现保存草稿逻辑
|
||
this.formData.state = 0;
|
||
var url = null;
|
||
if (!this.formData.id) {
|
||
url = '/user/serveradd';
|
||
} else {
|
||
url = '/user/serverchange';
|
||
}
|
||
_request.default.post(url, this.formData).then(function (res) {
|
||
if (res.state == 1) {
|
||
_this5.isDraft = true;
|
||
var pages = getCurrentPages();
|
||
var prevPage = pages[pages.length - 2]; // 上一个页面
|
||
uni.showToast({
|
||
title: res.msg,
|
||
icon: 'success',
|
||
duration: 1000
|
||
});
|
||
setTimeout(function () {
|
||
uni.navigateBack({
|
||
delta: 1,
|
||
success: function success() {
|
||
prevPage.$vm.currentTab = 3;
|
||
prevPage.$vm.state = 0;
|
||
prevPage.$vm.getServicesList(); // 直接调用上个页面的刷新方法
|
||
}
|
||
});
|
||
}, 500);
|
||
} else {
|
||
uni.showToast({
|
||
title: res.msg,
|
||
icon: 'none'
|
||
});
|
||
_this5.isDraft = false;
|
||
}
|
||
});
|
||
}, 500),
|
||
// 提交表单
|
||
submitForm: (0, _debounce.debounce)(function () {
|
||
var _this6 = this;
|
||
if (this.isAdd) return;
|
||
// 表单验证
|
||
|
||
if (!this.formData.title) {
|
||
uni.showToast({
|
||
title: '请输入服务名称',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (!this.formData.line_price) {
|
||
uni.showToast({
|
||
title: '请输入服务定价',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (!this.formData.server_price) {
|
||
uni.showToast({
|
||
title: '请输入服务售价',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (!this.formData.first_class_id) {
|
||
uni.showToast({
|
||
title: '请选择服务分类',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (this.showCategory && !this.formData.second_class_id) {
|
||
uni.showToast({
|
||
title: '请选择服务子类',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (!this.formData.server_time) {
|
||
uni.showToast({
|
||
title: '请输入服务时长',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (this.formData.server_time < 10) {
|
||
uni.showToast({
|
||
title: '服务时长最短为10分钟',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (!this.formData.sj_see && this.artisanType == 1) {
|
||
uni.showToast({
|
||
title: '请选择是否允许在门店端售卖',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
|
||
// 检查服务简介数组
|
||
if (this.formData.detail && this.formData.detail.length > 0) {
|
||
var _iterator = _createForOfIteratorHelper(this.formData.detail),
|
||
_step;
|
||
try {
|
||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||
var item = _step.value;
|
||
if (!item.title || !item.text) {
|
||
uni.showToast({
|
||
title: '请完善服务简介内容',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
}
|
||
} catch (err) {
|
||
_iterator.e(err);
|
||
} finally {
|
||
_iterator.f();
|
||
}
|
||
} else {
|
||
uni.showToast({
|
||
title: '请添加服务简介内容',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
|
||
// 检查服务流程数组
|
||
if (this.formData.process && this.formData.process.length > 0) {
|
||
var _iterator2 = _createForOfIteratorHelper(this.formData.process),
|
||
_step2;
|
||
try {
|
||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||
var _item = _step2.value;
|
||
if (!_item.text) {
|
||
uni.showToast({
|
||
title: '请完善服务流程内容',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
}
|
||
} catch (err) {
|
||
_iterator2.e(err);
|
||
} finally {
|
||
_iterator2.f();
|
||
}
|
||
} else {
|
||
uni.showToast({
|
||
title: '请添加服务流程内容',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
|
||
// 检查视频和图片
|
||
// if (!this.formData.video) {
|
||
// uni.showToast({
|
||
// title: '请上传服务视频',
|
||
// icon: 'none'
|
||
// })
|
||
// return
|
||
// }
|
||
if (!this.formData.photo || this.formData.photo.length === 0) {
|
||
uni.showToast({
|
||
title: '请上传服务图片',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (this.artisanType == 2) {
|
||
delete this.formData.sj_see;
|
||
}
|
||
// 提交表单逻辑
|
||
delete this.formData.state;
|
||
var url = null;
|
||
if (!this.formData.id) {
|
||
url = '/user/serveradd';
|
||
} else {
|
||
url = '/user/serverupdate';
|
||
}
|
||
console.log(1111, this.formData);
|
||
_request.default.post(url, this.formData).then(function (res) {
|
||
if (res.state == 1) {
|
||
var pages = getCurrentPages();
|
||
var prevPage = pages[pages.length - 2]; // 上一个页面
|
||
uni.showToast({
|
||
title: res.msg,
|
||
icon: 'success',
|
||
duration: 600,
|
||
mask: true
|
||
});
|
||
_this6.isAdd = true;
|
||
setTimeout(function () {
|
||
uni.navigateBack({
|
||
delta: 1,
|
||
success: function success() {
|
||
prevPage.$vm.currentTab = 1;
|
||
prevPage.$vm.state = 1;
|
||
prevPage.$vm.getServicesList(); // 直接调用上个页面的刷新方法
|
||
}
|
||
});
|
||
}, 500);
|
||
} else {
|
||
uni.showToast({
|
||
title: res.msg,
|
||
icon: 'none'
|
||
});
|
||
_this6.isAdd = false;
|
||
}
|
||
});
|
||
}, 500),
|
||
// 打开服务分类
|
||
openServiceTypePicker: function openServiceTypePicker() {
|
||
console.log('open');
|
||
// 实现分类选择逻辑
|
||
this.showServiceTypePicker = true;
|
||
},
|
||
// 打开服务子类选择器
|
||
openCategoryPicker: function openCategoryPicker() {
|
||
// 实现子类选择逻辑
|
||
if (!this.formData.first_class_id) {
|
||
uni.showToast({
|
||
title: '请先选择服务分类',
|
||
icon: 'none'
|
||
});
|
||
} else {
|
||
this.showCategoryPicker = true;
|
||
}
|
||
},
|
||
// 处理服务类型选择
|
||
handleServiceTypeConfirm: function handleServiceTypeConfirm(e) {
|
||
var _this7 = this;
|
||
console.log('e', e);
|
||
var selectedType = e.items[0];
|
||
this.formData.first_class_id = selectedType.id;
|
||
this.serviceType = selectedType.title;
|
||
this.ratio = selectedType.ratio;
|
||
var id = selectedType.id;
|
||
_request.default.post('/user/secondclass', {
|
||
id: id
|
||
}).then(function (res) {
|
||
if (res.data.length == 0 || !res.data) {
|
||
_this7.showCategory = false;
|
||
} else {
|
||
_this7.categoryAll = res.data;
|
||
_this7.showCategory = true;
|
||
}
|
||
});
|
||
},
|
||
// 处理服务分类选择
|
||
handleCategoryConfirm: function handleCategoryConfirm(e) {
|
||
var selectedCategory = e.items[0];
|
||
this.formData.second_class_id = selectedCategory.id;
|
||
this.category = selectedCategory.title;
|
||
}
|
||
}
|
||
};
|
||
exports.default = _default;
|
||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1074:
|
||
/*!******************************************************************************************************************!*\
|
||
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.vue?vue&type=style&index=0&lang=less& ***!
|
||
\******************************************************************************************************************/
|
||
/*! no static exports found */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
__webpack_require__.r(__webpack_exports__);
|
||
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-2!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--10-oneOf-1-3!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-oneOf-1-5!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./add-service.vue?vue&type=style&index=0&lang=less& */ 1075);
|
||
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||
/* harmony default export */ __webpack_exports__["default"] = (_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_2_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_oneOf_1_5_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_add_service_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1075:
|
||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--10-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--10-oneOf-1-2!./node_modules/postcss-loader/src??ref--10-oneOf-1-3!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-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!/Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/add-service.vue?vue&type=style&index=0&lang=less& ***!
|
||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||
/*! no static exports found */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
if(false) { var cssReload; }
|
||
|
||
|
||
/***/ })
|
||
|
||
},[[1068,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shop/add-service.js.map
|