Commit 7f11ed3a by chenwq

Merge branch 'v5.8.5' of http://192.168.3.233:8090/usedCarAuction/aus into v5.8.5

2 parents ad0c04bb 86bb8f95
...@@ -170,14 +170,17 @@ ...@@ -170,14 +170,17 @@
<text v-if="endState == '2'">,恭喜您中拍!</text> <text v-if="endState == '2'">,恭喜您中拍!</text>
<text v-if="endState == '3'">,很遗憾您未中拍。</text> <text v-if="endState == '3'">,很遗憾您未中拍。</text>
</view> </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;"> style="margin-top: 22px;margin-right: 12px;">
签署购车合同 签署购车合同
</view> </view> -->
</view> </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> </template>
<script lang="ts"> <script lang="ts">
...@@ -186,9 +189,9 @@ import { AuctionOrderController } from "@/api/AuctionOrderController"; ...@@ -186,9 +189,9 @@ import { AuctionOrderController } from "@/api/AuctionOrderController";
import { AuthService } from "@/common/AuthService"; import { AuthService } from "@/common/AuthService";
import { BidController } from "@/api/BidController"; import { BidController } from "@/api/BidController";
import { AuctionController } from "@/api/AuctionController"; import { AuctionController } from "@/api/AuctionController";
import CertificationDialog from "@/pages/tabbar/home/CertificationDialog.vue";
@Component({ @Component({
components: {} components: {CertificationDialog}
}) })
export default class roundBidBottom extends Vue { export default class roundBidBottom extends Vue {
...@@ -226,7 +229,9 @@ 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: '自定义', }]; operationButList = [{ value: '100', }, { value: '300', }, { value: '500', }, { value: '1000', }, { value: '自定义', }];
/** 认证弹窗延迟定时器(避免重复 onShow 叠加多个定时器) */
certifyDelayTimer: ReturnType<typeof setTimeout> | null = null;
showCertifyDialog = false;
IsDebounce = false; // 是否防抖 IsDebounce = false; // 是否防抖
created(): void { created(): void {
...@@ -414,6 +419,17 @@ export default class roundBidBottom extends Vue { ...@@ -414,6 +419,17 @@ export default class roundBidBottom extends Vue {
setTimeout(() => { setTimeout(() => {
uni.showToast({ title: '出价成功', icon: 'success' }); uni.showToast({ title: '出价成功', icon: 'success' });
}, 300); }, 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(() => { }).finally(() => {
uni.hideLoading(); uni.hideLoading();
}); });
...@@ -504,6 +520,17 @@ export default class roundBidBottom extends Vue { ...@@ -504,6 +520,17 @@ export default class roundBidBottom extends Vue {
uni.showLoading({ title: '正在提交竞价信息...', mask: true }); uni.showLoading({ title: '正在提交竞价信息...', mask: true });
BidController.addBid(this.axios, bidRequest).then(res => { BidController.addBid(this.axios, bidRequest).then(res => {
uni.showToast({ title: '出价成功', icon: 'success' }); 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(() => { }).finally(() => {
uni.hideLoading(); uni.hideLoading();
}); });
...@@ -1034,4 +1061,4 @@ export default class roundBidBottom extends Vue { ...@@ -1034,4 +1061,4 @@ export default class roundBidBottom extends Vue {
font-weight: 500; font-weight: 500;
font-family: "D DIN PRO"; font-family: "D DIN PRO";
} }
</style>
\ No newline at end of file \ 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!