This commit is contained in:
X1627315083
2025-05-23 16:50:54 +08:00
parent 76f29ff074
commit 6f06821852
2 changed files with 7 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ export default defineComponent({
width:150, width:150,
}, },
{ {
title: 'redeemBy', title: 'Redeem By',
align: "center", align: "center",
ellipsis: true, ellipsis: true,
dataIndex: "redeemBy", dataIndex: "redeemBy",
@@ -212,7 +212,7 @@ export default defineComponent({
width:150, width:150,
}, },
{ {
title: 'Commission paid', title: 'Paid Commission',
align: "center", align: "center",
ellipsis: true, ellipsis: true,
dataIndex: "paidCommission", dataIndex: "paidCommission",
@@ -220,7 +220,7 @@ export default defineComponent({
width:150, width:150,
}, },
{ {
title: 'Unpaid commission', title: 'Unpaid Commission',
align: "center", align: "center",
ellipsis: true, ellipsis: true,
dataIndex: "unpaidCommission", dataIndex: "unpaidCommission",
@@ -229,7 +229,7 @@ export default defineComponent({
}, },
// //
{ {
title: 'remark', title: 'Remark',
align: "center", align: "center",
ellipsis: true, ellipsis: true,
dataIndex: "remark", dataIndex: "remark",

View File

@@ -51,7 +51,7 @@
<div class="text">{{ $t('Renew.promotionCode') }}:</div> <div class="text">{{ $t('Renew.promotionCode') }}:</div>
<div class="succeed" v-show="promotionData.error == 'true'"> <div class="succeed" v-show="promotionData.error == 'true'">
{{promotionData.code}} {{promotionData.code}}
<i class="fi fi-sr-times-hexagon" @click="clearPromotionCode"></i> <i class="fi fi-sr-times-hexagon" @click="clearPromotionCode('')"></i>
</div> </div>
<div class="input" v-show="!promotionData.error || promotionData.error == 'false'"> <div class="input" v-show="!promotionData.error || promotionData.error == 'false'">
<input type="text" v-model="promotionData.code"> <input type="text" v-model="promotionData.code">
@@ -318,10 +318,10 @@ export default defineComponent({
clearPromotionCode(oldVal) clearPromotionCode(oldVal)
}) })
const clearPromotionCode = (str:any)=>{ const clearPromotionCode = (str:any)=>{
let type = str || renewData.current.type let currentType = str || renewData.current.type
renewData.promotionData.error = ''; renewData.promotionData.error = '';
renewData.promotionData.code = '' renewData.promotionData.code = ''
if(renewData.promotionData.oldPrice)renewData.current.price[str] = renewData.promotionData.oldPrice if(renewData.promotionData.oldPrice)renewData.current.price[currentType] = renewData.promotionData.oldPrice
renewData.promotionData.oldPrice = '' renewData.promotionData.oldPrice = ''
} }
return{ return{