This commit is contained in:
zhangguoping 2024-10-29 15:35:38 +08:00
parent 4d4eee27a4
commit c3328494f5
3 changed files with 9 additions and 9 deletions

View File

@ -101,7 +101,7 @@
</div>
<!-- 立即兑换 -->
<div class="exchangeBtn"
:class="(gstatus===1||(exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:class="(gstatus===1||(exchangeCommity.period_type!=2 && exchangeCommity.period_type!=3&&exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:style="{'background': bgcolor,'color':ftcolor}" @click="exchangeBtn()">
立即兑换
</div>
@ -512,7 +512,7 @@
/* 直冲、立减金商品状态为 1 时可兑换。
* 红包商品状态为 1 8 时也可兑换
*/
if (gstatus == 1 || (row.type === 3 && [1, 8].includes(row.available))) {
if (gstatus == 1 || (row.period_type != 2 && row.period_type != 3 && row.type === 3 && [1, 8].includes(row.available))) {
// 跳转商品详情页面
if (this.showType == 1) { //白名单
localStorage.setItem('token', row.token);
@ -593,7 +593,7 @@
if (item.available === 1) {
return true;
} else if (item.available === 8) {
if (item.type === 3) {
if (item.type === 3 && item.period_type != 2 && item.period_type != 3) {
return true;
} else {
return false;

View File

@ -103,7 +103,7 @@
</div>
<!-- 立即兑换 -->
<div class="exchangeBtn"
:class="(gstatus===1||(exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:class="(gstatus===1||(exchangeCommity.period_type!=2 && exchangeCommity.period_type!=3&&exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:style="{'background': bgcolor,'color':ftcolor}" @click="exchangeBtn()">
立即兑换
</div>
@ -506,7 +506,7 @@
/* 直冲、立减金商品状态为 1 时可兑换。
* 红包商品状态为 1 8 时也可兑换
*/
if (gstatus == 1 || (row.type === 3 && [1, 8].includes(row.available))) {
if (gstatus == 1 || (row.period_type != 2 && row.period_type != 3 && row.type === 3 && [1, 8].includes(row.available))) {
// 跳转商品详情页面
if (this.showType == 1) { //白名单
localStorage.setItem('token', row.token);
@ -587,7 +587,7 @@
if (item.available === 1) {
return true;
} else if (item.available === 8) {
if (item.type === 3) {
if (item.type === 3 && item.period_type != 2 && item.period_type != 3) {
return true;
} else {
return false;

View File

@ -110,7 +110,7 @@
</div>
<!-- 立即兑换 -->
<div class="exchangeBtn"
:class="(gstatus===1||(exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:class="(gstatus===1||(exchangeCommity.period_type!=2 && exchangeCommity.period_type!=3&&exchangeCommity.type===3&&gstatus===8))?'':'bottomBtn noexchangeBtn'"
:style="{'background': bgcolor,'color':ftcolor}" @click="exchangeBtn()">
立即兑换
</div>
@ -527,7 +527,7 @@
/* 直冲、立减金商品状态为 1 时可兑换。
* 红包商品状态为 1 8 时也可兑换
*/
if (gstatus == 1 || (row.type === 3 && [1, 8].includes(row.available))) {
if (gstatus == 1 || (row.period_type != 2 && row.period_type != 3 && row.type === 3 && [1, 8].includes(row.available))) {
// 跳转商品详情页面
if (this.showType == 1) { //白名单
localStorage.setItem('token', row.token);
@ -608,7 +608,7 @@
if (item.available === 1) {
return true;
} else if (item.available === 8) {
if (item.type === 3) {
if (item.type === 3 && item.period_type != 2 && item.period_type != 3) {
return true;
} else {
return false;