You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

my-etc.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <view class="content-value">
  3. <view @click="qianyueAction()" class="ul-item" v-for="(item,index) in state.list " :key="index">
  4. <image style="width: 100%; height: 260rpx; background-color: #eeeeee;" :src="item.bg"></image>
  5. <view class="item-value">
  6. <view class="content">
  7. <view class="title">
  8. {{item.title}}
  9. </view>
  10. <view style='margin-top: 15rpx;' class="tip">
  11. {{item.tip}}
  12. </view>
  13. <view style='margin-top: 15rpx;' class="value">
  14. {{item.value}}
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script setup lang="ts">
  22. import { reactive } from "vue";
  23. import { fileURL } from "@/datas/fileURL.js";
  24. const imgURL = fileURL + "image/"
  25. const savaHandle = () => {
  26. console.log('执行点击事件')
  27. uni.navigateTo({
  28. url: '/pages/orders/choice-product'
  29. })
  30. };
  31. const qianyueAction = () => {
  32. console.log('执行点击事件')
  33. uni.navigateTo({
  34. url: '/pages/orders/sign-up'
  35. })
  36. };
  37. const state = reactive({
  38. data: {
  39. 'show': false,
  40. 'src': imgURL + 'applyCard/edit.png'
  41. },
  42. list: [{
  43. 'bg': imgURL + 'personal-center/etc-bg.png',
  44. 'title': '贵A12345',
  45. 'tip': '服务费是每笔交易金额的0.05%',
  46. 'value': "质保期:2022.09.10-2023.09.09"
  47. },
  48. {
  49. 'bg': imgURL + 'personal-center/etc-bg.png',
  50. 'icon': imgURL + 'applyCard/brank/jianshe.png',
  51. 'title': '贵A12345',
  52. 'tip': '服务费是每笔交易金额的0.05%',
  53. 'value': "质保期:2022.09.10-2023.09.09"
  54. },
  55. {
  56. 'bg': imgURL + 'personal-center/etc-bg.png',
  57. 'title': '贵A12345',
  58. 'tip': '服务费是每笔交易金额的0.05%',
  59. 'value': "质保期:2022.09.10-2023.09.09"
  60. }
  61. ]
  62. })
  63. </script>
  64. <style lang="scss" scoped>
  65. .value {
  66. font-size: 25rpx;
  67. font-family: Microsoft YaHei;
  68. font-weight: 400;
  69. color: #FFFFFF;
  70. line-height: 58rpx;
  71. }
  72. .content-value {
  73. padding-top: 50rpx;
  74. margin-top: -40rpx;
  75. background: #FFFFFF;
  76. border-radius: 30rpx 30rpx 0rpx 30rpx;
  77. position: relative;
  78. .img-pos {
  79. position: absolute;
  80. left: 385rpx;
  81. top: -38rpx;
  82. right: 50rpx;
  83. .img-flex {
  84. display: flex;
  85. justify-content: space-between;
  86. align-items: center;
  87. .car-img {
  88. width: 86rpx;
  89. height: 42rpx;
  90. }
  91. .flag-img {
  92. width: 30rpx;
  93. height: 35rpx;
  94. }
  95. }
  96. }
  97. }
  98. .flex {
  99. display: flex;
  100. align-items: center;
  101. }
  102. .action {
  103. margin-top: 30rpx;
  104. padding-left: 20rpx;
  105. padding-right: 20rpx;
  106. padding-bottom: 30rpx;
  107. .button {
  108. height: 80rpx;
  109. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  110. border-radius: 40rpx;
  111. font-size: 32rpx;
  112. font-weight: 400;
  113. color: #FFFFFF;
  114. line-height: 80rpx;
  115. }
  116. }
  117. .action-btn {
  118. margin-left: 45rpx;
  119. width: 121rpx;
  120. height: 61rpx;
  121. border: 1px solid rgba(255, 255, 255, 1);
  122. border-radius: 30rpx;
  123. background: rgba(255, 255, 255, 0.2);
  124. text-align: center;
  125. font-size: 30rpx;
  126. font-family: Microsoft YaHei;
  127. font-weight: 400;
  128. color: #FFFFFF;
  129. line-height: 61rpx;
  130. }
  131. .tag1 {
  132. padding: 5rpx;
  133. background: rgba(0, 179, 139, 0.5);
  134. border-radius: 6rpx;
  135. font-size: 22rpx;
  136. font-family: Microsoft YaHei;
  137. font-weight: 400;
  138. color: #FFFFFF;
  139. }
  140. .tag3 {
  141. padding: 5rpx;
  142. background: rgba(139, 112, 228, 0.5);
  143. border-radius: 6rpx;
  144. font-size: 22rpx;
  145. font-family: Microsoft YaHei;
  146. font-weight: 400;
  147. color: #FFFFFF;
  148. }
  149. .tag2 {
  150. padding: 5rpx;
  151. background: rgba(249, 97, 60, 0.5);
  152. border-radius: 6rpx;
  153. font-size: 22rpx;
  154. font-family: Microsoft YaHei;
  155. font-weight: 400;
  156. color: #FFFFFF;
  157. }
  158. .ul-item {
  159. padding: 5px 20rpx;
  160. display: flex;
  161. align-items: center;
  162. .item-value {
  163. // padding: 20rpx;
  164. position: absolute;
  165. display: flex;
  166. align-items: center;
  167. // justify-content: space-around;
  168. .content {
  169. .title {
  170. font-size: 36rpx;
  171. font-family: Microsoft YaHei;
  172. font-weight: 400;
  173. color: #FFFFFF;
  174. }
  175. .tip {
  176. font-size: 25rpx;
  177. font-family: Microsoft YaHei;
  178. font-weight: 400;
  179. color: #FFFFFF;
  180. }
  181. }
  182. }
  183. .icon-tip {
  184. width: 100rpx;
  185. height: 100rpx;
  186. }
  187. .content {
  188. margin-left: 40rpx;
  189. }
  190. }
  191. </style>