您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

release-pending-confirm.vue 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. import { request } from "@/utils/network/request.js";
  76. import { stringToJson } from "@/utils/network/encryption";
  77. import {
  78. labelHangUp, //签挂起
  79. labelRelease, //签解挂
  80. CardRelease, //卡解挂
  81. CardHangUp, //卡挂起
  82. } from "@/utils/network/api.js";
  83. //
  84. const operate = (type, options) => {
  85. request(type, options).then((res) => {
  86. const data = stringToJson(res.bizContent);
  87. console.log(data);
  88. });
  89. };
  90. const toPage = () => {
  91. if (flag.length == 0) {
  92. uni.showToast({
  93. title: "请至少勾选一项",
  94. });
  95. } else {
  96. uni.showModal({
  97. title: "设备解除挂起",
  98. content: "请确认是否解除挂起操作",
  99. confirmText: "确认挂起",
  100. cancelText: "取消 ",
  101. success: function (res) {
  102. if (res.confirm) {
  103. console.log("用户点击确定");
  104. navTo("/subpackage/after-sale/card-release-pending/verification");
  105. // const data = {}
  106. // const options = {
  107. // type: 2,
  108. // data: data,
  109. // method: 'POST',
  110. // showLoading: true,
  111. // }
  112. // operate()
  113. } else if (res.cancel) {
  114. console.log("用户点击取消");
  115. // navTo('/subpackage/after-sale/card-loss-reporting/cardloss-confirm')
  116. }
  117. },
  118. });
  119. }
  120. };
  121. const flag = reactive([]);
  122. const choose = (data) => {
  123. if (!flag.includes(data)) {
  124. flag.push(data);
  125. console.log(flag);
  126. } else {
  127. flag.splice(flag.indexOf(data), 1);
  128. console.log(flag);
  129. }
  130. };
  131. </script>
  132. <style>
  133. page {
  134. width: 100%;
  135. height: 100%;
  136. background-color: #fff;
  137. }
  138. </style>
  139. <style lang="scss" scoped>
  140. .selectCar-box {
  141. // width: 100%;
  142. // height: 100%;
  143. padding: 30rpx;
  144. .title {
  145. font-size: 30rpx;
  146. font-family: Microsoft YaHei UI;
  147. font-weight: 400;
  148. color: #333333;
  149. margin-bottom: 30rpx;
  150. }
  151. .details {
  152. .title {
  153. font-size: 30rpx;
  154. font-family: Microsoft YaHei UI;
  155. font-weight: 400;
  156. color: #333333;
  157. margin-bottom: 30rpx;
  158. }
  159. .details-item {
  160. display: flex;
  161. font-size: 26rpx;
  162. font-family: Noto Sans S Chinese;
  163. font-weight: 400;
  164. color: #999999;
  165. margin-bottom: 30rpx;
  166. text {
  167. font-size: 26rpx;
  168. font-family: Noto Sans S Chinese;
  169. font-weight: 400;
  170. color: #333333;
  171. }
  172. }
  173. }
  174. .card {
  175. height: 150rpx;
  176. background: #ffffff;
  177. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  178. border-radius: 20rpx;
  179. padding: 30rpx;
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. margin-bottom: 60rpx;
  184. .card-left {
  185. display: flex;
  186. align-items: center;
  187. image {
  188. width: 100rpx;
  189. height: 90rpx;
  190. }
  191. .card-center {
  192. margin-left: 30rpx;
  193. .card-center-head {
  194. font-size: 32rpx;
  195. font-family: Noto Sans S Chinese;
  196. font-weight: 400;
  197. color: #333333;
  198. }
  199. .tips {
  200. font-size: 26rpx;
  201. font-family: Noto Sans S Chinese;
  202. font-weight: 400;
  203. color: #666666;
  204. .tips-card {
  205. width: 70rpx;
  206. height: 40rpx;
  207. background: #d3f2ef;
  208. border-radius: 6rpx;
  209. font-size: 20rpx;
  210. font-family: Noto Sans S Chinese;
  211. font-weight: 400;
  212. color: #0a8f8a;
  213. padding: 5rpx 10rpx;
  214. margin-left: 20rpx;
  215. }
  216. }
  217. }
  218. }
  219. .choose-item {
  220. margin-right: 20rpx;
  221. width: 50rpx;
  222. height: 50rpx;
  223. border: 1rpx solid #00b38b;
  224. border-radius: 50%;
  225. display: flex;
  226. justify-content: center;
  227. align-items: center;
  228. .active {
  229. width: 38rpx;
  230. height: 38rpx;
  231. background: #00b38b;
  232. border-radius: 50%;
  233. }
  234. }
  235. }
  236. .remark {
  237. font-size: 26rpx;
  238. font-family: Microsoft YaHei UI;
  239. font-weight: 400;
  240. color: #666666;
  241. text-indent: 30rpx;
  242. margin-bottom: 30rpx;
  243. }
  244. .submit {
  245. margin-top: 100rpx;
  246. width: 670rpx;
  247. height: 80rpx;
  248. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  249. border-radius: 40rpx;
  250. font-size: 32rpx;
  251. font-family: Noto Sans S Chinese;
  252. font-weight: 400;
  253. color: #ffffff;
  254. line-height: 80rpx;
  255. }
  256. }
  257. </style>