You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
993 lines
57 KiB
993 lines
57 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{
|
|
|
|
/***/ 38:
|
|
/*!************************************************************************!*\
|
|
!*** G:/web/中龙小程序/zhonglmini/main.js?{"page":"pages%2Findex%2Findex"} ***!
|
|
\************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
__webpack_require__(/*! uni-pages */ 26);
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
|
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 39));
|
|
// @ts-ignore
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
createPage(_index.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"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 39:
|
|
/*!*****************************************************!*\
|
|
!*** G:/web/中龙小程序/zhonglmini/pages/index/index.vue ***!
|
|
\*****************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228& */ 40);
|
|
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 42);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_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 _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&lang=scss& */ 47);
|
|
/* harmony import */ var _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "pages/index/index.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 40:
|
|
/*!************************************************************************************!*\
|
|
!*** G:/web/中龙小程序/zhonglmini/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
\************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228& */ 41);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 41:
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!G:/web/中龙小程序/zhonglmini/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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 = {
|
|
zqsSelect: function () {
|
|
return __webpack_require__.e(/*! import() | components/zqs-select/zqs-select */ "components/zqs-select/zqs-select").then(__webpack_require__.bind(null, /*! @/components/zqs-select/zqs-select.vue */ 247))
|
|
},
|
|
cjlIcon: function () {
|
|
return __webpack_require__.e(/*! import() | components/cjl-icon/cjl-icon */ "components/cjl-icon/cjl-icon").then(__webpack_require__.bind(null, /*! @/components/cjl-icon/cjl-icon.vue */ 256))
|
|
},
|
|
hypImage: function () {
|
|
return __webpack_require__.e(/*! import() | components/hyp-image/hyp-image */ "components/hyp-image/hyp-image").then(__webpack_require__.bind(null, /*! @/components/hyp-image/hyp-image.vue */ 240))
|
|
},
|
|
uniNoticeBar: function () {
|
|
return __webpack_require__.e(/*! import() | components/uni-notice-bar/uni-notice-bar */ "components/uni-notice-bar/uni-notice-bar").then(__webpack_require__.bind(null, /*! @/components/uni-notice-bar/uni-notice-bar.vue */ 263))
|
|
},
|
|
}
|
|
} 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 recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 42:
|
|
/*!******************************************************************************!*\
|
|
!*** G:/web/中龙小程序/zhonglmini/pages/index/index.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 _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 43);
|
|
/* harmony import */ var _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_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 _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 43:
|
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!G:/web/中龙小程序/zhonglmini/pages/index/index.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 */ 44));
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 46));
|
|
var addtip = function addtip() {
|
|
__webpack_require__.e(/*! require.ensure | components/struggler-uniapp-add-tip/struggler-uniapp-add-tip */ "components/struggler-uniapp-add-tip/struggler-uniapp-add-tip").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/struggler-uniapp-add-tip/struggler-uniapp-add-tip.vue */ 270));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var dragButton = function dragButton() {
|
|
__webpack_require__.e(/*! require.ensure | components/drag-button/drag-button */ "components/drag-button/drag-button").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/drag-button/drag-button.vue */ 277));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var uniNoticeBar = function uniNoticeBar() {
|
|
__webpack_require__.e(/*! require.ensure | components/uni-notice-bar/uni-notice-bar */ "components/uni-notice-bar/uni-notice-bar").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/uni-notice-bar/uni-notice-bar.vue */ 263));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var zqsSelect = function zqsSelect() {
|
|
__webpack_require__.e(/*! require.ensure | components/zqs-select/zqs-select */ "components/zqs-select/zqs-select").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/zqs-select/zqs-select.vue */ 247));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var _default = {
|
|
components: {
|
|
addtip: addtip,
|
|
dragButton: dragButton,
|
|
uniNoticeBar: uniNoticeBar,
|
|
zqsSelect: zqsSelect
|
|
},
|
|
data: function data() {
|
|
return {
|
|
bttext: '客服',
|
|
tip: "点击「添加小程序」,下次访问更便捷",
|
|
duration: 5,
|
|
//提示添加小程序显示时间
|
|
banner: [{
|
|
"id": 121,
|
|
"title": "母亲节",
|
|
"url": "\/pages\/course\/activity?id=101&_from=share_prod_4",
|
|
"images": "http:\/\/statictest.pipacode.cn\/a1a7a201905101726438109.gif",
|
|
"up_time": "2019-12-14 00:00:00",
|
|
"down_time": ""
|
|
}],
|
|
cardCur: 0,
|
|
typeList: [{
|
|
"id": 3,
|
|
"name": "粮油类",
|
|
"sort": 2,
|
|
"icon": "http://m2.chinause.cn:8888/8img/mini/liangyou.png"
|
|
}],
|
|
pcdesc: [],
|
|
//猜你喜欢列表
|
|
productList: [],
|
|
tjproductList: [],
|
|
loadingText: '正在加载...',
|
|
miaosstyle: 'miaos',
|
|
goodsList: [],
|
|
//购物车商品
|
|
text: '欢迎进入中龙小程序商城',
|
|
backcolor: '#E8E8E8',
|
|
color: '#F23E05',
|
|
gg_zezhao: 'none',
|
|
gg_model: 'none',
|
|
importUserId: [],
|
|
value: '',
|
|
options: [],
|
|
userInfo: []
|
|
};
|
|
},
|
|
methods: {
|
|
baseinfo: function baseinfo(key) {
|
|
var _this = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
var reinfo;
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return _this.$api.baseinfo({
|
|
action: 'baseinfo',
|
|
key: key
|
|
});
|
|
case 2:
|
|
reinfo = _context.sent;
|
|
if (key == 'gscolor') {
|
|
_this.color = reinfo.data.info;
|
|
} else if (key == 'gsbgcolor') {
|
|
_this.backcolor = reinfo.data.info;
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
},
|
|
//拖拽悬浮球相关事件开始
|
|
btnClick: function btnClick() {
|
|
console.log('btnClick');
|
|
},
|
|
btnTouchstart: function btnTouchstart() {
|
|
console.log('btnTouchstart');
|
|
},
|
|
btnTouchend: function btnTouchend() {
|
|
console.log('btnTouchend');
|
|
},
|
|
//拖拽悬浮球相关事件结束
|
|
cardSwiper: function cardSwiper(e) {
|
|
this.cardCur = e.detail.current;
|
|
},
|
|
//搜索跳转
|
|
toSearch: function toSearch() {
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
uni.navigateTo({
|
|
url: "/pages/search/search"
|
|
});
|
|
uni.hideLoading();
|
|
},
|
|
//到分类
|
|
topcate: function topcate(url) {
|
|
if (url != '#' && url != undefined) {
|
|
var tourl = url.split('?');
|
|
var ids = tourl[1].split('&');
|
|
var dflid = ids[0];
|
|
var xflid = ids[1];
|
|
getApp().globalData.dflid = dflid;
|
|
getApp().globalData.xflid = xflid;
|
|
getApp().globalData.tid = 1;
|
|
uni.switchTab({
|
|
url: tourl[0]
|
|
});
|
|
}
|
|
},
|
|
addcollection: function addcollection(id, index, dotype) {
|
|
var _this2 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
var userinfo, type, redata;
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
userinfo = uni.getStorageSync('userinfo');
|
|
if (dotype == 0) {
|
|
type = !_this2.tjproductList[index].iscollect;
|
|
} else {
|
|
type = !_this2.productList[index].iscollect;
|
|
}
|
|
if (!userinfo) {
|
|
_context2.next = 10;
|
|
break;
|
|
}
|
|
_context2.next = 5;
|
|
return _this2.$api.addcollection({
|
|
action: 'addcollection',
|
|
type: type,
|
|
uid: userinfo.uid,
|
|
id: id
|
|
});
|
|
case 5:
|
|
redata = _context2.sent;
|
|
uni.showToast({
|
|
title: redata.msg,
|
|
icon: 'none'
|
|
});
|
|
if (redata.code == 1) {
|
|
if (dotype == 0) {
|
|
_this2.tjproductList[index].iscollect = !_this2.tjproductList[index].iscollect;
|
|
} else {
|
|
_this2.productList[index].iscollect = !_this2.productList[index].iscollect;
|
|
}
|
|
}
|
|
_context2.next = 11;
|
|
break;
|
|
case 10:
|
|
uni.navigateTo({
|
|
url: '/pages/user/login'
|
|
});
|
|
case 11:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}))();
|
|
},
|
|
//收藏
|
|
toFavorite: function toFavorite(id, index, type) {
|
|
this.addcollection(id, index, type);
|
|
},
|
|
//猜你喜欢商品
|
|
getgoodlist: function getgoodlist() {
|
|
var _this3 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
var userinfo, getdata;
|
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
while (1) {
|
|
switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
userinfo = uni.getStorageSync('userinfo');
|
|
_context3.next = 3;
|
|
return _this3.$api.getgoodlist({
|
|
action: 'goodlist2',
|
|
type: 1,
|
|
uid: userinfo.uid
|
|
});
|
|
case 3:
|
|
getdata = _context3.sent;
|
|
_this3.productList = getdata.data.map(function (item, index) {
|
|
item.checked = false;
|
|
item.shownum = 0;
|
|
item.miaosstyle = 'miaos';
|
|
return item;
|
|
});
|
|
_this3.checkshownum();
|
|
case 6:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}
|
|
}, _callee3);
|
|
}))();
|
|
},
|
|
//获取推荐商品
|
|
gettjgoodlist: function gettjgoodlist() {
|
|
var _this4 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
var userinfo, getdata;
|
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
while (1) {
|
|
switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
userinfo = uni.getStorageSync('userinfo');
|
|
_context4.next = 3;
|
|
return _this4.$api.getgoodlist({
|
|
action: 'goodlist2',
|
|
type: 2,
|
|
uid: userinfo.uid
|
|
});
|
|
case 3:
|
|
getdata = _context4.sent;
|
|
_this4.tjproductList = getdata.data.map(function (item, index) {
|
|
item.checked = false;
|
|
item.shownum = 0;
|
|
item.miaosstyle = 'miaos';
|
|
return item;
|
|
});
|
|
_this4.checkshownum();
|
|
case 6:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}
|
|
}, _callee4);
|
|
}))();
|
|
},
|
|
//轮播图
|
|
getbanner: function getbanner() {
|
|
var _this5 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
var getdata;
|
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
while (1) {
|
|
switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
_context5.next = 2;
|
|
return _this5.$api.getbanner({
|
|
action: 'banner'
|
|
});
|
|
case 2:
|
|
getdata = _context5.sent;
|
|
if (getdata.code != 0) {
|
|
_this5.banner = getdata.data;
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}
|
|
}, _callee5);
|
|
}))();
|
|
},
|
|
//公告
|
|
getnotice: function getnotice() {
|
|
var _this6 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
var getdata;
|
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
while (1) {
|
|
switch (_context6.prev = _context6.next) {
|
|
case 0:
|
|
_context6.next = 2;
|
|
return _this6.$api.notice({
|
|
action: 'notice'
|
|
});
|
|
case 2:
|
|
getdata = _context6.sent;
|
|
_this6.text = getdata.data[0].info;
|
|
case 4:
|
|
case "end":
|
|
return _context6.stop();
|
|
}
|
|
}
|
|
}, _callee6);
|
|
}))();
|
|
},
|
|
//点击公告
|
|
getMore: function getMore(e) {
|
|
uni.showModal({
|
|
title: '',
|
|
content: this.text,
|
|
showCancel: false,
|
|
buttonText: '确定',
|
|
success: function success(res) {
|
|
if (res.confirm) {}
|
|
}
|
|
});
|
|
},
|
|
//获取分类导航
|
|
getitem: function getitem() {
|
|
var _this7 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
var getdata;
|
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
while (1) {
|
|
switch (_context7.prev = _context7.next) {
|
|
case 0:
|
|
_context7.next = 2;
|
|
return _this7.$api.getitem({
|
|
action: 'item'
|
|
});
|
|
case 2:
|
|
getdata = _context7.sent;
|
|
_this7.typeList = getdata.data;
|
|
case 4:
|
|
case "end":
|
|
return _context7.stop();
|
|
}
|
|
}
|
|
}, _callee7);
|
|
}))();
|
|
},
|
|
//获取产品介绍列表
|
|
getcpdesc: function getcpdesc() {
|
|
var _this8 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
var getdata;
|
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
while (1) {
|
|
switch (_context8.prev = _context8.next) {
|
|
case 0:
|
|
_context8.next = 2;
|
|
return _this8.$api.getcpdesc({
|
|
action: 'cpdesc'
|
|
});
|
|
case 2:
|
|
getdata = _context8.sent;
|
|
_this8.pcdesc = getdata.data;
|
|
case 4:
|
|
case "end":
|
|
return _context8.stop();
|
|
}
|
|
}
|
|
}, _callee8);
|
|
}))();
|
|
},
|
|
//跳详情页
|
|
toGoods: function toGoods(good) {
|
|
uni.navigateTo({
|
|
url: '../product/detail?gid=' + good.id + "&price=" + good.price
|
|
});
|
|
},
|
|
//跳转到产品,改跳分类
|
|
toCategory: function toCategory(e) {
|
|
getApp().globalData.dflid = e;
|
|
getApp().globalData.xflid = 0;
|
|
uni.switchTab({
|
|
url: '/pages/category/category'
|
|
});
|
|
},
|
|
//文章详细
|
|
todetail: function todetail(e) {
|
|
uni.navigateTo({
|
|
url: "/pages/advdetail/advdetail?id=" + e
|
|
});
|
|
},
|
|
//点击改变描述显示
|
|
changemiaosstyle: function changemiaosstyle(index) {
|
|
var item = this.productList[index];
|
|
item.checked = !item.checked;
|
|
if (item.miaosstyle == 'miaos') {
|
|
item.miaosstyle = 'miaosshow';
|
|
} else {
|
|
item.miaosstyle = 'miaos';
|
|
}
|
|
this.$set(this.productList, index, item);
|
|
},
|
|
//减操作
|
|
sub: function sub(id) {
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
var isexit = this.findidfromstor(id);
|
|
var delid = 0;
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (isexit.id == getcartlist[i].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[i].num--; //数量减
|
|
if (getcartlist[i].num <= 0) {
|
|
//删除当前商品缓存
|
|
getcartlist.splice(i, 1);
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
break; //跳出循环
|
|
} else {
|
|
getcartlist[i].total = parseFloat(getcartlist[i].num * getcartlist[i].price * 100) / 100;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
},
|
|
// 增加数量,type 0-推荐商品,1-猜你喜欢商品
|
|
add: function add(id, type) {
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
//首次加购物车
|
|
if (getcartlist == '') {
|
|
this.goodsList = [];
|
|
if (type == 1) {
|
|
this.goodsList.push(this.findarrbyid(id));
|
|
} else {
|
|
this.goodsList.push(this.findarrbyid_tj(id));
|
|
}
|
|
//计算每个商品的总价格
|
|
this.goodsList.map(function (item, index) {
|
|
item.total = parseFloat(item.price * item.num * 100) / 100;
|
|
});
|
|
uni.setStorageSync('cartlist', this.goodsList);
|
|
} else {
|
|
//已有商品在购物车
|
|
var isexit = this.findidfromstor(id);
|
|
if (!isexit) {
|
|
//购物车中还没当前商品
|
|
//不存在
|
|
if (type == 1) {
|
|
getcartlist.push(this.findarrbyid(id));
|
|
} else {
|
|
getcartlist.push(this.findarrbyid_tj(id));
|
|
}
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (id == getcartlist[i].id) {
|
|
getcartlist[i].total = parseFloat(getcartlist[i].num * getcartlist[i].price * 100) / 100;
|
|
}
|
|
}
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
} else {
|
|
//存在
|
|
for (var _i = 0; _i < getcartlist.length; _i++) {
|
|
if (isexit.id == getcartlist[_i].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[_i].num++; //数量自增
|
|
if (getcartlist[_i].num > getcartlist[_i].kcnum) {
|
|
uni.showToast({
|
|
title: '库存不足!',
|
|
icon: 'none'
|
|
});
|
|
break; //跳出循环
|
|
} else {
|
|
getcartlist[_i].total = parseFloat(getcartlist[_i].num * getcartlist[_i].price * 100) / 100;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
},
|
|
// input框直接加入购物车
|
|
inputadd: function inputadd(id, type, inputnum) {
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
//首次加购物车
|
|
if (getcartlist == '') {
|
|
this.goodsList = [];
|
|
if (type == 1) {
|
|
this.goodsList.push(this.findarrbyid(id));
|
|
} else {
|
|
this.goodsList.push(this.findarrbyid_tj(id));
|
|
}
|
|
//计算每个商品的总价格
|
|
this.goodsList.map(function (item, index) {
|
|
item.total = parseFloat(item.price * inputnum * 100) / 100;
|
|
item.num = parseFloat(inputnum);
|
|
});
|
|
uni.setStorageSync('cartlist', this.goodsList);
|
|
} else {
|
|
//已有商品在购物车
|
|
var isexit = this.findidfromstor(id);
|
|
if (!isexit) {
|
|
//购物车中还没当前商品
|
|
//不存在
|
|
if (type == 1) {
|
|
getcartlist.push(this.findarrbyid(id));
|
|
} else {
|
|
getcartlist.push(this.findarrbyid_tj(id));
|
|
}
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (id == getcartlist[i].id) {
|
|
getcartlist[i].total = parseFloat(inputnum * getcartlist[i].price * 100) / 100;
|
|
getcartlist[i].num = parseFloat(inputnum);
|
|
}
|
|
}
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
} else {
|
|
//存在
|
|
for (var _i2 = 0; _i2 < getcartlist.length; _i2++) {
|
|
if (isexit.id == getcartlist[_i2].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[_i2].num = inputnum; //数量自增
|
|
if (getcartlist[_i2].num > getcartlist[_i2].kcnum) {
|
|
uni.showToast({
|
|
title: '库存不足!',
|
|
icon: 'none'
|
|
});
|
|
break; //跳出循环
|
|
} else {
|
|
getcartlist[_i2].total = parseFloat(getcartlist[_i2].num * getcartlist[_i2].price * 100) / 100;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
},
|
|
inputchange: function inputchange(inputsl, inputnum, id, kcnum, type) {
|
|
inputnum = parseFloat(inputsl.detail.value);
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
if (inputnum > 0) {
|
|
if (inputnum > kcnum) {
|
|
uni.showToast({
|
|
title: '库存不足',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
this.inputadd(id, type, inputnum); //input框直接添加购物车
|
|
} else {
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (id == getcartlist[i].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[i].num = 0;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
}
|
|
},
|
|
inputchangeBz: function inputchangeBz(inputsl, inputnum, id, kcnum, type, index) {
|
|
inputnum = inputsl.detail.value;
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
var isbz = 0;
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (id == getcartlist[i].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[i].bz = inputnum;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
isbz = 1;
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
if (isbz == 0) {
|
|
uni.showToast({
|
|
title: '请您输入数量后再填备注',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
},
|
|
inputchangeFudw: function inputchangeFudw(inputsl, inputnum, id, kcnum, type, index) {
|
|
inputnum = inputsl.detail.value;
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
var is = 0;
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
if (id == getcartlist[i].id) {
|
|
//找到商品一样的商品
|
|
getcartlist[i].fudw = inputnum;
|
|
uni.setStorageSync('cartlist', getcartlist);
|
|
is = 1;
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
|
|
this.checkshownum();
|
|
if (is == 0) {
|
|
uni.showToast({
|
|
title: '请您输入数量后再填副单位',
|
|
icon: 'none'
|
|
});
|
|
return;
|
|
}
|
|
},
|
|
//初始化购物车数据
|
|
checkshownum: function checkshownum() {
|
|
var getcartlist = uni.getStorageSync('cartlist');
|
|
var carid = [];
|
|
var carbz = [];
|
|
var carfudw = [];
|
|
for (var i = 0; i < getcartlist.length; i++) {
|
|
carid[getcartlist[i]['id']] = getcartlist[i]['num'];
|
|
carbz[getcartlist[i]['id']] = getcartlist[i]['bz'];
|
|
carfudw[getcartlist[i]['id']] = getcartlist[i]['fudw'];
|
|
}
|
|
for (var _i3 = 0; _i3 < this.productList.length; _i3++) {
|
|
if (carid[this.productList[_i3]['id']]) {
|
|
this.$set(this.productList[_i3], 'inputnum', carid[this.productList[_i3]['id']]);
|
|
this.$set(this.productList[_i3], 'bz', carbz[this.productList[_i3]['id']]);
|
|
this.$set(this.productList[_i3], 'fudw', carfudw[this.productList[_i3]['id']]);
|
|
} else {
|
|
this.$set(this.productList[_i3], 'inputnum', 0);
|
|
this.$set(this.productList[_i3], 'bz', '');
|
|
this.$set(this.productList[_i3], 'fudw', '');
|
|
}
|
|
}
|
|
for (var _i4 = 0; _i4 < this.tjproductList.length; _i4++) {
|
|
if (carid[this.tjproductList[_i4]['id']]) {
|
|
this.$set(this.tjproductList[_i4], 'inputnum', carid[this.tjproductList[_i4]['id']]);
|
|
this.$set(this.tjproductList[_i4], 'bz', carbz[this.tjproductList[_i4]['id']]);
|
|
this.$set(this.tjproductList[_i4], 'fudw', carfudw[this.tjproductList[_i4]['id']]);
|
|
} else {
|
|
this.$set(this.tjproductList[_i4], 'inputnum', 0);
|
|
this.$set(this.tjproductList[_i4], 'bz', '');
|
|
this.$set(this.tjproductList[_i4], 'fudw', '');
|
|
}
|
|
}
|
|
},
|
|
//根据数组指定key获取当前数组
|
|
findarrbyid: function findarrbyid(id) {
|
|
var arr = this.productList;
|
|
for (var i = 0; i < arr.length; i++) {
|
|
if (arr[i]['id'] == id) {
|
|
//console.log(arr[i],'要保存的东西')
|
|
return arr[i];
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
},
|
|
//推荐商品
|
|
findarrbyid_tj: function findarrbyid_tj(id) {
|
|
var arr = this.tjproductList;
|
|
for (var i = 0; i < arr.length; i++) {
|
|
if (arr[i]['id'] == id) {
|
|
//console.log(arr[i],'要保存的东西')
|
|
return arr[i];
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
},
|
|
//从本地存储中根据id获取数组
|
|
findidfromstor: function findidfromstor(id) {
|
|
var arr = uni.getStorageSync('cartlist');
|
|
for (var i = 0; i < arr.length; i++) {
|
|
if (arr[i]['id'] == id) {
|
|
return arr[i];
|
|
break; //跳出循环
|
|
}
|
|
}
|
|
},
|
|
discard: function discard() {
|
|
//丢弃,防止事件冒泡而设
|
|
},
|
|
getColor: function getColor() {
|
|
var _this9 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
var reinfo;
|
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
while (1) {
|
|
switch (_context9.prev = _context9.next) {
|
|
case 0:
|
|
_context9.next = 2;
|
|
return _this9.$api.getitem({
|
|
action: 'baseinfocolor'
|
|
});
|
|
case 2:
|
|
reinfo = _context9.sent;
|
|
_this9.color = reinfo.data[0].info;
|
|
_this9.backcolor = reinfo.data[1].info;
|
|
case 5:
|
|
case "end":
|
|
return _context9.stop();
|
|
}
|
|
}
|
|
}, _callee9);
|
|
}))();
|
|
},
|
|
base: function base() {
|
|
var _this10 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
var baseinfo;
|
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
while (1) {
|
|
switch (_context10.prev = _context10.next) {
|
|
case 0:
|
|
_context10.next = 2;
|
|
return _this10.$api.baseset({
|
|
action: 'baseinfo',
|
|
key: 'mininame'
|
|
});
|
|
case 2:
|
|
baseinfo = _context10.sent;
|
|
uni.setNavigationBarTitle({
|
|
title: baseinfo.data.info
|
|
});
|
|
case 4:
|
|
case "end":
|
|
return _context10.stop();
|
|
}
|
|
}
|
|
}, _callee10);
|
|
}))();
|
|
},
|
|
init: function init() {
|
|
this.getbanner();
|
|
this.getitem();
|
|
//this.getcpdesc();
|
|
// this.getgoodlist();
|
|
this.gettjgoodlist();
|
|
this.getnotice();
|
|
// this.getColor();
|
|
// this.baseinfo('gscolor');
|
|
// this.baseinfo('gsbgcolor');
|
|
this.base();
|
|
},
|
|
getValue2: function getValue2(e) {
|
|
this.value = e;
|
|
if (!this.value || this.value == '') {
|
|
this.importUserId = this.userInfo.uid;
|
|
} else {
|
|
var getuserinfo = uni.getStorageSync('userinfo');
|
|
if (getuserinfo) {
|
|
var dataObj = getuserinfo;
|
|
// 修改特定元素的值
|
|
dataObj.uid = this.value;
|
|
uni.setStorageSync('userinfo', dataObj);
|
|
this.userInfo = dataObj;
|
|
}
|
|
this.importUserId = this.value;
|
|
}
|
|
}
|
|
},
|
|
onShow: function onShow() {
|
|
// this.init();
|
|
this.getgoodlist();
|
|
this.gettjgoodlist();
|
|
this.checkshownum();
|
|
// this.baseinfo('gscolor');
|
|
// this.baseinfo('gsbgcolor');
|
|
var getuserinfo = uni.getStorageSync('userinfo');
|
|
//console.log(getuserinfo);
|
|
if (getuserinfo != '') {
|
|
this.userInfo = getuserinfo;
|
|
this.importUserId = getuserinfo.uid;
|
|
this.options = getuserinfo.kharr;
|
|
}
|
|
},
|
|
onLoad: function onLoad(e) {
|
|
this.init();
|
|
uni.showShareMenu({
|
|
complete: function complete() {}
|
|
});
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 47:
|
|
/*!***************************************************************************************!*\
|
|
!*** G:/web/中龙小程序/zhonglmini/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
\***************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss& */ 48);
|
|
/* harmony import */ var _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_F_HBuilder_X_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 48:
|
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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!G:/web/中龙小程序/zhonglmini/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
if(false) { var cssReload; }
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[38,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|