提交 19dc1990 authored 作者: matian's avatar matian

调整文字协议样式

上级 a65230c2
...@@ -21,6 +21,7 @@ const item = ref({ ...@@ -21,6 +21,7 @@ const item = ref({
const orderInfo: any = ref({}) const orderInfo: any = ref({})
const payMode = ref(1) const payMode = ref(1)
const isAgree = ref(false) const isAgree = ref(false)
const isAgreeText = ref(false)
const currentCheck = ref('4') const currentCheck = ref('4')
const orderInfoDetail: any = ref([]) const orderInfoDetail: any = ref([])
function getDateTime(dayNum: any) { function getDateTime(dayNum: any) {
...@@ -58,6 +59,7 @@ const optionParams = reactive({ ...@@ -58,6 +59,7 @@ const optionParams = reactive({
const handlePay = () => { const handlePay = () => {
if (isAgree.value === false) { if (isAgree.value === false) {
ElMessage.warning('请先勾选紫荆金保服务协议') ElMessage.warning('请先勾选紫荆金保服务协议')
isAgreeText.value = true
} else { } else {
if (user.isLogin) { if (user.isLogin) {
if (!mobile.value) { if (!mobile.value) {
...@@ -158,6 +160,13 @@ const handlePrev = () => { ...@@ -158,6 +160,13 @@ const handlePrev = () => {
const changeProtocol = () => { const changeProtocol = () => {
dialogVisible.value = false dialogVisible.value = false
isAgree.value = true isAgree.value = true
isAgreeText.value = false
}
const handleAgree = (val: any) => {
isAgree.value = val
if (val === true) {
isAgreeText.value = false
}
} }
</script> </script>
<template> <template>
...@@ -209,12 +218,13 @@ const changeProtocol = () => { ...@@ -209,12 +218,13 @@ const changeProtocol = () => {
<div class="con_footer"> <div class="con_footer">
<div class="footer_left"> <div class="footer_left">
<div class="left_top"> <div class="left_top">
<el-checkbox v-model="isAgree"> <span>同意</span></el-checkbox <el-checkbox v-model="isAgree" @change="handleAgree">
<span>同意</span></el-checkbox
><a @click="dialogVisible = true">紫荆金保服务协议</a> ><a @click="dialogVisible = true">紫荆金保服务协议</a>
</div> </div>
<div <div
class="left_desc" class="left_desc"
:class="isAgree === false ? 'left_desc_active' : ''" :class="isAgreeText === true ? 'left_desc_active' : ''"
> >
请先勾选紫荆金保服务协议 请先勾选紫荆金保服务协议
</div> </div>
...@@ -298,14 +308,14 @@ const changeProtocol = () => { ...@@ -298,14 +308,14 @@ const changeProtocol = () => {
</div> </div>
<div class="argreement_con"> <div class="argreement_con">
<div class="left_top"> <div class="left_top">
<el-checkbox v-model="isAgree"> <el-checkbox v-model="isAgree" @change="handleAgree">
<span>同意</span> <span>同意</span>
</el-checkbox> </el-checkbox>
<a @click="dialogVisible = true">紫荆金保服务协议</a> <a @click="dialogVisible = true">紫荆金保服务协议</a>
</div> </div>
<div <div
class="left_desc" class="left_desc"
:class="isAgree === false ? 'left_desc_active' : ''" :class="isAgreeText === true ? 'left_desc_active' : ''"
> >
请先勾选紫荆金保服务协议 请先勾选紫荆金保服务协议
</div> </div>
...@@ -490,7 +500,6 @@ const changeProtocol = () => { ...@@ -490,7 +500,6 @@ const changeProtocol = () => {
color: #999999; color: #999999;
font-size: 0.24rem; font-size: 0.24rem;
margin-left: 0.9rem; margin-left: 0.9rem;
cursor: pointer;
} }
.left_desc_active { .left_desc_active {
color: #aa1941; color: #aa1941;
...@@ -635,7 +644,6 @@ const changeProtocol = () => { ...@@ -635,7 +644,6 @@ const changeProtocol = () => {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
margin: 14px 0 0 21px; margin: 14px 0 0 21px;
cursor: pointer;
} }
.left_desc_active { .left_desc_active {
color: #aa1941; color: #aa1941;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论