Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cancellation-contract.vue 5.6KB

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