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.

cancellation-contract.vue 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <view class="oderPage">
  3. <view class="head">
  4. 您的ETC卡类型是记账卡,需要先解约,才可继续办理更换业务,请确认您的签约信息
  5. </view>
  6. <view class="content">
  7. <view class="row">
  8. <text>签约银行</text>
  9. <text>工商银行</text>
  10. </view>
  11. <view class="row">
  12. <text>签约时间</text>
  13. <text>2022-10-11 12:11:12</text>
  14. </view>
  15. <view class="row">
  16. <text>卡号</text>
  17. <text>12312313213123</text>
  18. </view>
  19. <view class="row">
  20. <text>车牌号</text>
  21. <text>贵A123321</text>
  22. </view>
  23. </view>
  24. <button class="submit" @click="toPage()">下一步</button>
  25. </view>
  26. </template>
  27. <script setup lang="ts">
  28. import navBar from "./components/nav-bar.vue"
  29. import {
  30. checkStr
  31. } from "@/utils/utils"
  32. import {
  33. ref,
  34. reactive
  35. } from "vue";
  36. import {
  37. navTo
  38. } from "../../utils/utils"
  39. import {
  40. onReady
  41. } from "@dcloudio/uni-app";
  42. // 表单数据
  43. const form = reactive({
  44. bank: "工商银行",
  45. time: "2022-10-11 10:12:30",
  46. code: "12321123312313",
  47. carID: "贵A123321"
  48. })
  49. // 验证规则
  50. const rules = {
  51. receiving1: [{
  52. required: true,
  53. message: '请选择',
  54. trigger: ['change', 'blur'],
  55. }],
  56. receiving2: [{
  57. required: true,
  58. message: '请选择',
  59. trigger: ['change', 'blur'],
  60. }],
  61. code: [{
  62. required: true,
  63. message: '请输入',
  64. trigger: ['change', 'blur'],
  65. }],
  66. phone: [{
  67. required: true,
  68. message: '请输入手机号',
  69. trigger: ['change', 'blur'],
  70. },
  71. {
  72. // 自定义验证函数,见上说明
  73. validator: (rule, value, callback) => {
  74. // 上面有说,返回true表示校验通过,返回false表示不通过
  75. console.log(checkStr(value, 'mobile'), '0011');
  76. return checkStr(value, 'mobile')
  77. },
  78. message: '手机号码不正确',
  79. trigger: ['change', 'blur'],
  80. }
  81. ],
  82. // status: [{
  83. // required: true,
  84. // message: '请选择状态',
  85. //
  86. // trigger: ['change', 'blur'],
  87. }
  88. // 验证提示类型(toast要版本为1.3.5才支持)
  89. const errorType = ['message', 'border-bottom', 'toast']
  90. // 设置验证规则
  91. const myForm = ref(null)
  92. onReady(() => {
  93. myForm.value.setRules(rules)
  94. })
  95. // 单选数据列表
  96. const radiolist1 = reactive([{
  97. name: '营业点自提',
  98. disabled: false
  99. },
  100. {
  101. name: '邮寄',
  102. disabled: false
  103. },
  104. ], )
  105. // 单选
  106. const radioChange = (n) => {
  107. console.log('radioChange', n);
  108. // if (n == '卡退费') {
  109. // flag.value = true
  110. // console.log(flag.value);
  111. // } else {
  112. // flag.value = false
  113. // console.log(flag.value);
  114. // }
  115. }
  116. // // 提交
  117. // const submit = () => {
  118. // myForm.value.validate((valid) => {
  119. // console.log(valid);
  120. // if (valid) {
  121. // console.log('验证通过', form);
  122. // } else {
  123. // console.log('验证未通过');
  124. // }
  125. // })
  126. // }
  127. const toPage = () => {
  128. navTo('/after-sale/account-change/release-products')
  129. // wx.showModal({
  130. // title: '模拟两种情况',
  131. // confirmText: '有卡有签',
  132. // cancelText: '无卡无签',
  133. // success: function(res) {
  134. // if (res.confirm) {
  135. // console.log('用户点击确定');
  136. // navTo('/pages/bluetooth/device-active-step1')
  137. // } else if (res.cancel) {
  138. // console.log('用户点击取消');
  139. // navTo('/after-sale/ETC-log-off/upload-card')
  140. // }
  141. // }
  142. // });
  143. }
  144. </script>
  145. <style>
  146. page {
  147. width: 100%;
  148. height: 100%;
  149. display: flex;
  150. flex-direction: column;
  151. background: #EEF7F7;
  152. }
  153. </style>
  154. <style lang="scss" scoped>
  155. .oderPage {
  156. flex: 1;
  157. width: 100%;
  158. .head {
  159. padding: 30rpx;
  160. font-size: 28rpx;
  161. color: #303133;
  162. padding-bottom: 0;
  163. }
  164. .content {
  165. background-color: #fff;
  166. background-color: #fff;
  167. margin-top: 30rpx;
  168. padding: 0 30rpx;
  169. .row {
  170. display: flex;
  171. justify-content: space-between;
  172. padding: 30rpx 0;
  173. border-bottom: 1rpx solid #DCDCDC
  174. }
  175. }
  176. .from {
  177. background-color: #fff;
  178. margin-top: 30rpx;
  179. padding: 0 30rpx;
  180. ::v-deep .u-form-item {
  181. padding: 0;
  182. line-height: normal;
  183. .u-form-item__message {
  184. margin-bottom: 12rpx
  185. }
  186. }
  187. .from_item {
  188. display: flex;
  189. flex-wrap: nowrap;
  190. justify-content: space-between;
  191. align-items: center;
  192. height: 80rpx;
  193. border-bottom: 1rpx solid #DCDCDC;
  194. .btn {
  195. font-size: 24rpx;
  196. font-family: Microsoft YaHei;
  197. font-weight: 400;
  198. color: #FFFFFF;
  199. background: #00B38B;
  200. border-radius: 10rpx;
  201. padding: 10rpx 15rpx;
  202. }
  203. ::v-deep .input {
  204. text-align: right;
  205. flex: 1;
  206. input {
  207. text-align: right;
  208. }
  209. }
  210. }
  211. .from_item1 {
  212. display: flex;
  213. flex-wrap: nowrap;
  214. flex-direction: column;
  215. justify-content: space-between;
  216. padding: 30rpx;
  217. border-bottom: #DCDCDC 1px solid;
  218. input {
  219. text-align: right;
  220. }
  221. .textarea {
  222. background-color: #F1F1F1;
  223. width: 100%;
  224. border-radius: 20rpx;
  225. margin-top: 10rpx;
  226. text-indent: 1rem;
  227. height: 180rpx;
  228. padding: 20rpx;
  229. box-sizing: border-box;
  230. }
  231. }
  232. }
  233. }
  234. .submit {
  235. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  236. width: 670rpx;
  237. height: 80rpx;
  238. color: #fff;
  239. border-radius: 100rpx;
  240. position: fixed;
  241. left: 50%;
  242. transform: translate(-50%);
  243. bottom: 60rpx;
  244. font-size: 32rpx;
  245. }
  246. </style>