index.vue 704 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="content">
  3. <web-view v-if="webUrl!=null" :src="webUrl"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import {getConfigByKey} from '@/api/common'
  8. export default {
  9. components: { },
  10. data() {
  11. return {
  12. webUrl:null,
  13. }
  14. },
  15. onLoad(options) {
  16. var companyUserId=uni.getStorageSync('companyUserId');
  17. var that=this;
  18. setTimeout(function(){
  19. that.webUrl="https://ai.cdwjyyh.com/#/pages/ai/conversation?userType=3&userId="+companyUserId+"&companyUserId="+companyUserId
  20. console.log(that.webUrl);
  21. },500)
  22. },
  23. methods:{
  24. }
  25. }
  26. </script>
  27. <style scoped lang="scss">
  28. page{
  29. height: 100%;
  30. }
  31. .content{
  32. height: 100%;
  33. padding: 30rpx;
  34. }
  35. </style>