careAndLove.vue 765 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view>
  3. <view style="margin: auto;">
  4. <view class="page-item" v-for="(item,i) in pageList" @click="toSicknessBenefit(i+1)">
  5. {{item.text}}
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. pageList: [{
  15. text: '常规住院'
  16. }, {
  17. text: '大病住院'
  18. }, {
  19. text: '人身伤害'
  20. }]
  21. }
  22. },
  23. methods: {
  24. toSicknessBenefit(index) {
  25. this.$goto('sicknessBenefit?type=' + index)
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .page-item {
  32. padding: 5rpx 80rpx;
  33. background-color: rgb(55,186,189);
  34. border-radius: 20rpx;
  35. margin: 50rpx 0;
  36. font-size: 1.875rem;
  37. color: rgb(255, 255, 255);
  38. }
  39. .page-item:active {
  40. background-color: rgb(42, 143, 145);
  41. }
  42. </style>