diff --git a/src/api/product.js b/src/api/product.js index c690f92..d5516da 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -499,6 +499,10 @@ export function updatetProductLabel(id, data) { export function updatetSeckillLabel(id, data) { return request.post(`seckill/product/labels/${id}`, data) } +/** 秒杀列表 -- 编辑时间 */ +export function updatetSeckillUpdate(id, data) { + return request.post(`seckill/product/update/day/${id}`, data) +} /** 预售列表 -- 编辑标签 */ export function updatetPresellLabel(id, data) { return request.post(`store/product/presell/labels/${id}`, data) diff --git a/src/components/mobilePage/home_goods_list.vue b/src/components/mobilePage/home_goods_list.vue index 01c52e8..57f5923 100644 --- a/src/components/mobilePage/home_goods_list.vue +++ b/src/components/mobilePage/home_goods_list.vue @@ -1,865 +1,998 @@ diff --git a/src/views/accounts/extract/index.vue b/src/views/accounts/extract/index.vue index de77a8e..ca6334a 100644 --- a/src/views/accounts/extract/index.vue +++ b/src/views/accounts/extract/index.vue @@ -38,7 +38,7 @@ - + - + @@ -250,7 +250,7 @@
-
提现方式
+
方式
- + 关闭 开启 - (指平台积分功能的开启或关闭。开启:积分功能正常启用;关闭:积分功能不可使用,且前端不展示) + (指平台积分功能的开启或关闭。开启:积分功能正常启用;关闭:积分功能不可使用,且前端不展示) - + - + 关闭 开启 - - - - + + + + (订单支付价格返还比例%) - + - + (一元兑积分数量) - + - + (积分连续签到返还结束天数) - + - + (每个用户日签到获得积分上限) - - - - (每个用户日签到获得每单返还积分逐日递减%) + + + + (每个用户日签到获得每单返还积分逐日递减%) - + - - 预览 - 提交 + + 预览 + 提交 -
+
diff --git a/src/views/marketing/seckill/seckillGoods/index.vue b/src/views/marketing/seckill/seckillGoods/index.vue index 70fa864..a8b149d 100644 --- a/src/views/marketing/seckill/seckillGoods/index.vue +++ b/src/views/marketing/seckill/seckillGoods/index.vue @@ -325,6 +325,9 @@ @click="onEdit(scope.row.product_id)" >编辑 + 编辑时间 价格编辑 @@ -692,6 +695,39 @@ > + + + + + + + + + + 取消 + 提交 + +
@@ -708,6 +744,7 @@ import { seckillProductOffApi, getProductLabelApi, updatetSeckillLabel, + updatetSeckillUpdate, exportSeckillApi, } from "@/api/product"; import { seckillDetailApi } from "@/api/marketing"; @@ -781,6 +818,9 @@ export default { timeVal: [], dialogVisible: false, detailDialog: false, + dateForm: { + date: "", + }, checkboxGroup: [], formValidate: { is_hot: 0, @@ -851,6 +891,8 @@ export default { previewKey: "", labelList: [], dialogLabel: false, + dialogDate: false, + seckill_active_id: "", labelForm: {}, }; }, @@ -988,6 +1030,14 @@ export default { sys_labels: row.sys_labels, }; }, + // 编辑时间 + onEditDate(row) { + this.dialogDate = true; + this.seckill_active_id = row.seckillActive.seckill_active_id; + this.dateForm = { + date: row.seckillActive.start_day, + }; + }, submitForm(name) { this.$refs[name].validate((valid) => { if (valid) { @@ -1003,6 +1053,21 @@ export default { } }); }, + submitDateForm(name) { + this.$refs[name].validate((valid) => { + if (valid) { + updatetSeckillUpdate(this.seckill_active_id, this.dateForm).then( + ({ message }) => { + this.$message.success(message); + this.getList(""); + this.dialogDate = false; + } + ); + } else { + return; + } + }); + }, // 提交 handleSubmit(name) { this.$refs[name].validate((valid) => { @@ -1040,8 +1105,10 @@ export default { : (this.formValidate.is_hot = 0 && this.checkboxGroup.remove("is_hot")); }, handleClose() { + this.$refs["dateForm"].resetFields(); this.dialogVisible = false; this.dialogLabel = false; + this.dialogDate = false; }, watCh(val) { const tmp = {};