123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/user" ], {
- 167: function(e, n, t) {
- (function(e) {
- function n(e) {
- return e && e.__esModule ? e : {
- default: e
- };
- }
- t(4), n(t(2)), e(n(t(168)).default);
- }).call(this, t(1).createPage);
- },
- 168: function(e, n, t) {
- t.r(n);
- var o = t(169), r = t(171);
- for (var i in r) "default" !== i && function(e) {
- t.d(n, e, function() {
- return r[e];
- });
- }(i);
- t(173);
- var c = t(13), u = Object(c.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- u.options.__file = "pages/user/user.vue", n.default = u.exports;
- },
- 169: function(e, n, t) {
- t.r(n);
- var o = t(170);
- t.d(n, "render", function() {
- return o.render;
- }), t.d(n, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), t.d(n, "recyclableRender", function() {
- return o.recyclableRender;
- }), t.d(n, "components", function() {
- return o.components;
- });
- },
- 170: function(e, n, t) {
- var o;
- t.r(n), t.d(n, "render", function() {
- return r;
- }), t.d(n, "staticRenderFns", function() {
- return c;
- }), t.d(n, "recyclableRender", function() {
- return i;
- }), t.d(n, "components", function() {
- return o;
- });
- try {
- o = {
- uniList: function() {
- return t.e("components/uni-list/uni-list").then(t.bind(null, 483));
- },
- uniListItem: function() {
- return t.e("components/uni-list-item/uni-list-item").then(t.bind(null, 490));
- }
- };
- } catch (e) {
- if (-1 === e.message.indexOf("Cannot find module") || -1 === e.message.indexOf(".vue")) throw e;
- console.error(e.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var r = function() {
- var e = this;
- e.$createElement;
- e._self._c;
- }, i = !1, c = [];
- r._withStripped = !0;
- },
- 171: function(e, n, t) {
- t.r(n);
- var o = t(172), r = t.n(o);
- for (var i in o) "default" !== i && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(i);
- n.default = r.a;
- },
- 172: function(e, n, t) {
- (function(e) {
- function o(e, n) {
- var t = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e);
- n && (o = o.filter(function(n) {
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
- })), t.push.apply(t, o);
- }
- return t;
- }
- function r(e) {
- for (var n = 1; n < arguments.length; n++) {
- var t = null != arguments[n] ? arguments[n] : {};
- n % 2 ? o(Object(t), !0).forEach(function(n) {
- i(e, n, t[n]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : o(Object(t)).forEach(function(n) {
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
- });
- }
- return e;
- }
- function i(e, n, t) {
- return n in e ? Object.defineProperty(e, n, {
- value: t,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[n] = t, e;
- }
- Object.defineProperty(n, "__esModule", {
- value: !0
- }), n.default = void 0;
- var c = t(6), u = t(27), a = t(37), s = {
- components: {
- uniList: function() {
- t.e("components/uni-list/uni-list").then(function() {
- return resolve(t(483));
- }.bind(null, t)).catch(t.oe);
- },
- uniListItem: function() {
- t.e("components/uni-list-item/uni-list-item").then(function() {
- return resolve(t(490));
- }.bind(null, t)).catch(t.oe);
- }
- },
- data: function() {
- return {
- coverTransform: "translateY(0px)",
- coverTransition: "0s",
- moving: !1,
- userDowm: 0,
- userMaxDowm: 0,
- orderinfo: {
- complete_count: 0,
- received_count: 0,
- unshipped_count: 0,
- order_count: 0
- },
- levelData: {
- icon: "",
- name: ""
- },
- watchful: !0
- };
- },
- onShow: function() {
- this.hasLogin && this.loadBaseData();
- },
- onReady: function() {
- var n = this;
- e.createSelectorQuery().select(".container").fields({
- size: !0
- }, function(e) {
- n.userDowm = Math.floor(e.width / 750 * 200), n.userMaxDowm = Math.floor(e.width / 750 * 250);
- }).exec();
- },
- computed: r(r({}, (0, c.mapState)("user", [ "userInfo", "orderInfo", "hasLogin" ])), (0,
- c.mapState)([ "isShowIllegality" ])),
- methods: r(r({}, (0, c.mapMutations)("user", [ "setUserInfo", "setOrderInfo" ])), {}, {
- loadBaseData: function() {
- var e = this;
- (0, a.getUserInfo)({}).then(function(n) {
- var t = n.data;
- (0, u.orderData)({}).then(function(n) {
- var t = n.data;
- e.setOrderInfo(t);
- }).catch(function(n) {
- e.setOrderInfo({
- complete_count: 0,
- received_count: 0,
- unshipped_count: 0,
- order_count: 0,
- unpaid_count: 0
- });
- }), e.setUserInfo(t), (0, u.userlevel)().then(function(n) {
- console.log(n);
- for (var t = 0; t < n.data.list.length; t++) if (n.data.list[t].id == e.userInfo.level) {
- e.levelData.icon = n.data.list[t].icon, e.levelData.name = n.data.list[t].explain;
- break;
- }
- }).catch(function(e) {
- console.log(e);
- });
- }).catch(function(e) {
- console.log(e);
- });
- },
- navTo: function(n) {
- this.hasLogin || (n = "/pages/public/login", n = "/pages/public/wxLogin"), e.navigateTo({
- url: n
- });
- }
- })
- };
- n.default = s;
- }).call(this, t(1).default);
- },
- 173: function(e, n, t) {
- t.r(n);
- var o = t(174), r = t.n(o);
- for (var i in o) "default" !== i && function(e) {
- t.d(n, e, function() {
- return o[e];
- });
- }(i);
- n.default = r.a;
- },
- 174: function(e, n, t) {}
- }, [ [ 167, "common/runtime", "common/vendor" ] ] ]);
|