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

cancellation-contract.vue 5.5KB

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