|
|
@@ -327,7 +327,7 @@
|
|
|
</template>
|
|
|
<el-switch v-model="form.smsEnabled" @change="handleSmsEnabledChange"></el-switch>
|
|
|
<template v-if="form.smsEnabled">
|
|
|
- <div style="width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-select
|
|
|
v-model="form.smsTemplateId"
|
|
|
placeholder="请选择短信模板"
|
|
|
@@ -361,26 +361,23 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-show="activeStep === 1">
|
|
|
- <!-- 设置规则 -->
|
|
|
+ <!-- 展示规则 -->
|
|
|
<el-card shadow="never" class="section-card">
|
|
|
<template #header>
|
|
|
- <div class="section-title">设置规则</div>
|
|
|
+ <div class="section-title">展示规则</div>
|
|
|
</template>
|
|
|
-
|
|
|
- <!-- 展示规则 -->
|
|
|
<div class="rule-section">
|
|
|
- <h4>展示规则</h4>
|
|
|
<el-form :model="form" label-width="120px" label-position="left">
|
|
|
<el-form-item label="展示时间限制">
|
|
|
<el-switch v-model="form.showTimeEnabled"></el-switch>
|
|
|
<template v-if="form.showTimeEnabled">
|
|
|
- <div style="display: flex;width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="display: flex;max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-date-picker
|
|
|
v-model="form.showStartTime"
|
|
|
type="datetime"
|
|
|
placeholder="请选择开始时间"
|
|
|
- format="yyyy-MM-dd HH:mm:ss"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
style="width: 100%"
|
|
|
></el-date-picker>
|
|
|
<div style="width: 50px;text-align: center;">-</div>
|
|
|
@@ -388,8 +385,8 @@
|
|
|
v-model="form.showEndTime"
|
|
|
type="datetime"
|
|
|
placeholder="请选择结束时间"
|
|
|
- format="yyyy-MM-dd HH:mm:ss"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
style="width: 100%"
|
|
|
></el-date-picker>
|
|
|
</div>
|
|
|
@@ -398,7 +395,7 @@
|
|
|
<el-form-item label="展示客群限制">
|
|
|
<el-switch v-model="form.showGroupEnabled"></el-switch>
|
|
|
<template v-if="form.showGroupEnabled">
|
|
|
- <div style="display: flex;width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="display: flex;max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-select v-model="form.showGroupTagIds" multiple filterable placeholder="请选择客群" style="width: 100%">
|
|
|
<el-option label="客群A" value="客群A"></el-option>
|
|
|
<el-option label="客群B" value="客群B"></el-option>
|
|
|
@@ -409,21 +406,25 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
+ </el-card>
|
|
|
|
|
|
- <!-- 领取规则 -->
|
|
|
+ <!-- 领取规则 -->
|
|
|
+ <el-card shadow="never" class="section-card">
|
|
|
+ <template #header>
|
|
|
+ <div class="section-title">领取规则</div>
|
|
|
+ </template>
|
|
|
<div class="rule-section">
|
|
|
- <h4>领取规则</h4>
|
|
|
<el-form :model="form" label-width="120px" label-position="left">
|
|
|
<el-form-item label="领取时间限制">
|
|
|
<el-switch v-model="form.claimTimeEnabled"></el-switch>
|
|
|
<template v-if="form.claimTimeEnabled">
|
|
|
- <div style="display: flex;width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="display: flex;max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-date-picker
|
|
|
v-model="form.claimStartTime"
|
|
|
type="datetime"
|
|
|
placeholder="请选择开始时间"
|
|
|
- format="yyyy-MM-dd HH:mm:ss"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
style="width: 100%"
|
|
|
></el-date-picker>
|
|
|
<div style="width: 50px;text-align: center;">-</div>
|
|
|
@@ -431,8 +432,8 @@
|
|
|
v-model="form.claimEndTime"
|
|
|
type="datetime"
|
|
|
placeholder="请选择结束时间"
|
|
|
- format="yyyy-MM-dd HH:mm:ss"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
style="width: 100%"
|
|
|
></el-date-picker>
|
|
|
</div>
|
|
|
@@ -441,7 +442,7 @@
|
|
|
<el-form-item label="领取客群限制">
|
|
|
<el-switch v-model="form.claimGroupEnabled"></el-switch>
|
|
|
<template v-if="form.claimGroupEnabled">
|
|
|
- <div style="width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-alert
|
|
|
title="需在【发放计划】中选择权益发放,未发放的权益移动端不展示"
|
|
|
type="info"
|
|
|
@@ -450,7 +451,7 @@
|
|
|
style="margin-bottom: 12px;"
|
|
|
></el-alert>
|
|
|
<div style="font-size: 14px;color: #606266;margin-bottom: 8px;font-weight: 500;">不满足提示</div>
|
|
|
- <el-form-item label="提示内容" label-width="80px" style="margin-bottom: 12px;">
|
|
|
+ <el-form-item label="提示内容" label-width="100px" style="margin-bottom: 12px;">
|
|
|
<el-input v-model="form.claimDenyMessage" maxlength="200" placeholder="请输入提示内容"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="跳转按钮文案" label-width="100px" style="margin-bottom: 12px;">
|
|
|
@@ -487,7 +488,7 @@
|
|
|
</el-radio-group>
|
|
|
<div
|
|
|
v-if="form.showOnAssembly === '显示'"
|
|
|
- style="width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;"
|
|
|
+ style="max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;"
|
|
|
>
|
|
|
<el-select
|
|
|
v-model="form.assemblyPages"
|
|
|
@@ -515,7 +516,7 @@
|
|
|
<el-form-item label="是否支持分享">
|
|
|
<el-switch v-model="form.shareEnabled" @change="handleShareEnabledChange"></el-switch>
|
|
|
<template v-if="form.shareEnabled">
|
|
|
- <div style="width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;">
|
|
|
+ <div style="max-width: 600px;background: #f1f2f5;padding: 20px;margin-top: 10px;flex-basis: 100%;">
|
|
|
<el-form-item label="分享名称" label-width="100px" required style="margin-bottom: 16px;">
|
|
|
<el-input
|
|
|
v-model="form.shareName"
|
|
|
@@ -570,7 +571,7 @@
|
|
|
</el-card>
|
|
|
|
|
|
<rongshu-product-dialog
|
|
|
- v-model:visible="rongshuDialogVisible"
|
|
|
+ v-model="rongshuDialogVisible"
|
|
|
@select="onRongshuSelect"
|
|
|
/>
|
|
|
|
|
|
@@ -957,6 +958,9 @@ export default {
|
|
|
background: #fafafa;
|
|
|
border-bottom: 1px solid #ebeef5;
|
|
|
}
|
|
|
+.section-card >>> .el-form-item__content {
|
|
|
+ display: block;
|
|
|
+}
|
|
|
.section-title {
|
|
|
font-size: 16px;
|
|
|
font-weight: 600;
|
|
|
@@ -984,6 +988,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
.upload-size-tip {
|
|
|
+ width: 100%;
|
|
|
margin-top: 4px;
|
|
|
font-size: 12px;
|
|
|
color: #909399;
|