Commit b4284b94 by wangzhihui

fix(orderApproval): Correct visibility logic for loading state and comment out unused API calls

- Updated visibility condition for the loading box in the order approval component.
- Commented out unnecessary API calls in the lifecycle hooks for better performance.
1 parent 12cdff64
......@@ -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>
......@@ -194,10 +194,10 @@ export default {
// 授权回调后 URL 可能只剩 code,从缓存读取
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)
// if (this.phone) {
// 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!