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.

car-detail.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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}issuance/cardPicture.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}issuance/obuPicture.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. <label style="display: flex; flex-direction: row; margin-left: 30rpx;">
  77. <radio style="transform: scale(0.7)" checked value="0" color="#2CE242" />
  78. <view>卡续期</view>
  79. </label>
  80. <label style="display: flex; flex-direction: row; margin-left: 30rpx;">
  81. <radio style="transform: scale(0.7)" value="1" color="#2CE242" />
  82. <view>签续期</view>
  83. </label>
  84. </view>
  85. </radio-group>
  86. </view>
  87. <view class="action">
  88. <button type="default" class="ui-btn" @click="renewal()">
  89. 卡签续期
  90. </button>
  91. </view>
  92. </template>
  93. <script lang="ts" setup>
  94. import { reactive, ref } from "vue";
  95. import { onLoad, onShow } from "@dcloudio/uni-app";
  96. import { confirm } from "@/utils/utils";
  97. const state = reactive({
  98. orderInfo: {
  99. },
  100. vehicleInfo: {
  101. name: '基本信息'
  102. },
  103. renewalStatus: '0'
  104. });
  105. onLoad((options) => {
  106. console.log("options", options);
  107. });
  108. onShow(() => {
  109. });
  110. const getDetail = () => {
  111. }
  112. const renewal = () => {
  113. confirm("是否确认续签?", () => {
  114. uni.navigateTo({
  115. url: `/subpackage/after-sale/renewalContral/renewal-type`,
  116. });
  117. })
  118. }
  119. //多项选择器
  120. const radioChange = (e : any, item: any) => {
  121. let data = e.detail.value
  122. state.renewalStatus = data
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. .main-block {
  127. background-color: white;
  128. width: 88%;
  129. margin: 0 auto;
  130. margin-top: 20rpx;
  131. border-radius: 12px;
  132. border: 1px solid #FFFFFF;
  133. padding: 20rpx;
  134. overflow: hidden;
  135. .title {
  136. font-weight: bold;
  137. font-size: 30rpx;
  138. color: #01243A;
  139. margin-bottom: 12rpx;
  140. }
  141. }
  142. .vehicle-info-section {
  143. background-color: #fff;
  144. margin: 20rpx;
  145. border-radius: 12rpx;
  146. padding: 30rpx;
  147. .info-item {
  148. display: flex;
  149. justify-content: space-between;
  150. align-items: center;
  151. padding: 20rpx 0;
  152. border-bottom: 1rpx solid #f0f0f0;
  153. &:last-child {
  154. border-bottom: none;
  155. }
  156. .label {
  157. font-size: 28rpx;
  158. color: #004576;
  159. // flex: 0;
  160. }
  161. .value {
  162. font-size: 28rpx;
  163. color: #333;
  164. // flex: 1;
  165. text-align: right;
  166. }
  167. }
  168. }
  169. .card-message {
  170. display: flex;
  171. padding-bottom: 20rpx;
  172. align-items: center;
  173. .project-photo{
  174. width: 200rpx;
  175. height: 200rpx;
  176. margin-right: 20rpx;
  177. background-color: #E9EDF0;
  178. border-radius: 8rpx;
  179. }
  180. .msg view{
  181. line-height: 50rpx;
  182. color: #666666;
  183. font-size: 28rpx;
  184. }
  185. .success{
  186. color: #3CCA7C;
  187. }
  188. .vehiclePlate {
  189. font-weight: 400;
  190. font-size: 30rpx;
  191. color: #111111;
  192. }
  193. }
  194. .renwal-type{
  195. justify-content: space-around;
  196. }
  197. .action {
  198. position: absolute;
  199. left: 0;
  200. height: 270rpx;
  201. background-color: #fff;
  202. border-radius: 30rpx 30rpx 0 0;
  203. width: 100vw;
  204. display: flex;
  205. align-items: center;
  206. justify-content: space-evenly;
  207. flex-direction: column;
  208. margin-top: 20rpx;
  209. }
  210. </style>