Commit 12cdff64 by wangzhihui

fix: Update visibility logic and styles in account and order approval components

- Corrected visibility conditions for loading and main content sections in both accountApproval and orderApproval components.
- Adjusted styles for timeline dots, including size and background color changes.
- Commented out unnecessary API calls in lifecycle hooks for optimization.
1 parent 133e4c15
<template>
<div>
<div v-show="!$store.state.app.authorizePage" class="page-container">
<div v-show="$store.state.app.authorizePage" class="page-container">
<div class="content-scroll" :class="{ 'has-footer': accountInfo.approvalStatus === 0 }">
<!-- 审核状态 -->
<div v-if="currentStatus" class="status-section">
......@@ -34,7 +34,7 @@
<div class="timeline-item">
<div class="timeline-left">
<div class="dot-wrapper">
<div class="dot step-active" :class="accountInfo.approvalStatus === 2 ? 'step-reject' : ''"></div>
<div class="dot step-active"></div>
</div>
</div>
<div class="timeline-content">
......@@ -74,7 +74,7 @@
<approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" />
</div>
<div v-show="$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
<div v-show="!$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
</div>
</template>
......@@ -148,7 +148,7 @@ export default {
this.applyId = this.getLocalStorage('ww_params_id') || ''
this.uuid = this.getLocalStorage('ww_params_uuid') || ''
this.name = this.getLocalStorage('ww_params_name') || ''
this.loadAccountDetail(this.applyId)
// this.loadAccountDetail(this.applyId)
},
getApproverInfo() {
const userInfo = this.getLocalStorage('ww_userInfo') || {}
......@@ -355,37 +355,23 @@ export default {
align-self: stretch;
.dot-wrapper {
width: 100%;
height: 22px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #e5e5e5;
z-index: 2;
box-sizing: border-box;
}
.step-active {
background: #ffffff;
border: 2px solid #d6e4ff;
width: 14px;
height: 14px;
background: #8eb2fb;
// border: 2px solid #d6e4ff;
width: 10px;
height: 10px;
position: relative;
&::after {
content: '';
position: absolute;
width: 5px;
height: 5px;
background: #ffffff;
border-radius: 50%;
border: 2px solid #347bff;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.step-reject {
border-color: #ffd6cc;
......
<template>
<div>
<div v-show="!$store.state.app.authorizePage" class="page-container">
<div v-show="$store.state.app.authorizePage" class="page-container">
<div class="content-scroll" :class="{ 'has-footer': orderInfo.status == 1 }">
<!-- 审核状态 -->
<div v-if="currentStatus" class="status-section">
......@@ -99,7 +99,7 @@
<approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" />
</div>
<div v-show="$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
<div v-show="!$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
</div>
</template>
......@@ -195,9 +195,9 @@ export default {
this.orderCode = this.getLocalStorage('ww_orderCode') || ''
this.phone = this.getLocalStorage('ww_params_phone') || '15814019200'
if (this.phone) {
this.loadStaffInfoByPhone(this.phone)
}
this.loadOrderDetail(this.orderCode)
// this.loadStaffInfoByPhone(this.phone)
// }
// this.loadOrderDetail(this.orderCode)
},
loadStaffInfoByPhone(phone) {
orderApprovalApi.getStaffInfoByPhone({ phone }).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!