Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

essential-information.vue 21KB

před 2 roky
před 2 roky
před 2 roky
před 2 roky
před 2 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. <<<<<<< HEAD
  2. <template>
  3. <navBar title="九州ETC"></navBar>
  4. <navBgCar></navBgCar>
  5. <view class="content-wrap">
  6. <!-- 车牌输入 -->
  7. <view class="car-input">
  8. <view class="title">请输入申办车牌</view>
  9. <car-number-input @numberInputResult="carNumber"></car-number-input>
  10. </view>
  11. <!-- 车牌颜色 -->
  12. <view class="chepai-lane">
  13. <view class="title">选择车牌颜色</view>
  14. <numberplate-color :numberplate="state.data.vehiclePlateNumber" :numberplateCor="{ id: 0 }"
  15. @numberplateResult="checkNumberplateColor">
  16. </numberplate-color>
  17. </view>
  18. <!-- 收货地址 -->
  19. <view v-if="!state.data.address" class="address-lane">
  20. <view class="title">请选择或新增收货地址</view>
  21. <view style="margin-top: 30rpx" class="action">
  22. <button type="default" class="button" @click="state.show = true">
  23. 添加收货地址
  24. </button>
  25. </view>
  26. </view>
  27. <view v-if="state.data.address" class="address-lane">
  28. <view class="title">收货地址</view>
  29. <view @click="state.show = true" class="address-content" style="margin-top: 30rpx">
  30. <view class="flex">
  31. <image :showLoading="true" :src="`${$imgUrl}applyCard/location.png`"
  32. style="width: 48rpx; height: 48rpx">
  33. </image>
  34. <view style="margin-left: 18rpx" class="">
  35. <view class="address">
  36. {{ state.data.region + state.data.address }}
  37. </view>
  38. <view style="margin-top: 15rpx" class="flex">
  39. <view class="name">
  40. {{ state.data.consignee }}
  41. </view>
  42. <view class="phone">
  43. {{ state.data.consigneeTel }}
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="arror"> > </view>
  49. </view>
  50. <view style="margin-top: 30rpx" class="action">
  51. <button type="default" class="button" @click="nextAction()">
  52. 下一步
  53. </button>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 地址弹窗 -->
  58. <u-popup mode="bottom" v-model="state.show">
  59. <view class="address-line">
  60. <view v-if="state.addressArray" v-for="(item, index) in state.addressArray" :key="index"
  61. @click="addressSelected(item)" style="margin-bottom: 60rpx" class="flex-bettwen">
  62. <view class="flex">
  63. <view class="xing">
  64. {{ item.consignee.charAt(0) }}
  65. </view>
  66. <view class="content">
  67. <view class="flex">
  68. <view class="name">
  69. {{ item.consignee }}
  70. </view>
  71. <view class="phone">
  72. {{ item.consigneeTel }}
  73. </view>
  74. </view>
  75. <view class="address">
  76. {{ item.region + item.address }}
  77. </view>
  78. </view>
  79. </view>
  80. <view @click.stop="editAddress(item)" style="margin-left: 80rpx" class="picture">
  81. <image :showLoading="true" :src="`${$imgUrl}applyCard/edit.png`"
  82. style="width: 48rpx; height: 48rpx"></image>
  83. </view>
  84. </view>
  85. <view :style="state.addressArray ? 'margin-top: 60rpx;' : ''" class="action-bottom">
  86. <button type="default" class="button" @click="goToAddAddress()">
  87. 添加收货地址
  88. </button>
  89. </view>
  90. </view>
  91. </u-popup>
  92. </template>
  93. <script setup lang="ts">
  94. /*导航*/
  95. import navBgCar from "./components/nav-bg-car1";
  96. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  97. import numberplateColor from "./components/layout-numberplate-color";
  98. import {
  99. getItem,
  100. StorageKeys
  101. } from "@/utils/storage";
  102. import {
  103. stringToJson
  104. } from "@/utils/network/encryption";
  105. import navBar from "../components/nav-bar/nav-bar2.vue";
  106. import {
  107. onLoad,
  108. onShow
  109. } from "@dcloudio/uni-app";
  110. import {
  111. addressQuery,
  112. etcCreatOrder,
  113. etcVehiclePlateVer,
  114. searchOrder
  115. } from "@/utils/network/api.js";
  116. import {
  117. request
  118. } from "@/utils/network/request.js";
  119. import {
  120. reactive
  121. } from "vue";
  122. import {
  123. msg
  124. } from "@/utils/utils";
  125. const state = reactive({
  126. data: {
  127. vehiclePlate: undefined, //车牌号
  128. vehiclePlateNumber: "贵A12345", //车牌号
  129. vehiclePlateColor: 0, //车盘颜色
  130. type: "0", //车牌类型
  131. userType: "1",
  132. whetherToMail: 0, //是否需要邮寄 小程序默认邮寄
  133. orderSource: "WECHAT",
  134. opId: "",
  135. consignee: "", //收货人
  136. consigneeTel: "", //收货电话
  137. region: "",
  138. address: "",
  139. postalCode: "",
  140. },
  141. show: false,
  142. addressArray: undefined,
  143. });
  144. /* 选择车牌颜色 */
  145. const checkNumberplateColor = (item: any) => {
  146. state.data.vehiclePlateColor = item.id;
  147. };
  148. const goToAddAddress = () => {
  149. uni.navigateTo({
  150. url: "/applyCard/addAddress",
  151. });
  152. };
  153. const editAddress = (val) => {
  154. uni.navigateTo({
  155. url: `/applyCard/editAddress?content=` + JSON.stringify(val),
  156. });
  157. };
  158. const carNumber = (val: any) => {
  159. state.data.vehiclePlate = val;
  160. state.data.vehiclePlateNumber = val
  161. };
  162. const addressSelected = (val: any) => {
  163. state.data = {
  164. ...state.data,
  165. ...val,
  166. };
  167. state.show = false;
  168. };
  169. const nextAction = () => {
  170. if (!state.data.vehiclePlate) {
  171. msg('请输入申办车牌');
  172. return;
  173. }
  174. state.data.vehiclePlate = state.data.vehiclePlate.trim();
  175. //1.优先车牌校验 2.在进行订单创建
  176. var vehicleData = {
  177. vehiclePlate: state.data.vehiclePlate,
  178. vehiclePlateColor: state.data.vehiclePlateColor,
  179. };
  180. const options = {
  181. type: 2,
  182. data: vehicleData,
  183. method: "POST",
  184. showLoading: true,
  185. };
  186. request(etcVehiclePlateVer, options).then((res) => {
  187. var data = state.data;
  188. const options = {
  189. type: 2,
  190. data: data,
  191. method: "POST",
  192. showLoading: true,
  193. };
  194. request(etcCreatOrder, options).then((res) => {
  195. console.log(res);
  196. if (res.statusCode === 600) {
  197. orderGoAction()
  198. } else {
  199. const data = stringToJson(res.bizContent);
  200. if (state.data.userType === "1") {
  201. uni.navigateTo({
  202. url: `/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
  203. });
  204. } else {
  205. uni.navigateTo({
  206. url: `/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
  207. });
  208. }
  209. }
  210. });
  211. });
  212. };
  213. //按照订单阶段去跳转
  214. const orderGoAction = () => {
  215. var orderParmas = {
  216. vehicleId: state.data.vehiclePlate + '_' + state.data.vehiclePlateColor,
  217. opId: getItem(StorageKeys.OpenId),
  218. source: 'WECHAT'
  219. }
  220. const options = {
  221. type: 2,
  222. data: orderParmas,
  223. method: "POST",
  224. showLoading: true,
  225. };
  226. request(searchOrder, options).then((res) => {
  227. const data = stringToJson(res.bizContent);
  228. orderStepGoActon(data)
  229. });
  230. }
  231. //订单状态舔砖
  232. const orderStepGoActon = (val: any) => {
  233. //完成填写基本信息
  234. if (val.orderStep === 1) {
  235. if (state.data.userType === "1") {
  236. uni.navigateTo({
  237. url: `/applyCard/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  238. });
  239. } else {
  240. uni.navigateTo({
  241. url: `/applyCard/opening-account-unit?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  242. });
  243. }
  244. } else if (val.orderStep === 2) {
  245. uni.navigateTo({
  246. url: `/applyCard/car-release?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  247. });
  248. } else if (val.orderStep === 3) {
  249. uni.navigateTo({
  250. url: `/applyCard/choice-product?orderId=${val.orderId}`,
  251. });
  252. } else if (val.orderStep === 4) {
  253. uni.navigateTo({
  254. url: `/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`,
  255. });
  256. }
  257. };
  258. onLoad((option: any) => {
  259. state.data.opId = getItem(StorageKeys.OpenId);
  260. state.data.type = option.type; //客车
  261. state.data.userType = option.userType;
  262. });
  263. onShow(() => {
  264. var data = {
  265. openId: getItem(StorageKeys.OpenId),
  266. };
  267. const options = {
  268. type: 2,
  269. data: data,
  270. method: "POST",
  271. showLoading: true,
  272. };
  273. request(addressQuery, options).then((res) => {
  274. const data = stringToJson(res.bizContent);
  275. state.addressArray = data.data;
  276. });
  277. });
  278. </script>
  279. <style lang="scss" scoped>
  280. .flex {
  281. display: flex;
  282. align-items: center;
  283. }
  284. .content-wrap {
  285. position: relative;
  286. margin-top: -50rpx;
  287. padding: 0rpx 30rpx;
  288. .title {
  289. font-size: 30rpx;
  290. font-family: Noto Sans S Chinese;
  291. font-weight: 400;
  292. color: #000000;
  293. line-height: 30rpx;
  294. margin-bottom: 30rpx;
  295. }
  296. .car-input {}
  297. .chepai-lane {
  298. margin-top: 60rpx;
  299. margin-bottom: 20rpx;
  300. }
  301. .address-lane {
  302. margin-bottom: 30rpx;
  303. .title {
  304. font-size: 30rpx;
  305. font-weight: 400;
  306. color: #000000;
  307. line-height: 30rpx;
  308. }
  309. }
  310. }
  311. .address-content {
  312. display: flex;
  313. align-items: center;
  314. justify-content: space-between;
  315. padding-bottom: 30rpx;
  316. border-bottom: 1rpx solid #dcdcdc;
  317. .name {
  318. font-size: 26rpx;
  319. font-family: Microsoft YaHei;
  320. font-weight: 400;
  321. color: #999999;
  322. font-size: 26rpx;
  323. }
  324. .phone {
  325. font-size: 26rpx;
  326. font-family: Microsoft YaHei;
  327. font-weight: 400;
  328. color: #999999;
  329. line-height: 26rpx;
  330. margin-left: 20rpx;
  331. }
  332. .arror {
  333. width: 16rpx;
  334. height: 30rpx;
  335. color: rgba(153, 153, 153, 1);
  336. }
  337. .address {
  338. font-size: 32rpx;
  339. font-family: Microsoft YaHei;
  340. font-weight: 400;
  341. color: #333333;
  342. line-height: 32rpx;
  343. }
  344. }
  345. .address-line {
  346. padding: 20px;
  347. .flex-bettwen {
  348. display: flex;
  349. align-items: center;
  350. justify-content: space-between;
  351. }
  352. .xing {
  353. width: 68rpx;
  354. height: 68rpx;
  355. background: rgba(0, 179, 139, 0.2);
  356. border-radius: 50%;
  357. font-size: 26rpx;
  358. font-weight: 400;
  359. color: #00b38b;
  360. line-height: 68rpx;
  361. text-align: center;
  362. }
  363. .content {
  364. margin-left: 20px;
  365. .name {
  366. font-size: 30rpx;
  367. font-family: Microsoft YaHei;
  368. font-weight: 500;
  369. color: #333333;
  370. }
  371. .phone {
  372. margin-left: 10rpx;
  373. font-size: 24rpx;
  374. font-family: Microsoft YaHei;
  375. font-weight: 400;
  376. color: #999999;
  377. line-height: 36rpx;
  378. }
  379. .address {
  380. margin-top: 10rpx;
  381. font-size: 26rpx;
  382. font-family: Microsoft YaHei;
  383. font-weight: 400;
  384. color: #333333;
  385. line-height: 36rpx;
  386. }
  387. .picture {
  388. width: 48rpx;
  389. height: 48rpx;
  390. }
  391. .editIcon {
  392. width: 48rpx;
  393. height: 48rpx;
  394. }
  395. }
  396. }
  397. .action {
  398. padding-bottom: 100rpx;
  399. .button {
  400. height: 80rpx;
  401. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  402. border-radius: 40rpx;
  403. font-size: 32rpx;
  404. font-weight: 400;
  405. color: #ffffff;
  406. line-height: 80rpx;
  407. }
  408. }
  409. .action-bottom {
  410. padding-bottom: 30rpx;
  411. .button {
  412. height: 80rpx;
  413. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  414. border-radius: 40rpx;
  415. font-size: 32rpx;
  416. font-weight: 400;
  417. color: #ffffff;
  418. line-height: 80rpx;
  419. }
  420. }
  421. =======
  422. <template>
  423. <navBar title="九州ETC"></navBar>
  424. <navBgCar></navBgCar>
  425. <view class="content-wrap">
  426. <!-- 车牌输入 -->
  427. <view class="car-input">
  428. <view class="title">请输入申办车牌</view>
  429. <car-number-input @numberInputResult="carNumber"></car-number-input>
  430. </view>
  431. <!-- 车牌颜色 -->
  432. <view class="chepai-lane">
  433. <view class="title">选择车牌颜色</view>
  434. <numberplate-color :numberplate="state.data.vehiclePlateNumber" :numberplateCor="{ id: 0 }"
  435. @numberplateResult="checkNumberplateColor">
  436. </numberplate-color>
  437. </view>
  438. <!-- 收货地址 -->
  439. <view v-if="!state.data.address" class="address-lane">
  440. <view class="title">请选择或新增收货地址</view>
  441. <view style="margin-top: 30rpx" class="action">
  442. <button type="default" class="button" @click="state.show = true">
  443. 添加收货地址
  444. </button>
  445. </view>
  446. </view>
  447. <view v-if="state.data.address" class="address-lane">
  448. <view class="title">收货地址</view>
  449. <view @click="state.show = true" class="address-content" style="margin-top: 30rpx">
  450. <view class="flex">
  451. <image :showLoading="true" :src="`${$imgUrl}applyCard/location.png`"
  452. style="width: 48rpx; height: 48rpx">
  453. </image>
  454. <view style="margin-left: 18rpx" class="">
  455. <view class="address">
  456. {{ state.data.region + state.data.address }}
  457. </view>
  458. <view style="margin-top: 15rpx" class="flex">
  459. <view class="name">
  460. {{ state.data.consignee }}
  461. </view>
  462. <view class="phone">
  463. {{ state.data.consigneeTel }}
  464. </view>
  465. </view>
  466. </view>
  467. </view>
  468. <view class="arror"> > </view>
  469. </view>
  470. <view style="margin-top: 30rpx" class="action">
  471. <button type="default" class="button" @click="nextAction()">
  472. 下一步
  473. </button>
  474. </view>
  475. </view>
  476. </view>
  477. <!-- 地址弹窗 -->
  478. <u-popup mode="bottom" v-model="state.show">
  479. <view class="address-line">
  480. <view v-if="state.addressArray" v-for="(item, index) in state.addressArray" :key="index"
  481. @click="addressSelected(item)" style="margin-bottom: 60rpx" class="flex-bettwen">
  482. <view class="flex">
  483. <view class="xing">
  484. {{ item.consignee.charAt(0) }}
  485. </view>
  486. <view class="content">
  487. <view class="flex">
  488. <view class="name">
  489. {{ item.consignee }}
  490. </view>
  491. <view class="phone">
  492. {{ item.consigneeTel }}
  493. </view>
  494. </view>
  495. <view class="address">
  496. {{ item.region + item.address }}
  497. </view>
  498. </view>
  499. </view>
  500. <view @click.stop="editAddress(item)" style="margin-left: 80rpx" class="picture">
  501. <image :showLoading="true" :src="`${$imgUrl}applyCard/edit.png`"
  502. style="width: 48rpx; height: 48rpx"></image>
  503. </view>
  504. </view>
  505. <view :style="state.addressArray ? 'margin-top: 60rpx;' : ''" class="action-bottom">
  506. <button type="default" class="button" @click="goToAddAddress()">
  507. 添加收货地址
  508. </button>
  509. </view>
  510. </view>
  511. </u-popup>
  512. </template>
  513. <script setup lang="ts">
  514. /*导航*/
  515. import navBgCar from "./components/nav-bg-car1";
  516. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  517. import numberplateColor from "./components/layout-numberplate-color";
  518. import {
  519. getItem,
  520. StorageKeys
  521. } from "@/utils/storage";
  522. import {
  523. stringToJson
  524. } from "@/utils/network/encryption";
  525. import navBar from "../components/nav-bar/nav-bar2.vue";
  526. import {
  527. onLoad,
  528. onShow
  529. } from "@dcloudio/uni-app";
  530. import {
  531. addressQuery,
  532. etcCreatOrder,
  533. etcVehiclePlateVer,
  534. searchOrder
  535. } from "@/utils/network/api.js";
  536. import {
  537. request
  538. } from "@/utils/network/request.js";
  539. import {
  540. reactive
  541. } from "vue";
  542. import {
  543. msg
  544. } from "@/utils/utils";
  545. const state = reactive({
  546. data: {
  547. vehiclePlate: undefined, //车牌号
  548. vehiclePlateNumber: "贵A1234", //车牌号
  549. vehiclePlateColor: 0, //车盘颜色
  550. type: "0", //车牌类型
  551. userType: "1",
  552. whetherToMail: 0, //是否需要邮寄 小程序默认邮寄
  553. orderSource: "WECHAT",
  554. opId: "",
  555. consignee: "", //收货人
  556. consigneeTel: "", //收货电话
  557. region: "",
  558. address: "",
  559. postalCode: "",
  560. },
  561. show: false,
  562. addressArray: undefined,
  563. });
  564. /* 选择车牌颜色 */
  565. const checkNumberplateColor = (item: any) => {
  566. state.data.vehiclePlateColor = item.id;
  567. };
  568. const goToAddAddress = () => {
  569. uni.navigateTo({
  570. url: "/applyCard/addAddress",
  571. });
  572. };
  573. const editAddress = (val) => {
  574. uni.navigateTo({
  575. url: `/applyCard/editAddress?content=` + JSON.stringify(val),
  576. });
  577. };
  578. const carNumber = (val: any) => {
  579. state.data.vehiclePlate = val;
  580. state.data.vehiclePlateNumber = val
  581. };
  582. const addressSelected = (val: any) => {
  583. state.data = {
  584. ...state.data,
  585. ...val,
  586. };
  587. state.show = false;
  588. };
  589. const nextAction = () => {
  590. if (!state.data.vehiclePlate) {
  591. msg('请输入申办车牌');
  592. return;
  593. }
  594. state.data.vehiclePlate = state.data.vehiclePlate.trim();
  595. console.log(state.data.vehiclePlate)
  596. console.log(state.data.vehiclePlate.length)
  597. if (state.data.vehiclePlate.length < 7) {
  598. msg('请输入正确的申办车牌');
  599. return;
  600. }
  601. //1.优先车牌校验 2.在进行订单创建
  602. var vehicleData = {
  603. vehiclePlate: state.data.vehiclePlate,
  604. vehiclePlateColor: state.data.vehiclePlateColor,
  605. };
  606. const options = {
  607. type: 2,
  608. data: vehicleData,
  609. method: "POST",
  610. showLoading: true,
  611. };
  612. request(etcVehiclePlateVer, options).then((res) => {
  613. var data = state.data;
  614. const options = {
  615. type: 2,
  616. data: data,
  617. method: "POST",
  618. showLoading: true,
  619. };
  620. request(etcCreatOrder, options).then((res) => {
  621. console.log(res);
  622. if (res.statusCode === 600) {
  623. orderGoAction()
  624. } else {
  625. const data = stringToJson(res.bizContent);
  626. if (state.data.userType === "1") {
  627. uni.navigateTo({
  628. url: `/applyCard/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
  629. });
  630. } else {
  631. uni.navigateTo({
  632. url: `/applyCard/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}`,
  633. });
  634. }
  635. }
  636. });
  637. });
  638. };
  639. //按照订单阶段去跳转
  640. const orderGoAction = () => {
  641. var orderParmas = {
  642. vehicleId: state.data.vehiclePlate + '_' + state.data.vehiclePlateColor,
  643. opId: getItem(StorageKeys.OpenId),
  644. source: 'WECHAT'
  645. }
  646. const options = {
  647. type: 2,
  648. data: orderParmas,
  649. method: "POST",
  650. showLoading: true,
  651. };
  652. request(searchOrder, options).then((res) => {
  653. const data = stringToJson(res.bizContent);
  654. orderStepGoActon(data)
  655. });
  656. }
  657. //订单状态舔砖
  658. const orderStepGoActon = (val: any) => {
  659. //完成填写基本信息
  660. if (val.orderStep === 1) {
  661. if (state.data.userType === "1") {
  662. uni.navigateTo({
  663. url: `/applyCard/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  664. });
  665. } else {
  666. uni.navigateTo({
  667. url: `/applyCard/opening-account-unit?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  668. });
  669. }
  670. } else if (val.orderStep === 2) {
  671. uni.navigateTo({
  672. url: `/applyCard/car-release?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  673. });
  674. } else if (val.orderStep === 3) {
  675. uni.navigateTo({
  676. url: `/applyCard/choice-product?orderId=${val.orderId}`,
  677. });
  678. } else if (val.orderStep === 4) {
  679. uni.navigateTo({
  680. url: `/applyCard/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`,
  681. });
  682. }
  683. };
  684. onLoad((option: any) => {
  685. state.data.opId = getItem(StorageKeys.OpenId);
  686. state.data.type = option.type; //客车
  687. state.data.userType = option.userType;
  688. });
  689. onShow(() => {
  690. var data = {
  691. openId: getItem(StorageKeys.OpenId),
  692. };
  693. const options = {
  694. type: 2,
  695. data: data,
  696. method: "POST",
  697. showLoading: true,
  698. };
  699. request(addressQuery, options).then((res) => {
  700. const data = stringToJson(res.bizContent);
  701. state.addressArray = data.data;
  702. });
  703. });
  704. </script>
  705. <style lang="scss" scoped>
  706. .flex {
  707. display: flex;
  708. align-items: center;
  709. }
  710. .content-wrap {
  711. position: relative;
  712. margin-top: -50rpx;
  713. padding: 0rpx 30rpx;
  714. .title {
  715. font-size: 30rpx;
  716. font-family: Noto Sans S Chinese;
  717. font-weight: 400;
  718. color: #000000;
  719. line-height: 30rpx;
  720. margin-bottom: 30rpx;
  721. }
  722. .car-input {}
  723. .chepai-lane {
  724. margin-top: 60rpx;
  725. margin-bottom: 20rpx;
  726. }
  727. .address-lane {
  728. margin-bottom: 30rpx;
  729. .title {
  730. font-size: 30rpx;
  731. font-weight: 400;
  732. color: #000000;
  733. line-height: 30rpx;
  734. }
  735. }
  736. }
  737. .address-content {
  738. display: flex;
  739. align-items: center;
  740. justify-content: space-between;
  741. padding-bottom: 30rpx;
  742. border-bottom: 1rpx solid #dcdcdc;
  743. .name {
  744. font-size: 26rpx;
  745. font-family: Microsoft YaHei;
  746. font-weight: 400;
  747. color: #999999;
  748. font-size: 26rpx;
  749. }
  750. .phone {
  751. font-size: 26rpx;
  752. font-family: Microsoft YaHei;
  753. font-weight: 400;
  754. color: #999999;
  755. line-height: 26rpx;
  756. margin-left: 20rpx;
  757. }
  758. .arror {
  759. width: 16rpx;
  760. height: 30rpx;
  761. color: rgba(153, 153, 153, 1);
  762. }
  763. .address {
  764. font-size: 32rpx;
  765. font-family: Microsoft YaHei;
  766. font-weight: 400;
  767. color: #333333;
  768. line-height: 32rpx;
  769. }
  770. }
  771. .address-line {
  772. padding: 20px;
  773. .flex-bettwen {
  774. display: flex;
  775. align-items: center;
  776. justify-content: space-between;
  777. }
  778. .xing {
  779. width: 68rpx;
  780. height: 68rpx;
  781. background: rgba(0, 179, 139, 0.2);
  782. border-radius: 50%;
  783. font-size: 26rpx;
  784. font-weight: 400;
  785. color: #00b38b;
  786. line-height: 68rpx;
  787. text-align: center;
  788. }
  789. .content {
  790. margin-left: 20px;
  791. .name {
  792. font-size: 30rpx;
  793. font-family: Microsoft YaHei;
  794. font-weight: 500;
  795. color: #333333;
  796. }
  797. .phone {
  798. margin-left: 10rpx;
  799. font-size: 24rpx;
  800. font-family: Microsoft YaHei;
  801. font-weight: 400;
  802. color: #999999;
  803. line-height: 36rpx;
  804. }
  805. .address {
  806. margin-top: 10rpx;
  807. font-size: 26rpx;
  808. font-family: Microsoft YaHei;
  809. font-weight: 400;
  810. color: #333333;
  811. line-height: 36rpx;
  812. }
  813. .picture {
  814. width: 48rpx;
  815. height: 48rpx;
  816. }
  817. .editIcon {
  818. width: 48rpx;
  819. height: 48rpx;
  820. }
  821. }
  822. }
  823. .action {
  824. padding-bottom: 100rpx;
  825. .button {
  826. height: 80rpx;
  827. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  828. border-radius: 40rpx;
  829. font-size: 32rpx;
  830. font-weight: 400;
  831. color: #ffffff;
  832. line-height: 80rpx;
  833. }
  834. }
  835. .action-bottom {
  836. padding-bottom: 30rpx;
  837. .button {
  838. height: 80rpx;
  839. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  840. border-radius: 40rpx;
  841. font-size: 32rpx;
  842. font-weight: 400;
  843. color: #ffffff;
  844. line-height: 80rpx;
  845. }
  846. }
  847. >>>>>>> 635b3f85aa8742588b6513074a85b40c2fa107c2
  848. </style>