完善商品分类及商品管理

This commit is contained in:
2025-05-03 17:48:41 +08:00
parent 9c7e8b59c2
commit 889f2b8fca
115 changed files with 1418 additions and 272 deletions

View File

@ -177,6 +177,7 @@ exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
var _vuex = __webpack_require__(/*! vuex */ 29);
var _app = __webpack_require__(/*! @/api/app */ 46);
var _user = __webpack_require__(/*! @/api/user */ 30);
var _store = __webpack_require__(/*! @/api/store */ 36);
var _tools = __webpack_require__(/*! @/utils/tools */ 37);
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; }
@ -187,14 +188,29 @@ var _default = {
list: [{
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "昨夜星辰昨夜风,画楼西畔桂堂东"
}]
}],
userAddress: ''
};
},
onLoad: function onLoad() {
(0, _tools.setTabbar)();
this.getUserAddress();
},
onShow: function onShow() {},
methods: {
onShow: function onShow() {
this.getUser();
this.getCartNum();
},
methods: _objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getCartNum', 'getUser'])), {}, {
// 获取默认物流地址
getUserAddress: function getUserAddress() {
var _this = this;
(0, _user.getDefaultAddress)().then(function (res) {
if (res.coed == 1) {
var address = res.data.address;
_this.userAddress = "".concat(province, " ").concat(city, " ").concat(district, " ").concat(address);
}
});
},
// 选择门店
chooseStore: function chooseStore() {
uni.navigateTo({
@ -219,7 +235,7 @@ var _default = {
url: '/pages/signin/signin'
});
}
},
}),
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapGetters)(['cartNum', 'userInfo', 'inviteCode', 'appConfig', 'cityInfo'])), {}, {
statusBar: function statusBar() {
return uni.getSystemInfoSync().statusBarHeight + 10;