702 lines
54 KiB
JavaScript
702 lines
54 KiB
JavaScript
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/shop/SellerDetail"],{
|
|||
|
|
|
|||
|
|
/***/ 1084:
|
|||
|
|
/*!****************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/main.js?{"page":"pages%2Fshop%2FSellerDetail"} ***!
|
|||
|
|
\****************************************************************************************************/
|
|||
|
|
/*! 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 _SellerDetail = _interopRequireDefault(__webpack_require__(/*! ./pages/shop/SellerDetail.vue */ 1085));
|
|||
|
|
// @ts-ignore
|
|||
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|||
|
|
createPage(_SellerDetail.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"]))
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1085:
|
|||
|
|
/*!*********************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/SellerDetail.vue ***!
|
|||
|
|
\*********************************************************************************/
|
|||
|
|
/*! no static exports found */
|
|||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|||
|
|
|
|||
|
|
"use strict";
|
|||
|
|
__webpack_require__.r(__webpack_exports__);
|
|||
|
|
/* harmony import */ var _SellerDetail_vue_vue_type_template_id_4b1efba0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SellerDetail.vue?vue&type=template&id=4b1efba0& */ 1086);
|
|||
|
|
/* harmony import */ var _SellerDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SellerDetail.vue?vue&type=script&lang=js& */ 1088);
|
|||
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _SellerDetail_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 _SellerDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|||
|
|
/* harmony import */ var _SellerDetail_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SellerDetail.vue?vue&type=style&index=0&lang=less& */ 1090);
|
|||
|
|
/* 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"])(
|
|||
|
|
_SellerDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|||
|
|
_SellerDetail_vue_vue_type_template_id_4b1efba0___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|||
|
|
_SellerDetail_vue_vue_type_template_id_4b1efba0___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|||
|
|
false,
|
|||
|
|
null,
|
|||
|
|
null,
|
|||
|
|
null,
|
|||
|
|
false,
|
|||
|
|
_SellerDetail_vue_vue_type_template_id_4b1efba0___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|||
|
|
renderjs
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
component.options.__file = "pages/shop/SellerDetail.vue"
|
|||
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1086:
|
|||
|
|
/*!****************************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/SellerDetail.vue?vue&type=template&id=4b1efba0& ***!
|
|||
|
|
\****************************************************************************************************************/
|
|||
|
|
/*! 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_SellerDetail_vue_vue_type_template_id_4b1efba0___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!./SellerDetail.vue?vue&type=template&id=4b1efba0& */ 1087);
|
|||
|
|
/* 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_SellerDetail_vue_vue_type_template_id_4b1efba0___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_SellerDetail_vue_vue_type_template_id_4b1efba0___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_SellerDetail_vue_vue_type_template_id_4b1efba0___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_SellerDetail_vue_vue_type_template_id_4b1efba0___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1087:
|
|||
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./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/SellerDetail.vue?vue&type=template&id=4b1efba0& ***!
|
|||
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|||
|
|
/*! 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 = {
|
|||
|
|
customNavbar: function () {
|
|||
|
|
return Promise.all(/*! import() | components/custom-navbar/custom-navbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/custom-navbar/custom-navbar")]).then(__webpack_require__.bind(null, /*! @/components/custom-navbar/custom-navbar.vue */ 1437))
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
} 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
|
|||
|
|
var g0 = _vm.orderInfo.photo && _vm.orderInfo.photo.length != 0
|
|||
|
|
var m0 = _vm.formatDateTime(_vm.orderInfo.reserve_start_time)
|
|||
|
|
var m1 = _vm.formatDateTime(_vm.orderInfo.reserve_end_time)
|
|||
|
|
var g1 = _vm.orderInfo.second_class_title
|
|||
|
|
? _vm.orderInfo.second_class_title.join("、")
|
|||
|
|
: null
|
|||
|
|
if (!_vm._isMounted) {
|
|||
|
|
_vm.e0 = function ($event) {
|
|||
|
|
_vm.showInput = false
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
_vm.$mp.data = Object.assign(
|
|||
|
|
{},
|
|||
|
|
{
|
|||
|
|
$root: {
|
|||
|
|
g0: g0,
|
|||
|
|
m0: m0,
|
|||
|
|
m1: m1,
|
|||
|
|
g1: g1,
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
)
|
|||
|
|
}
|
|||
|
|
var recyclableRender = false
|
|||
|
|
var staticRenderFns = []
|
|||
|
|
render._withStripped = true
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1088:
|
|||
|
|
/*!**********************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/SellerDetail.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_SellerDetail_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!./SellerDetail.vue?vue&type=script&lang=js& */ 1089);
|
|||
|
|
/* 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_SellerDetail_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_SellerDetail_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_SellerDetail_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_SellerDetail_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_SellerDetail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1089:
|
|||
|
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./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/SellerDetail.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|||
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
|
|||
|
|
var _request = _interopRequireDefault(__webpack_require__(/*! ../../utils/request */ 37));
|
|||
|
|
var _public2 = _interopRequireDefault(__webpack_require__(/*! ../../utils/public */ 193));
|
|||
|
|
var _locationService = _interopRequireDefault(__webpack_require__(/*! ../../utils/locationService */ 192));
|
|||
|
|
var _per = _interopRequireDefault(__webpack_require__(/*! ../../utils/per */ 191));
|
|||
|
|
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 serviceCodeInput = function serviceCodeInput() {
|
|||
|
|
__webpack_require__.e(/*! require.ensure | components/service-code-input/service-code-input */ "components/service-code-input/service-code-input").then((function () {
|
|||
|
|
return resolve(__webpack_require__(/*! ../../components/service-code-input/service-code-input.vue */ 1740));
|
|||
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|||
|
|
};
|
|||
|
|
var _default = {
|
|||
|
|
components: {
|
|||
|
|
serviceCodeInput: serviceCodeInput
|
|||
|
|
},
|
|||
|
|
data: function data() {
|
|||
|
|
return {
|
|||
|
|
clickType: false,
|
|||
|
|
//点击状态,防止连续点击
|
|||
|
|
identity: 0,
|
|||
|
|
//身份0为商家1为手艺人
|
|||
|
|
isShowPer: false,
|
|||
|
|
interfaceList: [{
|
|||
|
|
weChatRefund: "/sj/workSeatOrder/weChatRefund",
|
|||
|
|
aliRefund: "/sj/workSeatOrder/aliRefund",
|
|||
|
|
details: "/sj/workSeatOrder/details",
|
|||
|
|
sureOrder: "/sj/workSeatOrder/sure",
|
|||
|
|
startOrder: "/sj/workSeatOrder/start",
|
|||
|
|
endOrder: '/sj/workSeatOrder/end'
|
|||
|
|
}, {
|
|||
|
|
weChatRefund: "/syr/workHourOrder/weChatRefund",
|
|||
|
|
aliRefund: "/syr/workHourOrder/aliRefund",
|
|||
|
|
details: "/syr/workHourOrder/details",
|
|||
|
|
sureOrder: "/syr/workHourOrder/sure",
|
|||
|
|
startOrder: "/syr/workHourOrder/start",
|
|||
|
|
endOrder: '/syr/workHourOrder/end'
|
|||
|
|
}],
|
|||
|
|
id: "",
|
|||
|
|
staffInfo: {
|
|||
|
|
avatar: "/static/images/staff.jpg",
|
|||
|
|
name: "中医理疗谢飞",
|
|||
|
|
rating: 5
|
|||
|
|
},
|
|||
|
|
showInput: false,
|
|||
|
|
userInfo: {},
|
|||
|
|
orderInfo: {},
|
|||
|
|
reservation_address_arr: {},
|
|||
|
|
user_syr: {},
|
|||
|
|
scrollTop: 0
|
|||
|
|
};
|
|||
|
|
},
|
|||
|
|
onLoad: function onLoad(options) {
|
|||
|
|
var _this = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|||
|
|
var _yield$request$post, data;
|
|||
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context.prev = _context.next) {
|
|||
|
|
case 0:
|
|||
|
|
_this.id = options.id;
|
|||
|
|
if (options.identity) {
|
|||
|
|
_this.identity = options.identity;
|
|||
|
|
}
|
|||
|
|
if (!options.id) {
|
|||
|
|
_context.next = 9;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
_context.next = 5;
|
|||
|
|
return _request.default.post("/user/getuser", {
|
|||
|
|
type: 2
|
|||
|
|
});
|
|||
|
|
case 5:
|
|||
|
|
_yield$request$post = _context.sent;
|
|||
|
|
data = _yield$request$post.data;
|
|||
|
|
_this.userInfo = data;
|
|||
|
|
_this.getOrderDetail();
|
|||
|
|
case 9:
|
|||
|
|
case "end":
|
|||
|
|
return _context.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
onPageScroll: function onPageScroll(e) {
|
|||
|
|
this.scrollTop = e.scrollTop;
|
|||
|
|
},
|
|||
|
|
computed: {
|
|||
|
|
backgroundColor: function backgroundColor() {
|
|||
|
|
if (this.scrollTop > 10) {
|
|||
|
|
return "rgba(255, 255, 255, ".concat(0.02 * this.scrollTop, ");");
|
|||
|
|
}
|
|||
|
|
return "transparent";
|
|||
|
|
},
|
|||
|
|
stateItem: function stateItem() {
|
|||
|
|
var _this2 = this;
|
|||
|
|
var list = [{
|
|||
|
|
text: "待支付",
|
|||
|
|
icon: "/static/images/icons/pay.png",
|
|||
|
|
state: "1"
|
|||
|
|
}, {
|
|||
|
|
text: "待接单",
|
|||
|
|
icon: "/static/images/icons/pending.png",
|
|||
|
|
state: "2"
|
|||
|
|
}, {
|
|||
|
|
text: this.identity == 0 ? "待开始" : "待服务",
|
|||
|
|
icon: "/static/images/icons/pendingService.png",
|
|||
|
|
state: "3"
|
|||
|
|
}, {
|
|||
|
|
text: this.identity == 0 ? "进行中" : "服务中",
|
|||
|
|
icon: "/static/images/icons/pendingService.png",
|
|||
|
|
state: "4"
|
|||
|
|
}, {
|
|||
|
|
text: "已完成",
|
|||
|
|
icon: "/static/images/icons/payOk.png",
|
|||
|
|
state: "5"
|
|||
|
|
}, {
|
|||
|
|
text: "待评价",
|
|||
|
|
icon: "/static/images/icons/pending.png",
|
|||
|
|
state: "6"
|
|||
|
|
}, {
|
|||
|
|
text: "已取消",
|
|||
|
|
icon: "/static/images/evaluate/cancel.png",
|
|||
|
|
state: "7"
|
|||
|
|
}];
|
|||
|
|
var item = list.find(function (it) {
|
|||
|
|
return it.state == _this2.orderInfo.state;
|
|||
|
|
}) || {};
|
|||
|
|
return item;
|
|||
|
|
},
|
|||
|
|
photo: function photo() {
|
|||
|
|
return JSON.parse(this.orderInfo.photo);
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
methods: {
|
|||
|
|
// 用于标准格式的方法
|
|||
|
|
formatDateTime: function formatDateTime(dateStr) {
|
|||
|
|
var includeSeconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|||
|
|
if (!dateStr) {
|
|||
|
|
return '';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 处理日期字符串,兼容不同格式
|
|||
|
|
var originalDate = new Date(dateStr.replace(/-/g, '/'));
|
|||
|
|
|
|||
|
|
// 格式化为 YYYY-MM-DD HH:mm:ss
|
|||
|
|
var year = originalDate.getFullYear();
|
|||
|
|
var month = String(originalDate.getMonth() + 1).padStart(2, "0");
|
|||
|
|
var day = String(originalDate.getDate()).padStart(2, "0");
|
|||
|
|
var hours = String(originalDate.getHours()).padStart(2, "0");
|
|||
|
|
var minutes = String(originalDate.getMinutes()).padStart(2, "0");
|
|||
|
|
var seconds = String(originalDate.getSeconds()).padStart(2, "0");
|
|||
|
|
if (includeSeconds) {
|
|||
|
|
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
|
|||
|
|
} else {
|
|||
|
|
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes);
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
formatDateAndAddMinutes: function formatDateAndAddMinutes(dateStr) {
|
|||
|
|
var addMinutes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|||
|
|
if (!dateStr) {
|
|||
|
|
return {
|
|||
|
|
original: '',
|
|||
|
|
afterAddingMinutes: ''
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
var originalDate = new Date(dateStr.replace(/-/g, '/'));
|
|||
|
|
function format(date) {
|
|||
|
|
var year = date.getFullYear();
|
|||
|
|
var month = String(date.getMonth() + 1).padStart(2, "0");
|
|||
|
|
var day = String(date.getDate()).padStart(2, "0");
|
|||
|
|
var hours = String(date.getHours()).padStart(2, "0");
|
|||
|
|
var minutes = String(date.getMinutes()).padStart(2, "0");
|
|||
|
|
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
|
|||
|
|
}
|
|||
|
|
var formattedOriginal = format(originalDate);
|
|||
|
|
var newDate = new Date(originalDate);
|
|||
|
|
newDate.setMinutes(newDate.getMinutes() + addMinutes);
|
|||
|
|
var formattedNew = format(newDate);
|
|||
|
|
return {
|
|||
|
|
original: formattedOriginal,
|
|||
|
|
afterAddingMinutes: formattedNew
|
|||
|
|
};
|
|||
|
|
},
|
|||
|
|
getOrderDetail: function getOrderDetail() {
|
|||
|
|
var _this3 = this;
|
|||
|
|
_request.default.post(this.interfaceList[this.identity].details, {
|
|||
|
|
id: this.id
|
|||
|
|
}).then(function (res) {
|
|||
|
|
var _this3$orderInfo$seco;
|
|||
|
|
if (_this3.identity == 0) {
|
|||
|
|
_this3.orderInfo = res.data ? _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, res.data.order), res.data.work_seat), res.data.user_syr), {}, {
|
|||
|
|
work_hour_id: res.data.work_seat.id,
|
|||
|
|
order_id: res.data.order.id,
|
|||
|
|
user_sj_id: res.data.user_syr.id
|
|||
|
|
}) : {};
|
|||
|
|
} else if (_this3.identity == 1) {
|
|||
|
|
_this3.orderInfo = res.data ? _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, res.data.order), res.data.work_hour), res.data.user_sj), {}, {
|
|||
|
|
work_hour_id: res.data.work_hour.id,
|
|||
|
|
order_id: res.data.order.id,
|
|||
|
|
user_sj_id: res.data.user_sj.id
|
|||
|
|
}) : {};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 计算服务时长
|
|||
|
|
_this3.orderInfo.service_duration = _this3.calculateServiceDuration();
|
|||
|
|
(_this3$orderInfo$seco = _this3.orderInfo.second_class_title) === null || _this3$orderInfo$seco === void 0 ? void 0 : _this3$orderInfo$seco.join("、");
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
// 计算服务时长(返回XX分钟格式)
|
|||
|
|
calculateServiceDuration: function calculateServiceDuration() {
|
|||
|
|
if (!this.orderInfo.reserve_start_time || !this.orderInfo.reserve_end_time) {
|
|||
|
|
return '--';
|
|||
|
|
}
|
|||
|
|
try {
|
|||
|
|
// 处理日期字符串,兼容不同格式
|
|||
|
|
var startTime = new Date(this.orderInfo.reserve_start_time.replace(/-/g, '/'));
|
|||
|
|
var endTime = new Date(this.orderInfo.reserve_end_time.replace(/-/g, '/'));
|
|||
|
|
|
|||
|
|
// 计算时间差(毫秒)
|
|||
|
|
var diffMs = endTime.getTime() - startTime.getTime();
|
|||
|
|
if (diffMs <= 0) {
|
|||
|
|
return '--';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 转换为分钟
|
|||
|
|
var diffMinutes = Math.floor(diffMs / (1000 * 60));
|
|||
|
|
|
|||
|
|
// 返回XX分钟格式
|
|||
|
|
return "".concat(diffMinutes, "\u5206\u949F");
|
|||
|
|
} catch (error) {
|
|||
|
|
console.error('计算服务时长失败:', error);
|
|||
|
|
return '--';
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
cancelOrder: function cancelOrder(e, order) {
|
|||
|
|
var _this4 = this;
|
|||
|
|
uni.showModal({
|
|||
|
|
title: "取消订单",
|
|||
|
|
content: "确定要取消该订单吗?(订单取消后,支付金额将原路退回)",
|
|||
|
|
success: function success(res) {
|
|||
|
|
if (res.confirm) {
|
|||
|
|
var data;
|
|||
|
|
if (_this4.identity == 0) {
|
|||
|
|
data = {
|
|||
|
|
orderNo: order.number,
|
|||
|
|
amount: order.pay_money,
|
|||
|
|
sjid: _this4.userInfo.id
|
|||
|
|
};
|
|||
|
|
} else if (_this4.identity == 1) {
|
|||
|
|
data = {
|
|||
|
|
orderNo: order.number,
|
|||
|
|
amount: order.pay_money,
|
|||
|
|
syrid: _this4.userInfo.id
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
var url = "";
|
|||
|
|
if (order.pay_kind == 1) {
|
|||
|
|
url = "";
|
|||
|
|
} else if (order.pay_kind == 2) {
|
|||
|
|
url = _this4.interfaceList[_this4.identity].weChatRefund;
|
|||
|
|
} else if (order.pay_kind == 3) {
|
|||
|
|
url = _this4.interfaceList[_this4.identity].aliRefund;
|
|||
|
|
}
|
|||
|
|
if (_this4.clickType) {
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
_this4.clickType = true;
|
|||
|
|
_request.default.post(url, data).then(function (res) {
|
|||
|
|
if (res.state == 1 || res.code == 1 || res.code == 200) {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: "取消成功!",
|
|||
|
|
icon: "none"
|
|||
|
|
});
|
|||
|
|
_this4.getOrderDetail();
|
|||
|
|
var pages = getCurrentPages();
|
|||
|
|
var prevPage = pages[pages.length - 2];
|
|||
|
|
if (prevPage) {
|
|||
|
|
prevPage.$vm.getOrderNumber();
|
|||
|
|
prevPage.$vm.getOrderList();
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: res.msg,
|
|||
|
|
icon: "none"
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
}).catch(function (err) {
|
|||
|
|
return console.log(err);
|
|||
|
|
}).finally(function () {
|
|||
|
|
_this4.clickType = false;
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
confirmOrder: function confirmOrder(e, order) {
|
|||
|
|
var _this5 = this;
|
|||
|
|
console.log(order);
|
|||
|
|
if (this.clickType) {
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
this.clickType = true;
|
|||
|
|
_request.default.post(this.interfaceList[this.identity].sureOrder, {
|
|||
|
|
id: order.order_id
|
|||
|
|
}).then(function (res) {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: "已接单",
|
|||
|
|
icon: "none"
|
|||
|
|
});
|
|||
|
|
_this5.getOrderDetail();
|
|||
|
|
var pages = getCurrentPages();
|
|||
|
|
var prevPage = pages[pages.length - 2];
|
|||
|
|
if (prevPage) {
|
|||
|
|
prevPage.$vm.getOrderNumber();
|
|||
|
|
prevPage.$vm.getOrderList();
|
|||
|
|
}
|
|||
|
|
}).finally(function () {
|
|||
|
|
_this5.clickType = false;
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
startOrder: function startOrder(e, order) {
|
|||
|
|
this.showInput = true;
|
|||
|
|
},
|
|||
|
|
onConfirm: function onConfirm(code) {
|
|||
|
|
var _this6 = this;
|
|||
|
|
this.showInput = false;
|
|||
|
|
if (this.clickType) {
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
this.clickType = true;
|
|||
|
|
_request.default.post(this.interfaceList[this.identity].startOrder, {
|
|||
|
|
id: this.orderInfo.order_id,
|
|||
|
|
server_code: code
|
|||
|
|
}).then(function (res) {
|
|||
|
|
if (res.code == 200) {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: res.msg,
|
|||
|
|
icon: "none"
|
|||
|
|
});
|
|||
|
|
_this6.getOrderDetail();
|
|||
|
|
var pages = getCurrentPages();
|
|||
|
|
var prevPage = pages[pages.length - 2];
|
|||
|
|
if (prevPage) {
|
|||
|
|
prevPage.$vm.getOrderNumber();
|
|||
|
|
prevPage.$vm.getOrderList();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
// else if (res.state == 2) {
|
|||
|
|
// uni.showToast({ title: res.msg, icon: "none" });
|
|||
|
|
// }
|
|||
|
|
_this6.handelOrder = {};
|
|||
|
|
}).finally(function () {
|
|||
|
|
_this6.clickType = false;
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
endOrder: function endOrder(e, order) {
|
|||
|
|
var _this7 = this;
|
|||
|
|
if (this.clickType) {
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
this.clickType = true;
|
|||
|
|
_request.default.post(this.interfaceList[this.identity].endOrder, {
|
|||
|
|
id: order.order_id
|
|||
|
|
}).then(function (res) {
|
|||
|
|
if (res.code == 200) {
|
|||
|
|
uni.showToast({
|
|||
|
|
title: res.msg,
|
|||
|
|
icon: "none"
|
|||
|
|
});
|
|||
|
|
_this7.getOrderDetail();
|
|||
|
|
var pages = getCurrentPages();
|
|||
|
|
var prevPage = pages[pages.length - 2];
|
|||
|
|
if (prevPage) {
|
|||
|
|
prevPage.$vm.getOrderNumber();
|
|||
|
|
prevPage.$vm.getOrderList();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}).finally(function () {
|
|||
|
|
_this7.clickType = false;
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
showPermissionDialog: function showPermissionDialog(title, content) {
|
|||
|
|
return new Promise(function (resolve) {
|
|||
|
|
uni.showModal({
|
|||
|
|
title: title,
|
|||
|
|
content: content,
|
|||
|
|
confirmText: "去开启",
|
|||
|
|
success: function success(res) {
|
|||
|
|
resolve(res.confirm);
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
},
|
|||
|
|
contactService: function contactService(phone) {
|
|||
|
|
var _this8 = this;
|
|||
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|||
|
|
var systemInfo, permission, firstRequest, _yield$permissionUtil, granted, confirm, result;
|
|||
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|||
|
|
while (1) {
|
|||
|
|
switch (_context2.prev = _context2.next) {
|
|||
|
|
case 0:
|
|||
|
|
systemInfo = uni.getSystemInfoSync();
|
|||
|
|
if (!(systemInfo.platform === "ios")) {
|
|||
|
|
_context2.next = 5;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
uni.makePhoneCall({
|
|||
|
|
phoneNumber: phone
|
|||
|
|
});
|
|||
|
|
_context2.next = 27;
|
|||
|
|
break;
|
|||
|
|
case 5:
|
|||
|
|
permission = systemInfo.platform === "ios" ? "phone" : "android.permission.CALL_PHONE";
|
|||
|
|
_this8.isShowPer = true;
|
|||
|
|
firstRequest = !plus.storage.getItem("perm_".concat(permission));
|
|||
|
|
if (firstRequest) _this8.isShowPer = true;
|
|||
|
|
_context2.next = 11;
|
|||
|
|
return _per.default.checkPermission("phone", "需要拨打电话权限,方便您联系商家或平台");
|
|||
|
|
case 11:
|
|||
|
|
_yield$permissionUtil = _context2.sent;
|
|||
|
|
granted = _yield$permissionUtil.granted;
|
|||
|
|
if (!granted) {
|
|||
|
|
_context2.next = 17;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
_this8.isShowPer = false;
|
|||
|
|
uni.makePhoneCall({
|
|||
|
|
phoneNumber: phone
|
|||
|
|
});
|
|||
|
|
return _context2.abrupt("return");
|
|||
|
|
case 17:
|
|||
|
|
_this8.isShowPer = false;
|
|||
|
|
_context2.next = 20;
|
|||
|
|
return _this8.showPermissionDialog("拨打电话权限申请", "我们需要拨打电话权限,方便您联系商家或平台");
|
|||
|
|
case 20:
|
|||
|
|
confirm = _context2.sent;
|
|||
|
|
if (confirm) {
|
|||
|
|
_context2.next = 23;
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
return _context2.abrupt("return");
|
|||
|
|
case 23:
|
|||
|
|
_context2.next = 25;
|
|||
|
|
return _per.default.requestPermission("phone", "需要拨打电话权限,方便您联系商家或平台");
|
|||
|
|
case 25:
|
|||
|
|
result = _context2.sent;
|
|||
|
|
if (result) {
|
|||
|
|
uni.makePhoneCall({
|
|||
|
|
phoneNumber: phone
|
|||
|
|
});
|
|||
|
|
} else {
|
|||
|
|
_locationService.default.openAppSettings();
|
|||
|
|
}
|
|||
|
|
case 27:
|
|||
|
|
case "end":
|
|||
|
|
return _context2.stop();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, _callee2);
|
|||
|
|
}))();
|
|||
|
|
},
|
|||
|
|
openMap: function openMap() {
|
|||
|
|
uni.openLocation({
|
|||
|
|
success: function success() {
|
|||
|
|
return console.log("打开系统位置地图成功");
|
|||
|
|
},
|
|||
|
|
fail: function fail(error) {
|
|||
|
|
return console.log(error);
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
exports.default = _default;
|
|||
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1090:
|
|||
|
|
/*!*******************************************************************************************************************!*\
|
|||
|
|
!*** /Users/danji/Desktop/mrr/mrr-sj/mrr.app.front/pages/shop/SellerDetail.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_SellerDetail_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!./SellerDetail.vue?vue&type=style&index=0&lang=less& */ 1091);
|
|||
|
|
/* 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_SellerDetail_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_SellerDetail_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_SellerDetail_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_SellerDetail_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_SellerDetail_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|||
|
|
|
|||
|
|
/***/ }),
|
|||
|
|
|
|||
|
|
/***/ 1091:
|
|||
|
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|||
|
|
!*** ./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/SellerDetail.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; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/***/ })
|
|||
|
|
|
|||
|
|
},[[1084,"common/runtime","common/vendor"]]]);
|
|||
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shop/SellerDetail.js.map
|