Commit ca2f1f1b by 前端

fixed

1 parent 1319aa0d
......@@ -257,7 +257,7 @@ const subscribe = [
},
{
optionId: 6,
optionLabel: '节日关怀'
optionLabel: '节假日关怀'
},
{
optionId: 3,
......
......@@ -6,7 +6,11 @@
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span>
<el-popover placement="top" width="200" trigger="hover" :content="item.tips">
<el-popover placement="top" :width="item.tipsWidth || 200" trigger="hover">
<div>
{{ item.tips }}
<span class="tips-jump" v-if="item.jumpLabel" @click="item.handleJump">{{ item.jumpLabel }}</span>
</div>
<img slot="reference" class="tips-icon" src="./images/icon-tip.png" />
</el-popover>
:
......@@ -522,4 +526,8 @@ export default {
width: 62%;
/* background: #096; */
}
.tips-jump {
color: #5850ff;
cursor: pointer;
}
</style>
......@@ -28,7 +28,7 @@ export default {
modelList: [
{
value: 1,
name: '节日关怀',
name: '节假日关怀',
imgUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/activity-1.png'
},
{
......
......@@ -39,7 +39,7 @@
<el-button type="default" class="el-icon-plus" @click="handleGiftAdd">选择服务</el-button>
<el-popover placement="top-start" width="500" trigger="hover">
<img src="@/assets/coupon/coupon-view.png" alt="" />
<el-button slot="reference" type="text">预览</el-button>
<el-button slot="reference" type="text" v-if="editForm.couponList.length == 0">预览</el-button>
</el-popover>
</div>
......@@ -620,7 +620,7 @@ export default {
playingDiscountContent: [{ required: true, message: '请输入折扣内容', trigger: 'blur' }],
playingCouponDescription: [{ required: true, message: '请输入送券描述', trigger: 'blur' }],
pageStyle: [{ required: true, message: '请选择页面样式', trigger: 'change' }],
goodsList: [{ required: false, message: '请选择平台福利', trigger: 'change' }],
goodsList: [{ required: true, message: '请选择平台福利', trigger: 'change' }],
// promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
activityTime: [{ required: true, message: '请选择链接时间', trigger: 'change' }],
expiresType: [{ required: true, message: '请选择链接时间', trigger: 'change' }],
......@@ -734,7 +734,12 @@ export default {
label: '门店服务',
name: 'couponList',
addHtml: 'selectGiftBtn',
tips: '用于打包门店服务、商品及其他产品。若需创建更多服务,请点击创建服务'
tips: this.loginpath ? '' : '用于打包门店服务、商品及其他产品。若需创建更多服务,请点击',
jumpLabel: '创建服务',
tipsWidth: 220,
handleJump: () => {
this.$history.push('/marketing/couponManage/index')
}
},
{
label: '',
......@@ -1213,13 +1218,11 @@ export default {
'editForm.playingType'(val) {
if (val == 2) {
this.editRule.couponList[0].required = true
this.editRule.goodsList[0].required = false
this.palyEditFormData[2].label = '折扣内容'
this.palyEditFormData[2].name = 'playingDiscountContent'
}
if (val == 3) {
this.editRule.couponList[0].required = false
this.editRule.goodsList[0].required = true
this.palyEditFormData[2].label = '送券描述'
this.palyEditFormData[2].name = 'playingCouponDescription'
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!