Commit ae5added by zhangxw

认证修改

1 parent adf6a523
......@@ -57,7 +57,7 @@ export default {
},
"auctionOrder": {
"orderState": {
"CONTRACT_UNSIGNED": "待签署合同",
// "CONTRACT_UNSIGNED": "待签署合同",
"UNPAID": "待付车款",
"WAIT_PICKUP": "待提车",
"TRANSFERRING": "待过户",
......
......@@ -39,7 +39,7 @@ export const businessRouter: Array<RouteRecordRaw> = [
},
{
path: '/business/platformContract',
component: () => import( '@/views/business/platformContract/platformContractPage.vue'),
component: () => import( '@/views/business/platformContract/platFormContractPage.vue'),
meta: {
breadcrumbs: [{name: '运营管理'}, {name: '平台合同管理'}]
}
......
......@@ -34,7 +34,7 @@
<!-- 审核过户资料-->
<a-button type="link" v-if="record.orderState==='TRANSFERRING'&&record.auditState==='UNAUDITED'" size="small" @click="auditAuctionOrder(record)">审核</a-button>
<!-- <a-button type="link" disabled v-if="record.orderState==='TRANSFERRING'&&!record.auditState" size="small">未提交过户资料</a-button> -->
<a-button type="link" size="small" @click="uploadTransferring(record)">修改过户资料</a-button>
<a-button type="link" size="small" v-if="record.orderState === 'TRANSFERRING' || record.orderState === 'COMPLETED'" @click="uploadTransferring(record)">修改过户资料</a-button>
<a-button type="link" v-if="record.orderState==='COMPLETED'" size="small" @click="viewTransferring(record)">过户资料</a-button>
<router-link :to="{path:'/account/view',query:{accountId:record.account?.accountId}}">
<a-button type="link" size="small">联系买家</a-button>
......@@ -83,7 +83,7 @@ import UploadPaymentVoucher from "@/views/auction/order/UploadPaymentVoucher.vue
},
})
export default class AuctionOrderPage extends PaginationComponent<AuctionOrder> {
orderState: AuctionOrder_OrderState | '' = "CONTRACT_UNSIGNED";
orderState: AuctionOrder_OrderState | '' = "UNPAID";
exporting = false;
/**
* 表格列配置
......@@ -191,7 +191,7 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
const tabs = [];
if (this.hasPrivilege('auction_order_1')) tabs.push({key: "", tab: `全部(${this.orderStateCount?.total})`});
AUCTION_ORDER_ORDER_STATES.forEach(item => {
if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.contractUnsignedCount})`});
// if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.contractUnsignedCount})`});
if (item === 'UNPAID' && this.hasPrivilege('auction_order_3')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.unpaidCount})`});
if (item === 'WAIT_PICKUP' && this.hasPrivilege('auction_order_4')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.waitPickupCount})`});
if (item === 'TRANSFERRING' && this.hasPrivilege('auction_order_5')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.transferringCount})`});
......
......@@ -32,6 +32,18 @@
<a-descriptions-item label="创建时间" name="createTime">
{{ auctionOrder.createTime }}
</a-descriptions-item>
<a-descriptions-item label="保留价" name="updateTime">
¥{{ auctionOrder.vehicle.reservePrice }}
</a-descriptions-item>
<a-descriptions-item label="预计经销差" name="updateTime">
¥{{ expectedProfitMargin }}
</a-descriptions-item>
<a-descriptions-item label="溢价金额" name="updateTime">
¥{{ premiumAmount }}
</a-descriptions-item>
<a-descriptions-item label="实际经销差" name="updateTime">
¥{{ actualProfitMargin }}
</a-descriptions-item>
</a-descriptions>
</a-card>
<a-card class="mt-10" :bordered="false" size="small">
......@@ -429,6 +441,69 @@ export default class ViewAuctionOrder extends Vue {
return this.auctionOrder?.account;
}
/**
* 预计经销差 = 保留价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get expectedProfitMargin(): string {
if (!this.auctionOrder) return '-';
const reservePrice = this.auctionOrder.vehicle?.reservePrice;
const commissionPrice = this.auctionOrder.commissionPrice;
const purchasePrice = this.auctionOrder.vehicle?.evaluationTransaction?.purchasePrice;
// 如果任一值为空,返回 '-'
if (!reservePrice || !commissionPrice || !purchasePrice) {
return '-';
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const margin = Math.round((reservePrice + commissionPrice - purchasePrice) * 100) / 100;
return margin.toFixed(2);
}
/**
* 溢价金额 = 成交价 + 佣金 - 保留价
* 使用 Math.round() 避免精度丢失
*/
get premiumAmount(): string {
if (!this.auctionOrder) return '-';
const orderPrice = this.auctionOrder.orderPrice;
const commissionPrice = this.auctionOrder.commissionPrice;
const reservePrice = this.auctionOrder.vehicle?.reservePrice;
// 如果任一值为空,返回 '-'
if (!orderPrice || !commissionPrice || !reservePrice) {
return '-';
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const premium = Math.round((orderPrice + commissionPrice - reservePrice) * 100) / 100;
return premium.toFixed(2);
}
/**
* 实际经销差 = 成交价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get actualProfitMargin(): string {
if (!this.auctionOrder) return '-';
const orderPrice = this.auctionOrder.orderPrice;
const commissionPrice = this.auctionOrder.commissionPrice;
const purchasePrice = this.auctionOrder.vehicle?.evaluationTransaction?.purchasePrice;
// 如果任一值为空,返回 '-'
if (!orderPrice || !commissionPrice || !purchasePrice) {
return '-';
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const margin = Math.round((orderPrice + commissionPrice - purchasePrice) * 100) / 100;
return margin.toFixed(2);
}
viewContract(contract: Contract): void {
contract.auctionOrder = this.auctionOrder;
const modal = ModalService.confirm({
......
......@@ -19,8 +19,7 @@
</a-descriptions-item>
<a-descriptions-item label="签署状态">
<a-tag v-if="contract.signed" color="success">已签署</a-tag>
<a-tag v-else color="error">未签署</a-tag>
<a-tag :color="contract.contractStatus == '已签署' ? 'success' : 'orange'">{{contract.contractStatus}}</a-tag>
</a-descriptions-item>
<a-descriptions-item label="合同附件">
......@@ -46,16 +45,16 @@
<a-empty v-else description="暂无合同附件" :image="simpleImage"></a-empty>
</a-card>
<a-descriptions v-if="contract.auctionOrder?.account" :bordered="false" :column="4" size="small" style="margin-top: 16px;">
<a-descriptions :bordered="false" :column="4" size="small" style="margin-top: 16px;">
<template #title>
<title-tip-icon/>
签署方信息
</template>
<a-descriptions-item label="买受方">
{{ contract.auctionOrder.account.accountName || '-' }} (ID: {{ contract.auctionOrder.account.accountId || '-' }})
<a-descriptions-item label="买受方" :span="2">
{{ contract.signerName || '-' }} (ID: {{ contract.signerIdCard || '-' }})
</a-descriptions-item>
<a-descriptions-item label="联系方式">
{{ contract.auctionOrder.account.mobile || '-' }}
<a-descriptions-item label="联系方式" :span="2">
{{ contract.signerMobile || '-' }}
</a-descriptions-item>
</a-descriptions>
</template>
......
......@@ -26,7 +26,7 @@
<span>{{ record.accountName || '—' }}</span>
</template>
<template v-if="column.key === 'signTime'">
<span>{{ record.signed ? (record.signTime || '—') : '—' }}</span>
<span>{{ (record.signTime || '—') }}</span>
</template>
<template v-if="column.key === 'createTime'">
<span>{{ record.createTime || '—' }}</span>
......@@ -83,7 +83,7 @@ export default class MasterContractPage extends PaginationComponent<Contract> {
{
title: '签署状态', dataIndex: 'contractStatus', key: 'contractStatus', align: 'center', width: 100, resizable: true, ellipsis: true, sorter: true,
},
{title: '签署乙方姓名', dataIndex: 'accountName', key: 'accountName', width: 120, resizable: true, ellipsis: true, sorter: true},
{title: '签署乙方姓名', dataIndex: 'signerName', key: 'signerName', width: 120, resizable: true, ellipsis: true, sorter: true},
{title: '创建时间', dataIndex: 'createTime', key: 'createTime', width: 170, align: 'center', resizable: true, ellipsis: true, sorter: true},
{title: '签署时间', dataIndex: 'signTime', key: 'signTime', width: 170, align: 'center', resizable: true, ellipsis: true, sorter: true},
{title: '操作', key: 'action', width: 80, align: 'center', fixed: 'right'},
......
......@@ -22,6 +22,12 @@
<a-descriptions-item label="佣金金额" name="referencePrice">
¥{{ appraisePrice.fixedCommission || appraisePrice.fixedCommission == 0 ? appraisePrice.fixedCommission : '-' }}元
</a-descriptions-item>
<a-descriptions-item label="成本价" name="referencePrice">
¥{{ appraisePrice.vehicle?.evaluationTransaction?.purchasePrice || appraisePrice.vehicle?.evaluationTransaction?.purchasePrice == 0 ? appraisePrice.vehicle?.evaluationTransaction?.purchasePrice : '-' }}元
</a-descriptions-item>
<a-descriptions-item label="预计经销差" name="referencePrice">
¥{{ expectedProfitMargin }}元
</a-descriptions-item>
</a-descriptions>
<a-divider>审批记录</a-divider>
<approve-history-timeline approve-type="APPRAISE_PRICE" :approve-id="appraisePrice.appraiseId" :create-time="appraisePrice.createTime"
......@@ -70,6 +76,33 @@ export default class AppraisePriceAuditForm extends EnhanceFormComponent<Approve
this.formState = reactive<ApproveHistory>(approveHistory);
}
/**
* 预计经销差 = 保留价 + 佣金 - 成本价
* 使用 Math.round() 避免精度丢失
*/
get expectedProfitMargin(): string {
// 获取保留价
const reservePrice = this.appraisePrice?.reservePrice;
// 获取佣金
const commission = this.appraisePrice?.fixedCommission;
// 获取成本价
const purchasePrice = this.appraisePrice?.vehicle?.evaluationTransaction?.purchasePrice;
// 如果保留价或成本价为空,返回 '-'
if (!reservePrice || !purchasePrice) {
return '-';
}
// 佣金字段可能是0或空,需要特殊处理
const commissionPrice = commission || 0;
// 使用 Math.round() 避免精度丢失,保留2位小数
const margin = Math.round((reservePrice + commissionPrice - purchasePrice) * 100) / 100;
return margin.toFixed(2);
}
onValidSuccess(formValue: ApproveHistory): void {
formValue.approveId = this.appraisePrice.appraiseId;
AppraiseController.auditAppraisePrice(this.axios, formValue).then(res => {
......
......@@ -4,6 +4,7 @@
<a-descriptions-item label="车辆信息">{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</a-descriptions-item>
<a-descriptions-item label="市场参考价">¥{{ vehicle.baseInfo.guidePrice }}元</a-descriptions-item>
<a-descriptions-item label="收车成本价">¥{{ vehicle.evaluationTransaction.purchasePrice }}元</a-descriptions-item>
<a-descriptions-item label="预计经销差">¥{{ difference }}元</a-descriptions-item>
</a-descriptions>
<a-alert v-if="(businessConfig&&!businessConfig?.specialPricingEnabled)&&formState.referencePrice <= 0" message="请配置有效的基础参考价规则"
type="error" show-icon class="mb-12"/>
......@@ -87,6 +88,31 @@ export default class AppraisePriceForm extends EnhanceFormComponent<AppraisePric
}
}
/**
* 预计经销差 = 手动输入的保留价 + 佣金 - 收车成本价
* 佣金取值:如果开启自定义佣金,取表单输入的固定佣金,否则按 0 处理
* 使用 Math.round() 避免精度丢失
*/
get difference(): string {
// 获取保留价(手动输入)
const reservePrice = this.formState.reservePrice;
// 获取佣金:如果开启自定义佣金,取表单输入的固定佣金,否则为 0
const commissionPrice = this.formState.fixedCommissionSwitch ? (this.formState.fixedCommission || 0) : 0;
// 获取收车成本价
const purchasePrice = this.vehicle?.evaluationTransaction?.purchasePrice;
// 如果保留价或成本价为空,返回 '-'
if (!reservePrice || !purchasePrice) {
return '-';
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const margin = Math.round((reservePrice + commissionPrice - purchasePrice) * 100) / 100;
return margin.toFixed(2);
}
verifyReferencePrice(_rule: RuleObject, referencePrice: number) {
if (referencePrice <= 0) {
return Promise.reject('请配置有效的基础参考价规则!');
......
......@@ -31,6 +31,12 @@
<a-descriptions-item label="保留价">
¥{{ vehicle.reservePrice }}
</a-descriptions-item>
<a-descriptions-item label="成本价">
¥{{ vehicle.evaluationTransaction?.purchasePrice ?? '-' }}
</a-descriptions-item>
<a-descriptions-item label="预计经销差">
¥{{ expectedProfitMargin }}
</a-descriptions-item>
<a-descriptions-item label="延时规则">
最后{{ auctionVehicle.auction.beforeEndMinute }}分钟出价,延时{{ auctionVehicle.auction.delayMinute }}分钟
</a-descriptions-item>
......@@ -108,6 +114,24 @@ export default class AuctionVehicleHistory extends Vue {
}
}
/**
* 计算预计经销差(保留价 - 成本价)
* 使用 Math.round() 避免精度丢失
*/
get expectedProfitMargin(): string {
const reservePrice = this.vehicle.reservePrice;
const purchasePrice = this.vehicle.evaluationTransaction?.purchasePrice;
// 如果保留价或成本价为空,返回 '-'
if (!reservePrice || !purchasePrice) {
return '-';
}
// 使用 Math.round() 避免精度丢失,保留2位小数
const margin = Math.round((reservePrice - purchasePrice) * 100) / 100;
return margin.toFixed(2);
}
created() {
AuctionController.getAuctionVehiclesByVehicleId(this.axios, this.vehicle.vehicleId).then(response => {
this.auctionVehicles = response.data;
......
......@@ -83,4 +83,11 @@ export class AccountController {
// region 前端扩展代码区
// endregion
/**
* 发起平台合同签署
*/
static initiateSigningApi(axios: AxiosStatic): Promise<AxiosResponse<Account>> {
return axios.post('platformContract/initiateSigning');
}
}
......@@ -172,7 +172,9 @@ export default {
"COUPON_2": "优惠券协议2",
"COUPON_3": "优惠券协议3",
"COUPON_4": "优惠券协议4",
"COUPON_5": "优惠券协议5"
"COUPON_5": "优惠券协议5",
"PURCHASE_CONTRACT": "购车合同",
"PLATFORM_CONTRACT": "平台交易整体合同"
},
"agreementState": {
"DRAFT": "草稿",
......
......@@ -393,7 +393,9 @@
@close="closeBidSuccessDialog"></bid-success-dialog>
</van-dialog>
</view>
<van-dialog use-slot :show="showCertifyDialog" :show-cancel-button="false" :show-confirm-button="false">
<certification-dialog @close="onCertifyDialogClosed"></certification-dialog>
</van-dialog>
<coupon-home-benefit-popup v-if="!isSinglePageMode" :show="showCouponBenefitPopup" :payload="couponBenefitPayload"
@close="onCouponBenefitPopupClose" />
......@@ -429,7 +431,7 @@ import roundBidBottom from "@/module/auction/roundBidBottom.vue";
import RoundBidPopup from "@/components/RoundBidPopup.vue";
import customNav from "@/module/auction/customNav.vue";
import InspectionReport from "@/module/auction/InspectionReport.vue";
import CertificationDialog from "@/pages/tabbar/home/CertificationDialog.vue";
/**
* 检测是否处于微信朋友圈/短链「单页模式」。
* 必须在类字段初始化阶段同步调用:冷启动时 composable onLoad 可能尚未执行,
......@@ -468,7 +470,7 @@ function parseAucvehIdFromEnterOptions(): number | undefined {
}
@Component({
components: { BidSuccessDialog, roundBidBottom, RoundBidPopup, customNav, InspectionReport, CouponHomeBenefitPopup }
components: { CertificationDialog, BidSuccessDialog, roundBidBottom, RoundBidPopup, customNav, InspectionReport, CouponHomeBenefitPopup }
})
export default class AuctionVehiclePage extends Vue {
......@@ -573,7 +575,9 @@ export default class AuctionVehiclePage extends Vue {
lightBidPriceRange: LightBidPriceRange;
darkBidPriceRange: DarkBidPriceRange;
/** 认证弹窗延迟定时器(避免重复 onShow 叠加多个定时器) */
certifyDelayTimer: ReturnType<typeof setTimeout> | null = null;
showCertifyDialog = false;
change(e: any) {
// this.show = e.show
}
......@@ -892,7 +896,7 @@ export default class AuctionVehiclePage extends Vue {
// 代码请求优化
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
//this.auctionVehicle.auctionState === 'SOLD' &&
//this.auctionVehicle.auctionState === 'SOLD' &&
if (this.$auth.isLogin() && currentPage.route == 'module/auction/AuctionVehiclePage') {
this.intervalId = setInterval(() => {
AuctionOrderController.getAuctionOrderByVehicleId(this.axios, this.vehicle.vehicleId).then(res => {
......@@ -1088,6 +1092,10 @@ export default class AuctionVehiclePage extends Vue {
}
}
onCertifyDialogClosed(): void {
this.showCertifyDialog = false;
}
// 增加出价金额
addBidAmount(price: number) {
this.currentAddPrice = price;
......@@ -1157,6 +1165,15 @@ export default class AuctionVehiclePage extends Vue {
}
}
});
} else 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();
......
......@@ -328,7 +328,7 @@
{
"path": "CompanyCertificationPage",
"style": {
"navigationBarTitleText": "成为车商",
"navigationBarTitleText": "升级参拍权",
"enablePullDownRefresh": false
}
},
......@@ -588,4 +588,4 @@
"van-count-down": "/wxcomponents/vant/weapp/count-down/index"
}
}
}
\ No newline at end of file
}
......@@ -32,8 +32,10 @@
</view>
<text class="agreement-text">
阅读并同意
<text class="agreement-link" @click="viewUserAgreement">《优加车拍二手车用户协议》</text>
<text class="agreement-link" @click="viewPrivacyAgreement">《优加车拍二手车隐私协议》</text>
<text class="agreement-link" @click="viewAgreement('ACCOUNT')">《用户协议》</text>
<text class="agreement-link" @click="viewAgreement('PRIVACY')">《隐私协议》</text>
<text class="agreement-link" @click="viewAgreement('PURCHASE_CONTRACT')">《购车合同》</text>
<text class="agreement-link" @click="viewAgreement('AUCTION')">《竞拍规则》</text>
未登录用户默认注册为平台会员
</text>
</view>
......@@ -139,14 +141,9 @@ export default class LoginPage extends Vue {
this.isAgreed = !this.isAgreed;
}
// 查看用户协议
viewUserAgreement() {
uni.navigateTo({url: '/module/profile/AgreementPage?key=ACCOUNT'});
}
// 查看隐私协议
viewPrivacyAgreement() {
uni.navigateTo({url: '/module/profile/AgreementPage?key=PRIVACY'});
// 查看协议
viewAgreement(key) {
uni.navigateTo({url: `/module/profile/AgreementPage?key=${key}`});
}
}
</script>
......
......@@ -332,10 +332,9 @@ export default class HomePage extends Vue {
return;
}
const accountInfo = authService.getAuthentication();
/** 仅未认证/认证失败的 COMMON 用户走认证引导;已认证用户直接进入权益弹窗链路 */
/** 仅未认证/认证失败的 COMMON 用户走认证引导 或者未签署平台合同;已认证用户直接进入权益弹窗链路 */
const cs = accountInfo?.certifiedState;
const needP1 = !!(accountInfo && accountInfo.accountType === 'COMMON' && cs !== 'CERTIFICATING' && cs !== 'CERTIFIED');
const needP1 = (!!(accountInfo && accountInfo.accountType === 'COMMON' && cs !== 'CERTIFICATING' && cs !== 'CERTIFIED') || (accountInfo && !accountInfo.platformContractSigned));
if (needP1) {
if (this.certifyDelayTimer != null) {
clearTimeout(this.certifyDelayTimer);
......
......@@ -54,39 +54,57 @@
<template v-if="accountInfo">
<template v-if="accountInfo.accountType === 'COMMON'">
<template v-if="accountInfo?.certifiedState === 'UNCERTIFIED'">
<account-auth-section title="获得参拍权" desc="让每一次拍得得心应手" button="立即开通"
<account-auth-section title="完成认证,解锁竞拍权限" desc="出价前需完成验证" button="去认证"
url="/module/account/PersonCertificationPage"></account-auth-section>
</template>
<template v-if="accountInfo?.certifiedState === 'CERTIFICATING'">
<account-auth-section title="认证资料审核中" desc="认证资料审核中" button="查看详情"
<account-auth-section title="认证资料审核中" desc="出价前需完成验证" button="去查看"
url="/module/account/CertificationResult"></account-auth-section>
</template>
<template v-if="accountInfo?.certifiedState === 'CERTIFY_FAILED'">
<account-auth-section title="认证失败" desc="让获得更专业的服务" button="查看详情"
<account-auth-section title="认证失败,请重新认证" desc="出价前需完成验证" button="去认证"
url="/module/account/CertificationResult"></account-auth-section>
</template>
</template>
<template v-if="accountInfo.accountType === 'PERSON'">
<!-- 个人未认证 -->
<template
v-if="accountInfo?.certifiedState === 'UNCERTIFIED' || accountInfo?.certifiedState === 'CERTIFIED'">
<account-auth-section title="升级参拍权" desc="让获得更专业的服务" button="立即升级"
url="/module/account/CompanyCertificationPage"></account-auth-section>
v-if="accountInfo?.certifiedState === 'UNCERTIFIED'">
<account-auth-section title="完成认证,解锁竞拍权限" desc="出价前需完成验证" button="去认证"
url="/module/account/PersonCertificationPage"></account-auth-section>
</template>
<!-- 个人认证中 -->
<template v-if="accountInfo?.certifiedState === 'CERTIFICATING'">
<account-auth-section title="认证资料审核中" desc="认证资料审核中" button="查看详情"
<account-auth-section title="认证资料审核中" desc="出价前需完成验证" button="去查看"
url="/module/account/CertificationResult"></account-auth-section>
</template>
<!-- 个人认证失败 -->
<template v-if="accountInfo?.certifiedState === 'CERTIFY_FAILED'">
<account-auth-section title="认证失败" desc="让获得更专业的服务" button="查看详情"
<account-auth-section title="认证失败,请重新认证" desc="出价前需完成验证" button="去认证"
url="/module/account/CertificationResult"></account-auth-section>
</template>
<!-- 个人认证成功未签署合同 -->
<template v-if="accountInfo?.certifiedState === 'CERTIFIED' && !accountInfo?.platformContractSigned && !accountInfo?.signDeadline">
<account-auth-section title="认证成功,待签署合同" desc="合同签署成功后即可参拍" button="去签署"
url="/module/account/CertificationResult"></account-auth-section>
</template>
<!-- 合同签署中 -->
<template v-if="accountInfo?.certifiedState === 'CERTIFIED' && isSignDeadline">
<account-auth-section title="合同签署中" desc="合同签署成功后即可参拍" button="去查看"
url="/module/account/CertificationResult"></account-auth-section>
</template>
<!-- 升级到车商参拍权 -->
<template v-if="accountInfo?.certifiedState === 'CERTIFIED' && accountInfo?.platformContractSigned && accountInfo?.platformContractSignTime">
<account-auth-section title="恭喜你,获得参拍资格" desc="点击查看按钮可继续升级参拍权" button="去查看"
url="/module/account/CompanyCertificationPage"></account-auth-section>
</template>
</template>
<template v-if="accountInfo.accountType === 'COMPANY'">
</template>
</template>
<template v-else>
<account-auth-section title="获得参拍权" desc="让每一次拍得得心应手" button="立即开通"
<account-auth-section title="完成认证,解锁竞拍权限" desc="出价前需完成验证" button="去认证"
url="/pages/LoginPage"></account-auth-section>
</template>
<!-- 常用工具 -->
......@@ -373,6 +391,25 @@ export default class ProfilePage extends Vue {
return couponImageUrl("ticket.png");
}
/**
* 判断签署截止时间是否大于当前时间
* 用于显示"合同签署中"状态
*/
get isSignDeadline(): boolean {
if (!this.accountInfo?.signDeadline) {
return false;
}
try {
const signDeadline = new Date(this.accountInfo.signDeadline);
const now = new Date();
return signDeadline > now;
} catch (error) {
console.error('签署截止时间解析失败:', error);
return false;
}
}
previewAvatar(): void {
if (this.accountInfo?.avatar && this.accountInfo.avatar?.url) {
uni.previewImage({ urls: [this.accountInfo.avatar.url], current: 0 });
......
<template>
<view class="dialog-container">
<view class="dialog-body">
<view class="dialog-close" @click="closeDialog">
<text class="close-icon">×</text>
</view>
<view class="dialog-icon">
<van-image width="80" height="88" fit="cover" src="/static/images/account/certifition/certifition.png"></van-image>
</view>
......@@ -8,97 +11,105 @@
完成本人认证
</view>
<view class="dialog-content">
<text>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;完成后,您将获得在我们平台上架车辆的权限,享受安全、高效的交易环境</text>
<text>认证完成后,您将解锁海量优质车源的竞拍购车权限,畅享透明、安全、高效的在线交易体验。</text>
</view>
<view class="dialog-footer">
<van-button type="primary" hairline round block @click="goCertification">立即认证</van-button>
<view @click="closeDialog" class="popup-button-text">稍后认证</view>
<van-button type="primary" round block @click="goCertification">立即认证</van-button>
</view>
</view>
</view>
</template>
<script lang="ts">
import {Component, Vue} from "vue-facing-decorator";
import { AuthService } from "@/common/AuthService";
@Component({
components: {}
})
export default class CertificationDialog extends Vue {
goCertification(): void {
const authService: AuthService = this.$auth
this.$emit('close');
uni.navigateTo({url: '/module/account/PersonCertificationPage'});
if (authService.accountInfo.certifiedState == 'UNCERTIFIED') {
uni.navigateTo({url: '/module/account/PersonCertificationPage'})
} else {
uni.navigateTo({url: '/module/account/CertificationResult'})
}
}
closeDialog(): void {
this.$emit('close');
}
}
</script>
<style lang="scss" scoped>
.dialog-container {
//height: 200px;
//min-height: 100vh;
/* 避免内容被顶部导航栏遮挡(可选) */
//padding-top: var(--status-bar-height);
//box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.bg-image {
background-attachment: inherit; /* 将背景图固定不动 */
.dialog-body {
position: relative;
padding: 32px 24px 28px;
background: #fff;
border-radius: 16px;
box-sizing: border-box;
}
.dialog-body {
padding: 20px;
.dialog-close {
position: absolute;
top: 12px;
right: 12px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.close-icon {
font-size: 22px;
color: #999;
line-height: 1;
}
.dialog-icon {
text-align: center;
margin-bottom: 16px;
}
.dialog-header {
position: relative;
font-size: 22px;
font-weight: 400;
font-size: 20px;
font-weight: 500;
color: #141E34;
text-align: center;
margin-top: 20px;
margin-bottom: 10px;
margin-bottom: 12px;
}
.dialog-content {
position: relative;
padding: 4px 20px 12px 20px;
padding: 0 4px 24px;
text-align: center;
text {
text-indent: 2em;
font-size: 14px;
font-weight: 400;
line-height: 18.2px;
line-height: 1.6;
color: #676D7D;
text-justify: newspaper;
}
}
.dialog-footer {
margin-top: 20px;
position: relative;
display: flex;
flex-direction: column;
gap: 3px;;
}
.popup-button-text {
width: 100%;
height: 20px;
float: left;
line-height: 20px;
color: #666666;
font-size: 14px;
font-weight: 常规体;
font-family: "苹方-简";
text-align: center;
cursor: pointer;
margin-top: 16px;
.dialog-footer ::v-deep .van-button--primary {
background: #347BFF;
border-color: #347BFF;
height: 44px;
font-size: 16px;
font-weight: 500;
}
</style>
......@@ -50,8 +50,8 @@ export class Agreement extends AuditingEntity {
* ABOUT_US 关于我们
* COUPON_1 ~ COUPON_5 优惠券协议(多档活动可分别配置)
*/
export type Agreement_AgreementKey = 'AUCTION'|'TRANSACTION'|'VIOLATION'|'CONTRACT'|'ACCOUNT'|'PRIVACY'|'ABOUT_US'|'FAPAI_ACCOUNT'|'FAPAI_PRIVACY'|'COUPON_1'|'COUPON_2'|'COUPON_3'|'COUPON_4'|'COUPON_5';
export const AGREEMENT_AGREEMENT_KEYS = ['AUCTION','TRANSACTION','VIOLATION','CONTRACT','ACCOUNT','PRIVACY','ABOUT_US', 'FAPAI_ACCOUNT', 'FAPAI_PRIVACY', 'COUPON_1', 'COUPON_2', 'COUPON_3', 'COUPON_4', 'COUPON_5'];
export type Agreement_AgreementKey = 'AUCTION'|'TRANSACTION'|'VIOLATION'|'CONTRACT'|'ACCOUNT'|'PRIVACY'|'ABOUT_US'|'FAPAI_ACCOUNT'|'FAPAI_PRIVACY'|'COUPON_1'|'COUPON_2'|'COUPON_3'|'COUPON_4'|'COUPON_5'|'PURCHASE_CONTRACT'|'PLATFORM_CONTRACT';
export const AGREEMENT_AGREEMENT_KEYS = ['AUCTION','TRANSACTION','VIOLATION','CONTRACT','ACCOUNT','PRIVACY','ABOUT_US', 'FAPAI_ACCOUNT', 'FAPAI_PRIVACY', 'COUPON_1', 'COUPON_2', 'COUPON_3', 'COUPON_4', 'COUPON_5', 'PURCHASE_CONTRACT', 'PLATFORM_CONTRACT'];
/**
* DRAFT 草稿
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!