Commit 0ded8a0f by 王志慧

fixed

1 parent 66044ac4
......@@ -79,6 +79,7 @@
<el-radio-group v-model="editForm.giveMemberType" class="mt-10">
<el-radio v-for="(item, index) in memberList" :key="index" @click.native.prevent="changeRadio(item.label)" :label="item.label">{{ item.name }}</el-radio>
</el-radio-group>
<div class="el-form-item__error" v-if="isGiveMemberType">请选择会员类型</div>
</template>
</div>
<span slot="bubble">
......@@ -157,6 +158,7 @@ export default {
name: 'editGift',
data() {
return {
isGiveMemberType: false,
isHmd: true,
phone: '',
isLoaded: true,
......@@ -560,6 +562,7 @@ export default {
},
methods: {
changeRadio(e) {
this.isGiveMemberType = false
if (this.editForm.giveMemberType == e) {
this.editForm.giveMemberType = ''
} else {
......@@ -832,6 +835,11 @@ export default {
delete params.giveMemberType
} else {
if (this.editForm.giveMemberFlag == 1) delete params.giveMemberType //giveMemberFlag=2时传值
if (this.editForm.giveMemberFlag == 2 && this.editForm.giveMemberType == '') {
console.log(333)
this.isGiveMemberType = true
return
}
}
delete params.staffList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!