完善收货地址管理

This commit is contained in:
2025-05-03 13:55:05 +08:00
parent 436a519966
commit 9c7e8b59c2
296 changed files with 45277 additions and 6329 deletions

View File

@ -1 +1 @@
<view class="my u-relative"><view class="my-bg"><view class="u-p-t-60 px32 text-fff"><navigator class="row-between" url="{{isLogin?'/pages/my/profile':'/pages/login/login'}}" hover-class="none"><view><block a:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="70449cd6-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" onVueInit="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>{{userInfo.nickname}}</view><view class="u-m-t-16">{{userInfo.mobile||userInfo.sn}}</view></view></view></block><block a:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="70449cd6-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" onVueInit="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>点击登录</view><view class="u-m-t-16">登录体验更多功能</view></view></view></block></view><view><u-icon vue-id="70449cd6-3" name="arrow-right" size="40" color="#fff" onVueInit="__l"></u-icon></view></navigator></view></view><view class="block px32"><view class="bg-white u-m-t-34 balance row-between br16 u-p-l-22 u-p-r-22 box-shadown"><view data-event-opts="{{[['tap',[['toWallet',['$event']]]]]}}" class="u-flex u-row-center" onTap="__e"><u-image vue-id="70449cd6-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="xs">余额</view></view></view><view><u-line class="u-line" vue-id="70449cd6-5" direction="col" length="47" onVueInit="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="70449cd6-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="xs">积分</view></view></view><view><u-line class="u-line" vue-id="70449cd6-7" direction="col" length="47" onVueInit="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="70449cd6-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="xs u-text-center">券</view></view></view></view><view class="bg-white u-m-t-32 service br16 u-p-t-32 u-p-l-22 u-p-r-22 box-shadown"><view class="nr bold-600">服务功能</view><view><u-grid vue-id="70449cd6-9" col="{{4}}" border="{{false}}" onVueInit="__l" vue-slots="{{['default']}}"><u-grid-item vue-id="{{('70449cd6-10')+','+('70449cd6-9')}}" onVueInit="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('70449cd6-11')+','+('70449cd6-10')}}" src="{{cloudPath+'img/icon_my_points.png'}}" width="64" height="64" onVueInit="__l"></u-image><view class="grid-text mt10">积分商城</view></u-grid-item><u-grid-item vue-id="{{('70449cd6-12')+','+('70449cd6-9')}}" onVueInit="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('70449cd6-13')+','+('70449cd6-12')}}" src="{{cloudPath+'img/icon_my_coupon.png'}}" width="64" height="64" onVueInit="__l"></u-image><view class="grid-text mt10">我的优惠券</view></u-grid-item><u-grid-item onTap="__e" vue-id="{{('70449cd6-14')+','+('70449cd6-9')}}" data-event-opts="{{[['^tap',[['toSetting']]]]}}" onVueInit="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('70449cd6-15')+','+('70449cd6-14')}}" src="{{cloudPath+'img/icon_my_setting.png'}}" width="64" height="64" onVueInit="__l"></u-image><view class="grid-text mt10">设置</view></u-grid-item><u-grid-item vue-id="{{('70449cd6-16')+','+('70449cd6-9')}}" onVueInit="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('70449cd6-17')+','+('70449cd6-16')}}" src="{{cloudPath+'img/icon_my_service.png'}}" width="64" height="64" onVueInit="__l"></u-image><view class="grid-text mt10">联系客服</view></u-grid-item></u-grid></view></view><view class="br16 u-m-t-32"><u-image vue-id="70449cd6-18" src="{{cloudPath+'img/activity.png'}}" height="264" onVueInit="__l"></u-image></view></view></view>
<view class="my u-relative"><view class="my-bg"><view class="u-p-t-60 px32 text-fff"><navigator class="row-between" url="{{isLogin?'/pages/my/profile':'/pages/login/login'}}" hover-class="none"><view><block a:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="70449cd6-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" onVueInit="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>{{userInfo.nickname}}</view><view class="u-m-t-16">{{userInfo.mobile||userInfo.sn}}</view></view></view></block><block a:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="70449cd6-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" onVueInit="__l"></u-avatar></view><view class="u-m-l-32 nr u-m-10"><view>点击登录</view><view class="u-m-t-16">登录体验更多功能</view></view></view></block></view><view><u-icon vue-id="70449cd6-3" name="arrow-right" size="40" color="#fff" onVueInit="__l"></u-icon></view></navigator></view></view><view class="block px32"><view class="bg-white u-m-t-34 balance row-between br16 u-p-l-22 u-p-r-22 box-shadown"><view data-event-opts="{{[['tap',[['toWallet',['$event']]]]]}}" class="u-flex u-row-center" onTap="__e"><u-image vue-id="70449cd6-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_money||0.00}}</view><view class="xs">余额</view></view></view><view><u-line class="u-line" vue-id="70449cd6-5" direction="col" length="47" onVueInit="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="70449cd6-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.user_integral||0}}</view><view class="xs">积分</view></view></view><view><u-line class="u-line" vue-id="70449cd6-7" direction="col" length="47" onVueInit="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="70449cd6-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" onVueInit="__l"></u-image><view class="u-m-l-60 u-text-center"><view class="nr">{{userInfo.coupon||0}}</view><view class="xs u-text-center">券</view></view></view></view><view class="bg-white u-m-t-32 service br16 u-p-t-32 u-p-l-22 u-p-r-22 box-shadown"><view class="nr bold-600">服务功能</view><view><u-grid vue-id="70449cd6-9" col="{{4}}" border="{{false}}" onVueInit="__l" vue-slots="{{['default']}}"><u-grid-item onClick="__e" vue-id="{{('70449cd6-10-'+index)+','+('70449cd6-9')}}" data-event-opts="{{[['^click',[['tapMenu',['$0'],[[['menuList','',index]]]]]]]}}" a:for="{{menuList}}" a:for-item="item" a:for-index="index" a:key="index" onVueInit="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('70449cd6-11-'+index)+','+('70449cd6-10-'+index)}}" src="{{item.image}}" width="64" height="64" onVueInit="__l"></u-image><view class="grid-text mt10">{{item.name}}</view></u-grid-item></u-grid></view></view><view class="br16 u-m-t-32"><u-image vue-id="70449cd6-12" src="{{cloudPath+'img/activity.png'}}" height="264" onVueInit="__l"></u-image></view></view></view>

View File

@ -80,22 +80,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 */ 343))
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 */ 369))
},
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 */ 284))
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 */ 310))
},
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 */ 305))
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 */ 331))
},
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 */ 350))
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 */ 376))
},
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 */ 357))
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 */ 383))
},
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 */ 364))
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 */ 390))
},
}
} catch (e) {
@ -159,39 +159,60 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 26));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 28));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
var _vuex = __webpack_require__(/*! vuex */ 29);
var _store = __webpack_require__(/*! @/api/store */ 36);
var _tools = __webpack_require__(/*! @/utils/tools */ 37);
var _login = __webpack_require__(/*! @/utils/login */ 45);
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'])), {}, {

View File

@ -1,5 +1,6 @@
{
"defaultTitle": "我的",
"pullRefresh": true,
"usingComponents": {
"u-avatar": "/components/uview-ui/components/u-avatar/u-avatar",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",

View File

@ -101,28 +101,28 @@ 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 */ 343))
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 */ 369))
},
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 */ 305))
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 */ 331))
},
uButton: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 291))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 317))
},
uPopup: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-popup/u-popup */ "components/uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-popup/u-popup.vue */ 518))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-popup/u-popup */ "components/uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-popup/u-popup.vue */ 502))
},
uForm: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-form/u-form */ "components/uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form/u-form.vue */ 385))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-form/u-form */ "components/uview-ui/components/u-form/u-form").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form/u-form.vue */ 411))
},
uFormItem: function () {
return Promise.all(/*! import() | components/uview-ui/components/u-form-item/u-form-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form-item/u-form-item.vue */ 392))
return Promise.all(/*! import() | components/uview-ui/components/u-form-item/u-form-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-form-item/u-form-item.vue */ 418))
},
uInput: function () {
return Promise.all(/*! import() | components/uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-input/u-input.vue */ 403))
return Promise.all(/*! import() | components/uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-input/u-input.vue */ 429))
},
mobileLogin: function () {
return __webpack_require__.e(/*! import() | components/mobile-login/mobile-login */ "components/mobile-login/mobile-login").then(__webpack_require__.bind(null, /*! @/components/mobile-login/mobile-login.vue */ 378))
return __webpack_require__.e(/*! import() | components/mobile-login/mobile-login */ "components/mobile-login/mobile-login").then(__webpack_require__.bind(null, /*! @/components/mobile-login/mobile-login.vue */ 404))
},
}
} catch (e) {

View File

@ -101,10 +101,10 @@ var components
try {
components = {
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 */ 305))
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 */ 331))
},
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 */ 350))
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 */ 376))
},
}
} catch (e) {