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

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