HHSLinkSLink/HSLink-wx/unpackage/dist/build/mp-weixin/common/main.js
2020-12-19 12:13:27 +08:00

1 line
2.4 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0103":function(e,t,n){"use strict";n.r(t);var r=n("28d6"),o=n.n(r);for(var u in r)"default"!==u&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},"28d6":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("7cc2"));function o(e){return e&&e.__esModule?e:{default:e}}var u={data:function(){return{unreadNumber:""}},onLaunch:function(){console.log("App Launch"),this.getTabBarNumber()},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},methods:{getTabBarNumber:function(){r.default.post("/hs/getTabBarNumber",{userId:e.getStorageSync("userInfo").user_id}).then((function(t){console.log("获取tabBar数字",t),t.data.unreadNumber>0?e.setTabBarBadge({index:3,text:t.data.unreadNumber.toString()}):e.removeTabBarBadge({index:3})}),(function(e){console.log("err",e)}))}}};t.default=u}).call(this,n("543d")["default"])},"515f":function(e,t,n){},7259:function(e,t,n){"use strict";var r=n("515f"),o=n.n(r);o.a},dea8:function(e,t,n){"use strict";n.r(t);var r=n("0103");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("7259");var u,a,c,f,i=n("f0c5"),l=Object(i["a"])(r["default"],u,a,!1,null,null,null,!1,c,f);t["default"]=l.exports},fba7:function(e,t,n){"use strict";(function(e){n("813a");var t=u(n("66fd")),r=u(n("dea8"));n("cc74"),n("ccb8"),n("45a9");var o=u(n("c09e"));function u(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.config.productionTip=!1,t.default.prototype.$store=o.default,r.default.mpType="app";var i=new t.default(c({store:o.default},r.default));e(i).$mount()}).call(this,n("543d")["createApp"])}},[["fba7","common/runtime","common/vendor"]]]);