From 7f90be664415069aba3e8582afc54f4b92380efa Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 15 Oct 2025 14:18:39 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9C=B8=E7=8E=8B=E9=A4=90?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=A7=81=E5=9F=9F?=
=?UTF-8?q?=E5=BC=95=E6=B5=81=EF=BC=8C=E6=B6=88=E8=B4=B9=E8=BF=94=E7=8E=B0?=
=?UTF-8?q?=EF=BC=8C=E6=BB=A1=E5=87=8F=E6=B4=BB=E5=8A=A8=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
commons/style/common.scss | 12 +
.../my-components/my-bottom-btn-group.vue | 29 ++
components/my-components/my-dine-types.vue | 44 ++
components/my-components/my-shop-select.vue | 157 +++++++
env/env.development.js | 6 +-
http/api/market/consumeCashback.js | 32 ++
http/api/market/discountActivity.js | 40 ++
http/api/market/drainageConfig.js | 24 ++
http/api/shop.js | 14 +
http/http.js | 2 +-
main.js | 5 +
pageBwc/index/index.vue | 392 ++++++++++++------
pageBwc/static/images/bwc.png | Bin 0 -> 1413 bytes
.../components/shop-sel-action-sheet.vue | 49 +++
.../consumeCashback/components/config.vue | 331 +++++++++++++++
.../consumeCashback/components/user-types.vue | 70 ++++
pageMarket/consumeCashback/index.vue | 213 ++++++++++
pageMarket/discountActivity/add.vue | 349 ++++++++++++++++
.../components/bottom-btn-group.vue | 29 ++
.../discountActivity/components/hour-area.vue | 111 +++++
.../discountActivity/components/time-area.vue | 79 ++++
.../discountActivity/components/week-sel.vue | 57 +++
pageMarket/discountActivity/index.vue | 197 +++++++++
pageMarket/drainageConfig/index.vue | 366 ++++++++++++++++
pageMarket/static/images/cost.png | Bin 0 -> 724 bytes
pages.json | 33 ++
pages/appliccation/marketing.vue | 17 +
pages/login/index.vue | 4 +-
vite.config.js | 2 +-
29 files changed, 2519 insertions(+), 145 deletions(-)
create mode 100644 components/my-components/my-bottom-btn-group.vue
create mode 100644 components/my-components/my-dine-types.vue
create mode 100644 components/my-components/my-shop-select.vue
create mode 100644 http/api/market/consumeCashback.js
create mode 100644 http/api/market/discountActivity.js
create mode 100644 http/api/market/drainageConfig.js
create mode 100644 pageBwc/static/images/bwc.png
create mode 100644 pageMarket/components/shop-sel-action-sheet.vue
create mode 100644 pageMarket/consumeCashback/components/config.vue
create mode 100644 pageMarket/consumeCashback/components/user-types.vue
create mode 100644 pageMarket/consumeCashback/index.vue
create mode 100644 pageMarket/discountActivity/add.vue
create mode 100644 pageMarket/discountActivity/components/bottom-btn-group.vue
create mode 100644 pageMarket/discountActivity/components/hour-area.vue
create mode 100644 pageMarket/discountActivity/components/time-area.vue
create mode 100644 pageMarket/discountActivity/components/week-sel.vue
create mode 100644 pageMarket/discountActivity/index.vue
create mode 100644 pageMarket/drainageConfig/index.vue
create mode 100644 pageMarket/static/images/cost.png
diff --git a/commons/style/common.scss b/commons/style/common.scss
index 4e68af6..5c51603 100644
--- a/commons/style/common.scss
+++ b/commons/style/common.scss
@@ -358,6 +358,18 @@ text {
left: 0;
right: 0;
}
+.fixed-bottom{
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ padding: 30rpx;
+ padding-bottom: env(safe-area-inset-bottom);
+
+ /* #ifdef H5 */
+ padding-bottom: 28rpx;
+ /* #endif */
+}
.lh30 {
line-height: 30px;
}
diff --git a/components/my-components/my-bottom-btn-group.vue b/components/my-components/my-bottom-btn-group.vue
new file mode 100644
index 0000000..688082a
--- /dev/null
+++ b/components/my-components/my-bottom-btn-group.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+ 取消
+
+
+
+
+
+
+
diff --git a/components/my-components/my-dine-types.vue b/components/my-components/my-dine-types.vue
new file mode 100644
index 0000000..71f3138
--- /dev/null
+++ b/components/my-components/my-dine-types.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/my-components/my-shop-select.vue b/components/my-components/my-shop-select.vue
new file mode 100644
index 0000000..58bf012
--- /dev/null
+++ b/components/my-components/my-shop-select.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+ 请选择
+
+ {{ returnShopName(item) }}
+
+
+
+
+
+
+
+
+
+
+
+ 选择门店
+
+
+
+
+
+
+
+ 取消
+
+
+ 确定
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/env/env.development.js b/env/env.development.js
index 3c04506..6dc7bb4 100644
--- a/env/env.development.js
+++ b/env/env.development.js
@@ -1,7 +1,7 @@
export default {
- 'JEEPAY_BASE_URL': 'http://192.168.1.31/', // 请求URL(生产环境)
- 'JEEPAY_BASE_URL_H5': 'http://192.168.1.31/',
- 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.31:2348' ,// sockets
+ 'JEEPAY_BASE_URL': 'http://192.168.1.42/', // 请求URL(生产环境)
+ 'JEEPAY_BASE_URL_H5': 'http://192.168.1.42/',
+ 'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.42:2348' ,// sockets
// 'JEEPAY_BASE_URL': 'https://cashier.sxczgkj.com/', // 请求URL(生产环境)
// 'JEEPAY_BASE_URL_H5': 'https://cashier.sxczgkj.com/',
// 'JEEPAY_BASE_URL_WSS': 'wss://czgeatws.sxczgkj.com/wss' // sockets
diff --git a/http/api/market/consumeCashback.js b/http/api/market/consumeCashback.js
new file mode 100644
index 0000000..ef64085
--- /dev/null
+++ b/http/api/market/consumeCashback.js
@@ -0,0 +1,32 @@
+import http from "@/http/http.js";
+const request = http.request;
+const urlType = "market";
+
+export function getList(data) {
+ return request({
+ url: `${urlType}/admin/consumeCashback/record`,
+ method: "GET",
+ data: {
+ ...data,
+ },
+ });
+}
+export function getConfig(data) {
+ return request({
+ url: `${urlType}/admin/consumeCashback`,
+ method: "GET",
+ data: {
+ ...data,
+ },
+ });
+}
+
+export function update(data) {
+ return request({
+ url: `${urlType}/admin/consumeCashback`,
+ method: "POST",
+ data: {
+ ...data,
+ },
+ });
+}
diff --git a/http/api/market/discountActivity.js b/http/api/market/discountActivity.js
new file mode 100644
index 0000000..4d8b410
--- /dev/null
+++ b/http/api/market/discountActivity.js
@@ -0,0 +1,40 @@
+import http from '@/http/http.js'
+const request = http.request
+const urlType='market'
+
+export function getList(data) {
+ return request({
+ url: `${urlType}/admin/discountActivity/page`,
+ method: "GET",
+ data: {
+ ...data
+ }
+ })
+}
+export function add(data) {
+ return request({
+ url: `${urlType}/admin/discountActivity`,
+ method: "POST",
+ data: {
+ ...data
+ }
+ })
+}
+
+export function update(data) {
+ return request({
+ url: `${urlType}/admin/discountActivity`,
+ method: "PUT",
+ data: {
+ ...data
+ }
+ })
+}
+
+export function del(id) {
+ return request({
+ url: `${urlType}/admin/discountActivity?id=`+id,
+ method: "DELETE",
+ })
+}
+
diff --git a/http/api/market/drainageConfig.js b/http/api/market/drainageConfig.js
new file mode 100644
index 0000000..df41dcf
--- /dev/null
+++ b/http/api/market/drainageConfig.js
@@ -0,0 +1,24 @@
+import http from '@/http/http.js'
+const request = http.request
+const urlType='market'
+
+export function getConfig(data) {
+ return request({
+ url: `${urlType}/admin/drainageConfig`,
+ method: "GET",
+ data: {
+ ...data
+ }
+ })
+}
+export function update(data) {
+ return request({
+ url: `${urlType}/admin/drainageConfig`,
+ method: "POST",
+ data: {
+ ...data
+ }
+ })
+}
+
+
diff --git a/http/api/shop.js b/http/api/shop.js
index ecdb059..4a2bdaf 100644
--- a/http/api/shop.js
+++ b/http/api/shop.js
@@ -56,3 +56,17 @@ export function editShopExtend(data, urlType = 'account') {
}
})
}
+
+/**
+ * 获取门店列表
+ * @returns
+ */
+export function getShopList(data, urlType = 'account') {
+ return request({
+ url: `${urlType}/admin/shopInfo/branchList`,
+ method: "GET",
+ data: {
+ ...data
+ }
+ })
+}
diff --git a/http/http.js b/http/http.js
index 0005b9a..017b47a 100644
--- a/http/http.js
+++ b/http/http.js
@@ -15,7 +15,7 @@ import infoBox from "@/commons/utils/infoBox.js"
import go from '@/commons/utils/go.js';
import { reject } from 'lodash';
// 设置node环境
-envConfig.changeEnv(storageManage.env('production'))
+envConfig.changeEnv(storageManage.env('development'))
// 测试服
// #ifdef H5
diff --git a/main.js b/main.js
index d839b8b..4e9d56d 100644
--- a/main.js
+++ b/main.js
@@ -24,6 +24,11 @@ const app = new Vue({
})
app.$mount()
+
+
+
+
+
// #endif
// #ifdef VUE3
diff --git a/pageBwc/index/index.vue b/pageBwc/index/index.vue
index 4e049a2..195ff38 100644
--- a/pageBwc/index/index.vue
+++ b/pageBwc/index/index.vue
@@ -1,36 +1,51 @@
-
+
+
+
+
+
+ 霸王餐
+ 设置充值消费的N倍,当前订单立即免单
+
+
+
+
+ >
充值设置
-
- 用户消费结账时,成功充值
-
- 倍的金额本单即可享受免单
+
+
+ 倍
+
+
+ 用户消费结账时,成功充值订单金额的X倍即可享受免单
+
+
+
-
-
充值门槛
-
- 订单支付金额需满
-
-
-
-
- 元,才能使用
+
+
+ 元
-
-
-
- 功能启用
+
+ 订单的支付金额满足X元,才能使用
-
+
+ 可用门店
+
+
+
+
+
+
+
+
+ 可使用类型
+
+
+
+
+
-
- 保存
+
+
+
+ 与优惠券同享
+ 不能和优惠券同时使用
+
+
+
+
+
+ 与积分抵扣同享
+ 开启后,可与积分抵扣同时使用
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageBwc/static/images/bwc.png b/pageBwc/static/images/bwc.png
new file mode 100644
index 0000000000000000000000000000000000000000..f4b51f40d4a5a0fb76ad83aee62158e1320b6823
GIT binary patch
literal 1413
zcmV;01$z34P)RL(zJd#F!8&uaQbAp;B0t&Bit{X_Bc)lct)ssir@A+nH!e8JR)b*qv5r
z$<{K-%P7o9Qr1g)p)3kREKAti^S$Sudw=)tF54e_=YG$5&hvZD`JR{OdCm#2-@v(%
z?t|t=mKw?pkvhW3L31KSL-Ha$jFLd4#=hPfBMs?>y81UFjZu}AtP^<JK-9Fw^R9{vhfTZ{G!)c$160WpW*ane@)a$#3Iv*cOQk^wJ>JBTdg-2={pt!
z6Z;W$td7k=xV*8qfYQGq%lhdUwwkOX>)ST*-AhTt`;I&HrhTyN7to5G#+7oSuC1Iy
z&A!ieBh#TE3mRYKY*d~(=N!);%YkxflaWMRcFcXODK_O?6NDXtWJ|+@mFBp>kWMU>;M>P&mUA?drv?Fq^4$Yj-
zmw^|avw`JUt9OIo_2D|a)yK_q=WQXr?T2g7wn>yAAwhq{>to
zS3$u~7E+eG^9*Gv-mCD_?WUs>{8*~v#A<9isL~w5RY|3`Qa6+)Hl+lPo+5g7x-^mu
zLyfbQuCe8StHWgwZnSCaT0W7umMf=P#*zn%G@K9?KWNEjyhHwIXY0$o=gA96#BF25
zBf7#(?R|GwFWLrAe+iy+=V6%hJrvqjd+2tOwbJBp8$(dLT`ZAE_DCXLX-;zLEcCK-
z%pK}3e+?pIow3eVvQS|ch{8!{>meKE`=V@k;Z~3*>%pK5r#@jM5ii-{61*JeNQJwh
zGHmAI4i}Q;P|Dl7PT#VNCbJOaxT*b;i1kr3)YbNG%>5tg4XrIDY8R9?dt4@~1p2iD
zdAIaht&T{$rpLo_yJ&P_B&-us6=MHsjb$*+TBHlc!22UWX>+>OdSB@XCijPF=5){B
z0y8p*zRT3VWS8@L$u*%yVs+4q;+#EYbUkjjP+R{esDs{D{(@J?Xp+0k*-qPaC|l)d
z^*
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/consumeCashback/components/config.vue b/pageMarket/consumeCashback/components/config.vue
new file mode 100644
index 0000000..ec2a02e
--- /dev/null
+++ b/pageMarket/consumeCashback/components/config.vue
@@ -0,0 +1,331 @@
+
+
+
+
+
+
+ 消费返现
+ 可设置用户下单后返现金额
+
+
+
+
+
+
+ 可用门店
+
+
+
+
+
+
+ 适用用户
+
+
+
+
+
+
+ 返现类型
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ 阶梯设置
+
+
+
+ {{ returnName(index) }}
+
+
+ 返现门槛
+
+ 元
+
+
+ 返现比例
+
+ {{ returnUnit }}
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/consumeCashback/components/user-types.vue b/pageMarket/consumeCashback/components/user-types.vue
new file mode 100644
index 0000000..d8988cf
--- /dev/null
+++ b/pageMarket/consumeCashback/components/user-types.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+ {{ item.label }}
+
+
+ {{ item.desc }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/consumeCashback/index.vue b/pageMarket/consumeCashback/index.vue
new file mode 100644
index 0000000..d423089
--- /dev/null
+++ b/pageMarket/consumeCashback/index.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+ {{selShop.shopName || "全部门店"}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关联订单:{{ item.orderNo }}
+
+ {{ item.shopName }}
+ {{ item.createTime }}
+
+
+ ID:{{ item.id }}
+
+
+
+
+
+
+ 用户昵称
+ {{ item.nickName }}
+
+
+
+ 返现金额
+ {{ item.cashbackAmount ||0 }}
+
+
+ 支付金额
+ {{ item.amount || 0 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/discountActivity/add.vue b/pageMarket/discountActivity/add.vue
new file mode 100644
index 0000000..a8aec89
--- /dev/null
+++ b/pageMarket/discountActivity/add.vue
@@ -0,0 +1,349 @@
+
+
+
+
+ 满减优惠
+
+
+
+
+
+ 满
+
+ 元
+
+
+ 减
+
+ 元
+
+ 删除
+
+
+
+
+
+ 活动日期
+
+
+
+
+
+
+
+
+ 可用周期
+
+
+
+
+
+
+
+ 指定时间段
+
+
+
+
+
+ 可使用类型
+
+
+
+
+
+ 排序值
+
+
+ 数值越大,排序越靠前。重复时段下,按照排序值最高的活动减免
+
+
+
+
+
+ 与优惠券同享
+ 不能和优惠券同时使用
+
+
+
+
+
+ 与限时折扣同享
+ 开启后,计算门槛时将会按照折扣价计算
+
+
+
+
+
+ 与会员价/会员折扣同享
+ 开启后,计算门槛时将会按照会员价/会员折扣价计算
+
+
+
+
+
+ 与积分 抵扣同享
+ 开启后,可和积分抵扣同时使用
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/discountActivity/components/bottom-btn-group.vue b/pageMarket/discountActivity/components/bottom-btn-group.vue
new file mode 100644
index 0000000..6c10619
--- /dev/null
+++ b/pageMarket/discountActivity/components/bottom-btn-group.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+ 取消
+
+
+
+
+
+
+
diff --git a/pageMarket/discountActivity/components/hour-area.vue b/pageMarket/discountActivity/components/hour-area.vue
new file mode 100644
index 0000000..010ec4c
--- /dev/null
+++ b/pageMarket/discountActivity/components/hour-area.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+ 开始时间
+ {{ startValue }}
+
+ —
+
+ 结束时间
+ {{ endValue }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/discountActivity/components/time-area.vue b/pageMarket/discountActivity/components/time-area.vue
new file mode 100644
index 0000000..7cb469d
--- /dev/null
+++ b/pageMarket/discountActivity/components/time-area.vue
@@ -0,0 +1,79 @@
+
+
+
+
+ 请选择日期范围
+ {{ startDate }}
+
+
+ —
+
+ 请选择日期范围
+ {{ endDate }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pageMarket/discountActivity/components/week-sel.vue b/pageMarket/discountActivity/components/week-sel.vue
new file mode 100644
index 0000000..78ad6d9
--- /dev/null
+++ b/pageMarket/discountActivity/components/week-sel.vue
@@ -0,0 +1,57 @@
+
+
+
+ {{ item.name }}
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/discountActivity/index.vue b/pageMarket/discountActivity/index.vue
new file mode 100644
index 0000000..186f744
--- /dev/null
+++ b/pageMarket/discountActivity/index.vue
@@ -0,0 +1,197 @@
+
+
+
+ 添加满减活动
+
+
+
+
+
+ ID:{{ item.id }}
+ 优先级:{{ item.sort }}
+
+ 进行中
+
+ 活动日期:{{ returnActivityDate(item) }}
+
+ {{ returnActivityWeek(item) }}
+ {{ returnCanUseTime(item) }}
+
+
+
+
+
+ 活动内容:
+ {{ returnActivityContent(item) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/drainageConfig/index.vue b/pageMarket/drainageConfig/index.vue
new file mode 100644
index 0000000..8930055
--- /dev/null
+++ b/pageMarket/drainageConfig/index.vue
@@ -0,0 +1,366 @@
+
+
+
+
+
+
+ 私域引流
+ 可设置用户下单后展示的群二维码
+
+
+
+
+
+ 可使用类型
+
+
+
+
+
+
+
+ 群二维码
+
+
+
+
+
+
+
+
+
+
+
+
+ 模块标题
+
+
+
+
+
+
+ 模块提示语
+
+
+
+
+
+
+ 模块内容
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ form.title
+ }}
+ {{
+ form.content
+ }}
+
+
+ {{ form.note }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageMarket/static/images/cost.png b/pageMarket/static/images/cost.png
new file mode 100644
index 0000000000000000000000000000000000000000..5e0663a95cd8b9deb13fd96b10a297762fbadc69
GIT binary patch
literal 724
zcmV;_0xSKAP)F|9LGO9YqrapNGQ@N2tuu6bV!O#`U@qjm&mB7L(nnk&_Ww@D2VPsmrTN_ut>0|
zs8FJR*Zv*4RVb{~!OTC2xzq2rvc4I`x5F?iF7G@0oA-O~`+4(b=Dl%{-;OSKQ@YFT
z7mbVD3TZNZ!+qG+?QRw%jzWe0PEHPrQld(gBr!6D0&f-WI4+lkR4ZDpQY-K)j*Mbo
ziI}K@Guzk;U5m7p%
z1W}4%_Xe1nfg=wfb0->g-k`ZYP{nOf!d^MU;-`&n~6
ztXpGmW6OpDCuQ{4TFSD
z;6_>VbOzSf*>ENo2&_}P@ToKw;i5p`t9zllBOG9$3Or0)`)3cEGv@_YoQJ^c%zJTMhag@5x2;gupTzXZifgu^h
zfgZT~+0@yhKw#H}S&`RB&$ZrL_pjhRGjYs>^N|mn9|v6sbbHiIAPVi0t+qY|BjP(dDAxdl6K29vh^kS~X2O0QV%XxWC*HgI|7I1X8Hm32ps%TvajI5}tFMC^;e
zTXE?_K7mD*Dtb#FDNC9E0RRC1|2^atwEzGB21!IgR09CCp=|F3HD0y=0000 {
const arr = menusStore.adminPages.filter(v => {
return navList.find(navItem => navItem.title == v.title)
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 7ecb4c4..90e55f9 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -153,8 +153,8 @@
})
// #ifdef H5
- vdata.formData.username = '17792050546'
- vdata.formData.pwd = 'qwer1234'
+ vdata.formData.username = ''
+ vdata.formData.pwd = ''
// #endif
// #ifdef MP-WEIXIN
// vdata.formData.username = '15699991111'
diff --git a/vite.config.js b/vite.config.js
index ca16807..fac8e0c 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -9,7 +9,7 @@ export default defineConfig({
proxy: {
'/api': {
// target: 'https://cashier.sxczgkj.com', // 目标服务器地址
- target: 'http://192.168.1.31/', // 目标服务器地址
+ target: 'http://192.168.1.42/', // 目标服务器地址
changeOrigin: true, // 是否更改请求源
rewrite: path => path.replace(/^\/api/, '')
}