This commit is contained in:
cun-nan 2024-01-12 15:41:37 +08:00
parent 288de2b8ba
commit 66585d6d2c
2 changed files with 19 additions and 2 deletions

View File

@ -1150,7 +1150,7 @@ import {getUserInfoMobile, getUserVoMobile, getUserVoName} from "@/api/cashier/u
} }
.wrap-box2{ .wrap-box2{
background: #36b713 !important; background: #30a1ff !important;
color: white; color: white;
//width: 100%; //width: 100%;
//height: 100%; //height: 100%;

View File

@ -196,10 +196,12 @@
<div class="wrap-box" v-for="item in payList" <div class="wrap-box" v-for="item in payList"
:key="item.dictValue" :key="item.dictValue"
:value="item.dictValue" :value="item.dictValue"
:class="{ 'wrap-box2': item.dictValue === map.payType }"
@click="payMethod(item.dictValue)"> @click="payMethod(item.dictValue)">
<span>{{ item.dictLabel }}</span> <span>{{ item.dictLabel }}</span>
</div> </div>
<div class="wrap-box" > <div class="wrap-box" value="credit"
:class="{ 'wrap-box2': 'credit' === map.payType }" >
<span @click="addCredits">挂账</span> <span @click="addCredits">挂账</span>
</div> </div>
</div> </div>
@ -1114,6 +1116,7 @@
}, },
// //
addCredits(){ addCredits(){
this.map.payType = "credit"
this.dialogVisibleCredit = true this.dialogVisibleCredit = true
this.form1.amount = this.oilAmount + this.goodsAmount this.form1.amount = this.oilAmount + this.goodsAmount
}, },
@ -3084,6 +3087,20 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
.wrap-box2{
background: #30a1ff !important;
color: white;
//width: 100%;
//height: 100%;
//border-radius: 8px;
//height: 80px;
//display: flex;
//align-items: center;
//justify-content: center;
//border: 1px solid #20b400;
//cursor: pointer;
//color: #20b400;
}
.wrap-box :hover{ .wrap-box :hover{
/*background: #00afff !important;*/ /*background: #00afff !important;*/
width: 100%; width: 100%;