diff --git a/commons/style/common.scss b/commons/style/common.scss
index 6a0a8f3..542d42b 100644
--- a/commons/style/common.scss
+++ b/commons/style/common.scss
@@ -365,7 +365,7 @@ text {
right: 0;
padding: 30rpx;
padding-bottom: env(safe-area-inset-bottom);
-
+ z-index: 999;
/* #ifdef H5 */
padding-bottom: 28rpx;
/* #endif */
@@ -427,4 +427,51 @@ text {
}
.bg-f7{
background-color: #F7F7F7;
-}
\ No newline at end of file
+}
+.default-box-padding{
+ padding: 32rpx 28rpx;
+}
+.default-box-radius{
+ border-radius: 16rpx;
+}
+.default-box-x-padding{
+ padding-left: 28rpx;
+ padding-right: 28rpx;
+}
+.default-box-y-padding{
+ padding-top: 32rpx;
+ padding-bottom: 32rpx;
+}
+$height: 70rpx;
+
+.number-box {
+ font-size: 28rpx;
+ padding: 0 26rpx;
+ border-radius: 6rpx 0 0 6rpx;
+ border-top: 2rpx solid #d9d9d9;
+ border-bottom: 2rpx solid #d9d9d9;
+ border-left: 2rpx solid #d9d9d9;
+ background: #fff;
+ box-sizing: border-box;
+ height: $height;
+ flex: 1;
+ line-height: $height;
+ }
+ .unit {
+ display: flex;
+ padding: 0 38rpx;
+ height: $height;
+ line-height: $height;
+ align-items: center;
+ border-radius: 0 6rpx 6rpx 0;
+ border: 2rpx solid #d9d9d9;
+ background: #f7f7fa;
+ font-size: 28rpx;
+ color: #999999;
+ }
+ .u-col-baseline{
+ align-items: baseline;
+ }
+ .text-right{
+ text-align: right;
+ }
\ No newline at end of file
diff --git a/components/my-components/my-bottom-btn-group.vue b/components/my-components/my-bottom-btn-group.vue
index 688082a..862bca2 100644
--- a/components/my-components/my-bottom-btn-group.vue
+++ b/components/my-components/my-bottom-btn-group.vue
@@ -1,10 +1,13 @@
-
+
-
+
-
+
保存
@@ -18,7 +21,15 @@
+
+
diff --git a/components/my-components/my-dine-types.vue b/components/my-components/my-dine-types.vue
index 05458df..bb3a040 100644
--- a/components/my-components/my-dine-types.vue
+++ b/components/my-components/my-dine-types.vue
@@ -1,39 +1,57 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/components/my-components/my-time-area.vue b/components/my-components/my-time-area.vue
index 7cb469d..0938a16 100644
--- a/components/my-components/my-time-area.vue
+++ b/components/my-components/my-time-area.vue
@@ -2,13 +2,13 @@
- 请选择日期范围
+ {{ startText }}
{{ startDate }}
—
- 请选择日期范围
+ {{ endText }}
{{ endDate }}
@@ -29,6 +29,16 @@
+
diff --git a/pageMarket/static/images/new-user-discount.png b/pageMarket/static/images/new-user-discount.png
new file mode 100644
index 0000000..8a4897b
Binary files /dev/null and b/pageMarket/static/images/new-user-discount.png differ
diff --git a/pages.json b/pages.json
index c49bf2c..c26d5ef 100644
--- a/pages.json
+++ b/pages.json
@@ -679,6 +679,25 @@
"style": {
"navigationBarTitleText": "运营余额"
}
+ },
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "pageId": "PAGES_MARKET_NEW_USER_DISCOUNT",
+ "path": "newUserDiscount/index",
+ "style": {
+ "navigationBarTitleText": "新客立减"
+ }
}
]
},
diff --git a/pages/appliccation/marketing.vue b/pages/appliccation/marketing.vue
index 61e710e..7f2c782 100644
--- a/pages/appliccation/marketing.vue
+++ b/pages/appliccation/marketing.vue
@@ -58,7 +58,7 @@ const menuList = ref([
{
title: '新客立减',
icon: '',
- pageUrl: 'PAGES_ORDER_INDEX',
+ pageUrl: 'PAGES_MARKET_NEW_USER_DISCOUNT',
intro: '首单下单减免金额'
},
{
diff --git a/store/market.js b/store/market.js
index 9a8a526..af8b1d5 100644
--- a/store/market.js
+++ b/store/market.js
@@ -1,6 +1,7 @@
// stores/counter.js
import { defineStore } from "pinia";
import * as distributionApi from "@/http/api/market/distribution.js";
+import * as consumeDiscountApi from "@/http/api/market/consumeDiscount.js";
export const upgradeTypes = [
{
@@ -51,3 +52,30 @@ export const useDistributionStore = defineStore("distribution", {
},
unistorage: true, // 开启后对 state 的数据读写都将持久化
});
+
+//新客立减
+export const useNewUserDiscountStore = defineStore("newUserDiscount", {
+ state: () => {
+ return {
+ //分销配置
+ config: {
+ isEnable: 0,
+ },
+ };
+ },
+ actions: {
+ async getConfig() {
+ const data = await consumeDiscountApi.getConfig();
+ this.config = data;
+ return this.config;
+ },
+ async editConfig(data,isAutoResrefresh = true) {
+ const res = await consumeDiscountApi.editConfig({ ...this.config, ...data });
+ if(isAutoResrefresh){
+ this.getConfig();
+ }
+ return res;
+ },
+ },
+ unistorage: true, // 开启后对 state 的数据读写都将持久化
+});
\ No newline at end of file