完善收货地址管理
This commit is contained in:
71
unpackage/dist/dev/mp-weixin/pages/my/my.js
vendored
71
unpackage/dist/dev/mp-weixin/pages/my/my.js
vendored
@ -101,22 +101,22 @@ var components
|
||||
try {
|
||||
components = {
|
||||
uAvatar: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-avatar/u-avatar */ "components/uview-ui/components/u-avatar/u-avatar").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-avatar/u-avatar.vue */ 351))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-avatar/u-avatar */ "components/uview-ui/components/u-avatar/u-avatar").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-avatar/u-avatar.vue */ 377))
|
||||
},
|
||||
uIcon: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 292))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-icon/u-icon */ "components/uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-icon/u-icon.vue */ 318))
|
||||
},
|
||||
uImage: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 313))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 339))
|
||||
},
|
||||
uLine: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-line/u-line */ "components/uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-line/u-line.vue */ 358))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-line/u-line */ "components/uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-line/u-line.vue */ 384))
|
||||
},
|
||||
uGrid: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-grid/u-grid */ "components/uview-ui/components/u-grid/u-grid").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-grid/u-grid.vue */ 365))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-grid/u-grid */ "components/uview-ui/components/u-grid/u-grid").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-grid/u-grid.vue */ 391))
|
||||
},
|
||||
uGridItem: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-grid-item/u-grid-item */ "components/uview-ui/components/u-grid-item/u-grid-item").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-grid-item/u-grid-item.vue */ 372))
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-grid-item/u-grid-item */ "components/uview-ui/components/u-grid-item/u-grid-item").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-grid-item/u-grid-item.vue */ 398))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
@ -180,39 +180,60 @@ Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
|
||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||
var _vuex = __webpack_require__(/*! vuex */ 33);
|
||||
var _store = __webpack_require__(/*! @/api/store */ 40);
|
||||
var _tools = __webpack_require__(/*! @/utils/tools */ 41);
|
||||
var _login = __webpack_require__(/*! @/utils/login */ 49);
|
||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
||||
var _default = {
|
||||
data: function data() {
|
||||
return {};
|
||||
return {
|
||||
menuList: []
|
||||
};
|
||||
},
|
||||
onShow: function onShow() {
|
||||
this.getUser();
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
console.log(this.isLogin);
|
||||
console.log(this.userInfo);
|
||||
this.getMenuFun();
|
||||
},
|
||||
methods: _objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getUser'])), {}, {
|
||||
// 跳转个人信息
|
||||
toProfile: function toProfile() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/profile'
|
||||
});
|
||||
// 获取菜单
|
||||
getMenuFun: function getMenuFun() {
|
||||
var _this = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||
var _yield$getMenu, data, code;
|
||||
return _regenerator.default.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0, _store.getMenu)({
|
||||
type: 2
|
||||
});
|
||||
case 2:
|
||||
_yield$getMenu = _context.sent;
|
||||
data = _yield$getMenu.data;
|
||||
code = _yield$getMenu.code;
|
||||
if (code == 1) {
|
||||
_this.menuList = data;
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
},
|
||||
// 跳转我的钱包
|
||||
toWallet: function toWallet() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/wallet'
|
||||
});
|
||||
},
|
||||
// 去设置页
|
||||
toSetting: function toSetting() {
|
||||
uni.navigateTo({
|
||||
url: '/bundle/pages/setting/setting'
|
||||
});
|
||||
// 点击菜单跳转页面
|
||||
tapMenu: function tapMenu(item) {
|
||||
if (!this.isLogin) return (0, _login.toLogin)();
|
||||
(0, _tools.menuJump)(item);
|
||||
}
|
||||
}),
|
||||
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapGetters)(['cartNum', 'userInfo', 'inviteCode', 'appConfig'])), {}, {
|
||||
|
||||
Reference in New Issue
Block a user