diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index dc85314d..006492f6 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -101,7 +101,7 @@ > 满{{ promotionMap["FULL_DISCOUNT"].fullMoney }}元,立享{{ promotionMap["FULL_DISCOUNT"].fullRate }}折 { return e.status === status }); - return ob[0].name + return ob && ob[0] ? ob[0].name : status } } }; diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index 9b5d83b7..f2f6192d 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -92,7 +92,7 @@
{ // 获取当前进行中的促销活动 export const getAllPromotion = params => { - return getRequest("/promotion/current", params); + return getRequest("/promotion/promotion/current", params); }; // 获取拼团数据 diff --git a/manager/src/assets/align-text-center.png b/manager/src/assets/align-text-center.png new file mode 100644 index 00000000..a38eb534 Binary files /dev/null and b/manager/src/assets/align-text-center.png differ diff --git a/manager/src/assets/align-text-left.png b/manager/src/assets/align-text-left.png new file mode 100644 index 00000000..993028dc Binary files /dev/null and b/manager/src/assets/align-text-left.png differ diff --git a/manager/src/assets/align-text-right.png b/manager/src/assets/align-text-right.png new file mode 100644 index 00000000..e6a4531e Binary files /dev/null and b/manager/src/assets/align-text-right.png differ diff --git a/manager/src/views/lili-dialog/link-dialog.vue b/manager/src/views/lili-dialog/link-dialog.vue index 0c68f0e3..51ae9b16 100644 --- a/manager/src/views/lili-dialog/link-dialog.vue +++ b/manager/src/views/lili-dialog/link-dialog.vue @@ -1,16 +1,24 @@ diff --git a/manager/src/views/lili-floor-renovation/wap/template/tpl_notice.vue b/manager/src/views/lili-floor-renovation/wap/template/tpl_notice.vue new file mode 100644 index 00000000..6b412850 --- /dev/null +++ b/manager/src/views/lili-floor-renovation/wap/template/tpl_notice.vue @@ -0,0 +1,61 @@ + + + + diff --git a/manager/src/views/lili-floor-renovation/wap/template/tpl_promotion_detail.vue b/manager/src/views/lili-floor-renovation/wap/template/tpl_promotion_detail.vue new file mode 100644 index 00000000..05d4bd6d --- /dev/null +++ b/manager/src/views/lili-floor-renovation/wap/template/tpl_promotion_detail.vue @@ -0,0 +1,137 @@ + + + \ No newline at end of file diff --git a/manager/src/views/lili-floor-renovation/wap/template/tpl_promotions.vue b/manager/src/views/lili-floor-renovation/wap/template/tpl_promotions.vue new file mode 100644 index 00000000..391596eb --- /dev/null +++ b/manager/src/views/lili-floor-renovation/wap/template/tpl_promotions.vue @@ -0,0 +1,30 @@ + + + diff --git a/manager/src/views/lili-floor-renovation/wap/template/tpl_title.vue b/manager/src/views/lili-floor-renovation/wap/template/tpl_title.vue index 5fce25ff..7286f2ce 100644 --- a/manager/src/views/lili-floor-renovation/wap/template/tpl_title.vue +++ b/manager/src/views/lili-floor-renovation/wap/template/tpl_title.vue @@ -1,9 +1,26 @@ @@ -11,13 +28,14 @@ diff --git a/seller/src/views/promotion/full-discount/full-discount-add.vue b/seller/src/views/promotion/full-discount/full-discount-add.vue index f1067acf..134ef7d4 100644 --- a/seller/src/views/promotion/full-discount/full-discount-add.vue +++ b/seller/src/views/promotion/full-discount/full-discount-add.vue @@ -53,11 +53,19 @@ 消费达到当前金额可以参与优惠 - - + 减现金 - 打折 @@ -102,7 +110,9 @@ v-model="form.couponFlag" >送优惠券 - 送赠品 - + @@ -140,9 +153,14 @@ :loading="giftLoading" style="width: 280px" > - + @@ -155,17 +173,26 @@ /> - + 全品类 - 指定商品 - +
- +
@@ -280,7 +310,10 @@ export default { promotionName: [{ required: true, message: "活动名称不能为空" }], rangeTime: [{ required: true, message: "请选择活动时间" }], description: [{ required: true, message: "请填写活动描述" }], - price: [{ required: true, message: "请输入面额" }, { validator: checkPrice }], + price: [ + { required: true, message: "请输入面额" }, + { validator: checkPrice }, + ], consumptionLimit: [{ required: true, validator: checkWeight }], fullMoney: [{ required: true, validator: checkWeight }], fullMinus: [ @@ -318,7 +351,10 @@ export default { key: "price", minWidth: 40, render: (h, params) => { - return h("div", this.$options.filters.unitPrice(params.row.price, "¥")); + return h( + "div", + this.$options.filters.unitPrice(params.row.price, "¥") + ); }, }, { @@ -343,8 +379,8 @@ export default { if (this.id) { this.getDetail(); } - this.getCouponList(); - this.getGiftList(); + await this.getCouponList(); + await this.getGiftList(); }, methods: { // 关闭当前页面 @@ -390,14 +426,19 @@ export default { this.$refs.form.validate((valid) => { if (valid) { const params = JSON.parse(JSON.stringify(this.form)); - const strat = this.$options.filters.unixToDate(this.form.rangeTime[0] / 1000); - const end = this.$options.filters.unixToDate(this.form.rangeTime[1] / 1000); + const strat = this.$options.filters.unixToDate( + this.form.rangeTime[0] / 1000 + ); + const end = this.$options.filters.unixToDate( + this.form.rangeTime[1] / 1000 + ); params.startTime = strat; params.endTime = end; if ( params.scopeType == "PORTION_GOODS" && - (!params.promotionGoodsList || params.promotionGoodsList.length == 0) + (!params.promotionGoodsList || + params.promotionGoodsList.length == 0) ) { this.$Modal.warning({ title: "提示", content: "请选择指定商品" }); return; @@ -463,9 +504,11 @@ export default { this.selectedGoods.forEach(function (e) { ids.push(e.id); }); - this.form.promotionGoodsList = this.form.promotionGoodsList.filter((item) => { - return !ids.includes(item.id); - }); + this.form.promotionGoodsList = this.form.promotionGoodsList.filter( + (item) => { + return !ids.includes(item.id); + } + ); }, }); }, @@ -511,7 +554,10 @@ export default { let params = { pageSize: 10, pageNumber: 1, - goodsName: query, + id: query === this.form.giftId ? this.form.giftId : null, + goodsName: query === this.form.giftId ? null : query, + marketEnable: "UPPER", + authFlag: "PASS" }; this.giftLoading = true; getGoodsSkuListDataSeller(params).then((res) => {