Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

car-detail.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <view class="main-block vehicle-info-section">
  3. <view class="title">基本信息</view>
  4. <view class="info-item">
  5. <text class="label">用户名称</text>
  6. <text class="value">{{ state.vehicleInfo.name }}</text>
  7. </view>
  8. <view class="info-item">
  9. <text class="label">用户证件类型</text>
  10. <text class="value">{{ state.vehicleInfo.name }}</text>
  11. </view>
  12. <view class="info-item">
  13. <text class="label">用户证件号</text>
  14. <text class="value">{{ state.vehicleInfo.name }}</text>
  15. </view>
  16. <view class="info-item">
  17. <text class="label">订单车牌号</text>
  18. <text class="value">{{ state.vehicleInfo.name }}</text>
  19. </view>
  20. <view class="info-item">
  21. <text class="label">车牌颜色</text>
  22. <text class="value">{{ state.vehicleInfo.name }}</text>
  23. </view>
  24. <view class="info-item">
  25. <text class="label">收费车型</text>
  26. <text class="value">{{ state.vehicleInfo.name }}</text>
  27. </view>
  28. </view>
  29. <view class="main-block">
  30. <view class="title">卡信息</view>
  31. <view class="card-message">
  32. <image class="project-photo" :src="`${$imgUrl}order/obu.png`" mode=""></image>
  33. <view class="msg">
  34. <view class="vehiclePlate">
  35. <text>卡号:</text>
  36. <text>66323331222322545</text>
  37. </view>
  38. <view>
  39. <text>卡类型:</text>
  40. <text class="cardStatus">储值卡</text>
  41. </view>
  42. <view>
  43. <text>卡状态:</text>
  44. <text class="cardStatus success">正常</text>
  45. </view>
  46. <view>
  47. <text>到期时间:</text>
  48. <text>2025.08.05</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="main-block">
  54. <view class="title">OBU设备信息</view>
  55. <view class="card-message">
  56. <image class="project-photo" :src="`${$imgUrl}order/obu.png`" mode=""></image>
  57. <view class="msg">
  58. <view class="vehiclePlate">
  59. <text>OBU:</text>
  60. <text>66323331222322545</text>
  61. </view>
  62. <view>
  63. <text>OBU状态:</text>
  64. <text class="cardStatus">储值卡</text>
  65. </view>
  66. <view>
  67. <text>到期时间:</text>
  68. <text>2025.08.05</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="main-block">
  74. <radio-group @change="radioChange" >
  75. <view class="as-layout-horizontal renwal-type" >
  76. <view style="flex: 1"></view>
  77. <label style="display: flex; flex-direction: row; margin-left: 30rpx;">
  78. <radio style="transform: scale(0.7)" checked value="0" color="#2CE242" />
  79. <view>卡续期</view>
  80. </label>
  81. <label style="display: flex; flex-direction: row; margin-left: 30rpx;">
  82. <radio style="transform: scale(0.7)" value="1" color="#2CE242" />
  83. <view>签续期</view>
  84. </label>
  85. </view>
  86. </radio-group>
  87. </view>
  88. <view class="action">
  89. <button type="default" class="ui-btn" @click="renewal()">
  90. 卡签续期
  91. </button>
  92. </view>
  93. </template>
  94. <script lang="ts" setup>
  95. import { reactive, ref } from "vue";
  96. import { onLoad, onShow } from "@dcloudio/uni-app";
  97. import { confirm } from "@/utils/utils";
  98. const state = reactive({
  99. orderInfo: {
  100. },
  101. vehicleInfo: {
  102. name: '基本信息'
  103. },
  104. renewalStatus: '0'
  105. });
  106. onLoad((options) => {
  107. console.log("options", options);
  108. });
  109. onShow(() => {
  110. });
  111. const getDetail = () => {
  112. }
  113. const renewal = () => {
  114. confirm("是否确认续签?", () => {
  115. uni.navigateTo({
  116. url: `/subpackage/after-sale/renewalContral/renewal-type`,
  117. });
  118. })
  119. }
  120. //多项选择器
  121. const radioChange = (e : any, item: any) => {
  122. let data = e.detail.value
  123. state.renewalStatus = data
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. .main-block {
  128. background-color: white;
  129. width: 88%;
  130. margin: 0 auto;
  131. margin-top: 20rpx;
  132. border-radius: 12px;
  133. border: 1px solid #FFFFFF;
  134. padding: 20rpx;
  135. overflow: hidden;
  136. .title {
  137. font-weight: bold;
  138. font-size: 30rpx;
  139. color: #01243A;
  140. margin-bottom: 12rpx;
  141. }
  142. }
  143. .vehicle-info-section {
  144. background-color: #fff;
  145. margin: 20rpx;
  146. border-radius: 12rpx;
  147. padding: 30rpx;
  148. .info-item {
  149. display: flex;
  150. justify-content: space-between;
  151. align-items: center;
  152. padding: 20rpx 0;
  153. border-bottom: 1rpx solid #f0f0f0;
  154. &:last-child {
  155. border-bottom: none;
  156. }
  157. .label {
  158. font-size: 28rpx;
  159. color: #004576;
  160. // flex: 0;
  161. }
  162. .value {
  163. font-size: 28rpx;
  164. color: #333;
  165. // flex: 1;
  166. text-align: right;
  167. }
  168. }
  169. }
  170. .card-message {
  171. display: flex;
  172. padding-bottom: 20rpx;
  173. align-items: center;
  174. .project-photo{
  175. width: 200rpx;
  176. height: 200rpx;
  177. margin-right: 20rpx;
  178. background-color: #E9EDF0;
  179. border-radius: 8rpx;
  180. }
  181. .msg view{
  182. line-height: 50rpx;
  183. color: #666666;
  184. font-size: 28rpx;
  185. }
  186. .success{
  187. color: #3CCA7C;
  188. }
  189. .vehiclePlate {
  190. font-weight: 400;
  191. font-size: 30rpx;
  192. color: #111111;
  193. }
  194. }
  195. .renwal-type{
  196. justify-content: space-around;
  197. }
  198. .action {
  199. position: absolute;
  200. left: 0;
  201. height: 270rpx;
  202. background-color: #fff;
  203. border-radius: 30rpx 30rpx 0 0;
  204. width: 100vw;
  205. display: flex;
  206. align-items: center;
  207. justify-content: space-evenly;
  208. flex-direction: column;
  209. margin-top: 20rpx;
  210. }
  211. </style>