From 0829c8bf7ae2b61bdd7717a833872484061ca37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B5=E5=AE=AA=E7=91=9E?= <9198107+min-xianrui@user.noreply.gitee.com> Date: Mon, 18 Nov 2024 08:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B4=BB=E5=8A=A8=E9=A2=84?= =?UTF-8?q?=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/activity.js | 35 ++ src/router/modules/marketing.js | 56 +++- src/styles/variables.scss | 2 +- .../activityList/activity-add-and-update.vue | 16 +- .../marketing/activity/activityList/index.vue | 300 ++++++++++++----- src/views/marketing/activity/index.vue | 15 + .../activity/venueReservation/index.vue | 296 +++++++++++++++++ .../marketing/coupon/list/createTree.vue | 223 +++++++++++++ src/views/marketing/lottery/config/index.vue | 300 ++++++++++++----- src/views/marketing/lottery/index.vue | 313 +----------------- src/views/user/list/index.vue | 21 +- 11 files changed, 1073 insertions(+), 504 deletions(-) create mode 100644 src/views/marketing/activity/index.vue create mode 100644 src/views/marketing/activity/venueReservation/index.vue create mode 100644 src/views/marketing/coupon/list/createTree.vue diff --git a/src/api/activity.js b/src/api/activity.js index bb395c3..91c3e0d 100644 --- a/src/api/activity.js +++ b/src/api/activity.js @@ -60,3 +60,38 @@ export function activityListApi(params) { }) } +/** + * ebactivity预约日志记录 + * @param pram + */ +export function activityLogListApi(params) { + return request({ + url: 'admin/activity/records', + method: 'GET', + params + }) +} + +/** + * ebactivity场地预约 + * @param pram + */ +export function activityPlaceListApi(params) { + return request({ + url: 'admin/place/list', + method: 'GET', + params + }) +} + +/** + * ebactivity预约修改 + * @param pram + */ +export function activityPlaceUpdateApi(data) { + return request({ + url: `admin/place/update?id=${data.id}`, + method: 'POST', + data + }) +} diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js index d1bed42..1f55299 100644 --- a/src/router/modules/marketing.js +++ b/src/router/modules/marketing.js @@ -38,6 +38,17 @@ const marketingRouter = { hidden: true, component: () => import('@/views/marketing/coupon/list/creatCoupon') }, + { + path: 'list/saveTree/:id?', + name: 'treeAdd', + meta: { + title: '茶树添加', + noCache: true, + activeMenu: `/marketing/coupon/list` + }, + hidden: true, + component: () => import('@/views/marketing/coupon/list/createTree') + }, { path: 'list', component: () => import('@/views/marketing/coupon/list/index'), @@ -52,6 +63,21 @@ const marketingRouter = { } ] }, + { + path: 'lottery', + component: () => import('@/views/marketing/lottery/config/index'), + name: 'lottery', + meta: { title: '游戏管理', icon: '' }, + children: [ + { + path: 'config', + component: () => import('@/views/marketing/lottery/config/index'), + name: 'config', + meta: { title: '茶株认领', icon: '' } + }, + + ] + }, { path: 'bargain', component: () => import('@/views/marketing/bargain/index'), @@ -157,33 +183,27 @@ const marketingRouter = { } ] }, - { - path: 'lottery', - component: () => import('@/views/marketing/lottery/config/index'), - name: 'lottery', - meta: { title: '抽奖管理', icon: '' }, - children: [ - { - path: 'config', - component: () => import('@/views/marketing/lottery/config/index'), - name: 'config', - meta: { title: '抽奖配置', icon: '' } - }, - - ] - }, { path: 'activity', - component: () => import('@/views/marketing/activity/activityList/index'), + component: () => import('@/views/marketing/activity/index'), name: 'activity', - meta: { title: '活动', icon: '' }, + meta: { title: '预约', icon: '' }, children: [ { path: 'activityList', component: () => import('@/views/marketing/activity/activityList/index'), - name: 'activityList', + name: 'ActivityList', meta: { title: '活动管理', icon: '' } }, + { + path: 'venueReservation', + component: () => import('@/views/marketing/activity/venueReservation/index'), + name: 'VenueReservation', + meta: { title: '场地预约', icon: '' } + }, + + + ] }, ] diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 28028ef..fae73bb 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -9,7 +9,7 @@ $yellow:#FEC171; $panGreen: #30B08F; $base-menu-color:#ffffff; //默认字体颜色 -$base-menu-color-active:#f4f4f5; +$base-menu-color-active:#f4f4f5; $base-menu-background:#001529; //默认背景色 $base-logo-title-color: #ffffff; //默认logo_title字体颜色 diff --git a/src/views/marketing/activity/activityList/activity-add-and-update.vue b/src/views/marketing/activity/activityList/activity-add-and-update.vue index fb73e5b..1355552 100644 --- a/src/views/marketing/activity/activityList/activity-add-and-update.vue +++ b/src/views/marketing/activity/activityList/activity-add-and-update.vue @@ -9,9 +9,9 @@ - - - + + + @@ -48,6 +48,7 @@ @@ -56,6 +57,7 @@ @@ -107,8 +109,6 @@ export default { isHot: 0, isBanner: 0, content: '', - createTime: '', - updateTime: '', beginTime: '', endTime: '' }, @@ -169,12 +169,6 @@ export default { content: [ {required: true, message: '活动内容 为必填项', trigger: 'blur'} ], - createTime: [ - {required: true, message: '创建时间 为必填项', trigger: 'blur'} - ], - updateTime: [ - {required: true, message: '更新时间 为必填项', trigger: 'blur'} - ], beginTime: [ {required: true, message: '开始时间 为必填项', trigger: 'blur'} ], diff --git a/src/views/marketing/activity/activityList/index.vue b/src/views/marketing/activity/activityList/index.vue index 734e0bb..a9c141b 100644 --- a/src/views/marketing/activity/activityList/index.vue +++ b/src/views/marketing/activity/activityList/index.vue @@ -9,21 +9,14 @@ 新增活动 - + - - - - - - - + style="width: 100%;"> - 活动预约 - 采茶预约 - 其他预约 + 活动预约 + 采茶预约 + 其他预约 类型错误 @@ -41,59 +34,59 @@ + prop="title" + header-align="center" + align="center" + label="标题"> + prop="imageInput" + header-align="center" + align="center" + label="图片"> + prop="activityAddr" + header-align="center" + align="center" + label="地址"> + prop="activityNum" + header-align="center" + align="center" + label="活动人数"> + prop="activityPrice" + header-align="center" + align="center" + label="费用"> + prop="content" + header-align="center" + align="center" + label="活动内容"> + prop="beginTime" + header-align="center" + align="center" + label="开始时间 - 结束时间"> - {{scope.row.beginTime}} - {{scope.row.endTime}} + {{ scope.row.beginTime }} - {{ scope.row.endTime }} - - + fixed="right" + header-align="center" + align="center" + width="150" + label="操作"> 修改 - 预约记录 - 删除 + 预约记录 + + 删除 + + @size-change="sizeChangeHandle" + @current-change="currentChangeHandle" + :current-page="tableFrom.page" + :page-sizes="[10, 20, 50, 100]" + :page-size="tableFrom.limit" + :total="totalPage" + layout="total, sizes, prev, pager, next, jumper"> - + + + + + + + + + + + + + + + + + + + + + 报名成功 + 已取消 + 类型错误 + + + + + + + + + - + {{ scope.row.cancelData }} + + + + + + + + - + {{ scope.row.cancelReason }} + + + + + + + + + + + + + + + + + + + + + + 确 定 + + diff --git a/src/views/marketing/activity/index.vue b/src/views/marketing/activity/index.vue new file mode 100644 index 0000000..d2c9c01 --- /dev/null +++ b/src/views/marketing/activity/index.vue @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/src/views/marketing/activity/venueReservation/index.vue b/src/views/marketing/activity/venueReservation/index.vue new file mode 100644 index 0000000..d3e74c2 --- /dev/null +++ b/src/views/marketing/activity/venueReservation/index.vue @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 待确认 + 预约成功 + 预约取消 + 类型错误 + + + + + + + + + - + {{ scope.row.cancelData }} + + + + + + + - + {{ scope.row.cancelReason }} + + + + + + + 电话联系 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 预约人:{{this.mobileFrom.userName}} + 联系方式:{{this.mobileFrom.cellPhone}} + + + + + + + + + + + + + + + + + diff --git a/src/views/marketing/coupon/list/createTree.vue b/src/views/marketing/coupon/list/createTree.vue new file mode 100644 index 0000000..f49e016 --- /dev/null +++ b/src/views/marketing/coupon/list/createTree.vue @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 提交 + 重置 + + + + + + + + diff --git a/src/views/marketing/lottery/config/index.vue b/src/views/marketing/lottery/config/index.vue index 773971a..8a5b497 100644 --- a/src/views/marketing/lottery/config/index.vue +++ b/src/views/marketing/lottery/config/index.vue @@ -1,55 +1,209 @@ - - - - - - - - - - - - - + + + 规则 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 添加规则 + + + + + + + + + + + + + 添加茶株 + + + + + + + - - - {{ scope.row.productName }} - + + + - - - - - - - - {{ scope.row.message }} - + - - - - + + + + + + + + + - - - {{ scope.row.lotteryRate }} - + - + + + + + + + + + + + + + + + + + + + + - 编辑 + + 详情 + + @@ -60,57 +214,44 @@ import {marketingGameInfoListApi, marketingGameListApi} from "@/api/marketing"; export default { - data(){ - return{ - tableFrom: { - page: 1, - limit: 20, - cid:747 - }, - modalPic: false, - isChoice: '单选', - picTit: '', - specsData:[] - } - }, + data() { + return { + dataList: {}, + dataListLoading: false, + gameFrom: {}, + specsData: {} + } + }, mounted() { - this.getList() + this.getDataList() }, - methods:{ + methods: { // 列表 - getList() { - marketingGameListApi(this.tableFrom).then(res => { - this.listLoading = false - // res.list[0].id + getDataList() { + marketingGameListApi({cid: 748}).then(res => { + this.dataListLoading = false this.getInfo(res.list[0].id) }).catch(res => { - this.listLoading = false + this.dataListLoading = false }) }, - getInfo(id){ - marketingGameInfoListApi({id:id}).then(res =>{ - this.specsData = res.rule.items + getInfo(id) { + marketingGameInfoListApi({id: id}).then(res => { + console.log(res) + this.specsData = res + + if (this.specsData.rule.everySunlightStair === null) { + this.specsData.rule.everySunlightStair = [] + } }) }, - - // 点击商品图 - modalPicTap(tit, index) { - const _this = this - this.$modalUpload(function(img) { - if(img.length >= 2) return this.$message.warning("最多选择1张图片!"); - _this.specsData[index].productImage = img[0].sattDir - - - - },tit, 'store') - }, } } - diff --git a/src/views/user/list/index.vue b/src/views/user/list/index.vue index 6997d2d..dc099e8 100644 --- a/src/views/user/list/index.vue +++ b/src/views/user/list/index.vue @@ -80,14 +80,14 @@ placement="bottom-end" placeholder="自定义时间" class="selWidth" - :picker-options="pickerOptions" + :picker-options="pickerOptions" @change="onchangeTime" /> @@ -138,7 +138,7 @@ @@ -209,7 +209,7 @@ label="ID" min-width="80" /> - @@ -273,6 +273,17 @@ label="积分" min-width="100" /> + + + 非核销员 + 核销员 + + + 编辑 @@ -681,7 +692,7 @@ // el.child.forEach((cel, j) => { // delete cel.child // }) - // }) + // }) this.addresData = res // }) },