choicepacks.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view style="width: 100vw;height: auto;padding: 30rpx 20rpx;background-color: #f6f6f6;">
  3. <view style="width: 100%;height: 100%;">
  4. <text style="font-size: 30rpx;font-weight: bold;">官方套餐</text>
  5. <view v-for="item,index in array" :key='index'>
  6. <view class="card">
  7. <view class="taocan" @click="details">
  8. <view class="tc_left">
  9. <text>{{item.title}}</text>
  10. </view>
  11. <view class="tc_right">
  12. <view style="width: 100%;">
  13. <view class="text">{{item.describe1}}</view>
  14. <view class="text">{{item.describe2}}</view>
  15. <view class="text">
  16. <text style="text-align: left;">时长:{{item.time}}</text>
  17. <text style="float: right;color: #FF4F61;font-weight: bold;">¥{{item.price}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. array: [{
  32. title: '套餐一',
  33. describe1: '疫苗接种+门诊预约+儿保预约',
  34. describe2: '成都所有社区医院,十名医生专业团队',
  35. time: '一年',
  36. price: '599.99'
  37. }, {
  38. title: '套餐二',
  39. describe1: '电话咨询+图文咨询',
  40. describe2: '不限次数',
  41. time: '一年',
  42. price: '199.99'
  43. }, {
  44. title: '套餐三',
  45. describe1: '疫苗接种+门诊预约+儿保预约',
  46. describe2: '成都所有社区医院,十名医生专业团队',
  47. time: '一年',
  48. price: '699.99'
  49. },{
  50. title: '套餐四',
  51. describe1: '代码套餐',
  52. describe2: '网吧',
  53. time: '30min',
  54. price: '9999999'
  55. },
  56. {
  57. title: '套餐五',
  58. describe1: 'bug套餐',
  59. describe2: '网吧',
  60. time: '60min',
  61. price: '8888888'
  62. },
  63. {
  64. title: '套餐六',
  65. describe1: '病毒套餐',
  66. describe2: '自己电脑',
  67. time: '永久',
  68. price: '6666666'
  69. }]
  70. }
  71. },
  72. methods:{
  73. details(e){
  74. uni.navigateTo({
  75. url:'/pages/service_packs/packs_details'
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. .card {
  83. width: 100%;
  84. height: auto;
  85. margin-top: 20rpx;
  86. // background-image: url(../../static/服务包.png);
  87. .taocan {
  88. width: 710rpx;
  89. height: 230rpx;
  90. position: relative;
  91. display: flex;
  92. border-radius: 10rpx;
  93. background: radial-gradient(circle at right top, transparent 15rpx, #ffffff 0) top left / 152rpx 51% no-repeat,
  94. radial-gradient(circle at right bottom, transparent 15rpx, #ffffff 0) bottom left /152rpx 51% no-repeat,
  95. radial-gradient(circle at left top, transparent 15rpx, #ffffff 0) top right /560rpx 51% no-repeat,
  96. radial-gradient(circle at left bottom, transparent 15rpx, #ffffff 0) bottom right /560rpx 51% no-repeat;
  97. filter: drop-shadow(0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.04));
  98. }
  99. }
  100. .tc_left {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. width: 152rpx;
  105. text {
  106. font-size: 30rpx;
  107. font-weight: bold;
  108. }
  109. }
  110. .tc_right {
  111. display: flex;
  112. align-items: center;
  113. width: 550rpx;
  114. padding: 0 20rpx;
  115. font-size: 26rpx;
  116. .text {
  117. padding: 10rpx 0rpx;
  118. width: 100%;
  119. }
  120. }
  121. </style>