- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
1 line
851 B
JavaScript
1 line
851 B
JavaScript
"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function safeGetStorageJSON(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=wx.getStorageSync(t);if(!r)return e;if("string"==typeof r)try{var o=JSON.parse(r);return o&&"object"===_typeof(o)?o:e}catch(r){try{wx.removeStorageSync(t)}catch(t){}return e}return r&&"object"===_typeof(r)?r:e}catch(t){return e}}function safeSetStorageJSON(t,e){try{return wx.setStorageSync(t,JSON.stringify(e||{})),!0}catch(t){return!1}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeGetStorageJSON=safeGetStorageJSON,exports.safeSetStorageJSON=safeSetStorageJSON; |