medicine.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/category/medicine"],{
  2. /***/ 91:
  3. /*!*********************************************************************************************!*\
  4. !*** D:/desktop/专高五/智能医疗问诊/code/MedSmartApp/main.js?{"page":"pages%2Fcategory%2Fmedicine"} ***!
  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 _medicine = _interopRequireDefault(__webpack_require__(/*! ./pages/category/medicine.vue */ 92));
  14. // @ts-ignore
  15. wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
  16. createPage(_medicine.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. /***/ 92:
  20. /*!**************************************************************************!*\
  21. !*** D:/desktop/专高五/智能医疗问诊/code/MedSmartApp/pages/category/medicine.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 _medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./medicine.vue?vue&type=template&id=d7dd60fc&scoped=true& */ 93);
  28. /* harmony import */ var _medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./medicine.vue?vue&type=script&lang=js& */ 95);
  29. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _medicine_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 _medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  30. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
  31. var renderjs
  32. /* normalize component */
  33. var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  34. _medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  35. _medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  36. _medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  37. false,
  38. null,
  39. "d7dd60fc",
  40. null,
  41. false,
  42. _medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  43. renderjs
  44. )
  45. component.options.__file = "pages/category/medicine.vue"
  46. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  47. /***/ }),
  48. /***/ 93:
  49. /*!*********************************************************************************************************************!*\
  50. !*** D:/desktop/专高五/智能医疗问诊/code/MedSmartApp/pages/category/medicine.vue?vue&type=template&id=d7dd60fc&scoped=true& ***!
  51. \*********************************************************************************************************************/
  52. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  53. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54. "use strict";
  55. __webpack_require__.r(__webpack_exports__);
  56. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./medicine.vue?vue&type=template&id=d7dd60fc&scoped=true& */ 94);
  57. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  58. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  59. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
  60. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_template_id_d7dd60fc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  61. /***/ }),
  62. /***/ 94:
  63. /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  64. !*** ./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:/desktop/专高五/智能医疗问诊/code/MedSmartApp/pages/category/medicine.vue?vue&type=template&id=d7dd60fc&scoped=true& ***!
  65. \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  66. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  67. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68. "use strict";
  69. __webpack_require__.r(__webpack_exports__);
  70. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  71. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  72. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  73. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  74. var components
  75. var render = function () {
  76. var _vm = this
  77. var _h = _vm.$createElement
  78. var _c = _vm._self._c || _h
  79. }
  80. var recyclableRender = false
  81. var staticRenderFns = []
  82. render._withStripped = true
  83. /***/ }),
  84. /***/ 95:
  85. /*!***************************************************************************************************!*\
  86. !*** D:/desktop/专高五/智能医疗问诊/code/MedSmartApp/pages/category/medicine.vue?vue&type=script&lang=js& ***!
  87. \***************************************************************************************************/
  88. /*! no static exports found */
  89. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  90. "use strict";
  91. __webpack_require__.r(__webpack_exports__);
  92. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./medicine.vue?vue&type=script&lang=js& */ 96);
  93. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  94. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_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 _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  95. /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_medicine_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  96. /***/ }),
  97. /***/ 96:
  98. /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  99. !*** ./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:/desktop/专高五/智能医疗问诊/code/MedSmartApp/pages/category/medicine.vue?vue&type=script&lang=js& ***!
  100. \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  101. /*! no static exports found */
  102. /***/ (function(module, exports, __webpack_require__) {
  103. "use strict";
  104. /* WEBPACK VAR INJECTION */(function(uni) {
  105. Object.defineProperty(exports, "__esModule", {
  106. value: true
  107. });
  108. exports.default = void 0;
  109. //
  110. //
  111. //
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. //
  120. //
  121. //
  122. //
  123. //
  124. //
  125. //
  126. //
  127. //
  128. //
  129. //
  130. //
  131. //
  132. //
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //
  139. //
  140. //
  141. //
  142. //
  143. //
  144. //
  145. //
  146. //
  147. //
  148. //
  149. //
  150. //
  151. //
  152. //
  153. //
  154. //
  155. //
  156. //
  157. //
  158. //
  159. //
  160. var _default = {
  161. data: function data() {
  162. return {
  163. searchKeyword: '',
  164. // 搜索关键词
  165. medicineList: {
  166. records: [],
  167. total: 0
  168. },
  169. // 药品列表(包含分页信息)
  170. isLoading: false,
  171. // 加载状态
  172. pageNum: 1,
  173. // 当前页码
  174. pageSize: 10 // 每页显示数量
  175. };
  176. },
  177. methods: {
  178. /**
  179. * 搜索药品
  180. */
  181. searchDrugs: function searchDrugs() {
  182. this.pageNum = 1; // 重置页码
  183. this.fetchDrugs(); // 执行查询
  184. },
  185. /**
  186. * 获取药品列表
  187. */
  188. fetchDrugs: function fetchDrugs() {
  189. var _this = this;
  190. if (this.isLoading) return; // 防止重复请求
  191. this.isLoading = true;
  192. uni.request({
  193. url: 'http://localhost:8080/drug/drugAll',
  194. // 后端接口地址
  195. method: 'POST',
  196. data: {
  197. pageNum: this.pageNum,
  198. pageSize: this.pageSize // 适应症和药名搜索合并到同一个关键词
  199. },
  200. success: function success(res) {
  201. if (res.statusCode === 200 && res.data.code === 200) {
  202. _this.medicineList = res.data.data; // 假设后端返回格式为{code: 200, data: PageInfo}
  203. } else {
  204. uni.showToast({
  205. title: res.data.msg || '查询失败',
  206. icon: 'none',
  207. duration: 1500
  208. });
  209. }
  210. },
  211. fail: function fail(err) {
  212. console.error('药品查询失败:', err);
  213. uni.showToast({
  214. title: '网络请求失败,请检查网络',
  215. icon: 'none',
  216. duration: 1500
  217. });
  218. },
  219. complete: function complete() {
  220. _this.isLoading = false;
  221. }
  222. });
  223. },
  224. /**
  225. * 查看药品详情
  226. * @param {Object} medicine 药品信息
  227. */
  228. viewMedicineDetail: function viewMedicineDetail(medicine) {
  229. uni.navigateTo({
  230. url: "/pages/medicine/detail?id=".concat(medicine.id)
  231. });
  232. }
  233. },
  234. // 页面加载时初始化查询
  235. onLoad: function onLoad() {
  236. this.fetchDrugs();
  237. }
  238. };
  239. exports.default = _default;
  240. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  241. /***/ })
  242. },[[91,"common/runtime","common/vendor"]]]);
  243. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/category/medicine.js.map