fix
This commit is contained in:
@@ -153,7 +153,7 @@ export default defineComponent({
|
||||
width:150,
|
||||
},
|
||||
{
|
||||
title: 'redeemBy',
|
||||
title: 'Redeem By',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
dataIndex: "redeemBy",
|
||||
@@ -212,7 +212,7 @@ export default defineComponent({
|
||||
width:150,
|
||||
},
|
||||
{
|
||||
title: 'Commission paid',
|
||||
title: 'Paid Commission',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
dataIndex: "paidCommission",
|
||||
@@ -220,7 +220,7 @@ export default defineComponent({
|
||||
width:150,
|
||||
},
|
||||
{
|
||||
title: 'Unpaid commission',
|
||||
title: 'Unpaid Commission',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
dataIndex: "unpaidCommission",
|
||||
@@ -229,7 +229,7 @@ export default defineComponent({
|
||||
},
|
||||
//
|
||||
{
|
||||
title: 'remark',
|
||||
title: 'Remark',
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
dataIndex: "remark",
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<div class="text">{{ $t('Renew.promotionCode') }}:</div>
|
||||
<div class="succeed" v-show="promotionData.error == 'true'">
|
||||
{{promotionData.code}}
|
||||
<i class="fi fi-sr-times-hexagon" @click="clearPromotionCode"></i>
|
||||
<i class="fi fi-sr-times-hexagon" @click="clearPromotionCode('')"></i>
|
||||
</div>
|
||||
<div class="input" v-show="!promotionData.error || promotionData.error == 'false'">
|
||||
<input type="text" v-model="promotionData.code">
|
||||
@@ -318,10 +318,10 @@ export default defineComponent({
|
||||
clearPromotionCode(oldVal)
|
||||
})
|
||||
const clearPromotionCode = (str:any)=>{
|
||||
let type = str || renewData.current.type
|
||||
let currentType = str || renewData.current.type
|
||||
renewData.promotionData.error = '';
|
||||
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 = ''
|
||||
}
|
||||
return{
|
||||
|
||||
Reference in New Issue
Block a user