update @商品重新兑换 联调修改

This commit is contained in:
huangzhen 2024-11-14 10:22:05 +08:00
parent 1024e234f5
commit ab255eb5d8
6 changed files with 16 additions and 14 deletions

View File

@ -594,17 +594,17 @@ export default {
if (res && res.code === 200) {
let data: any = [];
let errMsg = '';
res.data.forEach((item: any) => {
if (item.code === 200 ) {
!is_retry && res.data.forEach((item: any) => {
if (item?.code === 200 ) {
data.push({
key: this.key,
goods_id: item.id
})
} else {
errMsg = errMsg || item.message;
errMsg = errMsg || item?.message;
}
})
if (data.length) {
if (is_retry || data.length) {
let typeNew = type, itemOnclickNew = itemOnclick, indexNew = index;
if (type === 'submit') {
typeNew = this.selectedData.type;

View File

@ -409,7 +409,7 @@ export default {
});
this.overlayLoad = false;
if (res && res.code === 200 && res.data) {
if (res.data[0].code === 200) {
if (is_retry || (res.data[0]?.code === 200)) {
this.pollStatus = true;
this.dialogTitle = '兑换成功';
this.dialogText = '请前往 订单列表 查看订单';

View File

@ -350,7 +350,7 @@ export default {
});
this.overlayLoad = false;
if (res && res.code === 200 && res.data) {
if (res.data[0].code === 200) {
if (res.data[0]?.code === 200) {
this.pollStatus = true;
this.dialogTitle = '兑换成功';
this.dialogText = '请前往 订单列表 查看订单';

View File

@ -369,7 +369,7 @@ export default {
});
this.overlayLoad = false;
if (res && res.code === 200 && res.data) {
if (res.data[0].code === 200) {
if (is_retry || (res.data[0]?.code === 200)) {
this.pollStatus = true;
this.dialogTitle = '兑换成功';
this.dialogText = '请前往 订单列表 查看订单';

View File

@ -40,7 +40,7 @@
justify-content: center;
.swiper-slide-box {
width: 85px;
height: 100px;
height: 105px;
background: #f3f5f7;
box-shadow: 0 3px 4px 1px rgba(181, 187, 193, 0.41);
display: flex;
@ -63,16 +63,18 @@
.swiper-slide-name {
color: #242533;
font-size: 10px;
line-height: 12px;
margin-top: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80px;
max-width: 76px;
display: -webkit-box;
overflow : hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.swiper-slide-num {
color: #242533;
font-size: 10px;
margin-top: 5px;
margin-top: 4px;
text-align: center;
}
}

View File

@ -355,7 +355,7 @@ export default {
});
this.overlayLoad = false;
if (res && res.code === 200 && res.data) {
if (res.data[0].code === 200) {
if (is_retry || (res.data[0]?.code === 200)) {
this.pollStatus = true;
this.pollStatus = true;
this.dialogTitle = '兑换成功';