@@ -118,8 +120,8 @@ import {
getPlatformCoupon,
editPlatformCoupon,
} from "@/api/promotion";
-import { getCategoryTree } from "@/api/goods";
-import { regular } from "@/utils";
+import {getCategoryTree} from "@/api/goods";
+import {regular} from "@/utils";
import skuSelect from "@/views/lili-dialog";
export default {
@@ -167,7 +169,7 @@ export default {
/** 店铺承担比例 */
storeCommission: 0,
/** 发行数量 */
- publishNum: 1,
+ publishNum: 0,
/** 运费承担者 */
scopeType: "ALL",
/** 限领数量 */
@@ -193,38 +195,37 @@ export default {
value: "id",
}, // 级联选择器配置项
formRule: {
- promotionName: [{ required: true, message: "活动名称不能为空" }],
- couponName: [{ required: true, message: "优惠券名称不能为空" }],
- couponLimitNum: [{ required: true, message: "领取限制不能为空" }],
+ promotionName: [{required: true, message: "活动名称不能为空"}],
+ couponName: [{required: true, message: "优惠券名称不能为空"}],
price: [
- { required: true, message: "请输入面额" },
- { validator: checkPrice },
+ {required: true, message: "请输入面额"},
+ {validator: checkPrice},
],
- rangeTime: [{ required: true, message: "请选择优惠券有效期" }],
+ rangeTime: [{required: true, message: "请选择优惠券有效期"}],
consumeThreshold: [
- { required: true, message: "请输入消费门槛" },
- { validator: checkWeight },
+ {required: true, message: "请输入消费门槛"},
+ {validator: checkWeight},
],
couponDiscount: [
- { required: true, message: "请输入折扣" },
+ {required: true, message: "请输入折扣"},
{
pattern: regular.discount,
message: "请输入0-10的数字,可有一位小数",
},
],
storeCommission: [
- { required: true, message: "请输入店铺承担比例" },
- { pattern: regular.rate, message: "请输入0-100的正整数" },
+ {required: true, message: "请输入店铺承担比例"},
+ {pattern: regular.rate, message: "请输入0-100的正整数"},
],
publishNum: [
- { required: true, message: "请输入发放数量" },
- { pattern: regular.integer, message: "请输入正整数" },
+ {required: true, message: "请输入发放数量"},
+ {pattern: regular.integer, message: "请输入正整数"},
],
couponLimitNum: [
- { required: true, message: "请输入领取限制" },
- { pattern: regular.integer, message: "请输入正整数" },
+ {required: true, message: "领取限制不能为空"},
+ {pattern: regular.integer, message: "请输入正整数"},
],
- description: [{ required: true, message: "请输入范围描述" }],
+ description: [{required: true, message: "请输入范围描述"}],
},
columns: [
{
@@ -301,6 +302,7 @@ export default {
if (!data.promotionGoodsList) data.promotionGoodsList = [];
if (data.scopeType == "PORTION_GOODS_CATEGORY") {
let prevCascader = data.scopeId.split(",");
+
// console.log(prevCascader);
function next(params, prev) {
for (let i = 0; i < params.length; i++) {
@@ -325,6 +327,7 @@ export default {
}
}
}
+
next(this.goodsCategoryList, []);
data.scopeIdGoods = prevCascader;
}
@@ -338,7 +341,7 @@ export default {
this.$refs.form.validate((valid) => {
if (valid) {
const params = JSON.parse(JSON.stringify(this.form));
- // 判断当前活动类型
+ // 判断当前活动类型
params.getType != "ACTIVITY" ? delete params.effectiveDays : "";
//判断当前时间类型
@@ -363,7 +366,7 @@ export default {
(!params.promotionGoodsList ||
params.promotionGoodsList.length == 0)
) {
- this.$Modal.warning({ title: "提示", content: "请选择指定商品" });
+ this.$Modal.warning({title: "提示", content: "请选择指定商品"});
return;
}
@@ -371,7 +374,7 @@ export default {
params.scopeType == "PORTION_GOODS_CATEGORY" &&
(!params.scopeIdGoods || params.scopeIdGoods.length == 0)
) {
- this.$Modal.warning({ title: "提示", content: "请选择商品分类" });
+ this.$Modal.warning({title: "提示", content: "请选择商品分类"});
return;
}
@@ -516,7 +519,7 @@ export default {
}
});
}
- return { value: item.id, label: item.name, children: item.children };
+ return {value: item.id, label: item.name, children: item.children};
});
},
filterCategory(list) {
@@ -558,14 +561,17 @@ h4 {
line-height: 40px;
text-align: left;
}
+
.describe {
font-size: 12px;
margin-left: 10px;
color: #999;
}
+
.effectiveDays {
font-size: 12px;
color: #999;
+
> * {
margin: 0 4px;
}
diff --git a/manager/src/views/promotion/couponActivity/coupon.vue b/manager/src/views/promotion/couponActivity/coupon.vue
new file mode 100644
index 00000000..0be79c4a
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/coupon.vue
@@ -0,0 +1,360 @@
+
+
+
+
+
+
diff --git a/manager/src/views/promotion/couponActivity/couponInfo.vue b/manager/src/views/promotion/couponActivity/couponInfo.vue
new file mode 100644
index 00000000..87061b89
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/couponInfo.vue
@@ -0,0 +1,240 @@
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/promotion/couponActivity/couponPublish.scss b/manager/src/views/promotion/couponActivity/couponPublish.scss
new file mode 100644
index 00000000..a4eb33ed
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/couponPublish.scss
@@ -0,0 +1,257 @@
+/*选择商品品类*/
+.content-goods-publish {
+ padding: 15px;
+ margin: 0 auto;
+ text-align: center;
+ border: 1px solid #ddd;
+ background: none repeat 0 0 #fff;
+ height: 100%;
+ margin-bottom: 20px;
+
+ /*商品品类*/
+ .goods-category {
+ text-align: left;
+ padding: 10px;
+ background: #fafafa;
+ border: 1px solid #e6e6e6;
+
+ ul {
+ padding: 8px 4px 8px 8px;
+ list-style: none;
+ width: 300px;
+ background: none repeat 0 0 #fff;
+ border: 1px solid #e6e6e6;
+ display: inline-block;
+ letter-spacing: normal;
+ margin-right: 15px;
+ vertical-align: top;
+ word-spacing: normal;
+
+ li {
+ line-height: 20px;
+ padding: 5px;
+ cursor: pointer;
+ color: #333;
+ font-size: 12px;
+ display: flex;
+ flex-wrap: nowrap;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ }
+ }
+ }
+
+ /** 当前品类被选中的样式 */
+ .activeClass {
+ background-color: #d9edf7;
+ border: 1px solid #bce8f1;
+ color: #3a87ad;
+ }
+
+ /*!*当前选择的商品品类文字*!*/
+ .current-goods-category {
+ text-align: left;
+ padding: 10px;
+ width: 100%;
+ border: 1px solid #fbeed5;
+ color: #c09853;
+ background-color: #fcf8e3;
+ margin: 10px auto;
+ padding: 8px 35px 8px 14px;
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
+ font-size: 12px;
+ font-weight: bold;
+ }
+}
+
+/*编辑基本信息*/
+.el-form {
+ padding-bottom: 80px;
+
+ .el-form-item {
+ width: 100%;
+ color: gray;
+ text-align: left;
+ }
+}
+
+div.base-info-item {
+
+ h4 {
+ margin-bottom: 10px;
+ padding: 0 10px;
+ border: 1px solid #ddd;
+ background-color: #f8f8f8;
+ font-weight: bold;
+ color: #333;
+ font-size: 14px;
+ line-height: 40px;
+ text-align: left;
+ }
+
+ .form-item-view {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: space-between;
+ padding-left: 80px;
+
+ .shop-category-text {
+ font-size: 12px;
+ }
+ }
+
+ .item-goods-properts-row {
+ display: flex;
+ flex-direction: row;
+ word-break: break-all;
+ white-space: normal;
+ width: 300px;
+ height: 100px;
+ }
+
+ .item-goods-properts {
+ display: flex;
+ flex-direction: row;
+ margin-bottom: 10px;
+ }
+
+ .form-item {
+ display: flex;
+ align-items: center;
+ }
+
+
+ /** 审核信息-拒绝原因 */
+ .auth-info {
+ color: red;
+ }
+
+ .el-form-item {
+ width: 30%;
+ min-width: 300px;
+ }
+
+ .goods-name-width {
+ width: 50%;
+ min-width: 300px;
+ }
+
+ .el-form-item__content {
+ margin-left: 120px;
+ text-align: left;
+ }
+
+ p.goods-group-manager {
+ padding-left: 7.5%;
+ text-align: left;
+ color: #999;
+ font-size: 13px;
+ }
+
+ /*teatarea*/
+ /deep/ .el-textarea {
+ width: 150%;
+ }
+
+ .seo-text {
+ width: 150%;
+ }
+}
+
+/*折叠面板*/
+.el-collapse-item {
+ /deep/ .el-collapse-item__header {
+ text-align: left;
+ background-color: #f8f8f8;
+ padding: 0 10px;
+ font-weight: bold;
+ color: #333;
+ font-size: 14px;
+ }
+
+ .el-form-item {
+ margin-left: 5%;
+ width: 25%;
+ }
+
+ /deep/ .el-form-item__content {
+ margin-left: 120px;
+ text-align: left;
+ }
+
+ p.goods-group-manager {
+ padding-left: 12%;
+ text-align: left;
+ color: #999;
+ }
+
+ /deep/ .el-collapse-item__content {
+ padding: 10px 0;
+ text-align: left;
+ }
+}
+
+/*商品描述*/
+.goods-intro {
+ line-height: 40;
+}
+
+/** 底部步骤 */
+.footer {
+ width: 88.7%;
+ padding: 10px;
+ background-color: #ffc;
+ position: fixed;
+ bottom: 0px;
+ left: 10%;
+ text-align: center;
+ z-index: 9999;
+}
+
+/*图片上传组件第一张图设置封面*/
+.goods-images {
+ /deep/ li.el-upload-list__item:first-child {
+ position: relative;
+ }
+
+ /deep/ li.el-upload-list__item:first-child:after {
+ content: "封";
+ color: #fff;
+ font-weight: bold;
+ font-size: 12px;
+ position: absolute;
+ left: -15px;
+ top: -6px;
+ width: 40px;
+ height: 24px;
+ padding-top: 6px;
+ background: #13ce66;
+ text-align: center;
+ -webkit-transform: rotate(-45deg);
+ transform: rotate(-45deg);
+ -webkit-box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 0 1pc 1px rgba(0, 0, 0, 0.2);
+ }
+}
+
+.el-form-item__label {
+ word-break: break-all;
+}
+
+.step-view {
+ width: 33%;
+ height: 40px;
+ font-size: 19px;
+ text-align: center;
+ display: flex;
+ background-color: #fff;
+ justify-content: center;
+ align-items: center;
+}
+
+.page {
+ margin-top: 2vh;
+ margin-bottom: 5vh;
+}
diff --git a/manager/src/views/promotion/couponActivity/couponPublish.vue b/manager/src/views/promotion/couponActivity/couponPublish.vue
new file mode 100644
index 00000000..1e42bf67
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/couponPublish.vue
@@ -0,0 +1,354 @@
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/promotion/couponActivity/couponSpecify.vue b/manager/src/views/promotion/couponActivity/couponSpecify.vue
new file mode 100644
index 00000000..a4553e87
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/couponSpecify.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/promotion/couponActivity/memberReceiveCoupon.vue b/manager/src/views/promotion/couponActivity/memberReceiveCoupon.vue
new file mode 100644
index 00000000..4291c1e3
--- /dev/null
+++ b/manager/src/views/promotion/couponActivity/memberReceiveCoupon.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+ {{ row.startTime }} ~ {{ row.endTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/sys/menu-manage/menuManage.vue b/manager/src/views/sys/menu-manage/menuManage.vue
index b2e07467..57bfcd58 100644
--- a/manager/src/views/sys/menu-manage/menuManage.vue
+++ b/manager/src/views/sys/menu-manage/menuManage.vue
@@ -70,7 +70,7 @@
size="16"
style="margin-right: 5px"
>
-
顶部菜单
+
顶级菜单