1
jhzh
2025-11-12 1bd03f5c2e7b9fa9cc80c4e673e18132da411333
src/page/user/webview.vue
@@ -3,7 +3,7 @@
    <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>
@@ -21,10 +21,11 @@
    };
  },
  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;
  },
@@ -34,6 +35,12 @@
      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)
      }