vehicleAddOrEdit.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <div :class="['wrap', theme]">
  3. <!-- <wx-points-commit ref='wxPointsCommit'></wx-points-commit> -->
  4. <div>
  5. <div class="search_tip_1">
  6. <div class="title">车辆类型</div>
  7. <k-tab type="fill" @change="toggleType" :tabs="['普通车牌', '新能源', '特殊车牌']" />
  8. </div>
  9. <div class="input-box">
  10. <!-- <div v-for="i in carType === 1 ? 8 : 7" class="li" :key="`numArr${i}`" @click="clickShowKeyboard(i)" :class="[active === i ? 'active' : '']">
  11. {{ numArr[i] }}
  12. </div> -->
  13. <div class="van-hairline--surround li" @click="clickShowKeyboard(0)" :class="[active === 0 ? 'active' : '']">
  14. {{ numArr[0] }}
  15. </div>
  16. <div class="van-hairline--surround li" @click="clickShowKeyboard(1)" :class="[active === 1 ? 'active' : '']">
  17. {{ numArr[1] }}
  18. </div>
  19. <div class="input_box_dian">·</div>
  20. <div class="van-hairline--surround li" @click="clickShowKeyboard(2)" :class="[active === 2 ? 'active' : '']">
  21. {{ numArr[2] }}
  22. </div>
  23. <div class="van-hairline--surround li" @click="clickShowKeyboard(3)" :class="[active === 3 ? 'active' : '']">
  24. {{ numArr[3] }}
  25. </div>
  26. <div class="van-hairline--surround li" @click="clickShowKeyboard(4)" :class="[active === 4 ? 'active' : '']">
  27. {{ numArr[4] }}
  28. </div>
  29. <div class="van-hairline--surround li" @click="clickShowKeyboard(5)" :class="[active === 5 ? 'active' : '']">
  30. {{ numArr[5] }}
  31. </div>
  32. <div :class="[' van-hairline--surround li', active === 6 ? 'active' : '']" @click="clickShowKeyboard(6)">
  33. {{ numArr[6] }}
  34. </div>
  35. <div class="li dashed green-active" @click="clickShowKeyboard(7)" :class="[active === 7 ? 'active' : '']" >
  36. <span v-if="numArr[7] && carType === 1">{{ numArr[7] }}</span>
  37. <img v-else :src="require('./static/images/unlicensed/leaf.svg')">
  38. </div>
  39. </div>
  40. <k-button :title="$route.query.carno ? '确认修改' : '确认添加'" style="margin: 46px auto 43px; display: block" :disabled="disabledBtn" disabledColor="#D1D2D9" @click="handleAddLicensePlateByKipMember" />
  41. <!-- <div class="confirm-btn" :class="disabledBtn ? 'disabled-btn' : ''" :disabled="disabledBtn" @click="handleAddLicensePlateByKipMember" v-if="custTypeId === 0">确认添加</div> -->
  42. <!-- <div class="confirm-btn-else" :class="custTypeId === 1 ? 'confirm-btn-blue' : 'confirm-btn-green'" @click="handleAddLicensePlateByKipMember" v-else>确认添加</div> -->
  43. </div>
  44. <div class="reminder">
  45. <div class="reminder-title">温馨提示:</div>
  46. <div class="reminder-content">·用户可以添加多个"燃油车牌号"或"新能源车牌号"</div>
  47. <div class="reminder-content">·用户可以更改或删除已经绑定车牌</div>
  48. </div>
  49. <plate-number ref="plateKeyboard" :noDisBtn="[32, 33, 34,35,36,37 ]" :disBtn="[38]" :carType="carType" :active="active" :ind="ind" :numArr="numArr" @carnoArr="updateCarno"></plate-number>
  50. </div>
  51. </template>
  52. <script>
  53. import vehicleAddOrEditJs from './mixins/vehicleAddOrEdit';
  54. import baseMixins from './mixins/base'
  55. export default {
  56. mixins: [baseMixins, vehicleAddOrEditJs],
  57. };
  58. </script>
  59. <style lang="less" scoped>
  60. .wrap {
  61. // padding: 30px;
  62. .switch-container-else {
  63. margin-bottom: 72px;
  64. width: 100%;
  65. display: flex;
  66. flex-direction: row;
  67. justify-content: space-around;
  68. align-items: center;
  69. font-size: 28px;
  70. .switch-item:nth-of-type(1) {
  71. .switch-else {
  72. border-right: 1px solid #c69c6d;
  73. }
  74. }
  75. .switch-item:nth-of-type(2) {
  76. .switch-else {
  77. border-right: 1px solid #c69c6d;
  78. }
  79. }
  80. .switch-item {
  81. width: 33.3%;
  82. height: 78px;
  83. line-height: 78px;
  84. text-align: center;
  85. }
  86. .switch-green-bg {
  87. background: #0d6b38;
  88. color: #ffffff;
  89. box-sizing: border-box;
  90. }
  91. .switch-green-color {
  92. color: #0d6b38;
  93. }
  94. .switch-blue-bg {
  95. background: #023694;
  96. color: #ffffff;
  97. box-sizing: border-box;
  98. }
  99. .switch-blue-color {
  100. color: #023694;
  101. }
  102. .switch-line {
  103. width: 104px;
  104. height: 3px;
  105. margin: 10px auto 0;
  106. background: #c69c6d;
  107. opacity: 1;
  108. }
  109. }
  110. .switch-container {
  111. }
  112. // 车牌号 & 虚拟键盘
  113. .input-box {
  114. width: 100%;
  115. flex: 1;
  116. display: flex;
  117. padding-bottom: 40px;
  118. padding: 0 17px;
  119. justify-content: center;
  120. box-sizing: border-box;
  121. .li {
  122. width: 100%;
  123. //border: 1px solid #d9dbe0;
  124. box-sizing: border-box;
  125. height: 90px;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. color: #333333;
  130. background-color: #f4f7ff;
  131. border-radius: 4px;
  132. font-size: 40px;
  133. margin: 0 3px;
  134. &.dashed {
  135. background-color: #fafbff;
  136. border: 1px dashed #fafbff;
  137. }
  138. &.active {
  139. border-color: var(--k-color-primary);
  140. }
  141. &.van-hairline--surround {
  142. &::after{
  143. border-radius: 7px;
  144. border-color: #D9DBE0;
  145. }
  146. }
  147. &.green-active {
  148. background: #F8FFED;
  149. border-color: #7DB124;
  150. color: #7DB124;
  151. img{
  152. width: 41px;
  153. height: 39px;
  154. }
  155. }
  156. }
  157. .input_box_dian {
  158. display: flex;
  159. justify-content: center;
  160. align-items: center;
  161. font-size: 120px;
  162. height: 70px;
  163. color: var(--k-color-primary);
  164. }
  165. }
  166. .confirm-btn {
  167. color: #fff;
  168. margin: 0 auto;
  169. height: 90px;
  170. width: 98%;
  171. line-height: 90px;
  172. border-radius: 80px;
  173. font-size: 17px;
  174. text-align: center;
  175. background-image: linear-gradient(to right, #7e4fa1, #433c7f);
  176. }
  177. .confirm-btn-else {
  178. width: 636px;
  179. height: 87px;
  180. color: white;
  181. line-height: 87px;
  182. text-align: center;
  183. font-size: 34px;
  184. opacity: 1;
  185. border-radius: 43px;
  186. margin: 64px auto 31px;
  187. }
  188. .confirm-btn-blue {
  189. background: #023694;
  190. }
  191. .confirm-btn-green {
  192. background: #0d6b38;
  193. }
  194. .disabled-btn {
  195. background-color: #c1c1c1;
  196. background-image: none;
  197. }
  198. .reminder {
  199. // margin-top: 20px;
  200. .reminder-title {
  201. margin-bottom: 18px;
  202. padding: 0 30px;
  203. font-family: 'PingFang SC';
  204. font-style: normal;
  205. font-weight: 400;
  206. font-size: 30px;
  207. line-height: 40px;
  208. /* identical to box height, or 133% */
  209. color: #333333;
  210. }
  211. .reminder-content {
  212. // font-size: 26px;
  213. // padding-top: 3px;
  214. // color: #898989;
  215. font-family: 'PingFang SC';
  216. font-style: normal;
  217. font-weight: 400;
  218. font-size: 26px;
  219. line-height: 40px;
  220. padding: 0 33px;
  221. /* or 154% */
  222. color: #999999;
  223. }
  224. .reminder-content:nth-child(2) {
  225. margin-bottom: 11px;
  226. }
  227. }
  228. .search_tip_1 {
  229. padding: 37px 27px 40px;
  230. display: flex;
  231. align-items: center;
  232. .title {
  233. // font-size: 30px;
  234. margin-right: 33px;
  235. font-family: 'PingFang SC';
  236. font-style: normal;
  237. font-weight: 500;
  238. font-size: 30px;
  239. line-height: 36px;
  240. color: #333333;
  241. }
  242. .k-tab-group-fill {
  243. flex: 1;
  244. }
  245. }
  246. }
  247. </style>