| | |
| | | return { |
| | | serverUrl: '', |
| | | screenHeight: 0, |
| | | phone:'' |
| | | }; |
| | | }, |
| | | created() { }, |
| | | created() { |
| | | |
| | | }, |
| | | 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) |
| | | } |