Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cancellation-contract.vue 4.3KB

2 anos atrás
1 ano atrás
2 anos atrás
1 ano atrás
2 anos atrás
1 ano atrás
2 anos atrás
1 ano atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. };
  81. // 验证提示类型(toast要版本为1.3.5才支持)
  82. const errorType = ["message", "border-bottom", "toast"];
  83. // 设置验证规则
  84. const myForm = ref(null);
  85. onReady(() => {
  86. myForm.value.setRules(rules);
  87. });
  88. // 单选数据列表
  89. const radiolist1 = reactive([
  90. {
  91. name: "营业点自提",
  92. disabled: false,
  93. },
  94. {
  95. name: "邮寄",
  96. disabled: false,
  97. },
  98. ]);
  99. // 单选
  100. const radioChange = (n) => {
  101. console.log("radioChange", n);
  102. };
  103. const toPage = () => {
  104. navTo("/subpackage/after-sale/account-change/release-products");
  105. };
  106. </script>
  107. <style>
  108. page {
  109. width: 100%;
  110. height: 100%;
  111. display: flex;
  112. flex-direction: column;
  113. background: #eef7f7;
  114. }
  115. </style>
  116. <style lang="scss" scoped>
  117. .oderPage {
  118. flex: 1;
  119. width: 100%;
  120. .head {
  121. padding: 30rpx;
  122. font-size: 28rpx;
  123. color: #303133;
  124. padding-bottom: 0;
  125. }
  126. .content {
  127. background-color: #fff;
  128. background-color: #fff;
  129. margin-top: 30rpx;
  130. padding: 0 30rpx;
  131. .row {
  132. display: flex;
  133. justify-content: space-between;
  134. padding: 30rpx 0;
  135. border-bottom: 1rpx solid #dcdcdc;
  136. }
  137. }
  138. .from {
  139. background-color: #fff;
  140. margin-top: 30rpx;
  141. padding: 0 30rpx;
  142. ::v-deep .u-form-item {
  143. padding: 0;
  144. line-height: normal;
  145. .u-form-item__message {
  146. margin-bottom: 12rpx;
  147. }
  148. }
  149. .from_item {
  150. display: flex;
  151. flex-wrap: nowrap;
  152. justify-content: space-between;
  153. align-items: center;
  154. height: 80rpx;
  155. border-bottom: 1rpx solid #dcdcdc;
  156. .btn {
  157. font-size: 24rpx;
  158. font-family: Microsoft YaHei;
  159. font-weight: 400;
  160. color: #ffffff;
  161. background: #00b38b;
  162. border-radius: 10rpx;
  163. padding: 10rpx 15rpx;
  164. }
  165. ::v-deep .input {
  166. text-align: right;
  167. flex: 1;
  168. input {
  169. text-align: right;
  170. }
  171. }
  172. }
  173. .from_item1 {
  174. display: flex;
  175. flex-wrap: nowrap;
  176. flex-direction: column;
  177. justify-content: space-between;
  178. padding: 30rpx;
  179. border-bottom: #dcdcdc 1px solid;
  180. input {
  181. text-align: right;
  182. }
  183. .textarea {
  184. background-color: #f1f1f1;
  185. width: 100%;
  186. border-radius: 20rpx;
  187. margin-top: 10rpx;
  188. text-indent: 1rem;
  189. height: 180rpx;
  190. padding: 20rpx;
  191. box-sizing: border-box;
  192. }
  193. }
  194. }
  195. }
  196. .submit {
  197. background: linear-gradient(to left, #43a1e0 0%, #13e7c1 100%);
  198. width: 670rpx;
  199. height: 80rpx;
  200. color: #fff;
  201. border-radius: 100rpx;
  202. position: fixed;
  203. left: 50%;
  204. transform: translate(-50%);
  205. bottom: 60rpx;
  206. font-size: 32rpx;
  207. }
  208. </style>