my.js
2.9 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{"01ce":function(e,n,t){"use strict";t.r(n);var o=t("a776"),r=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=r.a},"24c2":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return o}));var o={uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"cfe0"))}},r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.showMoney?null:e.hideDigits(e.userAmout));e._isMounted||(e.e0=function(n){e.showMoney=!e.showMoney}),e.$mp.data=Object.assign({},{$root:{m0:t}})},u=[]},"803a":function(e,n,t){},9991:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("c5a3");o(t("3240"));var r=o(t("baf4"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},a776:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t("7eb4")),u=o(t("ee10")),a=t("ead9"),c=t("c748"),i={components:{FunctionList:function(){Promise.all([t.e("common/vendor"),t.e("components/my/functionList")]).then(function(){return resolve(t("17ba"))}.bind(null,t)).catch(t.oe)},UserList:function(){Promise.all([t.e("common/vendor"),t.e("components/my/userList")]).then(function(){return resolve(t("20ff"))}.bind(null,t)).catch(t.oe)},MyHeader:function(){Promise.all([t.e("common/vendor"),t.e("components/my/myHeader")]).then(function(){return resolve(t("8fc7"))}.bind(null,t)).catch(t.oe)}},data:function(){return{pro_http:c.pro_http,showMoney:!0,userAmout:0,userInfo:{}}},computed:{hideDigits:function(){return function(e){return e.replace(/\d/g,"*")}}},onLoad:function(){var e=this;return(0,u.default)(r.default.mark((function n(){var t,o;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,a.getUserAmout)();case 2:t=n.sent,o=t.money,e.userAmout=o;case 5:case"end":return n.stop()}}),n)})))()},onShow:function(){var n=this;return(0,u.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getUserInfo)();case 2:n.userInfo=t.sent,n.userInfo.avatar=e.$u.test.url(n.userInfo.avatar)?n.userInfo.avatar:c.pro_http+n.userInfo.avatar;case 4:case"end":return t.stop()}}),t)})))()},methods:{goRouter:function(n){e.navigateTo({url:n})}}};n.default=i}).call(this,t("df3c")["default"])},baf4:function(e,n,t){"use strict";t.r(n);var o=t("24c2"),r=t("01ce");for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);t("e3e3");var a=t("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"b7dcc1fa",null,!1,o["a"],void 0);n["default"]=c.exports},e3e3:function(e,n,t){"use strict";var o=t("803a"),r=t.n(o);r.a}},[["9991","common/runtime","common/vendor"]]]);