完善收货地址管理
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'])), {}, {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"u-avatar": "/components/uview-ui/components/u-avatar/u-avatar",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
|
||||
@ -1 +1 @@
|
||||
<view class="my u-relative"><view class="my-bg"><view class="u-text-center text-fff lg" style="{{'padding-top:'+(statusBar+'px')+';'}}">我的</view><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 wx:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__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 wx:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__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="704e9d00-3" name="arrow-right" size="40" color="#fff" bind:__l="__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" bindtap="__e"><u-image vue-id="704e9d00-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__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="704e9d00-5" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__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="704e9d00-7" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__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="704e9d00-9" col="{{4}}" border="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><u-grid-item vue-id="{{('704e9d00-10')+','+('704e9d00-9')}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-11')+','+('704e9d00-10')}}" src="{{cloudPath+'img/icon_my_points.png'}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">积分商城</view></u-grid-item><u-grid-item vue-id="{{('704e9d00-12')+','+('704e9d00-9')}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-13')+','+('704e9d00-12')}}" src="{{cloudPath+'img/icon_my_coupon.png'}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">我的优惠券</view></u-grid-item><u-grid-item bind:tap="__e" vue-id="{{('704e9d00-14')+','+('704e9d00-9')}}" data-event-opts="{{[['^tap',[['toSetting']]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-15')+','+('704e9d00-14')}}" src="{{cloudPath+'img/icon_my_setting.png'}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">设置</view></u-grid-item><u-grid-item vue-id="{{('704e9d00-16')+','+('704e9d00-9')}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-17')+','+('704e9d00-16')}}" src="{{cloudPath+'img/icon_my_service.png'}}" width="64" height="64" bind:__l="__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="704e9d00-18" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view></view>
|
||||
<view class="my u-relative"><view class="my-bg"><view class="u-text-center text-fff lg" style="{{'padding-top:'+(statusBar+'px')+';'}}">我的</view><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 wx:if="{{isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-1" src="{{userInfo.avatar?userInfo.avatar:cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__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 wx:if="{{!isLogin}}"><view class="row u-col-top"><view><u-avatar vue-id="704e9d00-2" src="{{cloudPath+'img/icon_avatar_empty2.png'}}" size="112" bind:__l="__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="704e9d00-3" name="arrow-right" size="40" color="#fff" bind:__l="__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" bindtap="__e"><u-image vue-id="704e9d00-4" src="{{cloudPath+'img/icon_balance.png'}}" width="52" height="52" bind:__l="__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="704e9d00-5" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-6" src="{{cloudPath+'img/icon_points.png'}}" width="52" height="52" bind:__l="__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="704e9d00-7" direction="col" length="47" bind:__l="__l"></u-line></view><view class="u-flex u-row-center"><u-image vue-id="704e9d00-8" src="{{cloudPath+'img/icon_coupon.png'}}" width="52" height="52" bind:__l="__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="704e9d00-9" col="{{4}}" border="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-grid-item bind:click="__e" vue-id="{{('704e9d00-10-'+index)+','+('704e9d00-9')}}" data-event-opts="{{[['^click',[['tapMenu',['$0'],[[['menuList','',index]]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><u-image vue-id="{{('704e9d00-11-'+index)+','+('704e9d00-10-'+index)}}" src="{{item.image}}" width="64" height="64" bind:__l="__l"></u-image><view class="grid-text mt10">{{item.name}}</view></u-grid-item></block></u-grid></view></view><view class="br16 u-m-t-32"><u-image vue-id="704e9d00-12" src="{{cloudPath+'img/activity.png'}}" height="264" bind:__l="__l"></u-image></view></view></view>
|
||||
16
unpackage/dist/dev/mp-weixin/pages/my/profile.js
vendored
16
unpackage/dist/dev/mp-weixin/pages/my/profile.js
vendored
@ -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 */ 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))
|
||||
},
|
||||
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))
|
||||
},
|
||||
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 */ 299))
|
||||
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 */ 325))
|
||||
},
|
||||
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 */ 540))
|
||||
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 */ 510))
|
||||
},
|
||||
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 */ 393))
|
||||
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 */ 419))
|
||||
},
|
||||
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 */ 400))
|
||||
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 */ 426))
|
||||
},
|
||||
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 */ 411))
|
||||
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 */ 437))
|
||||
},
|
||||
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 */ 386))
|
||||
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 */ 412))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
@ -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 */ 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))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user