index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="home main-bg shadow">
  3. <view class="home-header header-long-bg">
  4. <!-- <view class="header-text font-forty font-color1">惠军通</view> -->
  5. <image class="header-img" src="/static/img.png"></image>
  6. </view>
  7. <view class="add">
  8. <view class="add-title font-thirty font-color3">服务推荐</view>
  9. <view class="add-view">
  10. <view class="add-list shadow3 padding" @click="handleAlert">
  11. <view class="list-title font-thirty-two font-color3">
  12. 提交服务申请
  13. </view>
  14. <!-- <view class="list-icon font-twenty-two font-color1">最新</view> -->
  15. <image src="/static/51.png"></image>
  16. </view>
  17. <view class="add-list shadow3" @click="handleAlert">
  18. <view class="list-title font-thirty-two font-color3">
  19. 支援服务积分
  20. </view>
  21. <!-- <view class="list-icon font-twenty-two font-color1">热门</view> -->
  22. <image src="/static/52.png"></image>
  23. </view>
  24. <view class="add-list shadow3 padding" @click="goto('/pages/soldier/home/policy?type=010')">
  25. <view class="list-title font-thirty-two font-color3">
  26. 志愿服务队
  27. </view>
  28. <view class="list-icon font-twenty-two font-color1">最新</view>
  29. <image src="/static/53.png"></image>
  30. </view>
  31. </view>
  32. </view>
  33. <u-toast ref="uToast" />
  34. </view>
  35. </template>
  36. <script>
  37. import server from "@/api/index";
  38. import { mapGetters } from 'vuex'
  39. export default {
  40. data() {
  41. return {
  42. }
  43. },
  44. methods: {
  45. goto(url){
  46. uni.navigateTo({
  47. url
  48. });
  49. },
  50. handleAlert(){
  51. this.$refs.uToast.show({
  52. title: '功能即将上线,敬请期待!',
  53. type: 'default',
  54. })
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .home{
  61. width: 100%;
  62. height: 100vh;
  63. position: relative;
  64. .home-header{
  65. width: 100%;
  66. height: 180rpx;
  67. border-bottom-left-radius: 50rpx;
  68. border-bottom-right-radius: 50rpx;
  69. padding-top: 30rpx;
  70. padding-left: 30rpx;
  71. position: relative;
  72. .header-text{
  73. height: 96rpx;
  74. line-height: 96rpx;
  75. }
  76. .header-img{
  77. position: absolute;
  78. top: 20rpx;
  79. left: 30rpx;
  80. width: calc(100% - 60rpx);
  81. height: 360rpx;
  82. border-radius: 24rpx;
  83. }
  84. }
  85. .add{
  86. margin-top: 190rpx;
  87. width: calc(100% - 30rpx);
  88. height: 629rpx;
  89. padding-left: 30rpx;
  90. .add-title{
  91. height: 120rpx;
  92. line-height: 120rpx;
  93. font-weight: 550;
  94. letter-spacing: 2rpx;
  95. }
  96. .add-view{
  97. display: flex;
  98. flex-wrap: wrap;
  99. justify-content: left;
  100. .add-list{
  101. width: calc(50% - 16rpx);
  102. height: 200rpx;
  103. border-radius: 8rpx;
  104. margin-bottom: 30rpx;
  105. padding-left: 30rpx;
  106. padding-top: 40rpx;
  107. position: relative;
  108. .list-title{
  109. font-weight: 550;
  110. letter-spacing: 2rpx;
  111. }
  112. .list-icon{
  113. width: 96rpx;
  114. height: 36rpx;
  115. margin-top: 26rpx;
  116. background: linear-gradient(270deg, rgba(204, 16, 25, 0.5) 0%, #CC1019 100%);
  117. border-radius: 24rpx;
  118. text-align: center;
  119. }
  120. image{
  121. width: 128rpx;
  122. height: 120rpx;
  123. position: absolute;
  124. bottom: 5rpx;
  125. right: 0rpx;
  126. }
  127. }
  128. .padding{
  129. margin-right: 30rpx;
  130. }
  131. }
  132. }
  133. }
  134. </style>