選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

deactivation-activation-confirm.vue 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="selectCar-box">
  3. <view class="details">
  4. <view class="title"> 基础信息 </view>
  5. <view class="details-item">
  6. <view> 订单编号: </view>
  7. <text>123234350000001</text>
  8. </view>
  9. <view class="details-item">
  10. <view> 用户名称: </view>
  11. <text>xxxxx</text>
  12. </view>
  13. <view class="details-item">
  14. <view> 用户证件类型: </view>
  15. <text>居民身份证</text>
  16. </view>
  17. <view class="details-item">
  18. <view> 用户证件号: </view>
  19. <text>44504049343434001</text>
  20. </view>
  21. <view class="details-item">
  22. <view> 订单车牌号: </view>
  23. <text style="color: #00b38b ;">贵A12345</text>
  24. </view>
  25. <view class="details-item">
  26. <view> 收费车型: </view>
  27. <text>客车</text>
  28. </view>
  29. </view>
  30. <view class="title"> 卡信号 </view>
  31. <view class="card">
  32. <view class="card-left">
  33. <image :src="`${$imgUrl}/card2.png`" mode=""></image>
  34. <view class="card-center">
  35. <view class="card-center-head"> 2023022700012 </view>
  36. <view class="tips">
  37. <text>储蓄卡</text>
  38. <text class="tips-card">正常</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="choose-item" @click="choose(1)">
  43. <view class="active" v-if="flag.includes(1)"> </view>
  44. </view>
  45. </view>
  46. <view class="title"> OBU设备信息 </view>
  47. <view class="card">
  48. <view class="card-left">
  49. <image :src="`${$imgUrl}/card1.png`" mode=""></image>
  50. <view class="card-center">
  51. <view class="card-center-head"> 2023022700012 </view>
  52. <view class="tips">
  53. <!-- <text>储蓄卡</text> -->
  54. <text class="tips-card">正常</text>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="choose-item" @click="choose(2)">
  59. <view class="active" v-if="flag.includes(2)"> </view>
  60. </view>
  61. </view>
  62. <view class="title"> OBU设备信息 </view>
  63. <view class="remark">
  64. <view> 1.xxxxxxxx </view>
  65. <view> 2.xxxxxxxx </view>
  66. <view> 3.xxxxxxxx </view>
  67. <view> 4.xxxxxxxx </view>
  68. </view>
  69. <button class="submit" @click="toPage">下一步</button>
  70. </view>
  71. </template>
  72. <script lang="ts" setup>
  73. import { reactive, ref } from "vue";
  74. import { navTo } from "@/utils/utils";
  75. const toPage = () => {
  76. if (flag.length == 0) {
  77. uni.showToast({
  78. title: "请至少勾选一项",
  79. });
  80. } else {
  81. wx.showModal({
  82. title: "提示",
  83. content: "请确保你的ETC设备可以使用,若ETC丢失请前往挂失",
  84. confirmText: "确认停用",
  85. cancelText: "前往挂失",
  86. success: function (res) {
  87. if (res.confirm) {
  88. console.log("用户点击确定");
  89. navTo("/pages/bluetooth/bluetooth");
  90. } else if (res.cancel) {
  91. console.log("用户点击取消");
  92. navTo("/after-sale/card-loss-reporting/cardloss-confirm");
  93. }
  94. },
  95. });
  96. }
  97. };
  98. const flag = reactive([]);
  99. const choose = (data) => {
  100. if (!flag.includes(data)) {
  101. flag.push(data);
  102. console.log(flag);
  103. } else {
  104. flag.splice(flag.indexOf(data), 1);
  105. console.log(flag);
  106. }
  107. };
  108. </script>
  109. <style>
  110. page {
  111. width: 100%;
  112. height: 100%;
  113. background-color: #fff;
  114. }
  115. </style>
  116. <style lang="scss" scoped>
  117. .selectCar-box {
  118. // width: 100%;
  119. // height: 100%;
  120. padding: 30rpx;
  121. .title {
  122. font-size: 30rpx;
  123. font-family: Microsoft YaHei UI;
  124. font-weight: 400;
  125. color: #333333;
  126. margin-bottom: 30rpx;
  127. }
  128. .details {
  129. .title {
  130. font-size: 30rpx;
  131. font-family: Microsoft YaHei UI;
  132. font-weight: 400;
  133. color: #333333;
  134. margin-bottom: 30rpx;
  135. }
  136. .details-item {
  137. display: flex;
  138. font-size: 26rpx;
  139. font-family: Noto Sans S Chinese;
  140. font-weight: 400;
  141. color: #999999;
  142. margin-bottom: 30rpx;
  143. text {
  144. font-size: 26rpx;
  145. font-family: Noto Sans S Chinese;
  146. font-weight: 400;
  147. color: #333333;
  148. }
  149. }
  150. }
  151. .card {
  152. height: 150rpx;
  153. background: #ffffff;
  154. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  155. border-radius: 20rpx;
  156. padding: 30rpx;
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. margin-bottom: 60rpx;
  161. .card-left {
  162. display: flex;
  163. align-items: center;
  164. image {
  165. width: 100rpx;
  166. height: 90rpx;
  167. }
  168. .card-center {
  169. margin-left: 30rpx;
  170. .card-center-head {
  171. font-size: 32rpx;
  172. font-family: Noto Sans S Chinese;
  173. font-weight: 400;
  174. color: #333333;
  175. }
  176. .tips {
  177. font-size: 26rpx;
  178. font-family: Noto Sans S Chinese;
  179. font-weight: 400;
  180. color: #666666;
  181. .tips-card {
  182. width: 70rpx;
  183. height: 40rpx;
  184. background: #d3f2ef;
  185. border-radius: 6rpx;
  186. font-size: 20rpx;
  187. font-family: Noto Sans S Chinese;
  188. font-weight: 400;
  189. color: #0a8f8a;
  190. padding: 5rpx 10rpx;
  191. margin-left: 20rpx;
  192. }
  193. }
  194. }
  195. }
  196. .choose-item {
  197. margin-right: 20rpx;
  198. width: 50rpx;
  199. height: 50rpx;
  200. border: 1rpx solid #00b38b;
  201. border-radius: 50%;
  202. display: flex;
  203. justify-content: center;
  204. align-items: center;
  205. .active {
  206. width: 38rpx;
  207. height: 38rpx;
  208. background: #00b38b;
  209. border-radius: 50%;
  210. }
  211. }
  212. }
  213. .remark {
  214. font-size: 26rpx;
  215. font-family: Microsoft YaHei UI;
  216. font-weight: 400;
  217. color: #666666;
  218. text-indent: 30rpx;
  219. margin-bottom: 30rpx;
  220. }
  221. .submit {
  222. margin-top: 100rpx;
  223. width: 670rpx;
  224. height: 80rpx;
  225. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  226. border-radius: 40rpx;
  227. font-size: 32rpx;
  228. font-family: Noto Sans S Chinese;
  229. font-weight: 400;
  230. color: #ffffff;
  231. line-height: 80rpx;
  232. }
  233. }
  234. </style>