index.vue 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 user=JSON.parse(uni.getStorageSync('userInfo')) ;
  17. var companyUserId=uni.getStorageSync('companyUserId');
  18. var that=this;
  19. setTimeout(function(){
  20. that.webUrl="https://ai.cdwjyyh.com/#/pages/ai/conversation?userType=2&userId="+user.userId+"&companyUserId="+companyUserId
  21. console.log(that.webUrl);
  22. },500)
  23. },
  24. methods:{
  25. }
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. page{
  30. height: 100%;
  31. }
  32. .content{
  33. height: 100%;
  34. padding: 30rpx;
  35. }
  36. </style>