index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="content">
  3. <view class="banner">
  4. <image :src="bannerSrc" alt="banner" />
  5. </view>
  6. <div class="menus">
  7. <div class="menu">
  8. <image :src="menu1" />
  9. </div>
  10. <div class="menu">
  11. <image :src="menu2" />
  12. </div>
  13. </div>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. bannerSrc: "/static/service/banner.png",
  21. menu1: "/static/service/1.png",
  22. menu2: "/static/service/2.png",
  23. };
  24. },
  25. onLoad() {},
  26. methods: {
  27. // toDetail(index) {
  28. // uni.navigateTo({
  29. // url: "/pages/appeal/appeal_detail?id=" + index,
  30. // });
  31. // },
  32. },
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .flex {
  37. display: flex;
  38. }
  39. .content {
  40. width: 92%;
  41. height: 92vh;
  42. padding: 4%;
  43. .banner {
  44. height: 25%;
  45. image {
  46. width: 100%;
  47. height: 100%;
  48. }
  49. }
  50. .menus {
  51. height: 15%;
  52. .menu {
  53. margin: 3%;
  54. height: 100%;
  55. border-radius: 20rpx;
  56. // box-shadow: 0rpx 10rpx 5rpx rgb(212, 212, 212);
  57. image {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. }
  62. }
  63. }
  64. </style>