💪 optimize: 优化订单列表条件判断代码
This commit is contained in:
parent
b023cbf5ec
commit
dfa09624b6
|
@ -50,7 +50,7 @@
|
||||||
查看卡密
|
查看卡密
|
||||||
</p>
|
</p>
|
||||||
<p class="button-card b-c-r b-l" @click="receiveFn(item)"
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -466,12 +466,14 @@
|
||||||
newItem["card_number"] = card_number;
|
newItem["card_number"] = card_number;
|
||||||
newItem["card_password"] = card_password;
|
newItem["card_password"] = card_password;
|
||||||
newItem["card_show"] = product.card_show;
|
newItem["card_show"] = product.card_show;
|
||||||
|
newItem["send_num"] = 1;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
const channel = product.entity.channel;
|
const channel = product.entity.channel;
|
||||||
newItem["product_name"] = product.entity.batch_goods_name;
|
newItem["product_name"] = product.entity.batch_goods_name;
|
||||||
newItem["channel"] = channel;
|
newItem["channel"] = channel;
|
||||||
newItem["goods"] = product;
|
newItem["goods"] = product;
|
||||||
|
newItem["send_num"] = product.entity.send_num;
|
||||||
if (channel === 1) {
|
if (channel === 1) {
|
||||||
newItem["src"] =
|
newItem["src"] =
|
||||||
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png";
|
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png";
|
||||||
|
@ -490,6 +492,7 @@
|
||||||
newItem["product_name"] = product.entity.batch_goods_name;
|
newItem["product_name"] = product.entity.batch_goods_name;
|
||||||
newItem["channel"] = channels;
|
newItem["channel"] = channels;
|
||||||
newItem["goods"] = product;
|
newItem["goods"] = product;
|
||||||
|
newItem["send_num"] = 1;
|
||||||
if (channels === 1) {
|
if (channels === 1) {
|
||||||
newItem["src"] =
|
newItem["src"] =
|
||||||
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/redPacktes/alipay_icon.png";
|
"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/redPacktes/alipay_icon.png";
|
||||||
|
|
Loading…
Reference in New Issue