修改我的优惠券样式

This commit is contained in:
lcc
2025-07-07 17:11:57 +08:00
parent 6817e00c91
commit 118c06ce36
+7 -5
View File
@@ -14,7 +14,7 @@
:is-desc-link="true"
:title="item.typeCn"
:desc-right="item.timeStart+'-'+item.timeEnd"
:is-active="Number(item.btText.status)===1"
:is-active="!Number(item.btText.status)|| Number(item.btText.status)===1"
:date-rule="item.rule"
:data-index="index"
:index="index"
@@ -30,7 +30,7 @@
</p>
</div>
<div class="ml15">
<van-button class="ulib-r100" size="small" :disabled="Number(item.btText.status)===1?false:true" :type="Number(item.btText.status)===1?'danger':'info'" round @click.stop="bindShowCode(item)">{{ item.btText.txt }}</van-button>
<van-button class="ulib-r100" size="small" :disabled="!Number(item.btText.status)?true:false" :type="Number(item.btText.status)===1?'danger':'info'" round @click.stop="bindShowCode(item)">{{ item.btText.txt }}</van-button>
</div>
</div>
</div>
@@ -61,7 +61,7 @@
</p>
</div>
<div class="ml15">
<van-button class="ulib-r100" size="small" :disabled="Number(item.btText.status)" :type="!Number(item.btText.status)?'danger':'info'" round @click.stop="bindShowCode(item)">{{ item.btText.txt }}</van-button>
<van-button class="ulib-r100" size="small" :type="!Number(item.btText.status)?'danger':'info'" round @click.stop="bindShowCode(item)">{{ item.btText.txt }}</van-button>
</div>
</div>
</div>
@@ -152,8 +152,10 @@ const goLink = (index) => {
showContentPop.value = true;
};
const bindShowCode = (item) => {
let id = item.id;
router.push({ path: '/my/allowance/form', query: { id } })
if(Number(item.status)===1){
let id = item.id;
router.push({ path: '/my/allowance/form', query: { id } })
}
// code.value = item.sid;
// popCodeTitle.value = item.title;
// showCodePop.value = true;