diff --git a/buyer/src/assets/images/geted.png b/buyer/src/assets/images/geted.png index 9bab88c6..0dc683c0 100644 Binary files a/buyer/src/assets/images/geted.png and b/buyer/src/assets/images/geted.png differ diff --git a/buyer/src/components/nav/cateNav.vue b/buyer/src/components/nav/cateNav.vue index 9cdd66c6..e4fd092c 100644 --- a/buyer/src/components/nav/cateNav.vue +++ b/buyer/src/components/nav/cateNav.vue @@ -13,11 +13,12 @@ - +
- @@ -86,12 +84,12 @@ export default { } }, computed: { - navList () { + navList () { // 导航列表 return JSON.parse(storage.getItem('navList')) || [] } }, methods: { - getCate () { + getCate () { // 获取分类数据 getCategory(0).then(res => { if (res.success) { this.cateList = res.result; @@ -99,7 +97,7 @@ export default { } }); }, - showDetail (index) { + showDetail (index) { // 展示全部分类 this.panel = true this.panelData = this.cateList[index].children }, @@ -245,9 +243,6 @@ export default { .nav-detail-item span:hover { background-color: $theme_color; } -.detail-item-panel ul { - list-style: none; -} .detail-item-panel li { line-height: 30px; // margin-left: 40px; diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index 79dcbc9a..0ae2f84d 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -116,11 +116,13 @@ {{item.couponDiscount}} 满{{item.consumeThreshold}}元可用
-

使用范围:{{useScope(item.scopeType)}}

-

有效期:{{item.endTime}}

+

使用范围:{{useScope(item.scopeType)}}

+

有效期:{{item.endTime}}

+ - 立即使用 + 立即使用 + 放弃优惠 @@ -207,7 +209,9 @@ export default { moreAddr: false, // 更多地址 canUseCouponNum: 0, // 可用优惠券数量 couponList: [], // 可用优惠券列表 - logoImg: '' // 平台logo + logoImg: '', // 平台logo + usedCouponId: [], // 已使用优惠券id + selectedCoupon: {} // 已选优惠券对象 }; }, mounted () { @@ -250,7 +254,10 @@ export default { this.goodsList = res.result.cartList; this.priceDetailDTO = res.result.priceDetailDTO; this.skuList = res.result.skuList; - let notSupArea = res.result.notSupportFreight + let notSupArea = res.result.notSupportFreight; + this.selectedCoupon = {} + if (res.result.platformCoupon) this.selectedCoupon.platformCoupon = res.result.platformCoupon + Object.assign(this.selectedCoupon, res.result.storeCoupons) if (notSupArea) { let content = []; let title = '' @@ -295,8 +302,22 @@ export default { storeId: storeArr.toString(), totalPrice: this.priceDetailDTO.goodsPrice } - canUseCouponList(params).then(res => { + canUseCouponList(params).then(res => { // 可用优惠券列表 if (res.success) this.couponList = res.result.records + const couponKeys = Object.keys(this.selectedCoupon) + this.usedCouponId = [] + if (couponKeys.length) { + this.couponList.forEach(e => { + if (e.id === this.selectedCoupon[couponKeys].memberCoupon.id) { + this.usedCouponId.push(e.id) + } + }) + this.$nextTick(() => { + this.$forceUpdate() + }) + } + + }) } }) @@ -361,16 +382,14 @@ export default { }); }, - useCoupon (id) { // 使用优惠券 + useCoupon (id, used) { // 使用优惠券 let params = { way: this.$route.query.way, memberCouponId: id, - used: true + used: used // true 为使用, false为弃用 } selectCoupon(params).then(res => { - if (res.success) { - this.init() - } + if (res.success) this.init() }) }, editInvoice () { // 编辑发票信息 @@ -774,5 +793,16 @@ export default { .circle-top,.circle-bottom{ right: 22px; } + .used { + position: absolute; + top: 60px; + right: 40px; + width: 50px; + height: 50px; + } +} +.coupon-list { + max-height: 260px; + overflow: scroll; } diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8f1ce647..9f868153 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -2,7 +2,7 @@ export default { /** * @description 配置显示在浏览器标签的title */ - title: 'Lili电商', + title: "Lili电商", /** * @description token在Cookie中存储的天数,默认1天 */ @@ -17,29 +17,28 @@ export default { * @description api请求基础路径 */ api_dev: { - common: 'https://common-api.pickmall.cn', - buyer: 'https://buyer-api.pickmall.cn', - seller: 'https://store-api.pickmall.cn', - manager: 'https://admin-api.pickmall.cn' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" }, api_prod: { - common: 'https://common-api.pickmall.cn', - buyer: 'https://buyer-api.pickmall.cn', - seller: 'https://store-api.pickmall.cn', - manager: 'https://admin-api.pickmall.cn' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" }, /** * @description api请求基础路径前缀 */ - baseUrlPrefix: '/manager', + baseUrlPrefix: "/manager", /** * @description 需要加载的插件 */ plugin: { - 'error-store': { + "error-store": { showInHeader: true, // 设为false后不会在顶部显示错误日志徽标 developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误 } } -} - +}; diff --git a/manager/src/views/Main.vue b/manager/src/views/Main.vue index 491b10d4..d073cfa6 100644 --- a/manager/src/views/Main.vue +++ b/manager/src/views/Main.vue @@ -12,7 +12,7 @@ -
+
diff --git a/manager/src/views/distribution/distribution.vue b/manager/src/views/distribution/distribution.vue index 294f26d4..e76799ab 100644 --- a/manager/src/views/distribution/distribution.vue +++ b/manager/src/views/distribution/distribution.vue @@ -1,263 +1,329 @@ diff --git a/manager/src/views/distribution/distributionApply.vue b/manager/src/views/distribution/distributionApply.vue index d8465ccf..d3f7bba7 100644 --- a/manager/src/views/distribution/distributionApply.vue +++ b/manager/src/views/distribution/distributionApply.vue @@ -1,217 +1,240 @@ diff --git a/manager/src/views/distribution/distributionCash.vue b/manager/src/views/distribution/distributionCash.vue index e2d07a12..b450376b 100644 --- a/manager/src/views/distribution/distributionCash.vue +++ b/manager/src/views/distribution/distributionCash.vue @@ -1,35 +1,29 @@ diff --git a/manager/src/views/seller/shop/shopOperation.vue b/manager/src/views/seller/shop/shopOperation.vue index e3db7ae4..05295e05 100644 --- a/manager/src/views/seller/shop/shopOperation.vue +++ b/manager/src/views/seller/shop/shopOperation.vue @@ -65,9 +65,17 @@ +
+
只读不可修改
diff --git a/manager/src/views/sensitiveWords/index.vue b/manager/src/views/sensitiveWords/index.vue index dba70f7f..beb50ee4 100644 --- a/manager/src/views/sensitiveWords/index.vue +++ b/manager/src/views/sensitiveWords/index.vue @@ -1,41 +1,35 @@