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.

etc-log-off-pay.vue 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="pay-box">
  3. <view class="head">
  4. 系统检测您的ETC设备已过期,需要支付注销费用。
  5. </view>
  6. <view class="card">
  7. <view class="content">
  8. <image :src="`${$imgUrl}card1.png`" mode=""></image>
  9. <view class="content-center">
  10. <view class="">
  11. 注销ETC
  12. </view>
  13. <text>图片仅供参考,以实际产品为准</text>
  14. </view>
  15. </view>
  16. <view class="content-btm">
  17. <text>合计</text>
  18. <text class="price"><text stle>¥</text><text style="font-size: 34rpx;">130</text>.00</text>
  19. </view>
  20. </view>
  21. <view class="btns">
  22. <button class="cancle" @click="toPage()">取消注销</button>
  23. <button class="pay" @click="pay">支付</button>
  24. </view>
  25. </view>
  26. </template>
  27. <script lang="ts" setup>
  28. import {
  29. reactive,
  30. ref
  31. } from "vue"
  32. import {
  33. navTo
  34. } from "@/utils/utils"
  35. import {
  36. request
  37. } from "@/utils/network/request.js";
  38. import {
  39. CardSignCancellation
  40. } from "@/utils/network/api.js";
  41. import {
  42. stringToJson
  43. } from "@/utils/network/encryption.js";
  44. // 卡签注销
  45. const logoff = (offtype) => {
  46. //参数说明
  47. let options = {
  48. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  49. data: {
  50. cardId: '', //卡号
  51. obuId: "", //签号
  52. serviceType: "1", //注销类型 1-卡注销,2-签注销,3-卡签注销
  53. operation: offtype, //注销方式 1-有卡注销,2-无卡注销
  54. orderId: '20230225155521777646302', //订单编号
  55. ReasonCancellation: ''
  56. }, //请求参数
  57. method: "POST", //提交方式(默认POST)
  58. showLoading: true, //是否显示加载中(默认显示)
  59. };
  60. //调用方式
  61. request(CardSignCancellation, options)
  62. .then((res) => {
  63. stringToJson(res.bizContent)
  64. if (stringToJson(res.statusCode) == 0) {
  65. navTo("/subpackage/after-sale/ETC-log-off/log-off-result");
  66. }
  67. })
  68. .catch((err) => {
  69. console.log(err);
  70. });
  71. }
  72. const toPage = () => {
  73. uni.reLaunch({
  74. url: '/subpackage/after-sale/ETC-log-off/log-off-confirm'
  75. })
  76. }
  77. const pay = () => {
  78. logoff(2)
  79. }
  80. </script>
  81. <style>
  82. page {
  83. width: 100%;
  84. height: 100%;
  85. background-color: #F3F3F3;
  86. }
  87. </style>
  88. <style lang="scss" scoped>
  89. .pay-box {
  90. width: 100%;
  91. height: 100%;
  92. .head {
  93. margin: 30rpx;
  94. font-size: 26rpx;
  95. font-family: Microsoft YaHei;
  96. font-weight: 400;
  97. color: #666666;
  98. }
  99. .card {
  100. padding: 30rpx;
  101. height: 278rpx;
  102. background: #FFFFFF;
  103. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  104. .content {
  105. display: flex;
  106. padding-bottom: 30rpx;
  107. border-bottom: 1rpx solid #DCDCDC;
  108. image {
  109. width: 140rpx;
  110. height: 130rpx;
  111. }
  112. .content-center {
  113. margin-left: 30rpx;
  114. view {
  115. font-size: 30rpx;
  116. font-family: Microsoft YaHei;
  117. font-weight: 400;
  118. color: #333333;
  119. margin-bottom: 20rpx;
  120. }
  121. text {
  122. font-size: 24rpx;
  123. font-family: Microsoft YaHei;
  124. font-weight: 400;
  125. color: #999999;
  126. }
  127. }
  128. }
  129. .content-btm {
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. font-size: 28rpx;
  134. font-family: Microsoft YaHei;
  135. font-weight: 400;
  136. color: #333333;
  137. margin-top: 20rpx;
  138. .price {
  139. font-size: 20rpx;
  140. font-family: Microsoft YaHei;
  141. font-weight: 400;
  142. color: #000000;
  143. }
  144. }
  145. }
  146. .btns {
  147. width: 100%;
  148. position: fixed;
  149. left: 50%;
  150. transform: translate(-50%);
  151. bottom: 60rpx;
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. .cancle {
  156. width: 311rpx;
  157. height: 81rpx;
  158. background: #FFFFFF;
  159. border: 1px solid #DCDCDC;
  160. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  161. border-radius: 40rpx;
  162. font-size: 32rpx;
  163. font-family: Microsoft YaHei;
  164. font-weight: 400;
  165. color: #333333;
  166. line-height: 80rpx;
  167. }
  168. .pay {
  169. width: 310rpx;
  170. height: 80rpx;
  171. background: linear-gradient(-90deg, #43A1E0 0%, #13E7C1 100%);
  172. box-shadow: 0rpx 4rpx 11rpx 1rpx rgba(223, 223, 223, 0.5);
  173. border-radius: 40rpx;
  174. font-size: 32rpx;
  175. font-family: Microsoft YaHei;
  176. font-weight: 400;
  177. color: #FFFFFF;
  178. line-height: 80rpx;
  179. }
  180. }
  181. }
  182. </style>