917 lines
59 KiB
JavaScript
917 lines
59 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/goods/goods-car"],{
|
|
|
|
/***/ 1067:
|
|
/*!**************************************************************************!*\
|
|
!*** D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.vue ***!
|
|
\**************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./goods-car.vue?vue&type=template&id=581baa0e&scoped=true& */ 1068);
|
|
/* harmony import */ var _goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./goods-car.vue?vue&type=script&lang=js& */ 1070);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _goods_car_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 _goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./goods-car.vue?vue&type=style&index=0&id=581baa0e&scoped=true&lang=scss& */ 1072);
|
|
/* harmony import */ var _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 37);
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
"581baa0e",
|
|
null,
|
|
false,
|
|
_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "components/goods/goods-car.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1068:
|
|
/*!*********************************************************************************************************************!*\
|
|
!*** D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.vue?vue&type=template&id=581baa0e&scoped=true& ***!
|
|
\*********************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods-car.vue?vue&type=template&id=581baa0e&scoped=true& */ 1069);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_template_id_581baa0e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1069:
|
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.vue?vue&type=template&id=581baa0e&scoped=true& ***!
|
|
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
var components
|
|
var render = function () {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
var s0 =
|
|
_vm.type == 1 || _vm.type == 2
|
|
? _vm.__get_style([
|
|
{
|
|
bottom: _vm.carBtm + "rpx",
|
|
},
|
|
_vm.sname,
|
|
])
|
|
: null
|
|
var g0 =
|
|
_vm.type == 1 || _vm.type == 2
|
|
? !_vm.showCar && _vm.mjInfo.discount.length
|
|
: null
|
|
var g1 =
|
|
_vm.type == 1 || _vm.type == 2
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l0 =
|
|
(_vm.type == 1 || _vm.type == 2) && !g1
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g2 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g2: g2,
|
|
}
|
|
})
|
|
: null
|
|
var g3 = _vm.type == 1 || _vm.type == 2 ? _vm.carList.length : null
|
|
var g4 = _vm.type == 1 || _vm.type == 2 ? _vm.carList.length : null
|
|
var g5 = _vm.type == 1 || _vm.type == 2 ? _vm.carList.length : null
|
|
var m0 =
|
|
(_vm.type == 1 || _vm.type == 2) && _vm.buytype == 1
|
|
? Number(Number(_vm.sjxx.shopData.distribution.money).toFixed(2))
|
|
: null
|
|
var g6 = _vm.type == 1 || _vm.type == 2 ? _vm.mjInfo.discount.length : null
|
|
var g7 =
|
|
_vm.type == 1 || _vm.type == 2
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l1 =
|
|
(_vm.type == 1 || _vm.type == 2) && !g7
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g8 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g8: g8,
|
|
}
|
|
})
|
|
: null
|
|
var l2 =
|
|
_vm.type == 1 || _vm.type == 2
|
|
? _vm.__map(_vm.carList, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g9 = _vm.carList.length
|
|
var m1 = v.discountNum > 0 ? _vm.blxs(v.num * v.money) : null
|
|
return {
|
|
$orig: $orig,
|
|
g9: g9,
|
|
m1: m1,
|
|
}
|
|
})
|
|
: null
|
|
var s1 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.__get_style([
|
|
{
|
|
bottom: _vm.carBtm + "rpx",
|
|
},
|
|
_vm.sname,
|
|
])
|
|
: null
|
|
var g10 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? !_vm.showCar && _vm.mjInfo.discount.length
|
|
: null
|
|
var g11 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l3 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3 && !g11
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g12 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g12: g12,
|
|
}
|
|
})
|
|
: null
|
|
var g13 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.carList.length
|
|
: null
|
|
var g14 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.carList.length
|
|
: null
|
|
var g15 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.carList.length
|
|
: null
|
|
var g16 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.mjInfo.discount.length
|
|
: null
|
|
var g17 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l4 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3 && !g17
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g18 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g18: g18,
|
|
}
|
|
})
|
|
: null
|
|
var l5 =
|
|
!(_vm.type == 1 || _vm.type == 2) && _vm.type == 3
|
|
? _vm.__map(_vm.carList, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g19 = _vm.carList.length
|
|
var m2 = _vm.itemTotal(v)
|
|
return {
|
|
$orig: $orig,
|
|
g19: g19,
|
|
m2: m2,
|
|
}
|
|
})
|
|
: null
|
|
var s2 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.__get_style([
|
|
{
|
|
bottom: _vm.carBtm + "rpx",
|
|
},
|
|
_vm.sname,
|
|
])
|
|
: null
|
|
var g20 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? !_vm.showCar && _vm.mjInfo.discount.length
|
|
: null
|
|
var g21 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l6 =
|
|
!(_vm.type == 1 || _vm.type == 2) &&
|
|
!(_vm.type == 3) &&
|
|
_vm.type == 4 &&
|
|
!g21
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g22 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g22: g22,
|
|
}
|
|
})
|
|
: null
|
|
var g23 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.carList.length
|
|
: null
|
|
var g24 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.carList.length
|
|
: null
|
|
var g25 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.carList.length
|
|
: null
|
|
var m3 =
|
|
!(_vm.type == 1 || _vm.type == 2) &&
|
|
!(_vm.type == 3) &&
|
|
_vm.type == 4 &&
|
|
_vm.buytype == 1
|
|
? Number(Number(_vm.sjxx.shopData.distribution.money).toFixed(2))
|
|
: null
|
|
var g26 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.mjInfo.discount.length
|
|
: null
|
|
var g27 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.carList.length || !_vm.mjInfo.discount.length
|
|
: null
|
|
var l7 =
|
|
!(_vm.type == 1 || _vm.type == 2) &&
|
|
!(_vm.type == 3) &&
|
|
_vm.type == 4 &&
|
|
!g27
|
|
? _vm.__map(_vm.mjInfo.discount, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g28 = _vm.mjInfo.discount.length
|
|
return {
|
|
$orig: $orig,
|
|
g28: g28,
|
|
}
|
|
})
|
|
: null
|
|
var l8 =
|
|
!(_vm.type == 1 || _vm.type == 2) && !(_vm.type == 3) && _vm.type == 4
|
|
? _vm.__map(_vm.carList, function (v, i) {
|
|
var $orig = _vm.__get_orig(v)
|
|
var g29 = _vm.carList.length
|
|
var m4 = v.discountNum > 0 ? _vm.blxs(v.num * v.money) : null
|
|
return {
|
|
$orig: $orig,
|
|
g29: g29,
|
|
m4: m4,
|
|
}
|
|
})
|
|
: null
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function ($event) {
|
|
_vm.ydshow = false
|
|
}
|
|
_vm.e1 = function ($event) {
|
|
_vm.ydshow = false
|
|
}
|
|
}
|
|
_vm.$mp.data = Object.assign(
|
|
{},
|
|
{
|
|
$root: {
|
|
s0: s0,
|
|
g0: g0,
|
|
g1: g1,
|
|
l0: l0,
|
|
g3: g3,
|
|
g4: g4,
|
|
g5: g5,
|
|
m0: m0,
|
|
g6: g6,
|
|
g7: g7,
|
|
l1: l1,
|
|
l2: l2,
|
|
s1: s1,
|
|
g10: g10,
|
|
g11: g11,
|
|
l3: l3,
|
|
g13: g13,
|
|
g14: g14,
|
|
g15: g15,
|
|
g16: g16,
|
|
g17: g17,
|
|
l4: l4,
|
|
l5: l5,
|
|
s2: s2,
|
|
g20: g20,
|
|
g21: g21,
|
|
l6: l6,
|
|
g23: g23,
|
|
g24: g24,
|
|
g25: g25,
|
|
m3: m3,
|
|
g26: g26,
|
|
g27: g27,
|
|
l7: l7,
|
|
l8: l8,
|
|
},
|
|
}
|
|
)
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1070:
|
|
/*!***************************************************************************************************!*\
|
|
!*** D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.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 _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods-car.vue?vue&type=script&lang=js& */ 1071);
|
|
/* harmony import */ var _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_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 _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1071:
|
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.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 */ 30));
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
var _vuex = __webpack_require__(/*! vuex */ 39);
|
|
var _utils = _interopRequireDefault(__webpack_require__(/*! @/common/utils */ 34));
|
|
var _utilMixins = __webpack_require__(/*! @/common/util-mixins.js */ 65);
|
|
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 addGoods = function addGoods() {
|
|
__webpack_require__.e(/*! require.ensure | components/goods/add-goods */ "components/goods/add-goods").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/goods/add-goods.vue */ 1284));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var mgPopup = function mgPopup() {
|
|
__webpack_require__.e(/*! require.ensure | components/common/popup */ "components/common/popup").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/common/popup.vue */ 1046));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var sqBtn = function sqBtn() {
|
|
__webpack_require__.e(/*! require.ensure | components/common/sq-btn */ "components/common/sq-btn").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/common/sq-btn.vue */ 1121));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var _default2 = {
|
|
name: 'goods-car',
|
|
components: {
|
|
addGoods: addGoods,
|
|
mgPopup: mgPopup,
|
|
sqBtn: sqBtn
|
|
},
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: '1'
|
|
},
|
|
cName: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
sname: '',
|
|
carBtm: {
|
|
type: [String, Number],
|
|
default: ''
|
|
},
|
|
carlistPab: {
|
|
//购物车弹窗每个页面距离底部距离
|
|
type: [String, Number],
|
|
default: ''
|
|
},
|
|
zIndex: {
|
|
type: Number,
|
|
default: 999
|
|
},
|
|
ingopay: {
|
|
//是否触发内部结算方法
|
|
type: String,
|
|
default: '1'
|
|
},
|
|
buytype: {
|
|
type: Number,
|
|
default: 2
|
|
},
|
|
sjxx: {
|
|
type: Object,
|
|
default: function _default() {
|
|
return {};
|
|
}
|
|
},
|
|
goodsList: {
|
|
type: Array,
|
|
default: function _default() {
|
|
return [];
|
|
}
|
|
},
|
|
startmoney: {
|
|
type: [String, Number],
|
|
default: ''
|
|
},
|
|
show: Boolean,
|
|
outin: {
|
|
type: String,
|
|
default: '1'
|
|
},
|
|
tableinfo: ''
|
|
},
|
|
data: function data() {
|
|
return {
|
|
showCar: false,
|
|
ydshow: true,
|
|
showSqtel: false
|
|
};
|
|
},
|
|
watch: {
|
|
showCar: function showCar(nval) {
|
|
this.$emit('update:show', nval);
|
|
},
|
|
show: function show(nval) {
|
|
if (nval) this.showCar = nval;
|
|
},
|
|
mjInfo: {
|
|
handler: function handler(newVal) {
|
|
if (newVal.discount.length > 0) {
|
|
this.$emit('hasmj', true);
|
|
}
|
|
// console.log('mjInfo newVal', newVal)
|
|
},
|
|
|
|
immediate: true
|
|
}
|
|
},
|
|
mixins: [_utilMixins.utilMixins],
|
|
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)({
|
|
vscarList: function vscarList(state) {
|
|
return state.scarList;
|
|
}
|
|
// carList: state => state.scarList.data || [],
|
|
})), {}, {
|
|
scarList: function scarList() {
|
|
if (this.outin == 1) {
|
|
return this.vscarList.out;
|
|
} else if (this.outin == 3) {
|
|
return this.vscarList.fast;
|
|
} else if (this.outin == 2) {
|
|
return this.vscarList.ins;
|
|
}
|
|
},
|
|
carList: function carList() {
|
|
return this.scarList.data || [];
|
|
},
|
|
yysj: function yysj() {
|
|
var text = '';
|
|
var info = this.sjxx.moreSet;
|
|
console.log('info:', info);
|
|
if (info.timeType == 1) {
|
|
text = '24小时营业';
|
|
} else if (info.timeType == 2 && info.timeArr) {
|
|
text = "".concat(info.timeArr[0].startTime, "-").concat(info.timeArr[0].ciri ? '次日' : '').concat(info.timeArr[0].endTime);
|
|
if (info.timeArr[1]) {
|
|
text += ' ' + "".concat(info.timeArr[1].startTime, "-").concat(info.timeArr[1].ciri ? '次日' : '').concat(info.timeArr[1].endTime);
|
|
}
|
|
if (info.timeArr[2]) {
|
|
text += ' ' + "".concat(info.timeArr[2].startTime, "-").concat(info.timeArr[2].ciri ? '次日' : '').concat(info.timeArr[2].endTime);
|
|
}
|
|
}
|
|
return text;
|
|
},
|
|
cshow: function cshow() {
|
|
// return true
|
|
this.carList.length == 0 && (this.showCar = false);
|
|
if (this.type == 2 || this.type == 3) {
|
|
return this.addgb;
|
|
}
|
|
return (this.sjxx.shopData.storeOpen == 1 || this.sjxx.shopData.storeOpen == 2 && this.sjxx.moreSet.status == 1) && this.carList.length > 0;
|
|
},
|
|
addgb: function addgb() {
|
|
return this.sjxx.shopData.storeOpen == 1 || this.sjxx.shopData.storeOpen == 2 && this.sjxx.moreSet.status == 1;
|
|
},
|
|
xxshow: function xxshow() {
|
|
return this.sjxx.shopData.storeOpen != 1 && this.ydshow;
|
|
},
|
|
havezq: function havezq() {
|
|
return this.sjxx.moreSet.distributionSupport && this.sjxx.moreSet.distributionSupport.find(function (v) {
|
|
return v == 2;
|
|
});
|
|
},
|
|
getTotal: function getTotal() {
|
|
var num = 0;
|
|
this.carList.forEach(function (v) {
|
|
num += +v.num;
|
|
});
|
|
return {
|
|
total: +this.scarList.oldPrice || 0,
|
|
//购物车原价
|
|
price: +this.scarList.price,
|
|
spzj: +(this.scarList.oldPrice - this.scarList.boxMoney).toFixed(2),
|
|
bzf: +this.scarList.boxMoney || 0,
|
|
num: num,
|
|
hyzk: this.blxs(this.scarList.vipDiscount)
|
|
};
|
|
},
|
|
carPrice: function carPrice() {
|
|
var reduceMoney = this.mjInfo.mjMoney;
|
|
// console.log('carPrice', {
|
|
// reduceMoney,
|
|
// nowPrice: +(this.getTotal.total - reduceMoney).toFixed(2)
|
|
// })
|
|
return {
|
|
reduceMoney: reduceMoney,
|
|
nowPrice: this.getTotal.price
|
|
};
|
|
},
|
|
mjInfo: function mjInfo() {
|
|
var total = this.getTotal.spzj,
|
|
//商品总计来算满减不包含包装费
|
|
discount = [],
|
|
type = '',
|
|
mjMoney = this.scarList.reduce,
|
|
index = -1,
|
|
text = '';
|
|
if (!this.sjxx.discount.reduce.type) {
|
|
mjMoney = 0;
|
|
} else {
|
|
discount = [].concat(this.sjxx.discount.reduce.moneyArr); //倒序最大排在前
|
|
type = this.sjxx.discount.reduce.type;
|
|
if (discount.length) {
|
|
if (type == 1) {
|
|
//每满优惠
|
|
// mjMoney = Math.floor(total / discount[0].fullMoney) * discount[0].money
|
|
if (Math.floor(total / discount[0].fullMoney) <= 0) {
|
|
text = "\u6BCF\u6EE1".concat(this.sl + discount[0].fullMoney, "\u51CF").concat(discount[0].money);
|
|
} else {
|
|
text = "\u5DF2\u51CF".concat(this.sl + mjMoney);
|
|
}
|
|
} else {
|
|
//多级优惠
|
|
index = discount.findIndex(function (v) {
|
|
return total >= v.fullMoney;
|
|
});
|
|
// index > -1 && (mjMoney = discount[index].money)
|
|
if (index == -1) {
|
|
text = "\u6EE1".concat(this.sl).concat(discount[discount.length - 1].fullMoney, "\u51CF").concat(this.sl).concat(discount[discount.length - 1].money, ",\u8FD8\u5DEE").concat(this.sl).concat((discount[discount.length - 1].fullMoney - total).toFixed(2));
|
|
} else if (index == 0) {
|
|
text = "\u5DF2\u51CF".concat(this.sl + mjMoney);
|
|
} else if (index > 0) {
|
|
text = "\u5DF2\u51CF".concat(this.sl + mjMoney, ",\u518D\u6EE1").concat(this.sl + discount[index - 1].fullMoney, "\u51CF").concat(this.sl + discount[index - 1].money);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.buytype == 1 && +this.startMoney > this.getTotal.total) {
|
|
text = "\u8FD8\u5DEE".concat(this.sl).concat((+this.startMoney - this.getTotal.total).toFixed(2), "\u8D77\u9001");
|
|
}
|
|
// console.log('mjInfo', this.sjxx, discount, type, mjMoney, index, text, {
|
|
// mjMoney,
|
|
// text,
|
|
// discount: [].concat(discount).reverse()
|
|
// })
|
|
return {
|
|
mjMoney: mjMoney,
|
|
text: text,
|
|
discount: [].concat(discount).reverse()
|
|
};
|
|
},
|
|
startMoney: function startMoney() {
|
|
// console.log('startMoney', this.startmoney, this.sjxx.shopData.distribution.startMoney)
|
|
return this.startmoney || this.sjxx.shopData.distribution.startMoney;
|
|
},
|
|
qsText: function qsText() {
|
|
var totalPrice = this.getTotal.total,
|
|
qsj = +this.startMoney,
|
|
text = '',
|
|
reach = false;
|
|
if (this.type <= 2 || this.type == 4) {
|
|
if (totalPrice <= 0 || !this.carList.length) {
|
|
text = this.buytype == 1 ? this.sl + qsj + '起送' : '去下单';
|
|
} else if (totalPrice < qsj && this.buytype == 1) {
|
|
var diff = +(qsj - totalPrice).toFixed(2);
|
|
text = "\u5DEE".concat(this.sl) + diff + '起送';
|
|
} else {
|
|
text = '去结算';
|
|
reach = true;
|
|
}
|
|
} else if (this.type == 3) {
|
|
reach = true;
|
|
if (totalPrice <= 0 || !this.carList.length) {
|
|
text = '查看购物车';
|
|
} else {
|
|
text = '选好了';
|
|
}
|
|
}
|
|
return {
|
|
text: text,
|
|
reach: reach
|
|
};
|
|
// console.log('起送价', totalPrice, qsj, this.getTotal, text)
|
|
}
|
|
}),
|
|
|
|
methods: _objectSpread(_objectSpread(_objectSpread({}, (0, _vuex.mapMutations)(["setCarList"])), (0, _vuex.mapActions)(['clearMycar'])), {}, {
|
|
openCar: function openCar() {
|
|
console.log('565');
|
|
this.showCar = true;
|
|
},
|
|
closeCar: function closeCar() {
|
|
this.showCar = false;
|
|
},
|
|
qsTextt: function qsTextt() {
|
|
return this.qsText;
|
|
},
|
|
dec: function dec(e, co) {
|
|
// console.log(e, co)
|
|
this.$emit('dec', {
|
|
addwz: e.addwz,
|
|
g: co
|
|
});
|
|
// !this.carList.length && (this.showCar = false)
|
|
},
|
|
add: function add(e, co) {
|
|
// console.log(e, co)
|
|
this.$emit('add', {
|
|
addwz: e.addwz,
|
|
g: co
|
|
});
|
|
},
|
|
clearCar: function clearCar() {
|
|
var _this = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.prev = 0;
|
|
_context.next = 3;
|
|
return _this.util.modal('确认清空购物车吗?');
|
|
case 3:
|
|
_context.next = 5;
|
|
return _this.clearMycar({
|
|
storeId: _this.sjxx.shopData.id,
|
|
item: _this.outin,
|
|
key: _this.outin == 1 ? 'out' : _this.outin == 2 ? 'ins' : 'fast'
|
|
});
|
|
case 5:
|
|
_this.$emit('celar');
|
|
_this.showCar = false;
|
|
_context.next = 11;
|
|
break;
|
|
case 9:
|
|
_context.prev = 9;
|
|
_context.t0 = _context["catch"](0);
|
|
case 11:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, null, [[0, 9]]);
|
|
}))();
|
|
},
|
|
goPay: function goPay(t) {
|
|
var _this2 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
var _ret;
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
console.log("点击结算", _this2.user);
|
|
if (_this2.qsText.reach) {
|
|
_context2.next = 3;
|
|
break;
|
|
}
|
|
return _context2.abrupt("return");
|
|
case 3:
|
|
_context2.next = 5;
|
|
return _this2.checkLogin();
|
|
case 5:
|
|
if (_context2.sent) {
|
|
_context2.next = 7;
|
|
break;
|
|
}
|
|
return _context2.abrupt("return");
|
|
case 7:
|
|
if (!(_this2.ingopay == 1)) {
|
|
_context2.next = 22;
|
|
break;
|
|
}
|
|
if (!(_this2.buytype == 1 && !getApp().globalData.xzdzInfo)) {
|
|
_context2.next = 11;
|
|
break;
|
|
}
|
|
_this2.go({
|
|
t: 1,
|
|
url: "/yb_wm/my/address/index?from=3&storeId=".concat(_this2.sjxx.shopData.id)
|
|
});
|
|
return _context2.abrupt("return");
|
|
case 11:
|
|
if (!(_this2.havebxp && _this2.type != 3)) {
|
|
_context2.next = 15;
|
|
break;
|
|
}
|
|
_ret = function () {
|
|
var arr = _this2.goodsList.filter(function (v) {
|
|
return v.isRequire == 1;
|
|
}),
|
|
num = 0,
|
|
carr = _this2.carList.map(function (v) {
|
|
return v.goodsId;
|
|
});
|
|
for (var i = 0; i < arr.length; i++) {
|
|
if (arr[i].goods.find(function (item) {
|
|
return carr.includes(item.id);
|
|
})) {
|
|
num += 1;
|
|
}
|
|
}
|
|
if (num < arr.length) {
|
|
return {
|
|
v: _this2.util.message('请选择必选品', 3, 1500)
|
|
};
|
|
}
|
|
// console.log(arr, carr, num)
|
|
}();
|
|
if (!((0, _typeof2.default)(_ret) === "object")) {
|
|
_context2.next = 15;
|
|
break;
|
|
}
|
|
return _context2.abrupt("return", _ret.v);
|
|
case 15:
|
|
// return
|
|
_this2.util.showLoading();
|
|
if (_this2.outin != 2) {
|
|
uni.setStorageSync('carInfo', {
|
|
carList: _this2.carList,
|
|
getTotal: _this2.getTotal,
|
|
mjInfo: _this2.mjInfo,
|
|
carPrice: _this2.carPrice,
|
|
sjxx: {
|
|
discount: _this2.sjxx.discount,
|
|
moreSet: _this2.sjxx.moreSet,
|
|
outSet: _this2.sjxx.moreSet.distributionSupport,
|
|
shopData: _this2.sjxx.shopData
|
|
},
|
|
buyType: _this2.buytype
|
|
});
|
|
}
|
|
if (_this2.outin == 1) {
|
|
_this2.go({
|
|
t: t || 1,
|
|
url: '/yb_wm/shop/out/pay-order'
|
|
});
|
|
} else if (_this2.outin == 3) {
|
|
_this2.go({
|
|
url: '/yb_wm/shop/ffmode/pay-order'
|
|
});
|
|
} else if (_this2.outin == 2) {
|
|
uni.setStorageSync('carInfo', {
|
|
sjxx: {
|
|
discount: _this2.sjxx.discount,
|
|
moreSet: _this2.sjxx.moreSet,
|
|
outSet: _this2.sjxx.moreSet.distributionSupport,
|
|
shopData: _this2.sjxx.shopData
|
|
}
|
|
});
|
|
_this2.go({
|
|
url: '/yb_wm/shop/in/car?tableInfo=' + encodeURIComponent(JSON.stringify(_this2.tableinfo))
|
|
});
|
|
}
|
|
_this2.showCar = false;
|
|
uni.hideLoading();
|
|
_context2.next = 23;
|
|
break;
|
|
case 22:
|
|
_this2.$emit('gopay');
|
|
case 23:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}))();
|
|
},
|
|
itemTotal: function itemTotal(v) {
|
|
return +(v.money * v.num).toFixed(2);
|
|
},
|
|
colorToRGB: function colorToRGB(color) {
|
|
return _utils.default.colorToRGB(color);
|
|
}
|
|
}),
|
|
created: function created() {
|
|
console.log('this.sjxx', this.sjxx);
|
|
this.havebxp = this.sjxx.data.findIndex(function (v) {
|
|
return v.isRequire == 1;
|
|
}) > -1;
|
|
|
|
// console.log(this.havebxp)
|
|
}
|
|
};
|
|
exports.default = _default2;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1072:
|
|
/*!************************************************************************************************************************************!*\
|
|
!*** D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.vue?vue&type=style&index=0&id=581baa0e&scoped=true&lang=scss& ***!
|
|
\************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../前端/软件/1954-2020-07-22033532-1595360132222/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods-car.vue?vue&type=style&index=0&id=581baa0e&scoped=true&lang=scss& */ 1073);
|
|
/* harmony import */ var _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_1954_2020_07_22033532_1595360132222_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_car_vue_vue_type_style_index_0_id_581baa0e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1073:
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/oil/云贝全开/git-app/yb-uniapp/yb_wm/components/goods/goods-car.vue?vue&type=style&index=0&id=581baa0e&scoped=true&lang=scss& ***!
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
if(false) { var cssReload; }
|
|
|
|
|
|
/***/ })
|
|
|
|
}]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/goods/goods-car.js.map
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/goods/goods-car-create-component',
|
|
{
|
|
'components/goods/goods-car-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('2')['createComponent'](__webpack_require__(1067))
|
|
})
|
|
},
|
|
[['components/goods/goods-car-create-component']]
|
|
]);
|