Commit 7a3ada05 by wangzhihui

企微授权

1 parent 9c330f2e
......@@ -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>
......
......@@ -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>
......@@ -174,7 +174,7 @@ export default {
created() {
// 先缓存链接业务参数,避免 OAuth 跳转后 orderCode 丢失
this.initPageParams()
store.dispatch('login')
// store.dispatch('login')
},
watch: {
'$store.state.app.authorizePage': {
......@@ -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!