|
@@ -897,14 +897,15 @@ export default {
|
|
|
let result =res.data
|
|
|
if(result.code == 200) {
|
|
|
this.$toast('申请成功')
|
|
|
- // this.$router.push('/business')
|
|
|
- if(browser().iPhone) {
|
|
|
- window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api: 'back'}))
|
|
|
- } else if(browser().android) {
|
|
|
- DAYA.postMessage(JSON.stringify({api: 'back'}))
|
|
|
- } else {
|
|
|
- this.$router.push('/business')
|
|
|
- }
|
|
|
+ setTimeout(() => {
|
|
|
+ if(browser().iPhone) {
|
|
|
+ window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api: 'back'}))
|
|
|
+ } else if(browser().android) {
|
|
|
+ DAYA.postMessage(JSON.stringify({api: 'back'}))
|
|
|
+ } else {
|
|
|
+ this.$router.push('/business')
|
|
|
+ }
|
|
|
+ }, 500)
|
|
|
} else {
|
|
|
this.$toast(result.msg)
|
|
|
}
|