57 lines
1.3 KiB
Vue
57 lines
1.3 KiB
Vue
<template>
|
|
<view class="clinic_main" :style="{height: screenHeight + 'px'}">
|
|
<nav-bar title='门诊咨询'></nav-bar>
|
|
<view class="clinic_web">
|
|
<web-view :src="clinicUrl" :fullscreen="false" style="width: 100%;height: 100%;border: none;"></web-view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import navBar from "@/components/navBar/index.vue";
|
|
import {ML_CALLBACK_REQUEST} from "@/common/util.js"
|
|
export default {
|
|
components: {
|
|
navBar
|
|
},
|
|
data() {
|
|
return {
|
|
clinicUrl: '',
|
|
screenHeight: ''
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.screenHeight = uni.getSystemInfoSync().safeArea.height
|
|
this.getWebviewUrl()
|
|
},
|
|
methods: {
|
|
// 获取门诊咨询webview
|
|
getWebviewUrl() {
|
|
let data = {
|
|
companyName: '',
|
|
userName: uni.getStorageSync('userInfos').realName || '',
|
|
userPhone: uni.getStorageSync('userInfos').mobile || ''
|
|
}
|
|
ML_CALLBACK_REQUEST('/api/Consult/GetMedicalAdviceService','POST',data).then(res => {
|
|
this.clinicUrl = res.data.data.ServiceUrl
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.clinic_main {
|
|
width: 100%;
|
|
background: #F2F6FA;
|
|
padding-top: 100rpx;
|
|
}
|
|
.clinic_web {
|
|
height: calc(100% - 10rpx);
|
|
width: 100%;
|
|
position: relative;
|
|
iframe {
|
|
border-width: 0 !important;
|
|
}
|
|
}
|
|
</style> |