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.

992 lines
56 KiB

6 months ago
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{
  2. /***/ 38:
  3. /*!*****************************************************************!*\
  4. !*** D://zhonglmini/main.js?{"page":"pages%2Findex%2Findex"} ***!
  5. \*****************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(wx, createPage) {
  10. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11. __webpack_require__(/*! uni-pages */ 26);
  12. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  13. var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 39));
  14. // @ts-ignore
  15. wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
  16. createPage(_index.default);
  17. /* 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"]))
  18. /***/ }),
  19. /***/ 39:
  20. /*!**********************************************!*\
  21. !*** D://zhonglmini/pages/index/index.vue ***!
  22. \**********************************************/
  23. /*! no static exports found */
  24. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25. "use strict";
  26. __webpack_require__.r(__webpack_exports__);
  27. /* harmony import */ var _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228& */ 40);
  28. /* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 42);
  29. /* 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__));
  30. /* 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);
  31. /* harmony import */ var _E_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);
  32. var renderjs
  33. /* normalize component */
  34. var component = Object(_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  35. _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  36. _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"],
  37. _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  38. false,
  39. null,
  40. null,
  41. null,
  42. false,
  43. _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"],
  44. renderjs
  45. )
  46. component.options.__file = "pages/index/index.vue"
  47. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  48. /***/ }),
  49. /***/ 40:
  50. /*!*****************************************************************************!*\
  51. !*** D://zhonglmini/pages/index/index.vue?vue&type=template&id=57280228& ***!
  52. \*****************************************************************************/
  53. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  54. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55. "use strict";
  56. __webpack_require__.r(__webpack_exports__);
  57. /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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);
  58. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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"]; });
  59. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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"]; });
  60. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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"]; });
  61. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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"]; });
  62. /***/ }),
  63. /***/ 41:
  64. /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  65. !*** ./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://zhonglmini/pages/index/index.vue?vue&type=template&id=57280228& ***!
  66. \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  67. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  68. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  69. "use strict";
  70. __webpack_require__.r(__webpack_exports__);
  71. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  72. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  73. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  74. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  75. var components
  76. try {
  77. components = {
  78. zqsSelect: function () {
  79. 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))
  80. },
  81. cjlIcon: function () {
  82. 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))
  83. },
  84. hypImage: function () {
  85. 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))
  86. },
  87. uniNoticeBar: function () {
  88. 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))
  89. },
  90. }
  91. } catch (e) {
  92. if (
  93. e.message.indexOf("Cannot find module") !== -1 &&
  94. e.message.indexOf(".vue") !== -1
  95. ) {
  96. console.error(e.message)
  97. console.error("1. 排查组件名称拼写是否正确")
  98. console.error(
  99. "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
  100. )
  101. console.error(
  102. "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
  103. )
  104. } else {
  105. throw e
  106. }
  107. }
  108. var render = function () {
  109. var _vm = this
  110. var _h = _vm.$createElement
  111. var _c = _vm._self._c || _h
  112. }
  113. var recyclableRender = false
  114. var staticRenderFns = []
  115. render._withStripped = true
  116. /***/ }),
  117. /***/ 42:
  118. /*!***********************************************************************!*\
  119. !*** D://zhonglmini/pages/index/index.vue?vue&type=script&lang=js& ***!
  120. \***********************************************************************/
  121. /*! no static exports found */
  122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  123. "use strict";
  124. __webpack_require__.r(__webpack_exports__);
  125. /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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);
  126. /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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(_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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__);
  127. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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 _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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__));
  128. /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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);
  129. /***/ }),
  130. /***/ 43:
  131. /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  132. !*** ./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://zhonglmini/pages/index/index.vue?vue&type=script&lang=js& ***!
  133. \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  134. /*! no static exports found */
  135. /***/ (function(module, exports, __webpack_require__) {
  136. "use strict";
  137. /* WEBPACK VAR INJECTION */(function(uni) {
  138. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  139. Object.defineProperty(exports, "__esModule", {
  140. value: true
  141. });
  142. exports.default = void 0;
  143. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 44));
  144. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 46));
  145. var addtip = function addtip() {
  146. __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 () {
  147. return resolve(__webpack_require__(/*! @/components/struggler-uniapp-add-tip/struggler-uniapp-add-tip.vue */ 270));
  148. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  149. };
  150. var dragButton = function dragButton() {
  151. __webpack_require__.e(/*! require.ensure | components/drag-button/drag-button */ "components/drag-button/drag-button").then((function () {
  152. return resolve(__webpack_require__(/*! @/components/drag-button/drag-button.vue */ 277));
  153. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  154. };
  155. var uniNoticeBar = function uniNoticeBar() {
  156. __webpack_require__.e(/*! require.ensure | components/uni-notice-bar/uni-notice-bar */ "components/uni-notice-bar/uni-notice-bar").then((function () {
  157. return resolve(__webpack_require__(/*! @/components/uni-notice-bar/uni-notice-bar.vue */ 263));
  158. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  159. };
  160. var zqsSelect = function zqsSelect() {
  161. __webpack_require__.e(/*! require.ensure | components/zqs-select/zqs-select */ "components/zqs-select/zqs-select").then((function () {
  162. return resolve(__webpack_require__(/*! @/components/zqs-select/zqs-select.vue */ 247));
  163. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  164. };
  165. var _default = {
  166. components: {
  167. addtip: addtip,
  168. dragButton: dragButton,
  169. uniNoticeBar: uniNoticeBar,
  170. zqsSelect: zqsSelect
  171. },
  172. data: function data() {
  173. return {
  174. bttext: '客服',
  175. tip: "点击「添加小程序」,下次访问更便捷",
  176. duration: 5,
  177. //提示添加小程序显示时间
  178. banner: [{
  179. "id": 121,
  180. "title": "母亲节",
  181. "url": "\/pages\/course\/activity?id=101&_from=share_prod_4",
  182. "images": "http:\/\/statictest.pipacode.cn\/a1a7a201905101726438109.gif",
  183. "up_time": "2019-12-14 00:00:00",
  184. "down_time": ""
  185. }],
  186. cardCur: 0,
  187. typeList: [{
  188. "id": 3,
  189. "name": "粮油类",
  190. "sort": 2,
  191. "icon": "http://m2.chinause.cn:8888/8img/mini/liangyou.png"
  192. }],
  193. pcdesc: [],
  194. //猜你喜欢列表
  195. productList: [],
  196. tjproductList: [],
  197. loadingText: '正在加载...',
  198. miaosstyle: 'miaos',
  199. goodsList: [],
  200. //购物车商品
  201. text: '欢迎进入中龙小程序商城',
  202. backcolor: '#E8E8E8',
  203. color: '#F23E05',
  204. gg_zezhao: 'none',
  205. gg_model: 'none',
  206. importUserId: [],
  207. value: '',
  208. options: [],
  209. userInfo: []
  210. };
  211. },
  212. methods: {
  213. baseinfo: function baseinfo(key) {
  214. var _this = this;
  215. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  216. var reinfo;
  217. return _regenerator.default.wrap(function _callee$(_context) {
  218. while (1) {
  219. switch (_context.prev = _context.next) {
  220. case 0:
  221. _context.next = 2;
  222. return _this.$api.baseinfo({
  223. action: 'baseinfo',
  224. key: key
  225. });
  226. case 2:
  227. reinfo = _context.sent;
  228. if (key == 'gscolor') {
  229. _this.color = reinfo.data.info;
  230. } else if (key == 'gsbgcolor') {
  231. _this.backcolor = reinfo.data.info;
  232. }
  233. case 4:
  234. case "end":
  235. return _context.stop();
  236. }
  237. }
  238. }, _callee);
  239. }))();
  240. },
  241. //拖拽悬浮球相关事件开始
  242. btnClick: function btnClick() {
  243. console.log('btnClick');
  244. },
  245. btnTouchstart: function btnTouchstart() {
  246. console.log('btnTouchstart');
  247. },
  248. btnTouchend: function btnTouchend() {
  249. console.log('btnTouchend');
  250. },
  251. //拖拽悬浮球相关事件结束
  252. cardSwiper: function cardSwiper(e) {
  253. this.cardCur = e.detail.current;
  254. },
  255. //搜索跳转
  256. toSearch: function toSearch() {
  257. uni.showLoading({
  258. title: '加载中...'
  259. });
  260. uni.navigateTo({
  261. url: "/pages/search/search"
  262. });
  263. uni.hideLoading();
  264. },
  265. //到分类
  266. topcate: function topcate(url) {
  267. if (url != '#' && url != undefined) {
  268. var tourl = url.split('?');
  269. var ids = tourl[1].split('&');
  270. var dflid = ids[0];
  271. var xflid = ids[1];
  272. getApp().globalData.dflid = dflid;
  273. getApp().globalData.xflid = xflid;
  274. getApp().globalData.tid = 1;
  275. uni.switchTab({
  276. url: tourl[0]
  277. });
  278. }
  279. },
  280. addcollection: function addcollection(id, index, dotype) {
  281. var _this2 = this;
  282. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  283. var userinfo, type, redata;
  284. return _regenerator.default.wrap(function _callee2$(_context2) {
  285. while (1) {
  286. switch (_context2.prev = _context2.next) {
  287. case 0:
  288. userinfo = uni.getStorageSync('userinfo');
  289. if (dotype == 0) {
  290. type = !_this2.tjproductList[index].iscollect;
  291. } else {
  292. type = !_this2.productList[index].iscollect;
  293. }
  294. if (!userinfo) {
  295. _context2.next = 10;
  296. break;
  297. }
  298. _context2.next = 5;
  299. return _this2.$api.addcollection({
  300. action: 'addcollection',
  301. type: type,
  302. uid: userinfo.uid,
  303. id: id
  304. });
  305. case 5:
  306. redata = _context2.sent;
  307. uni.showToast({
  308. title: redata.msg,
  309. icon: 'none'
  310. });
  311. if (redata.code == 1) {
  312. if (dotype == 0) {
  313. _this2.tjproductList[index].iscollect = !_this2.tjproductList[index].iscollect;
  314. } else {
  315. _this2.productList[index].iscollect = !_this2.productList[index].iscollect;
  316. }
  317. }
  318. _context2.next = 11;
  319. break;
  320. case 10:
  321. uni.navigateTo({
  322. url: '/pages/user/login'
  323. });
  324. case 11:
  325. case "end":
  326. return _context2.stop();
  327. }
  328. }
  329. }, _callee2);
  330. }))();
  331. },
  332. //收藏
  333. toFavorite: function toFavorite(id, index, type) {
  334. this.addcollection(id, index, type);
  335. },
  336. //猜你喜欢商品
  337. getgoodlist: function getgoodlist() {
  338. var _this3 = this;
  339. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  340. var userinfo, getdata;
  341. return _regenerator.default.wrap(function _callee3$(_context3) {
  342. while (1) {
  343. switch (_context3.prev = _context3.next) {
  344. case 0:
  345. userinfo = uni.getStorageSync('userinfo');
  346. _context3.next = 3;
  347. return _this3.$api.getgoodlist({
  348. action: 'goodlist2',
  349. type: 1,
  350. uid: userinfo.uid
  351. });
  352. case 3:
  353. getdata = _context3.sent;
  354. _this3.productList = getdata.data.map(function (item, index) {
  355. item.checked = false;
  356. item.shownum = 0;
  357. item.miaosstyle = 'miaos';
  358. return item;
  359. });
  360. _this3.checkshownum();
  361. case 6:
  362. case "end":
  363. return _context3.stop();
  364. }
  365. }
  366. }, _callee3);
  367. }))();
  368. },
  369. //获取推荐商品
  370. gettjgoodlist: function gettjgoodlist() {
  371. var _this4 = this;
  372. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
  373. var userinfo, getdata;
  374. return _regenerator.default.wrap(function _callee4$(_context4) {
  375. while (1) {
  376. switch (_context4.prev = _context4.next) {
  377. case 0:
  378. userinfo = uni.getStorageSync('userinfo');
  379. _context4.next = 3;
  380. return _this4.$api.getgoodlist({
  381. action: 'goodlist2',
  382. type: 2,
  383. uid: userinfo.uid
  384. });
  385. case 3:
  386. getdata = _context4.sent;
  387. _this4.tjproductList = getdata.data.map(function (item, index) {
  388. item.checked = false;
  389. item.shownum = 0;
  390. item.miaosstyle = 'miaos';
  391. return item;
  392. });
  393. _this4.checkshownum();
  394. case 6:
  395. case "end":
  396. return _context4.stop();
  397. }
  398. }
  399. }, _callee4);
  400. }))();
  401. },
  402. //轮播图
  403. getbanner: function getbanner() {
  404. var _this5 = this;
  405. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
  406. var getdata;
  407. return _regenerator.default.wrap(function _callee5$(_context5) {
  408. while (1) {
  409. switch (_context5.prev = _context5.next) {
  410. case 0:
  411. _context5.next = 2;
  412. return _this5.$api.getbanner({
  413. action: 'banner'
  414. });
  415. case 2:
  416. getdata = _context5.sent;
  417. if (getdata.code != 0) {
  418. _this5.banner = getdata.data;
  419. }
  420. case 4:
  421. case "end":
  422. return _context5.stop();
  423. }
  424. }
  425. }, _callee5);
  426. }))();
  427. },
  428. //公告
  429. getnotice: function getnotice() {
  430. var _this6 = this;
  431. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
  432. var getdata;
  433. return _regenerator.default.wrap(function _callee6$(_context6) {
  434. while (1) {
  435. switch (_context6.prev = _context6.next) {
  436. case 0:
  437. _context6.next = 2;
  438. return _this6.$api.notice({
  439. action: 'notice'
  440. });
  441. case 2:
  442. getdata = _context6.sent;
  443. _this6.text = getdata.data[0].info;
  444. case 4:
  445. case "end":
  446. return _context6.stop();
  447. }
  448. }
  449. }, _callee6);
  450. }))();
  451. },
  452. //点击公告
  453. getMore: function getMore(e) {
  454. uni.showModal({
  455. title: '',
  456. content: this.text,
  457. showCancel: false,
  458. buttonText: '确定',
  459. success: function success(res) {
  460. if (res.confirm) {}
  461. }
  462. });
  463. },
  464. //获取分类导航
  465. getitem: function getitem() {
  466. var _this7 = this;
  467. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  468. var getdata;
  469. return _regenerator.default.wrap(function _callee7$(_context7) {
  470. while (1) {
  471. switch (_context7.prev = _context7.next) {
  472. case 0:
  473. _context7.next = 2;
  474. return _this7.$api.getitem({
  475. action: 'item'
  476. });
  477. case 2:
  478. getdata = _context7.sent;
  479. _this7.typeList = getdata.data;
  480. case 4:
  481. case "end":
  482. return _context7.stop();
  483. }
  484. }
  485. }, _callee7);
  486. }))();
  487. },
  488. //获取产品介绍列表
  489. getcpdesc: function getcpdesc() {
  490. var _this8 = this;
  491. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  492. var getdata;
  493. return _regenerator.default.wrap(function _callee8$(_context8) {
  494. while (1) {
  495. switch (_context8.prev = _context8.next) {
  496. case 0:
  497. _context8.next = 2;
  498. return _this8.$api.getcpdesc({
  499. action: 'cpdesc'
  500. });
  501. case 2:
  502. getdata = _context8.sent;
  503. _this8.pcdesc = getdata.data;
  504. case 4:
  505. case "end":
  506. return _context8.stop();
  507. }
  508. }
  509. }, _callee8);
  510. }))();
  511. },
  512. //跳详情页
  513. toGoods: function toGoods(good) {
  514. uni.navigateTo({
  515. url: '../product/detail?gid=' + good.id + "&price=" + good.price
  516. });
  517. },
  518. //跳转到产品,改跳分类
  519. toCategory: function toCategory(e) {
  520. getApp().globalData.dflid = e;
  521. getApp().globalData.xflid = 0;
  522. uni.switchTab({
  523. url: '/pages/category/category'
  524. });
  525. },
  526. //文章详细
  527. todetail: function todetail(e) {
  528. uni.navigateTo({
  529. url: "/pages/advdetail/advdetail?id=" + e
  530. });
  531. },
  532. //点击改变描述显示
  533. changemiaosstyle: function changemiaosstyle(index) {
  534. var item = this.productList[index];
  535. item.checked = !item.checked;
  536. if (item.miaosstyle == 'miaos') {
  537. item.miaosstyle = 'miaosshow';
  538. } else {
  539. item.miaosstyle = 'miaos';
  540. }
  541. this.$set(this.productList, index, item);
  542. },
  543. //减操作
  544. sub: function sub(id) {
  545. var getcartlist = uni.getStorageSync('cartlist');
  546. var isexit = this.findidfromstor(id);
  547. var delid = 0;
  548. for (var i = 0; i < getcartlist.length; i++) {
  549. if (isexit.id == getcartlist[i].id) {
  550. //找到商品一样的商品
  551. getcartlist[i].num--; //数量减
  552. if (getcartlist[i].num <= 0) {
  553. //删除当前商品缓存
  554. getcartlist.splice(i, 1);
  555. uni.setStorageSync('cartlist', getcartlist);
  556. break; //跳出循环
  557. } else {
  558. getcartlist[i].total = parseFloat(getcartlist[i].num * getcartlist[i].price * 100) / 100;
  559. uni.setStorageSync('cartlist', getcartlist);
  560. break; //跳出循环
  561. }
  562. }
  563. }
  564. this.checkshownum();
  565. },
  566. // 增加数量,type 0-推荐商品,1-猜你喜欢商品
  567. add: function add(id, type) {
  568. var getcartlist = uni.getStorageSync('cartlist');
  569. //首次加购物车
  570. if (getcartlist == '') {
  571. this.goodsList = [];
  572. if (type == 1) {
  573. this.goodsList.push(this.findarrbyid(id));
  574. } else {
  575. this.goodsList.push(this.findarrbyid_tj(id));
  576. }
  577. //计算每个商品的总价格
  578. this.goodsList.map(function (item, index) {
  579. item.total = parseFloat(item.price * item.num * 100) / 100;
  580. });
  581. uni.setStorageSync('cartlist', this.goodsList);
  582. } else {
  583. //已有商品在购物车
  584. var isexit = this.findidfromstor(id);
  585. if (!isexit) {
  586. //购物车中还没当前商品
  587. //不存在
  588. if (type == 1) {
  589. getcartlist.push(this.findarrbyid(id));
  590. } else {
  591. getcartlist.push(this.findarrbyid_tj(id));
  592. }
  593. for (var i = 0; i < getcartlist.length; i++) {
  594. if (id == getcartlist[i].id) {
  595. getcartlist[i].total = parseFloat(getcartlist[i].num * getcartlist[i].price * 100) / 100;
  596. }
  597. }
  598. uni.setStorageSync('cartlist', getcartlist);
  599. } else {
  600. //存在
  601. for (var _i = 0; _i < getcartlist.length; _i++) {
  602. if (isexit.id == getcartlist[_i].id) {
  603. //找到商品一样的商品
  604. getcartlist[_i].num++; //数量自增
  605. if (getcartlist[_i].num > getcartlist[_i].kcnum) {
  606. uni.showToast({
  607. title: '库存不足!',
  608. icon: 'none'
  609. });
  610. break; //跳出循环
  611. } else {
  612. getcartlist[_i].total = parseFloat(getcartlist[_i].num * getcartlist[_i].price * 100) / 100;
  613. uni.setStorageSync('cartlist', getcartlist);
  614. break; //跳出循环
  615. }
  616. }
  617. }
  618. }
  619. }
  620. this.checkshownum();
  621. },
  622. // input框直接加入购物车
  623. inputadd: function inputadd(id, type, inputnum) {
  624. var getcartlist = uni.getStorageSync('cartlist');
  625. //首次加购物车
  626. if (getcartlist == '') {
  627. this.goodsList = [];
  628. if (type == 1) {
  629. this.goodsList.push(this.findarrbyid(id));
  630. } else {
  631. this.goodsList.push(this.findarrbyid_tj(id));
  632. }
  633. //计算每个商品的总价格
  634. this.goodsList.map(function (item, index) {
  635. item.total = parseFloat(item.price * inputnum * 100) / 100;
  636. item.num = parseFloat(inputnum);
  637. });
  638. uni.setStorageSync('cartlist', this.goodsList);
  639. } else {
  640. //已有商品在购物车
  641. var isexit = this.findidfromstor(id);
  642. if (!isexit) {
  643. //购物车中还没当前商品
  644. //不存在
  645. if (type == 1) {
  646. getcartlist.push(this.findarrbyid(id));
  647. } else {
  648. getcartlist.push(this.findarrbyid_tj(id));
  649. }
  650. for (var i = 0; i < getcartlist.length; i++) {
  651. if (id == getcartlist[i].id) {
  652. getcartlist[i].total = parseFloat(inputnum * getcartlist[i].price * 100) / 100;
  653. getcartlist[i].num = parseFloat(inputnum);
  654. }
  655. }
  656. uni.setStorageSync('cartlist', getcartlist);
  657. } else {
  658. //存在
  659. for (var _i2 = 0; _i2 < getcartlist.length; _i2++) {
  660. if (isexit.id == getcartlist[_i2].id) {
  661. //找到商品一样的商品
  662. getcartlist[_i2].num = inputnum; //数量自增
  663. if (getcartlist[_i2].num > getcartlist[_i2].kcnum) {
  664. uni.showToast({
  665. title: '库存不足!',
  666. icon: 'none'
  667. });
  668. break; //跳出循环
  669. } else {
  670. getcartlist[_i2].total = parseFloat(getcartlist[_i2].num * getcartlist[_i2].price * 100) / 100;
  671. uni.setStorageSync('cartlist', getcartlist);
  672. break; //跳出循环
  673. }
  674. }
  675. }
  676. }
  677. }
  678. this.checkshownum();
  679. },
  680. inputchange: function inputchange(inputsl, inputnum, id, kcnum, type) {
  681. inputnum = parseFloat(inputsl.detail.value);
  682. var getcartlist = uni.getStorageSync('cartlist');
  683. if (inputnum > 0) {
  684. if (inputnum > kcnum) {
  685. uni.showToast({
  686. title: '库存不足',
  687. icon: 'none'
  688. });
  689. return;
  690. }
  691. this.inputadd(id, type, inputnum); //input框直接添加购物车
  692. } else {
  693. for (var i = 0; i < getcartlist.length; i++) {
  694. if (id == getcartlist[i].id) {
  695. //找到商品一样的商品
  696. getcartlist[i].num = 0;
  697. uni.setStorageSync('cartlist', getcartlist);
  698. break; //跳出循环
  699. }
  700. }
  701. this.checkshownum();
  702. }
  703. },
  704. inputchangeBz: function inputchangeBz(inputsl, inputnum, id, kcnum, type, index) {
  705. inputnum = inputsl.detail.value;
  706. var getcartlist = uni.getStorageSync('cartlist');
  707. var isbz = 0;
  708. for (var i = 0; i < getcartlist.length; i++) {
  709. if (id == getcartlist[i].id) {
  710. //找到商品一样的商品
  711. getcartlist[i].bz = inputnum;
  712. uni.setStorageSync('cartlist', getcartlist);
  713. isbz = 1;
  714. break; //跳出循环
  715. }
  716. }
  717. this.checkshownum();
  718. if (isbz == 0) {
  719. uni.showToast({
  720. title: '请您输入数量后再填备注',
  721. icon: 'none'
  722. });
  723. return;
  724. }
  725. },
  726. inputchangeFudw: function inputchangeFudw(inputsl, inputnum, id, kcnum, type, index) {
  727. inputnum = inputsl.detail.value;
  728. var getcartlist = uni.getStorageSync('cartlist');
  729. var is = 0;
  730. for (var i = 0; i < getcartlist.length; i++) {
  731. if (id == getcartlist[i].id) {
  732. //找到商品一样的商品
  733. getcartlist[i].fudw = inputnum;
  734. uni.setStorageSync('cartlist', getcartlist);
  735. is = 1;
  736. break; //跳出循环
  737. }
  738. }
  739. this.checkshownum();
  740. if (is == 0) {
  741. uni.showToast({
  742. title: '请您输入数量后再填副单位',
  743. icon: 'none'
  744. });
  745. return;
  746. }
  747. },
  748. //初始化购物车数据
  749. checkshownum: function checkshownum() {
  750. var getcartlist = uni.getStorageSync('cartlist');
  751. var carid = [];
  752. var carbz = [];
  753. var carfudw = [];
  754. for (var i = 0; i < getcartlist.length; i++) {
  755. carid[getcartlist[i]['id']] = getcartlist[i]['num'];
  756. carbz[getcartlist[i]['id']] = getcartlist[i]['bz'];
  757. carfudw[getcartlist[i]['id']] = getcartlist[i]['fudw'];
  758. }
  759. for (var _i3 = 0; _i3 < this.productList.length; _i3++) {
  760. if (carid[this.productList[_i3]['id']]) {
  761. this.$set(this.productList[_i3], 'inputnum', carid[this.productList[_i3]['id']]);
  762. this.$set(this.productList[_i3], 'bz', carbz[this.productList[_i3]['id']]);
  763. this.$set(this.productList[_i3], 'fudw', carfudw[this.productList[_i3]['id']]);
  764. } else {
  765. this.$set(this.productList[_i3], 'inputnum', 0);
  766. this.$set(this.productList[_i3], 'bz', '');
  767. this.$set(this.productList[_i3], 'fudw', '');
  768. }
  769. }
  770. for (var _i4 = 0; _i4 < this.tjproductList.length; _i4++) {
  771. if (carid[this.tjproductList[_i4]['id']]) {
  772. this.$set(this.tjproductList[_i4], 'inputnum', carid[this.tjproductList[_i4]['id']]);
  773. this.$set(this.tjproductList[_i4], 'bz', carbz[this.tjproductList[_i4]['id']]);
  774. this.$set(this.tjproductList[_i4], 'fudw', carfudw[this.tjproductList[_i4]['id']]);
  775. } else {
  776. this.$set(this.tjproductList[_i4], 'inputnum', 0);
  777. this.$set(this.tjproductList[_i4], 'bz', '');
  778. this.$set(this.tjproductList[_i4], 'fudw', '');
  779. }
  780. }
  781. },
  782. //根据数组指定key获取当前数组
  783. findarrbyid: function findarrbyid(id) {
  784. var arr = this.productList;
  785. for (var i = 0; i < arr.length; i++) {
  786. if (arr[i]['id'] == id) {
  787. //console.log(arr[i],'要保存的东西')
  788. return arr[i];
  789. break; //跳出循环
  790. }
  791. }
  792. },
  793. //推荐商品
  794. findarrbyid_tj: function findarrbyid_tj(id) {
  795. var arr = this.tjproductList;
  796. for (var i = 0; i < arr.length; i++) {
  797. if (arr[i]['id'] == id) {
  798. //console.log(arr[i],'要保存的东西')
  799. return arr[i];
  800. break; //跳出循环
  801. }
  802. }
  803. },
  804. //从本地存储中根据id获取数组
  805. findidfromstor: function findidfromstor(id) {
  806. var arr = uni.getStorageSync('cartlist');
  807. for (var i = 0; i < arr.length; i++) {
  808. if (arr[i]['id'] == id) {
  809. return arr[i];
  810. break; //跳出循环
  811. }
  812. }
  813. },
  814. discard: function discard() {
  815. //丢弃,防止事件冒泡而设
  816. },
  817. getColor: function getColor() {
  818. var _this9 = this;
  819. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  820. var reinfo;
  821. return _regenerator.default.wrap(function _callee9$(_context9) {
  822. while (1) {
  823. switch (_context9.prev = _context9.next) {
  824. case 0:
  825. _context9.next = 2;
  826. return _this9.$api.getitem({
  827. action: 'baseinfocolor'
  828. });
  829. case 2:
  830. reinfo = _context9.sent;
  831. _this9.color = reinfo.data[0].info;
  832. _this9.backcolor = reinfo.data[1].info;
  833. case 5:
  834. case "end":
  835. return _context9.stop();
  836. }
  837. }
  838. }, _callee9);
  839. }))();
  840. },
  841. base: function base() {
  842. var _this10 = this;
  843. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
  844. var baseinfo;
  845. return _regenerator.default.wrap(function _callee10$(_context10) {
  846. while (1) {
  847. switch (_context10.prev = _context10.next) {
  848. case 0:
  849. _context10.next = 2;
  850. return _this10.$api.baseset({
  851. action: 'baseinfo',
  852. key: 'mininame'
  853. });
  854. case 2:
  855. baseinfo = _context10.sent;
  856. uni.setNavigationBarTitle({
  857. title: baseinfo.data.info
  858. });
  859. case 4:
  860. case "end":
  861. return _context10.stop();
  862. }
  863. }
  864. }, _callee10);
  865. }))();
  866. },
  867. init: function init() {
  868. this.getbanner();
  869. this.getitem();
  870. //this.getcpdesc();
  871. // this.getgoodlist();
  872. this.gettjgoodlist();
  873. this.getnotice();
  874. // this.getColor();
  875. // this.baseinfo('gscolor');
  876. // this.baseinfo('gsbgcolor');
  877. this.base();
  878. },
  879. getValue2: function getValue2(e) {
  880. this.value = e;
  881. if (!this.value || this.value == '') {
  882. this.importUserId = this.userInfo.uid;
  883. } else {
  884. var getuserinfo = uni.getStorageSync('userinfo');
  885. if (getuserinfo) {
  886. var dataObj = getuserinfo;
  887. // 修改特定元素的值
  888. dataObj.uid = this.value;
  889. uni.setStorageSync('userinfo', dataObj);
  890. this.userInfo = dataObj;
  891. }
  892. this.importUserId = this.value;
  893. }
  894. }
  895. },
  896. onShow: function onShow() {
  897. // this.init();
  898. this.getgoodlist();
  899. this.gettjgoodlist();
  900. this.checkshownum();
  901. // this.baseinfo('gscolor');
  902. // this.baseinfo('gsbgcolor');
  903. var getuserinfo = uni.getStorageSync('userinfo');
  904. //console.log(getuserinfo);
  905. if (getuserinfo != '') {
  906. this.userInfo = getuserinfo;
  907. this.importUserId = getuserinfo.uid;
  908. this.options = getuserinfo.kharr;
  909. }
  910. },
  911. onLoad: function onLoad(e) {
  912. this.init();
  913. uni.showShareMenu({
  914. complete: function complete() {}
  915. });
  916. }
  917. };
  918. exports.default = _default;
  919. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  920. /***/ }),
  921. /***/ 47:
  922. /*!********************************************************************************!*\
  923. !*** D://zhonglmini/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
  924. \********************************************************************************/
  925. /*! no static exports found */
  926. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  927. "use strict";
  928. __webpack_require__.r(__webpack_exports__);
  929. /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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);
  930. /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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(_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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__);
  931. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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 _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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__));
  932. /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_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);
  933. /***/ }),
  934. /***/ 48:
  935. /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  936. !*** ./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://zhonglmini/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
  937. \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  938. /*! no static exports found */
  939. /***/ (function(module, exports, __webpack_require__) {
  940. // extracted by mini-css-extract-plugin
  941. if(false) { var cssReload; }
  942. /***/ })
  943. },[[38,"common/runtime","common/vendor"]]]);
  944. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map