index.vue__ 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <iframe id="iframe" src="http://baidu.com/"></iframe>
  3. </template>
  4. <script>
  5. import uniList from '../../components/uni-ui/uni-list/uni-list.vue';
  6. import uniListItem from '../../components/uni-ui/uni-list-item/uni-list-item.vue';
  7. import _get from '../../common/_get';
  8. import _hook from '../../common/_hook';
  9. export default {
  10. components: {
  11. uniList,
  12. uniListItem
  13. },
  14. data() {
  15. return {
  16. }
  17. },
  18. onShow(){
  19. _hook.routeTabBarHook();
  20. },
  21. onLoad() {
  22. },
  23. computed: {
  24. showTips(){
  25. if(this.$store.state.no_reader_circle_chat_num){
  26. return this.$store.state.no_reader_circle_chat_num;
  27. }
  28. if(this.$store.state.no_reader_circle){
  29. return ' ';
  30. }
  31. return '';
  32. },
  33. },
  34. methods: {
  35. goPath(path){
  36. if(path){
  37. uni.navigateTo({
  38. url: path
  39. });
  40. }
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped>
  46. html,body,#iframe{
  47. padding:0;
  48. margin:0;
  49. width:100%;
  50. height:100%
  51. }
  52. uni-page-body, uni-page-refresh {
  53. display: block;
  54. box-sizing: border-box;
  55. width: 100%;
  56. height: 100%;
  57. }
  58. #iframe{
  59. border:0;
  60. }
  61. .uni-list {
  62. margin-bottom: 30upx;
  63. }
  64. </style>