diff --git a/buyer/index.html b/buyer/index.html index 13a70c4d..3b299f1a 100644 --- a/buyer/index.html +++ b/buyer/index.html @@ -4,7 +4,7 @@ - + LILI 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/Search.vue b/buyer/src/components/Search.vue index 3a3653a1..0354bcf4 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -63,17 +63,17 @@ export default { }; }, methods: { - selectTags (item) { + selectTags (item) { // 选择热门标签 this.searchData = item; this.search(); }, - search () { + search () { // 全平台搜索商品 this.$router.push({ path: '/goodsList', query: { keyword: this.searchData } }); }, - searchStore () { + searchStore () { // 店铺搜索商品 this.$emit('search', this.searchData) } }, diff --git a/buyer/src/components/addressManage/index.vue b/buyer/src/components/addressManage/index.vue index a7b2669a..ee0dc4e0 100644 --- a/buyer/src/components/addressManage/index.vue +++ b/buyer/src/components/addressManage/index.vue @@ -57,7 +57,7 @@ import { export default { name: 'addressManage', props: { - id: { + id: { // 传入的地址id defalut: '', type: String } @@ -89,7 +89,7 @@ export default { }; }, methods: { - save () { + save () { // 保存地址 this.$refs.form.validate((valid) => { if (valid) { const params = JSON.parse(JSON.stringify(this.formData)); @@ -138,15 +138,15 @@ export default { this.formData.lat = item.position.lat; this.formData.lon = item.position.lng; }, - show () { + show () { // 地址模态框显示 this.showAddr = true; }, - hide () { + hide () { // 地址模态框隐藏 this.showAddr = false; } }, watch: { - id: { + id: { // 传入的地址id handler: function (v) { if (v) { this.getAddrById(v); diff --git a/buyer/src/components/card/index.vue b/buyer/src/components/card/index.vue index 397eb531..9dfbc055 100644 --- a/buyer/src/components/card/index.vue +++ b/buyer/src/components/card/index.vue @@ -59,7 +59,6 @@ export default { isActive: 0 // 已激活tab栏下标 }; }, - mounted () {}, methods: { // 点击右侧的回调 callBack () { diff --git a/buyer/src/components/coupon/Coupon.vue b/buyer/src/components/coupon/Coupon.vue index bad97edc..30055ed6 100644 --- a/buyer/src/components/coupon/Coupon.vue +++ b/buyer/src/components/coupon/Coupon.vue @@ -44,7 +44,7 @@ export default { }; }, methods: { - getList () { + getList () { // 获取优惠券列表 this.loading = true memberCouponList(this.params).then(res => { this.loading = false @@ -67,18 +67,18 @@ export default { } }, - changePageNum (val) { + changePageNum (val) { // 分页改变页码 this.params.pageNumber = val; this.getList() }, - changePageSize (val) { + changePageSize (val) { // 分页改变页数 this.pageNumber = 1; this.params.pageSize = val; this.getList() }, - useScope (type, storeName) { + useScope (type, storeName) { // 根据字段返回 优惠券适用范围 let shop = '平台'; let goods = '全部商品' if (storeName !== 'platform') shop = storeName @@ -104,7 +104,7 @@ export default { diff --git a/buyer/src/components/drawer/Drawer.vue b/buyer/src/components/drawer/Drawer.vue index 54db455f..d7990232 100644 --- a/buyer/src/components/drawer/Drawer.vue +++ b/buyer/src/components/drawer/Drawer.vue @@ -151,8 +151,6 @@ export default { ] }; }, - components: {}, - mounted () {}, methods: { getCartList () { // 获取购物车列表 this.loading = true diff --git a/buyer/src/components/drawer/Main.vue b/buyer/src/components/drawer/Main.vue index c5c32162..78252f5a 100644 --- a/buyer/src/components/drawer/Main.vue +++ b/buyer/src/components/drawer/Main.vue @@ -44,12 +44,12 @@ export default { } }, methods: { - showCartNum (item) { + showCartNum (item) { // 获取购物车数量 if (this.userInfo && item.title === '购物车') { this.getCartList() } }, - clickBar (val) { + clickBar (val) { // tabbar点击操作 if (!this.userInfo) { this.$Modal.confirm({ title: '请登录', @@ -83,7 +83,7 @@ export default { } } }, - openBlank (path) { + openBlank (path) { // 新页面打开地址 let routerUrl = this.$router.resolve({ path: path }) diff --git a/buyer/src/components/empty/Main.vue b/buyer/src/components/empty/Main.vue index a1af93a8..4b0a0555 100644 --- a/buyer/src/components/empty/Main.vue +++ b/buyer/src/components/empty/Main.vue @@ -13,11 +13,6 @@ @@ -283,14 +276,12 @@ export default { } .item-intro-detail{ margin: 0 30px; - // min-height: 1500px; width: 100%; } .item-intro-nav{ width: 100%; height: 38px; background-color: #F7F7F7; - // border-bottom: 1px solid $theme_color; } .item-intro-nav ul{ margin: 0px; @@ -329,8 +320,6 @@ export default { width: 240px; height: 36px; font-size: 14px; - /* text-align: center; */ - /* background-color: #ccc; */ } .item-param-title { color: #232323; diff --git a/buyer/src/components/goodsDetail/ShowGoodsQuestion.vue b/buyer/src/components/goodsDetail/ShowGoodsQuestion.vue deleted file mode 100644 index bd70c809..00000000 --- a/buyer/src/components/goodsDetail/ShowGoodsQuestion.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - diff --git a/buyer/src/components/goodsDetail/ShowProductWarranty.vue b/buyer/src/components/goodsDetail/ShowProductWarranty.vue deleted file mode 100644 index 3bbb7550..00000000 --- a/buyer/src/components/goodsDetail/ShowProductWarranty.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/buyer/src/components/header/Header.vue b/buyer/src/components/header/Header.vue index efc10cba..d83050d0 100644 --- a/buyer/src/components/header/Header.vue +++ b/buyer/src/components/header/Header.vue @@ -9,7 +9,6 @@