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> <template>
<div> <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 class="content-scroll" :class="{ 'has-footer': accountInfo.approvalStatus === 0 }">
<!-- 审核状态 --> <!-- 审核状态 -->
<div v-if="currentStatus" class="status-section"> <div v-if="currentStatus" class="status-section">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="timeline-item"> <div class="timeline-item">
<div class="timeline-left"> <div class="timeline-left">
<div class="dot-wrapper"> <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> </div>
<div class="timeline-content"> <div class="timeline-content">
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" /> <approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" />
</div> </div>
<div v-show="$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div> <div v-show="!$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
</div> </div>
</template> </template>
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
this.applyId = this.getLocalStorage('ww_params_id') || '' this.applyId = this.getLocalStorage('ww_params_id') || ''
this.uuid = this.getLocalStorage('ww_params_uuid') || '' this.uuid = this.getLocalStorage('ww_params_uuid') || ''
this.name = this.getLocalStorage('ww_params_name') || '' this.name = this.getLocalStorage('ww_params_name') || ''
this.loadAccountDetail(this.applyId) // this.loadAccountDetail(this.applyId)
}, },
getApproverInfo() { getApproverInfo() {
const userInfo = this.getLocalStorage('ww_userInfo') || {} const userInfo = this.getLocalStorage('ww_userInfo') || {}
...@@ -355,37 +355,23 @@ export default { ...@@ -355,37 +355,23 @@ export default {
align-self: stretch; align-self: stretch;
.dot-wrapper { .dot-wrapper {
width: 100%; width: 100%;
height: 22px; height: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.dot { .dot {
width: 8px;
height: 8px;
border-radius: 50%; border-radius: 50%;
background: #e5e5e5; background: #e5e5e5;
z-index: 2; z-index: 2;
box-sizing: border-box; box-sizing: border-box;
} }
.step-active { .step-active {
background: #ffffff; background: #8eb2fb;
border: 2px solid #d6e4ff; // border: 2px solid #d6e4ff;
width: 14px; width: 10px;
height: 14px; height: 10px;
position: relative; 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 { .step-reject {
border-color: #ffd6cc; border-color: #ffd6cc;
......
<template> <template>
<div> <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 class="content-scroll" :class="{ 'has-footer': orderInfo.status == 1 }">
<!-- 审核状态 --> <!-- 审核状态 -->
<div v-if="currentStatus" class="status-section"> <div v-if="currentStatus" class="status-section">
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" /> <approval-popup v-if="showPopup" :show="showPopup" :info-data="popupInfo" :reject-remark-required="true" @confirm="handlePopupConfirm" @cancel="hidePopup" />
</div> </div>
<div v-show="$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div> <div v-show="!$store.state.app.authorizePage" class="loading-box">正在登录授权中...</div>
</div> </div>
</template> </template>
...@@ -195,9 +195,9 @@ export default { ...@@ -195,9 +195,9 @@ export default {
this.orderCode = this.getLocalStorage('ww_orderCode') || '' this.orderCode = this.getLocalStorage('ww_orderCode') || ''
this.phone = this.getLocalStorage('ww_params_phone') || '15814019200' this.phone = this.getLocalStorage('ww_params_phone') || '15814019200'
if (this.phone) { if (this.phone) {
this.loadStaffInfoByPhone(this.phone) // this.loadStaffInfoByPhone(this.phone)
} // }
this.loadOrderDetail(this.orderCode) // this.loadOrderDetail(this.orderCode)
}, },
loadStaffInfoByPhone(phone) { loadStaffInfoByPhone(phone) {
orderApprovalApi.getStaffInfoByPhone({ phone }).then(res => { 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!