Commit 344f4981 by 王志慧

commit

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