From 8db259412d28ff9c6c802a496e637c63fde40480 Mon Sep 17 00:00:00 2001 From: liy <1492230202@qq.com> Date: Thu, 5 Dec 2024 11:59:28 +0800 Subject: [PATCH] 2 --- admin-web-master/src/api/couponmanagement/couponlist.js | 16 ++++++++++++++++ admin-web-master/src/router/index.js | 33 --------------------------------- admin-web-master/src/utils/request.js | 2 +- admin-web-master/src/views/couponmanagement/allinfo.vue | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ admin-web-master/src/views/couponmanagement/capitalpool.vue | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------- admin-web-master/src/views/couponmanagement/capitalpoolinfo.vue | 63 +++++++++++++++++++++++++++++++++------------------------------ admin-web-master/src/views/couponmanagement/coupon.vue | 59 ++++++++++++++++++++++++++++++++++++++++++++++++----------- admin-web-master/src/views/couponmanagement/couponinfo.vue | 39 +++++++++++++++++++-------------------- admin-web-master/src/views/couponmanagement/couponlist.vue | 55 +++++++++++++++++++++++++++++++++++++------------------ ceres-uniapp-master/components/goodsDetalils/coupon-popup.vue | 12 +++++++----- ceres-uniapp-master/config/api.js | 17 +++++++++++++++-- ceres-uniapp-master/pages/tabbar/category/index.vue | 18 +++++------------- ceres-uniapp-master/pages_category_page1/coupon/1.vue | 300 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ceres-uniapp-master/pages_category_page1/coupon/22.vue | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ceres-uniapp-master/pages_category_page1/coupon/list.vue | 621 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ceres-uniapp-master/pages_category_page1/orderModule/index.vue | 31 ++++++++++++++++--------------- ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm.vue | 4229 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm334.vue | 2076 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue | 9 +++++++++ ceres-uniapp-master/pages_category_page1/store/index.vue | 32 ++++++++++++++++++++++---------- merchant-web-master/src/layout/components/AppMain.vue | 7 ++++--- merchant-web-master/src/layout/index.vue | 8 +++++++- merchant-web-master/src/views/couponmanagement/allinfo.vue | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ merchant-web-master/src/views/couponmanagement/coupon.vue | 16 ++++++++++++---- merchant-web-master/src/views/couponmanagement/couponinfo.vue | 516 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- merchant-web-master/src/views/couponmanagement/couponlist.vue | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------- merchant-web-master/src/views/marketing/coupon/add copy.vue | 562 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ merchant-web-master/src/views/marketing/coupon/add.vue | 21 ++++++++++++++------- merchant-web-master/src/views/marketing/coupon/index copy.vue | 377 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ merchant-web-master/src/views/marketing/coupon/index.vue | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------- merchant-web-master/src/views/marketing/mixin/index.js | 6 +++--- 31 files changed, 6673 insertions(+), 3169 deletions(-) create mode 100644 admin-web-master/src/views/couponmanagement/allinfo.vue delete mode 100644 ceres-uniapp-master/pages_category_page1/coupon/1.vue create mode 100644 ceres-uniapp-master/pages_category_page1/coupon/22.vue create mode 100644 ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm334.vue create mode 100644 merchant-web-master/src/views/couponmanagement/allinfo.vue create mode 100644 merchant-web-master/src/views/marketing/coupon/add copy.vue create mode 100644 merchant-web-master/src/views/marketing/coupon/index copy.vue diff --git a/admin-web-master/src/api/couponmanagement/couponlist.js b/admin-web-master/src/api/couponmanagement/couponlist.js index f077abd..663509a 100644 --- a/admin-web-master/src/api/couponmanagement/couponlist.js +++ b/admin-web-master/src/api/couponmanagement/couponlist.js @@ -1,4 +1,20 @@ import request from '@/utils/request' +// 优惠券统计 +export function couponStatistics(data) { + return request({ + url: '/cereCouponMainTable/couponStatistics', + method: 'post', + data + }) +} +// 资金池统计 +export function fundPoolStatistics(data) { + return request({ + url: '/cereCouponMainTable/fundPoolStatistics', + method: 'post', + data + }) +} // 获取优惠券 export function myCoupons(data) { return request({ diff --git a/admin-web-master/src/router/index.js b/admin-web-master/src/router/index.js index ffdf290..f39e42d 100644 --- a/admin-web-master/src/router/index.js +++ b/admin-web-master/src/router/index.js @@ -744,39 +744,6 @@ export const mainRoutes = [ component: () => import('@/views/404'), hidden: true }, - - - { - path: '/other', - component: Layout, - redirect: '/other/coupon', - hidden: true, - name: 'setup', - meta: { - title: '优惠券管理', - icon: 'el-icon-s-help' - }, - children: [ - { - path: 'coupon', - name: 'coupon', - component: () => import('@/views/couponmanagement/couponinfo'), - meta: { - title: '优惠券详情', - icon: 'tree' - } - }, - { - path: 'capitalpoolinfo', - name: 'capitalpoolinfo', - component: () => import('@/views/couponmanagement/capitalpoolinfo'), - meta: { - title: '资金池详情', - icon: 'tree' - } - } - ] - }, { path: '/setup', component: Layout, diff --git a/admin-web-master/src/utils/request.js b/admin-web-master/src/utils/request.js index 84987d2..d8bcd8b 100644 --- a/admin-web-master/src/utils/request.js +++ b/admin-web-master/src/utils/request.js @@ -21,7 +21,7 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61. // PREFIX = 'http://172.16.61.48/meserver/admin-server'; // PREFIX = 'http://192.168.2.213:9003'; // PREFIX = 'http://8.130.38.56:8019/admin-server'; - PREFIX = 'http://192.168.8.106:9003'; + PREFIX = 'http://8.130.38.56:9003'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server'; // PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server'; // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; diff --git a/admin-web-master/src/views/couponmanagement/allinfo.vue b/admin-web-master/src/views/couponmanagement/allinfo.vue new file mode 100644 index 0000000..f3cc785 --- /dev/null +++ b/admin-web-master/src/views/couponmanagement/allinfo.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/admin-web-master/src/views/couponmanagement/capitalpool.vue b/admin-web-master/src/views/couponmanagement/capitalpool.vue index 47f6481..008b6f8 100644 --- a/admin-web-master/src/views/couponmanagement/capitalpool.vue +++ b/admin-web-master/src/views/couponmanagement/capitalpool.vue @@ -1,6 +1,6 @@ @@ -149,14 +160,17 @@ } from '@/api/couponmanagement/capitalpool.js' import router from '@/router'; import coupon from './coupon.vue'; + import allinfo from './allinfo.vue'; import TitleWithCircle from '@/components/top/index'; export default { components: { - coupon,TitleWithCircle + coupon,TitleWithCircle,allinfo }, data() { return { + poolId:'', + typeinfo:'1', couponRules: { poolName: [{ required: true, @@ -184,6 +198,7 @@ useCategorylist:'', usedMerchantslist:'', couponfrom: { + receiveAgain:0, usedMerchants: 1, couponName: '', remark: '', @@ -195,7 +210,7 @@ pointsRequired: 0, startTime: '', endTime: '', - totalCoupons: null, + totalCoupons: 1, totalFunds: null, }, coupoobj: {}, @@ -240,42 +255,104 @@ this.getAll() }, methods: { + changetypeinfo(e) { + let that = this + this.typeinfo = e.type + setTimeout(()=>{ + that.$refs.allinforef.int(e.id) + },300) + }, + changetype() { + let that = this + if(this.typeinfo == '1') { + this.type = 1 + } else { + this.typeinfo = '1' + console.error(this.poolId) + //延迟执行this.$refs.allinforef.int(this.poolId) + setTimeout(()=>{ + that.$refs.allinforef.int(this.poolId) + },300) + } + }, changevalue(e,list) { console.error(e,list ) this[e] = list }, xq(e) { console.log(e ) - // 跳转路由 - router.push({ - path: '/other/capitalpoolinfo', - query: { - id: e.poolId - } - }) + this.type = '3' + this.typeinfo = '1' + this.poolId = e.poolId + this.$refs.allinforef.int(this.poolId) + // // 跳转路由 + // router.push({ + // path: '/other/capitalpoolinfo', + // query: { + // id: e.poolId + // } + // }) }, savecoupon() { let that = this + console.error(this.couponfrom ) if(!this.couponfrom.couponName) { + that.$message({ + message: '请填写优惠券名称', + error: 'success' + }); return } - if(!this.couponfrom.startTime) { - return - } - if(!this.couponfrom.totalCoupons) { - return - } - if(!this.couponfrom.maxDiscountAmount) { - return - } + + if(!this.couponfrom.discountContent) { + that.$message({ + message: '请填写优惠内容', + error: 'success' + }); return } + + if(this.couponfrom.couponType == '1') { - if(Number(this.couponfrom.discountContent) >= Number(this.couponfrom.maxDiscountAmount)) { + if(!this.couponfrom.usageThreshold) { + that.$message({ + message: '请填写优惠内容', + error: 'success' + }); + return + } + if(Number(this.couponfrom.discountContent) >= Number(this.couponfrom.usageThreshold)) { + that.$message({ + message: '请满减金额大于优惠金额', + error: 'success' + }); return } - } + } else { + if(!this.couponfrom.maxDiscountAmount) { + that.$message({ + message: '请填写优惠内容', + error: 'success' + }); + return + } + + } + if(!this.couponfrom.startTime) { + that.$message({ + message: '请选择时间', + error: 'success' + }); + return + } + if(!this.couponfrom.totalCoupons) { + that.$message({ + message: '请填写数量', + error: 'success' + }); + return + } let c1 = this.changecouponfrom() console.error(c1) console.error(this.useCategorylist) @@ -322,6 +399,22 @@ console.error(res2) }) } + this.couponfrom={ + receiveAgain:0, + usedMerchants: 1, + couponName: '', + remark: '', + couponType: '1', // 默认值 + useCategory: 1, + maxDiscountAmount: null, + usageThreshold: null, //使用门槛不用 + discountContent: null, + pointsRequired: 0, + startTime: '', + endTime: '', + totalCoupons: 1, + totalFunds: null, + } that.$message({ message: '提交成功', type: 'success' @@ -332,9 +425,7 @@ error: 'success' }); } - setTimeout(() => { - that.type = '1' - }, 2000) + that.type = '1' }) }, changecouponfrom() { diff --git a/admin-web-master/src/views/couponmanagement/capitalpoolinfo.vue b/admin-web-master/src/views/couponmanagement/capitalpoolinfo.vue index 281c1db..507eead 100644 --- a/admin-web-master/src/views/couponmanagement/capitalpoolinfo.vue +++ b/admin-web-master/src/views/couponmanagement/capitalpoolinfo.vue @@ -1,11 +1,6 @@ - - diff --git a/ceres-uniapp-master/pages_category_page1/coupon/22.vue b/ceres-uniapp-master/pages_category_page1/coupon/22.vue new file mode 100644 index 0000000..5bb0dd8 --- /dev/null +++ b/ceres-uniapp-master/pages_category_page1/coupon/22.vue @@ -0,0 +1,272 @@ + + + + + \ No newline at end of file diff --git a/ceres-uniapp-master/pages_category_page1/coupon/list.vue b/ceres-uniapp-master/pages_category_page1/coupon/list.vue index c963196..5c2676d 100644 --- a/ceres-uniapp-master/pages_category_page1/coupon/list.vue +++ b/ceres-uniapp-master/pages_category_page1/coupon/list.vue @@ -1,300 +1,369 @@ - + .reach-text { + margin: 20rpx 0; + color: #CCCCCC; + } + } + \ No newline at end of file diff --git a/ceres-uniapp-master/pages_category_page1/orderModule/index.vue b/ceres-uniapp-master/pages_category_page1/orderModule/index.vue index 0134af0..43c81db 100644 --- a/ceres-uniapp-master/pages_category_page1/orderModule/index.vue +++ b/ceres-uniapp-master/pages_category_page1/orderModule/index.vue @@ -4,19 +4,20 @@ - - - + + --> + diff --git a/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm.vue b/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm.vue index 46d8ab8..a03332b 100644 --- a/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm.vue +++ b/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm.vue @@ -1,2073 +1,2188 @@ + .pay-type-item /deep/ .uni-radio-input-checked { + background-color: #C5AA7B !important; + border-color: #C5AA7B !important; + } + + .maxIntegral /deep/ .uni-checkbox-input { + width: 30rpx; + height: 30rpx; + } + + .maxIntegral /deep/ .uni-checkbox-input-checked:before { + font-size: 30rpx; + } + + .maxIntegral /deep/ .uni-checkbox-input-checked { + border: 2rpx solid #C5AA7B !important; + } + \ No newline at end of file diff --git a/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm334.vue b/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm334.vue new file mode 100644 index 0000000..daa9473 --- /dev/null +++ b/ceres-uniapp-master/pages_category_page1/orderModule/orderConfirm334.vue @@ -0,0 +1,2076 @@ + + + + + + diff --git a/ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue b/ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue index cc0d72a..2161bc2 100644 --- a/ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue +++ b/ceres-uniapp-master/pages_category_page1/orderModule/orderDetails.vue @@ -454,6 +454,7 @@ this.getDataList(this.orderId) this.Orderrefund() this.getHuabeiFeeRateList() + }, onUnload() { if (this.timeOut) { @@ -614,6 +615,14 @@ if (this.dataList.state == 1 || this.dataList.state == 6) { this.countDown(); } + NET.request(API.cereCouponKeyUse, { + orderId: orderId, + usedMerchantId: this.dataList.shopId + }, 'GET').then(res1 => { + console.error(res1) + }).catch(res => { + // uni.hideLoading() + }) }).catch(res => { // uni.hideLoading() }) diff --git a/ceres-uniapp-master/pages_category_page1/store/index.vue b/ceres-uniapp-master/pages_category_page1/store/index.vue index a49dd92..629c669 100644 --- a/ceres-uniapp-master/pages_category_page1/store/index.vue +++ b/ceres-uniapp-master/pages_category_page1/store/index.vue @@ -53,11 +53,11 @@ - - - + @@ -180,22 +180,22 @@ 免费领 - + - ¥2 - 代金券 + {{item.couponType=='1'?'¥'+item.discountContent:item.discountContent+'折'}} + {{item.couponType=='1'?'满减券':'折扣券'}} - 有效期2024.12.1 + 有效期:{{item.endTime}} - 领取 + 领取 @@ -244,6 +244,7 @@ topHeight: 10, hasService: false, isLoading: false, + conlist:[] } }, components: { @@ -278,6 +279,11 @@ // #ifdef MP-WEIXIN this.getServiceUrl(this.id) // #endif + // this.id + // NET.request(API.cereCouponMainTablequeryByPage, {pageNumber:0,pageSize:20,shopId:this.id}, 'POST').then(res => { + // console.error(res) + // this.conlist = res.data.content + // }) }, onReachBottom() { if (this.loadingType == 1) { @@ -288,6 +294,12 @@ } }, methods: { + getconlist(e) { + console.error(e) + NET.request(API.receiveCoupons, {"couponId":e.id,"userId":uni.getStorageSync('storage_key').buyerUserId}, 'GET').then(res => { + console.log(res) + }) + }, // 读取画布 canvasGet() { var _this = this diff --git a/merchant-web-master/src/layout/components/AppMain.vue b/merchant-web-master/src/layout/components/AppMain.vue index cc13cc9..41e7d37 100644 --- a/merchant-web-master/src/layout/components/AppMain.vue +++ b/merchant-web-master/src/layout/components/AppMain.vue @@ -20,14 +20,15 @@ export default { diff --git a/merchant-web-master/src/layout/index.vue b/merchant-web-master/src/layout/index.vue index f713e97..80986d1 100644 --- a/merchant-web-master/src/layout/index.vue +++ b/merchant-web-master/src/layout/index.vue @@ -338,7 +338,13 @@ export default { margin-top: 50px; } .main-container{ - margin-top: 50px; + // margin-top: 50px; + position: fixed; + right: 0; + top: 50px; + height: calc(100vh - 50px); + background: #f7f7f7; + // height: calc(100vh -50px); } .topList{ position: relative; diff --git a/merchant-web-master/src/views/couponmanagement/allinfo.vue b/merchant-web-master/src/views/couponmanagement/allinfo.vue new file mode 100644 index 0000000..ca260af --- /dev/null +++ b/merchant-web-master/src/views/couponmanagement/allinfo.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/merchant-web-master/src/views/couponmanagement/coupon.vue b/merchant-web-master/src/views/couponmanagement/coupon.vue index 8f4457d..4da249f 100644 --- a/merchant-web-master/src/views/couponmanagement/coupon.vue +++ b/merchant-web-master/src/views/couponmanagement/coupon.vue @@ -19,13 +19,14 @@ 订单满 元 减 + + 打 最高优惠金额 - 打 折 - - + + diff --git a/merchant-web-master/src/views/couponmanagement/couponinfo.vue b/merchant-web-master/src/views/couponmanagement/couponinfo.vue index b6326ed..9ca99a0 100644 --- a/merchant-web-master/src/views/couponmanagement/couponinfo.vue +++ b/merchant-web-master/src/views/couponmanagement/couponinfo.vue @@ -1,290 +1,286 @@ + + + - +} + - +.greens { + color: #3F9B6A; + } + ::v-deep .buttonHover:hover{ + color:#3f9b6a !important; + border-color: #c5e1d2 !important; + background-color: #ecf5f0 !important; + outline: none; + } + ::v-deep .el-pagination__total { + position: absolute; + left: 10px; + } + ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active{ + background-color:#3f9b6a; + } + diff --git a/merchant-web-master/src/views/couponmanagement/couponlist.vue b/merchant-web-master/src/views/couponmanagement/couponlist.vue index 982a500..80a17d5 100644 --- a/merchant-web-master/src/views/couponmanagement/couponlist.vue +++ b/merchant-web-master/src/views/couponmanagement/couponlist.vue @@ -1,6 +1,6 @@