home.vue 889 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="home">
  3. 首页
  4. <view class="box"></view>
  5. <icon type="success" size="26"/>
  6. <icon type="clear" size="26"/>
  7. <icon type="search" size="26"/>
  8. <h1 class="h1">你好</h1>
  9. <text space='emsp'>今 三</text>
  10. <h2>你好</h2>
  11. <text space="nbsp">今 三</text>
  12. <h2>你好</h2>
  13. <text space="ensp">今 三</text>
  14. <button @click="getList">获取列表信息</button>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. methods:{
  20. getList() {
  21. const result = this.$newRequest({
  22. url:'/rexxar/api/v2/subject_collection/tv_domestic/items?start=0&count=8',
  23. method:"GET"
  24. })
  25. console.log(result);
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. @import url("../../test.css");
  32. text {
  33. color: $uni-color-primary;
  34. }
  35. .box {
  36. width: 300rpx;
  37. height: 300rpx;
  38. background: #00f;
  39. }
  40. </style>