Commit 86bb8f95 by zhangxw

轮询出价弹窗提醒 按钮屏蔽

1 parent cd02a1e7
......@@ -170,14 +170,17 @@
<text v-if="endState == '2'">,恭喜您中拍!</text>
<text v-if="endState == '3'">,很遗憾您未中拍。</text>
</view>
<view v-if="endState == '2'" class="promptBox_but" @click="signContract()"
<!-- <view v-if="endState == '2'" class="promptBox_but" @click="signContract()"
style="margin-top: 22px;margin-right: 12px;">
签署购车合同
</view>
</view> -->
</view>
</view>
</view>
<van-dialog use-slot :show="showCertifyDialog" :show-cancel-button="false" :show-confirm-button="false">
<certification-dialog @close="onCertifyDialogClosed"></certification-dialog>
</van-dialog>
</template>
<script lang="ts">
......@@ -186,9 +189,9 @@ import { AuctionOrderController } from "@/api/AuctionOrderController";
import { AuthService } from "@/common/AuthService";
import { BidController } from "@/api/BidController";
import { AuctionController } from "@/api/AuctionController";
import CertificationDialog from "@/pages/tabbar/home/CertificationDialog.vue";
@Component({
components: {}
components: {CertificationDialog}
})
export default class roundBidBottom extends Vue {
......@@ -226,7 +229,9 @@ export default class roundBidBottom extends Vue {
//自定义金额
operationButList = [{ value: '100', }, { value: '300', }, { value: '500', }, { value: '1000', }, { value: '自定义', }];
/** 认证弹窗延迟定时器(避免重复 onShow 叠加多个定时器) */
certifyDelayTimer: ReturnType<typeof setTimeout> | null = null;
showCertifyDialog = false;
IsDebounce = false; // 是否防抖
created(): void {
......@@ -414,6 +419,17 @@ export default class roundBidBottom extends Vue {
setTimeout(() => {
uni.showToast({ title: '出价成功', icon: 'success' });
}, 300);
}).catch((reason: any) => {
if (reason.data && reason.data.code === "platformContract") {
if (this.certifyDelayTimer != null) {
clearTimeout(this.certifyDelayTimer);
this.certifyDelayTimer = null;
}
this.certifyDelayTimer = setTimeout(() => {
this.certifyDelayTimer = null;
this.showCertifyDialog = true;
}, 1000);
}
}).finally(() => {
uni.hideLoading();
});
......@@ -504,6 +520,17 @@ export default class roundBidBottom extends Vue {
uni.showLoading({ title: '正在提交竞价信息...', mask: true });
BidController.addBid(this.axios, bidRequest).then(res => {
uni.showToast({ title: '出价成功', icon: 'success' });
}).catch((reason: any) => {
if (reason.data && reason.data.code === "platformContract") {
if (this.certifyDelayTimer != null) {
clearTimeout(this.certifyDelayTimer);
this.certifyDelayTimer = null;
}
this.certifyDelayTimer = setTimeout(() => {
this.certifyDelayTimer = null;
this.showCertifyDialog = true;
}, 1000);
}
}).finally(() => {
uni.hideLoading();
});
......@@ -1034,4 +1061,4 @@ export default class roundBidBottom extends Vue {
font-weight: 500;
font-family: "D DIN PRO";
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!