Commit 344f4981 by 王志慧

commit

1 parent 2169102b
......@@ -21,8 +21,7 @@
<template v-if="showGh">
<div class="flex-1 mt-10 line-20">
<p class="text-14 weight-5">
<!-- {{ ruleForm.cardName? ruleForm.cardName:'--'}} -->
--
{{ ruleForm.goldCardClassName ? ruleForm.goldCardClassName : '--' }}
</p>
<div class="member-card"><img src="@/assets/gold.png" alt="" /></div>
</div>
......@@ -55,8 +54,8 @@
<el-form-item label="银卡" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入银卡名称" maxlength="15"></el-input>
</el-form-item>
<el-form-item label="金卡" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入金卡名称" maxlength="15"></el-input>
<el-form-item label="金卡" prop="goldCardClassName" size="small">
<el-input v-model.trim="ruleForm.goldCardClassName" size="small" class="cardNameInput" show-word-limit placeholder="请输入金卡名称" maxlength="15"></el-input>
</el-form-item>
</template>
......@@ -111,7 +110,7 @@
</span>
</GLTable>
</div>
<GLDialog :mode="mode" title="权益详情" :type="'error'" okText="关闭" @onOk="handleClose" @onCancel="handleClose" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="权益详情" :type="'error'" okText="关闭" @onOk="handleClose" @onCancel="handleClose" :visible.sync="isDialogVisible">
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -346,6 +345,7 @@ export default {
ruleForm: {
equityId: '',
cardName: '',
goldCardClassName: '',
price: '',
marketPrice: '',
linkUrl: '',
......@@ -355,6 +355,7 @@ export default {
copyRuleForm: {},
rules: {
cardName: [{ required: true, min: 1, max: 15, message: '请输入会员卡名称', trigger: 'blur' }],
goldCardClassName: [{ required: true, min: 1, max: 15, message: '请输入金卡名称', trigger: 'blur' }],
price: [{ required: true, message: '请输入售价', trigger: 'blur' }],
marketPrice: [{ required: true, message: '请输入市场价', trigger: 'blur' }]
},
......@@ -373,7 +374,7 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
// this.showGh = window.location.host.indexOf('cgacar') != -1
this.showGh = window.location.host.indexOf('cgacar') != -1
this.getCardContentFun()
this.getCardtypeList()
},
......@@ -474,6 +475,7 @@ export default {
}
this.ruleForm.equityId = res.equityClassId
this.ruleForm.cardName = res.equityName
this.ruleForm.goldCardClassName = res.equityGoldName
this.ruleForm.price = res.goodPrice
this.ruleForm.marketPrice = res.marketPrice
this.ruleForm.linkUrl = res.freeUrl
......@@ -503,6 +505,7 @@ export default {
let params = {}
params.id = this.ruleForm.equityId
params.cardClassName = this.ruleForm.cardName
if (this.showGh) params.goldCardClassName = this.ruleForm.goldCardClassName
params.price = this.ruleForm.price
params.marketPrice = this.ruleForm.marketPrice
params.tryNum = this.ruleForm.tryNum
......@@ -583,8 +586,8 @@ export default {
width: 53px;
margin: 0 3px;
}
/deep/ .btn-three{
display:none;
/deep/ .btn-three {
display: none;
}
.lineCtn {
display: flex;
......
......@@ -368,6 +368,7 @@ export default {
this.$messageBox.confirm('下架后将隐藏且客户不能购买该套餐,已经购买的客户仍继续享有该套餐的服务?', '下架', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
// type: 'error',
callback: action => {
if (action == 'confirm') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!