Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cardloss-confirm.vue 5.7KB

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