Commit f8b9a536 authored by 华国豪's avatar 华国豪 🙄

可取消 单男单女 选择

parent c894c25d
...@@ -932,8 +932,8 @@ ...@@ -932,8 +932,8 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="单男单女"> <el-form-item label="单男单女">
<el-radio v-model="addMsg.OneSex" :label="1"></el-radio> <el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(1)" :label="1"></el-radio>
<el-radio v-model="addMsg.OneSex" :label="2"></el-radio> <el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(2)" :label="2"></el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -2262,6 +2262,9 @@ ...@@ -2262,6 +2262,9 @@
} }
}, },
methods: { methods: {
setDanren(e){
e === this.addMsg.OneSex ? this.addMsg.OneSex = '' : this.addMsg.OneSex = e
},
gourlTip(path,id){ gourlTip(path,id){
this.$router.push({ this.$router.push({
name: path, name: path,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment