Commit 7a3ada05 by wangzhihui

企微授权

1 parent 9c330f2e
...@@ -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>
......
...@@ -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>
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
created() { created() {
// 先缓存链接业务参数,避免 OAuth 跳转后 orderCode 丢失 // 先缓存链接业务参数,避免 OAuth 跳转后 orderCode 丢失
this.initPageParams() this.initPageParams()
store.dispatch('login') // store.dispatch('login')
}, },
watch: { watch: {
'$store.state.app.authorizePage': { '$store.state.app.authorizePage': {
...@@ -194,10 +194,10 @@ export default { ...@@ -194,10 +194,10 @@ export default {
// 授权回调后 URL 可能只剩 code,从缓存读取 // 授权回调后 URL 可能只剩 code,从缓存读取
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!