| | |
| | | <van-nav-bar :placeholder="true" :safe-area-inset-top="true" :title="$t('kf')" left-arrow |
| | | @click-left="$router.go(-1)"> |
| | | </van-nav-bar> |
| | | <iframe :src="serverUrl+'?phone'+phone" width="100%" :height="screenHeight + 'px'"></iframe> |
| | | <iframe :src="serverUrl" width="100%" :height="screenHeight + 'px'"></iframe> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | const { query } = this.$route; |
| | | this.phone = query.phone |
| | | |
| | | }, |
| | | mounted() { |
| | | const { query } = this.$route; |
| | | this.phone = query.phone |
| | | this.getInfoSite() |
| | | this.screenHeight = window.innerHeight-100; |
| | | }, |
| | |
| | | let data = await api.getInfoSite() |
| | | if (data.status === 0) { |
| | | this.serverUrl = data.data.onlineService |
| | | const isLastCharQuestion = this.serverUrl.slice(-1) === '?' |
| | | if(isLastCharQuestion){ |
| | | this.serverUrl += 'name='+this.phone |
| | | }else{ |
| | | this.serverUrl += '&name='+this.phone |
| | | } |
| | | } else { |
| | | Toast(data.msg) |
| | | } |