From 411f36150b6219b1a84cb630629b7e090d0ade0c Mon Sep 17 00:00:00 2001 From: mabo Date: Mon, 31 May 2021 18:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E=EF=BC=8C?= =?UTF-8?q?=E7=AB=99=E5=86=85=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/api/member.js | 36 ++++ .../src/components/goodsDetail/ShowGoods.vue | 1 - buyer/src/components/header/Header.vue | 16 +- buyer/src/main.js | 3 +- buyer/src/pages/PointGoods.vue | 171 ++++++++++++++++++ buyer/src/pages/PointMall.vue | 40 +++- buyer/src/pages/ShoppingCart.vue | 27 --- .../pages/home/memberCenter/CommentList.vue | 4 + .../home/memberCenter/memberMsg/MsgDetail.vue | 17 ++ .../home/memberCenter/memberMsg/MsgList.vue | 41 +++++ buyer/src/pages/user/menu.js | 5 + buyer/src/router/index.js | 14 ++ .../promotion/coupon/memberReceiveCoupon.vue | 48 ++--- manager/src/views/sys/message/sms.scss | 4 - 14 files changed, 358 insertions(+), 69 deletions(-) create mode 100644 buyer/src/pages/PointGoods.vue create mode 100644 buyer/src/pages/home/memberCenter/memberMsg/MsgDetail.vue create mode 100644 buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js index 063ccd17..efa6255a 100644 --- a/buyer/src/api/member.js +++ b/buyer/src/api/member.js @@ -441,3 +441,39 @@ export function memberPointHistory (params) { params }); } +/** + * 分页获取会员站内信 + * @param {Object} params 请求参数,包括pageNumber、pageSize、status + */ +export function memberMsgList (params) { + return request({ + url: `/buyer/member/message`, + method: Method.GET, + needToken: true, + params + }); +} +/** + * 设置消息为已读 + * @param {String} messageId 消息id + */ + export function readMemberMsg (params) { + return request({ + url: `/buyer/member/message`, + method: Method.PUT, + needToken: true, + params + }); +} +/** + * 删除会员消息 + * @param {String} messageId 消息id + */ + export function delMemberMsg (params) { + return request({ + url: `/buyer/member/message`, + method: Method.DELETE, + needToken: true, + params + }); +} diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 871f9ecd..cd79acca 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -20,7 +20,6 @@
{{isCollected?'已收藏':'收藏'}} -
diff --git a/buyer/src/components/header/Header.vue b/buyer/src/components/header/Header.vue index 0c621781..8293b17a 100644 --- a/buyer/src/components/header/Header.vue +++ b/buyer/src/components/header/Header.vue @@ -51,16 +51,16 @@ -
  • 我的订单
  • -
  • 我的足迹
  • -
  • +
  • 我的订单
  • +
  • 我的足迹
  • +
  • 我的消息
  • +
  • {{cartNum < 100 ? cartNum : '99'}} 购物车 @@ -260,12 +260,12 @@ export default { float: left; font-size: 14px; line-height: 35px; - margin-right: 15px; + margin-right: 10px; font-weight: bold; } .nav a,.nav-item { text-decoration: none; - padding-left: 15px; + padding-left: 10px; border-left: 1px solid #ccc; color: #999; cursor: pointer; @@ -406,9 +406,7 @@ export default { .sign-out p { font-size: 12px; } -.cart-icon{ - padding: 0 6px; -} + .goods-title:hover { color: $theme_color; } diff --git a/buyer/src/main.js b/buyer/src/main.js index 752532ae..001edee4 100644 --- a/buyer/src/main.js +++ b/buyer/src/main.js @@ -37,7 +37,8 @@ Vue.prototype.linkTo = function (url) { window.open(url, '_blank') } } -Vue.prototype.connectCs = function (sign = '37ef9b97807d03c6741298ed4eb5b536d2d238e08a3c00fb01fe48f03a569974c99ad767e72c04b3165ef29aca2c488b505fe4ca') { // 联系客服 +// 联系客服 +Vue.prototype.connectCs = function (sign = '37ef9b97807d03c6741298ed4eb5b536d2d238e08a3c00fb01fe48f03a569974c99ad767e72c04b3165ef29aca2c488b505fe4ca') { const url = 'https://yzf.qq.com/xv/web/static/chat/index.html?sign=' + sign window.open(url, '_blank') } diff --git a/buyer/src/pages/PointGoods.vue b/buyer/src/pages/PointGoods.vue new file mode 100644 index 00000000..7a69eff6 --- /dev/null +++ b/buyer/src/pages/PointGoods.vue @@ -0,0 +1,171 @@ + + + + diff --git a/buyer/src/pages/PointMall.vue b/buyer/src/pages/PointMall.vue index 23d3df3e..7cf5ae32 100644 --- a/buyer/src/pages/PointMall.vue +++ b/buyer/src/pages/PointMall.vue @@ -4,7 +4,7 @@
      -
    • {{cate.name}}
    • +
    • {{cate.name}}

    积分商品

    @@ -39,6 +39,13 @@ +
    + + +
    @@ -79,11 +86,27 @@ export default { } }) }, - selectCate (id) { + selectCate (id) { // 选择商品分类 this.params.pointsGoodsCategoryId = id this.getList() this.$router.push({query: {categoryId: id}}) - } + }, + goGoodsDetail (skuId, goodsId) { // 跳转商品详情 + let routerUrl = this.$router.resolve({ + path: '/goodsDetail', + query: {skuId, goodsId} + }) + window.open(routerUrl.href, '_blank') + }, + changePageNum (val) { // 修改页码 + this.params.pageNumber = val; + this.getList() + }, + changePageSize (val) { // 修改页数 + this.pageNumber = 1; + this.params.pageSize = val; + this.getList() + }, } } @@ -104,8 +127,19 @@ export default { margin: 0 10px; &:hover{ cursor: pointer; + color: $theme_color; } } + .selected-cate{ + color: $theme_color; + } + +} +.page-size { + width: 1200px; + margin: 10px auto; + display: flex; + justify-content: flex-end; } .promotion-decorate::before,.promotion-decorate::after{ background-image: url('../../static/sprite@2x.png'); diff --git a/buyer/src/pages/ShoppingCart.vue b/buyer/src/pages/ShoppingCart.vue index cf38d0e5..843fc981 100644 --- a/buyer/src/pages/ShoppingCart.vue +++ b/buyer/src/pages/ShoppingCart.vue @@ -34,33 +34,6 @@ - diff --git a/buyer/src/pages/home/memberCenter/CommentList.vue b/buyer/src/pages/home/memberCenter/CommentList.vue index 661669fe..ad3839c1 100644 --- a/buyer/src/pages/home/memberCenter/CommentList.vue +++ b/buyer/src/pages/home/memberCenter/CommentList.vue @@ -112,6 +112,10 @@ export default { \ No newline at end of file diff --git a/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue b/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue new file mode 100644 index 00000000..d36c6927 --- /dev/null +++ b/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue @@ -0,0 +1,41 @@ + + + \ No newline at end of file diff --git a/buyer/src/pages/user/menu.js b/buyer/src/pages/user/menu.js index 78c3c093..7a9cf9ab 100644 --- a/buyer/src/pages/user/menu.js +++ b/buyer/src/pages/user/menu.js @@ -41,6 +41,11 @@ const member = [{ title: '账户安全', path: 'AccountSafe' }, + { + icon: '', + title: '我的消息', + path: 'MsgList' + }, { icon: '', title: '我的足迹', diff --git a/buyer/src/router/index.js b/buyer/src/router/index.js index 5eb51b0d..e8272c84 100644 --- a/buyer/src/router/index.js +++ b/buyer/src/router/index.js @@ -47,6 +47,8 @@ const ComplainList = resolve => require(['@/pages/home/memberCenter/ComplainList const ComplainDetail = resolve => require(['@/pages/home/memberCenter/ComplainDetail'], resolve); const Invoice = resolve => require(['@/pages/home/memberCenter/Invoice'], resolve); const Point = resolve => require(['@/pages/home/memberCenter/Point'], resolve); +const MsgList = resolve => require(['@/pages/home/memberCenter/memberMsg/MsgList'], resolve); +const MsgDetail = resolve => require(['@/pages/home/memberCenter/memberMsg/MsgDetail'], resolve); /* * 会员中心 @@ -316,6 +318,18 @@ export default new Router({ name: 'AddAddress', component: AddAddress }, + { + path: 'MsgList', + name: 'MsgList', + component: MsgList, + meta: {title: '我的消息'} + }, + { + path: 'MsgDetail', + name: 'MsgDetail', + component: MsgDetail, + meta: {title: '我的消息'} + }, { path: 'MyOrder', name: 'MyOrder', diff --git a/manager/src/views/promotion/coupon/memberReceiveCoupon.vue b/manager/src/views/promotion/coupon/memberReceiveCoupon.vue index 2a5dcd3e..4291c1e3 100644 --- a/manager/src/views/promotion/coupon/memberReceiveCoupon.vue +++ b/manager/src/views/promotion/coupon/memberReceiveCoupon.vue @@ -1,30 +1,30 @@