💪 optimize: 优化订单列表条件判断代码

This commit is contained in:
wangsongsole 2023-12-29 09:25:36 +08:00
parent b023cbf5ec
commit dfa09624b6
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,7 @@
查看卡密
</p>
<p class="button-card b-c-r b-l" @click="receiveFn(item)"
v-if="(item.status!==2&&item.goods.entity?.send_num<2||item.status===0&&item.goods.entity?.send_num>1||!item.goods.entity?.send_num)&&[2,3].includes(item.type)&&[1,2].includes(item.channel)">
v-if="(item.status!==2&&item.send_num<2||item.status===0&&item.send_num>1)&&[2,3].includes(item.type)&&[1,2].includes(item.channel)">
去领取
</p>
</div>
@ -466,12 +466,14 @@
newItem["card_number"] = card_number;
newItem["card_password"] = card_password;
newItem["card_show"] = product.card_show;
newItem["send_num"] = 1;
break;
case 2:
const channel = product.entity.channel;
newItem["product_name"] = product.entity.batch_goods_name;
newItem["channel"] = channel;
newItem["goods"] = product;
newItem["send_num"] = product.entity.send_num;
if (channel === 1) {
newItem["src"] =
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png";
@ -490,6 +492,7 @@
newItem["product_name"] = product.entity.batch_goods_name;
newItem["channel"] = channels;
newItem["goods"] = product;
newItem["send_num"] = 1;
if (channels === 1) {
newItem["src"] =
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/redPacktes/alipay_icon.png";