diff --git a/components/my-components/my-dine-types.vue b/components/my-components/my-dine-types.vue
index 71f3138..05458df 100644
--- a/components/my-components/my-dine-types.vue
+++ b/components/my-components/my-dine-types.vue
@@ -1,44 +1,39 @@
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
+
diff --git a/components/my-components/my-footer-btn.vue b/components/my-components/my-footer-btn.vue
index 259f291..b4adcb5 100644
--- a/components/my-components/my-footer-btn.vue
+++ b/components/my-components/my-footer-btn.vue
@@ -43,6 +43,7 @@ const emits = defineEmits(['confirm', 'cancel']);
position: fixed;
bottom: 0;
left: 0;
+ z-index: 99;
padding: 10px 14px calc(20px + env(safe-area-inset-bottom) / 2) 10px;
background-color: #fff;
.btn {
diff --git a/components/my-components/my-hour-area.vue b/components/my-components/my-hour-area.vue
index 010ec4c..8e846c7 100644
--- a/components/my-components/my-hour-area.vue
+++ b/components/my-components/my-hour-area.vue
@@ -1,111 +1,97 @@
-
-
-
-
-
-
-
-
- 开始时间
- {{ startValue }}
-
- —
-
- 结束时间
- {{ endValue }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 开始时间
+ {{ startValue }}
+
+ —
+
+ 结束时间
+ {{ endValue }}
+
+
+
+
+
+
-
-
-
-
-
\ No newline at end of file
diff --git a/components/my-components/my-select-goods.vue b/components/my-components/my-select-goods.vue
new file mode 100644
index 0000000..6152db7
--- /dev/null
+++ b/components/my-components/my-select-goods.vue
@@ -0,0 +1,316 @@
+
+
+
+
+
+
+
+
+
+ 选择商品
+
+
+
+ 请选择商品
+ {{ selectGoodsCount.map((item) => item.name).join('、') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/http/api/market/index.js b/http/api/market/index.js
index 4943051..f27f64f 100644
--- a/http/api/market/index.js
+++ b/http/api/market/index.js
@@ -18,10 +18,21 @@ export function limitTimeDiscountPage(data) {
* 删除限时折扣
* @param {Object} data
*/
-export function limitTimeDiscountDel(params) {
+export function limitTimeDiscountDel(id) {
+ return request({
+ url: `${urlType}/admin/limitTimeDiscount?id=${id}`,
+ method: "DELETE"
+ });
+}
+
+/**
+ * 限时折扣-新增/编辑
+ * @param {Object} data
+ */
+export function limitTimeDiscount(data) {
return request({
url: `${urlType}/admin/limitTimeDiscount`,
- method: "DELETE",
- params
+ method: data.id ? 'put' : 'post',
+ data
});
}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 0b8d03d..f9080fc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,14 +5,19 @@
"packages": {
"": {
"dependencies": {
+ "bignumber.js": "^9.3.1",
"clipboard": "^2.0.11",
"dayjs": "^1.11.13",
"gm-crypto": "^0.1.8",
"immutable": "^4.3.7",
"js-base64": "^3.7.2",
+ "jsbn": "^1.1.0",
"jsencrypt": "^3.3.2",
"lodash": "^4.17.21",
- "uview-plus": "^3.3.32"
+ "pinia-plugin-unistorage": "^0.1.2",
+ "to-arraybuffer": "^1.0.1",
+ "uview-plus": "^3.3.32",
+ "ysk-utils": "^1.0.78"
},
"devDependencies": {
"copy-webpack-plugin": "^12.0.2",
@@ -450,6 +455,14 @@
"node": "*"
}
},
+ "node_modules/bignumber.js": {
+ "version": "9.3.1",
+ "resolved": "https://registry.npmmirror.com/bignumber.js/-/bignumber.js-9.3.1.tgz",
+ "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/binary-extensions": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz",
@@ -1071,6 +1084,12 @@
"node": ">=8.9.0"
}
},
+ "node_modules/loadsh": {
+ "version": "0.0.4",
+ "resolved": "https://registry.npmmirror.com/loadsh/-/loadsh-0.0.4.tgz",
+ "integrity": "sha512-U+wLL8InpfRalWrr+0SuhWgGt10M4OyAk6G8xCYo2rwpiHtxZkWiFpjei0vO463ghW8LPCdhqQxXlMy2qicAEw==",
+ "deprecated": "This is a typosquat on the popular Lodash package. This is not maintained nor is the original Lodash package."
+ },
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
@@ -1181,6 +1200,11 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/pinia-plugin-unistorage": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/pinia-plugin-unistorage/-/pinia-plugin-unistorage-0.1.2.tgz",
+ "integrity": "sha512-WXit2cGnm5rG6CDTcLSLehNWhyJS/Yq7WEeeXAapZbCnqoPJxlszqg7rT8S+OP47az0h5nlajGo+LuyMxUQ2uw=="
+ },
"node_modules/punycode": {
"version": "2.3.1",
"resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz",
@@ -1726,6 +1750,16 @@
"engines": {
"node": ">=10.13.0"
}
+ },
+ "node_modules/ysk-utils": {
+ "version": "1.0.78",
+ "resolved": "https://registry.npmmirror.com/ysk-utils/-/ysk-utils-1.0.78.tgz",
+ "integrity": "sha512-Bgr5B3WWiy0nbgL91QVKoVPYm4wt13Rlav757zEjMVRHbmTjwFEhi3wJlYus0JGd52mbknSxXHMazAPHXwA7uQ==",
+ "dependencies": {
+ "bignumber.js": "^9.3.1",
+ "loadsh": "^0.0.4",
+ "lodash": "^4.17.21"
+ }
}
}
}
diff --git a/pageMarket/components/FooterBtn.vue b/pageMarket/components/FooterBtn.vue
deleted file mode 100644
index 259f291..0000000
--- a/pageMarket/components/FooterBtn.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
- {{ confirmText }}
-
-
- 取消
-
-
-
-
-
-
-
-
diff --git a/pageMarket/components/HeaderCard.vue b/pageMarket/components/HeaderCard.vue
deleted file mode 100644
index 1da5961..0000000
--- a/pageMarket/components/HeaderCard.vue
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
- {{ options.name }}
-
-
- {{ options.intro }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pageMarket/limitDiscount/add.vue b/pageMarket/limitDiscount/add.vue
index d675498..a1b6cd1 100644
--- a/pageMarket/limitDiscount/add.vue
+++ b/pageMarket/limitDiscount/add.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,7 +10,52 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ %
+
+ 范围:1-99%
+
+
+ 例如:填写90,那么折扣后价格=原价*90%
+
+
+
+
+
+
+
+ 数值越大,排序越靠前。重复时段下,按照排序值最高的折扣使用
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -18,8 +63,13 @@
diff --git a/pageMarket/limitDiscount/index.vue b/pageMarket/limitDiscount/index.vue
index 4b5df29..bb680ba 100644
--- a/pageMarket/limitDiscount/index.vue
+++ b/pageMarket/limitDiscount/index.vue
@@ -11,6 +11,10 @@
+
+ 活动名称:
+ {{ item.title }}
+
活动时间:
{{ item.updateTime }}
@@ -26,7 +30,7 @@
删除
- 编辑
+ 编辑
@@ -38,12 +42,16 @@