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 0000000..f4b51f4
Binary files /dev/null and b/pageBwc/static/images/bwc.png differ
diff --git a/pageMarket/components/shop-sel-action-sheet.vue b/pageMarket/components/shop-sel-action-sheet.vue
new file mode 100644
index 0000000..db51b63
--- /dev/null
+++ b/pageMarket/components/shop-sel-action-sheet.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
\ 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 0000000..5e0663a
Binary files /dev/null and b/pageMarket/static/images/cost.png differ
diff --git a/pages.json b/pages.json
index 9ec8a12..069adf7 100644
--- a/pages.json
+++ b/pages.json
@@ -590,6 +590,39 @@
"navigationBarTitleText": "查看明细"
}
}]
+ },
+ {
+ "root": "pageMarket",
+ "pages": [{
+ "pageId": "PAGES_MARKET_DISCOUNT_ACTIVITY",
+ "path": "discountActivity/index",
+ "style": {
+ "navigationBarTitleText": "满减活动"
+ }
+ },
+ {
+ "pageId": "PAGES_MARKET_DISCOUNT_ACTIVITY_ADD",
+ "path": "discountActivity/add",
+ "style": {
+ "navigationBarTitleText": "满减活动"
+ }
+ },
+ {
+ "pageId": "PAGES_MARKET_DRAINAGE_CONFIG",
+ "path": "drainageConfig/index",
+ "style": {
+ "navigationBarTitleText": "私域引流"
+ }
+ },
+ {
+ "pageId": "PAGES_MARKET_CONSUME_CASHBACK",
+ "path": "consumeCashback/index",
+ "style": {
+ "navigationBarTitleText": "消费返现"
+ }
+ }
+
+ ]
}
],
diff --git a/pages/appliccation/marketing.vue b/pages/appliccation/marketing.vue
index e5720ff..1a3365d 100644
--- a/pages/appliccation/marketing.vue
+++ b/pages/appliccation/marketing.vue
@@ -63,7 +63,24 @@
icon: '/static/indexImg/icon-order.svg',
pageUrl: 'PAGES_ORDER_INDEX'
},
+ {
+ title: '满减活动',
+ icon: '/static/indexImg/icon-order.svg',
+ pageUrl: 'PAGES_MARKET_DISCOUNT_ACTIVITY'
+ },
+ {
+ title: '私域引流',
+ icon: '/static/indexImg/icon-order.svg',
+ pageUrl: 'PAGES_MARKET_DRAINAGE_CONFIG'
+ },
+ {
+ title: '消费返现',
+ icon: '/static/indexImg/icon-order.svg',
+ pageUrl: 'PAGES_MARKET_CONSUME_CASHBACK'
+ },
+
];
+ console.log(menusStore.adminPages);
const computedMenus = computed(() => {
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/, '')
}