userinfo.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/set/userinfo" ], {
  2. 109: function(e, n, t) {
  3. (function(e) {
  4. function n(e) {
  5. return e && e.__esModule ? e : {
  6. default: e
  7. };
  8. }
  9. t(4), n(t(2)), e(n(t(110)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 110: function(e, n, t) {
  13. t.r(n);
  14. var r = t(111), o = t(113);
  15. for (var u in o) "default" !== u && function(e) {
  16. t.d(n, e, function() {
  17. return o[e];
  18. });
  19. }(u);
  20. t(115);
  21. var c = t(13), i = Object(c.default)(o.default, r.render, r.staticRenderFns, !1, null, null, null, !1, r.components, void 0);
  22. i.options.__file = "pages/set/userinfo.vue", n.default = i.exports;
  23. },
  24. 111: function(e, n, t) {
  25. t.r(n);
  26. var r = t(112);
  27. t.d(n, "render", function() {
  28. return r.render;
  29. }), t.d(n, "staticRenderFns", function() {
  30. return r.staticRenderFns;
  31. }), t.d(n, "recyclableRender", function() {
  32. return r.recyclableRender;
  33. }), t.d(n, "components", function() {
  34. return r.components;
  35. });
  36. },
  37. 112: function(e, n, t) {
  38. t.r(n), t.d(n, "render", function() {
  39. return r;
  40. }), t.d(n, "staticRenderFns", function() {
  41. return u;
  42. }), t.d(n, "recyclableRender", function() {
  43. return o;
  44. }), t.d(n, "components", function() {});
  45. var r = function() {
  46. var e = this;
  47. e.$createElement;
  48. e._self._c;
  49. }, o = !1, u = [];
  50. r._withStripped = !0;
  51. },
  52. 113: function(e, n, t) {
  53. t.r(n);
  54. var r = t(114), o = t.n(r);
  55. for (var u in r) "default" !== u && function(e) {
  56. t.d(n, e, function() {
  57. return r[e];
  58. });
  59. }(u);
  60. n.default = o.a;
  61. },
  62. 114: function(e, n, t) {
  63. (function(e) {
  64. function r(e, n) {
  65. var t = Object.keys(e);
  66. if (Object.getOwnPropertySymbols) {
  67. var r = Object.getOwnPropertySymbols(e);
  68. n && (r = r.filter(function(n) {
  69. return Object.getOwnPropertyDescriptor(e, n).enumerable;
  70. })), t.push.apply(t, r);
  71. }
  72. return t;
  73. }
  74. function o(e, n, t) {
  75. return n in e ? Object.defineProperty(e, n, {
  76. value: t,
  77. enumerable: !0,
  78. configurable: !0,
  79. writable: !0
  80. }) : e[n] = t, e;
  81. }
  82. Object.defineProperty(n, "__esModule", {
  83. value: !0
  84. }), n.default = void 0;
  85. var u = t(6), c = t(46), i = {
  86. data: function() {
  87. return {
  88. name: ""
  89. };
  90. },
  91. computed: function(e) {
  92. for (var n = 1; n < arguments.length; n++) {
  93. var t = null != arguments[n] ? arguments[n] : {};
  94. n % 2 ? r(Object(t), !0).forEach(function(n) {
  95. o(e, n, t[n]);
  96. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : r(Object(t)).forEach(function(n) {
  97. Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
  98. });
  99. }
  100. return e;
  101. }({}, (0, u.mapState)("user", [ "userInfo" ])),
  102. onShow: function(e) {
  103. this.name = this.userInfo.nickname + "";
  104. },
  105. methods: {
  106. switchChange: function(e) {
  107. this.addressData.default = e.value;
  108. },
  109. confirm: function() {
  110. var n = this;
  111. (0, c.userEdit)({
  112. nickname: this.name,
  113. avatar: this.userInfo.avatar
  114. }).then(function(t) {
  115. n.$api.msg("修改成功"), setTimeout(function() {
  116. e.switchTab({
  117. url: "/pages/user/user"
  118. });
  119. }, 1e3), console.log(t);
  120. }).catch(function(e) {
  121. console.log(e);
  122. });
  123. }
  124. }
  125. };
  126. n.default = i;
  127. }).call(this, t(1).default);
  128. },
  129. 115: function(e, n, t) {
  130. t.r(n);
  131. var r = t(116), o = t.n(r);
  132. for (var u in r) "default" !== u && function(e) {
  133. t.d(n, e, function() {
  134. return r[e];
  135. });
  136. }(u);
  137. n.default = o.a;
  138. },
  139. 116: function(e, n, t) {}
  140. }, [ [ 109, "common/runtime", "common/vendor" ] ] ]);