Commit efb35b11 by zhangquan

新增领券中心可见字段

1 parent 7935a71d
.inline-b {
display: inline-block;
}
......@@ -10,23 +9,29 @@
.green-text {
color: #00A854;
}
.gray-text{
color:#666666;
margin-left:6px;
.gray-text {
color: #666666;
margin-left: 6px;
}
.red-text {
color: rgb(255, 0, 0);
}
.blue-text{
color:$btnBlue;
&:hover{
.blue-text {
color: $btnBlue;
&:hover {
color: #9994FF;
cursor: pointer;
}
}
.pure-blue-text{
color:$btnBlue!important;
.pure-blue-text {
color: $btnBlue !important;
}
.green {
background-color: #00A854;
}
......@@ -35,12 +40,13 @@
color: rgb(255, 0, 0);
}
.flex-center{
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.additional-text{
.additional-text {
height: 22px;
font-size: 16px;
......@@ -48,6 +54,7 @@
color: #666666;
line-height: 22px;
}
.btn-blue {
height: 32px;
background: $btnBlue;
......@@ -92,7 +99,8 @@
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.ellipsis-4{
.ellipsis-4 {
overflow: hidden;
height: 40px;
line-height: 20px;
......@@ -101,6 +109,7 @@
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
}
.ellipsis-4-text:after {
content: "...";
position: absolute;
......@@ -113,6 +122,16 @@
background: -moz-linear-gradient(left, transparent, #fff 55%);
background: linear-gradient(to right, transparent, #fff 55%);
}
.statusText {
vertical-align: middle;
}
.switch-tip {
height: 17px;
line-height: 17px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 12px;
color: #999999;
}
\ No newline at end of file
......@@ -138,6 +138,10 @@
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="couponCenterHtml">
<el-switch :disabled="apear != 'couponAdd'" v-model="editForm.couponCenterFlag" :active-value="2" :inactive-value="1"></el-switch>
<div class="switch-tip">开启后,用户可在小程序我的-优惠券-领券中心直接领取</div>
</template>
<template slot="editHtml">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
......@@ -202,7 +206,8 @@ export default {
full: '',
goods: '1',
goodsRefList: [],
directionalFlag: '1'
directionalFlag: '1',
couponCenterFlag: 1
// scopeApplication: ''
},
//商品列表
......@@ -320,6 +325,10 @@ export default {
addHtml: 'useDescriptionHtml'
},
{
label: '领券中心可见',
addHtml: 'couponCenterHtml'
},
{
name: 'editHtml',
addHtml: 'editHtml',
isHide: true
......@@ -766,6 +775,8 @@ export default {
}
//使用描述
obj.useDescription = form.useDescription
//领券中心可见
obj.couponCenterFlag = form.couponCenterFlag
//预估成本
obj.anticipatedCost = (form.anticipatedCost * 100).toFixed(0)
return obj
......
......@@ -107,6 +107,10 @@
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="couponCenterHtml">
<el-switch :disabled="apear != 'couponAdd'" v-model="editForm.couponCenterFlag" :active-value="2" :inactive-value="1"></el-switch>
<div class="switch-tip">开启后,用户可在小程序我的-优惠券-领券中心直接领取</div>
</template>
<template slot="editHtml">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
......@@ -178,7 +182,8 @@ export default {
effectiveDays: '',
anticipatedCost: '',
discountIntensity: '',
directionalFlag: '1'
directionalFlag: '1',
couponCenterFlag: 1
// scopeApplication: ''
},
editRule: {
......@@ -243,6 +248,10 @@ export default {
addHtml: 'useDescriptionHtml'
},
{
label: '领券中心可见',
addHtml: 'couponCenterHtml'
},
{
name: '',
addHtml: 'editHtml',
isHide: true
......@@ -514,6 +523,8 @@ export default {
obj.useDescription = form.useDescription
//是否定制礼包专用
obj.directionalFlag = form.directionalFlag
//领券中心可见
obj.couponCenterFlag = form.couponCenterFlag
//预估成本
obj.anticipatedCost = (form.anticipatedCost * 100).toFixed(0)
return obj
......
......@@ -95,6 +95,10 @@
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="couponCenterHtml">
<el-switch :disabled="apear != 'couponAdd'" v-model="editForm.couponCenterFlag" :active-value="2" :inactive-value="1"></el-switch>
<div class="switch-tip">开启后,用户可在小程序我的-优惠券-领券中心直接领取</div>
</template>
<template slot="editHtml">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
......@@ -163,7 +167,8 @@ export default {
effectiveTime: [],
effectiveDays: '',
anticipatedCost: '',
directionalFlag: '1'
directionalFlag: '1',
couponCenterFlag: 1
// scopeApplication: ''
},
editRule: {
......@@ -214,6 +219,10 @@ export default {
addHtml: 'useDescriptionHtml'
},
{
label: '领券中心可见',
addHtml: 'couponCenterHtml'
},
{
name: '',
addHtml: 'editHtml',
isHide: true
......@@ -443,6 +452,8 @@ export default {
obj.useDescription = form.useDescription
//是否定制礼包专用
obj.directionalFlag = form.directionalFlag
//
obj.couponCenterFlag = form.couponCenterFlag
//预估成本
obj.anticipatedCost = (form.anticipatedCost * 100).toFixed(0)
return obj
......
......@@ -97,6 +97,10 @@
<el-form-item size="small" label="使用说明:" prop="useDescription">
<el-input size="small" :rows="6" :disabled="disabledDescription" type="textarea" v-model="ruleForm.useDescription" placeholder="请输入" maxlength="200" show-word-limit></el-input>
</el-form-item>
<el-form-item size="small" label="领券中心可见:" prop="couponCenterFlag">
<el-switch :disabled="disabledContent" v-model="ruleForm.couponCenterFlag" :active-value="2" :inactive-value="1"></el-switch>
<div class="switch-tip">开启后,用户可在小程序我的-优惠券-领券中心直接领取</div>
</el-form-item>
<el-form-item size="small" style="margin-left: -100px" v-show="isEdit">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</el-form-item>
......@@ -248,7 +252,8 @@ export default {
stock: '',
useDescription: '',
daterange: [],
limitStockFlag: 1
limitStockFlag: 1,
couponCenterFlag: 1
// scopeApplication: ''
},
copyRuleForm: {},
......@@ -500,6 +505,7 @@ export default {
// params.scopeApplication = this.ruleForm.scopeApplication
// }
params.useDescription = this.ruleForm.useDescription
params.couponCenterFlag = this.ruleForm.couponCenterFlag
params.discountType = 7
params.merchantId = this.merchantId
......@@ -531,6 +537,7 @@ export default {
param.couponId = this.$route.query.couponId
param.stock = this.ruleForm.stock
param.useDescription = this.ruleForm.useDescription
param.couponCenterFlag = this.ruleForm.couponCenterFlag
this.sloading = true
updateService(param)
.then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!