You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

essential-information.vue 18KB

2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <template>
  2. <navBar title="九州ETC" :scrollTop="scrollTop" :type="state.data.type" :userType="state.data.userType"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content-wrap">
  5. <!-- 车牌输入 -->
  6. <view class="car-input">
  7. <view class="title">请输入申办车牌</view>
  8. <car-number-input @numberInputResult="carNumber"></car-number-input>
  9. </view>
  10. <!-- 车牌颜色 -->
  11. <view class="chepai-lane">
  12. <view class="title">选择车牌颜色</view>
  13. <!-- <numberplate-color :numberplate="state.data.vehiclePlateNumber" :numberplateCor="{ id: 0 }"
  14. :type="state.data.type" @numberplateResult="checkNumberplateColor">
  15. </numberplate-color> -->
  16. <numberplate-color :numberplate="state.data.vehiclePlateNumber" :type="state.data.type"
  17. @numberplateResult="checkNumberplateColor">
  18. </numberplate-color>
  19. </view>
  20. <view>
  21. <!-- 收货地址 -->
  22. <view v-if="!state.data.region" class="address-lane">
  23. <view class="title">请选择或新增收货地址</view>
  24. <view style="margin-top: 30rpx" class="action">
  25. <button type="default" class="button" @click="state.show = true">
  26. 添加收货地址
  27. </button>
  28. </view>
  29. </view>
  30. <view v-if="state.data.region" class="address-lane">
  31. <view class="title">收货地址</view>
  32. <view @click="state.show = true" class="address-content" style="margin-top: 30rpx">
  33. <view class="flex">
  34. <image :showLoading="true" :src="`${$imgUrl}applyCard/location.png`"
  35. style="width: 48rpx; height: 48rpx">
  36. </image>
  37. <view style="margin-left: 18rpx" class="">
  38. <view class="address">
  39. {{ state.data.region + state.data.address }}
  40. </view>
  41. <view style="margin-top: 15rpx" class="flex">
  42. <view class="name">
  43. {{ state.data.consignee }}
  44. </view>
  45. <view class="phone">
  46. {{ state.data.consigneeTel }}
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="arror">
  52. <image :src="`${$imgUrl}common/arror-right.png`" class="icon"></image>
  53. </view>
  54. </view>
  55. <!-- <view class="as-layout-horizontal agreement">
  56. <checkbox-group @change="checkboxChange">
  57. <checkbox :checked="state.checked" style="transform: scale(0.8)" />我已阅读并同意
  58. </checkbox-group>
  59. <text style="color:#007AFF;text-decoration: underline;" @click="downAuthD()">《用户协议》</text>
  60. </view> -->
  61. <view style="margin-top: 30rpx" class="action">
  62. <button type="default" class="button" @click="nextAction()">
  63. 下一步
  64. </button>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 地址弹窗 -->
  70. <u-popup mode="bottom" v-model="state.show">
  71. <view class="address-line">
  72. <view v-if="state.addressArray" v-for="(item, index) in state.addressArray" :key="index"
  73. @click="addressSelected(item)" style="margin-bottom: 60rpx" class="flex-bettwen">
  74. <view class="flex">
  75. <view class="xing">
  76. {{ item.consignee.charAt(0) }}
  77. </view>
  78. <view class="content">
  79. <view class="flex">
  80. <view class="name">
  81. {{ item.consignee }}
  82. </view>
  83. <view class="phone">
  84. {{ item.consigneeTel }}
  85. <text class="default" v-if="item.defaultAddress==1">默认</text>
  86. </view>
  87. </view>
  88. <view class="address">
  89. {{ item.region + item.address }}
  90. </view>
  91. </view>
  92. </view>
  93. <view @click.stop="editAddress(item)" style="margin-left: 80rpx" class="picture">
  94. <image :showLoading="true" :src="`${$imgUrl}applyCard/edit.png`"
  95. style="width: 48rpx; height: 48rpx"></image>
  96. </view>
  97. </view>
  98. <view :style="state.addressArray ? 'margin-top: 60rpx;' : ''" class="action-bottom">
  99. <button type="default" class="button" @click="goToAddAddress()">
  100. 添加收货地址
  101. </button>
  102. </view>
  103. </view>
  104. </u-popup>
  105. </template>
  106. <script setup lang="ts">
  107. /*导航*/
  108. import navBgCar from "./components/nav-bg-car2";
  109. import carNumberInput from "@/components/car-number-input/car-number-input.vue";
  110. import numberplateColor from "./components/layout-numberplate-color";
  111. import { getItem, StorageKeys } from "@/utils/storage";
  112. import { stringToJson } from "@/utils/network/encryption";
  113. import navBar from "@/components/nav-bar/nav-bar2.vue";
  114. import { onLoad, onShow, onPageScroll, onUnload } from "@dcloudio/uni-app";
  115. import {
  116. addressQuery,
  117. etcCreatOrder,
  118. etcVehiclePlateVer,
  119. searchOrder,
  120. productReCode,
  121. getGlobalParam,
  122. infoQuery,
  123. envs,
  124. addProduct
  125. } from "@/utils/network/api.js";
  126. import { request } from "@/utils/network/request.js";
  127. import { reactive, ref } from "vue";
  128. import { msg } from "@/utils/utils";
  129. // import amap from "../../lib/amap-uni.130.js";//引入高德地图小程序插件
  130. const scrollTop = ref(0);
  131. const state = reactive({
  132. data: {
  133. vehiclePlate: undefined, //车牌号
  134. vehiclePlateNumber: "", //车牌号
  135. vehiclePlateColor: 0, //车盘颜色
  136. type: "1", //车牌类型
  137. userType: 1,
  138. whetherToMail: getItem(StorageKeys.OpenId) ? 0 : "", //是否需要邮寄 小程序默认邮寄 0邮寄||1不邮寄 不登录为1
  139. orderSource: "WECHAT",
  140. opId: "",
  141. consignee: "", //收货人
  142. consigneeTel: "", //收货电话
  143. region: "",
  144. address: "",
  145. postalCode: "",
  146. promoteId: "",
  147. longitude: "",
  148. latitude: "",
  149. detailedAddress: '', //通过经纬度转的地址
  150. cardType: '' //卡类型
  151. },
  152. show: false,
  153. addressArray: [],
  154. isSign: '',
  155. isValueCard: '',
  156. checked: false,
  157. agreeURL: "",
  158. orderId: "",
  159. totalAmount: "",
  160. equityId: ""
  161. });
  162. const globalParam = () => {
  163. const options = {
  164. type: 2,
  165. data: {
  166. "loginSource": getItem("loginSource")
  167. },
  168. method: "POST",
  169. showLoading: true,
  170. };
  171. request(getGlobalParam, options).then((res) => {
  172. const result = stringToJson(res.bizContent);
  173. console.log("配置", result);
  174. });
  175. }
  176. const downAuthD = () => {
  177. // tools.showLoadingAlert("加载中");
  178. uni.downloadFile({
  179. url: state.agreeURL,
  180. filePath: wx.env.USER_DATA_PATH + '/' + '用户协议.docx',
  181. success(res) {
  182. const filePath = res.filePath
  183. uni.openDocument({
  184. filePath: filePath,
  185. fileType: 'docx',
  186. showMenu: true, //关键点
  187. success: function (res) {
  188. msg("打开文档成功");
  189. },
  190. fail: function (err) {
  191. msg("打开文档失败");
  192. }
  193. });
  194. },
  195. fail: function (err) {
  196. msg("下载文档失败");
  197. console.log("err", err)
  198. },
  199. complete(res) {
  200. }
  201. })
  202. }
  203. const getInfo = () => {
  204. //参数说明
  205. let options = {
  206. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  207. data: {
  208. businessType: 'USER_AGREEMENT' //用户协议
  209. }, //请求参数
  210. method: "POST", //提交方式(默认POST)
  211. showLoading: true, //是否显示加载中(默认显示)
  212. };
  213. //调用方式
  214. request(infoQuery, options)
  215. .then((res) => {
  216. let data = stringToJson(res.bizContent)
  217. if (data.textType = "URL") {
  218. state.agreeURL = envs[process.env.NODE_ENV].baseUrl + data.text
  219. }
  220. console.log("用户协议", state.agreeURL);
  221. })
  222. .catch((err) => {
  223. console.log(err);
  224. });
  225. }
  226. /* 选择车牌颜色 */
  227. const checkNumberplateColor = (item : any) => {
  228. state.data.vehiclePlateColor = item.id;
  229. };
  230. const goToAddAddress = () => {
  231. uni.navigateTo({
  232. url: "/subpackage/orders/addAddress",
  233. });
  234. };
  235. const editAddress = (val) => {
  236. console.log("val", val)
  237. uni.navigateTo({
  238. url: `/subpackage/orders/editAddress?content=` + JSON.stringify(val),
  239. });
  240. };
  241. const checkboxChange = (e) => {
  242. state.checked = !state.checked;
  243. console.log(state.checked);
  244. };
  245. const carNumber = (val : any) => {
  246. state.data.vehiclePlate = val;
  247. state.data.vehiclePlateNumber = val;
  248. };
  249. const addressSelected = (val : any) => {
  250. console.log("val", val)
  251. state.data = {
  252. ...state.data,
  253. ...val,
  254. };
  255. console.log("state.data.address", state.data.address)
  256. state.show = false;
  257. };
  258. const nextAction = () => {
  259. if (!state.data.vehiclePlate) {
  260. msg("请输入申办车牌");
  261. return;
  262. }
  263. state.data.vehiclePlate = state.data.vehiclePlate.trim();
  264. console.log(state.data.vehiclePlate);
  265. console.log(state.data.vehiclePlate.length);
  266. if (state.data.vehiclePlate.length < 7) {
  267. msg("请输入正确的申办车牌");
  268. return;
  269. }
  270. // if (!state.checked) {
  271. // msg("请勾选协议!")
  272. // return;
  273. // }
  274. //1.优先车牌校验 2.在进行订单创建
  275. var vehicleData = {
  276. vehiclePlate: state.data.vehiclePlate,
  277. vehiclePlateColor: state.data.vehiclePlateColor,
  278. };
  279. const options = {
  280. type: 2,
  281. data: vehicleData,
  282. method: "POST",
  283. showLoading: true,
  284. };
  285. request(etcVehiclePlateVer, options).then((res) => {
  286. var data = state.data;
  287. // #ifdef MP-ALIPAY
  288. data.orderSource = 'ALI'
  289. // #endif
  290. const options = {
  291. type: 2,
  292. data: data,
  293. method: "POST",
  294. showLoading: true,
  295. };
  296. request(etcCreatOrder, options).then((res) => {
  297. console.log(res);
  298. if (res.statusCode === 600) {
  299. orderGoAction();
  300. } else {
  301. const data = stringToJson(res.bizContent);
  302. state.orderId = data.orderId
  303. console.log(data);
  304. //提交产品信息
  305. productReCodeAction(data.orderId).then((result) => {
  306. console.log("产品信息", result);
  307. // 加购权益产品
  308. addProductRequest().then((res) => {
  309. if (state.data.userType == 1) {
  310. uni.navigateTo({
  311. url: `/subpackage/orders/opening-account-people?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}&isSign=${state.isValueCard}&type=${state.data.type}`,
  312. });
  313. } else {
  314. uni.navigateTo({
  315. url: `/subpackage/orders/opening-account-unit?orderId=${data.orderId}&&vehiclePlateColor=${state.data.vehiclePlateColor}&isSign=${state.isValueCard}&type=${state.data.type}`,
  316. });
  317. }
  318. })
  319. })
  320. }
  321. });
  322. });
  323. };
  324. //按照订单阶段去跳转
  325. const orderGoAction = () => {
  326. var orderParmas = {
  327. vehicleId: state.data.vehiclePlate + "_" + state.data.vehiclePlateColor,
  328. opId: getItem(StorageKeys.OpenId),
  329. source: "WECHAT",
  330. };
  331. const options = {
  332. type: 2,
  333. data: orderParmas,
  334. method: "POST",
  335. showLoading: true,
  336. };
  337. request(searchOrder, options).then((res) => {
  338. const data = stringToJson(res.bizContent);
  339. console.log(data);
  340. orderStepGoActon(data);
  341. });
  342. };
  343. //订单状态舔砖
  344. const orderStepGoActon = (val : any) => {
  345. console.log("订单状态舔砖", val);
  346. //完成填写基本信息
  347. if (val.orderStep === 1) {
  348. if (state.data.userType === 1 || val.orderStep === 27) {
  349. uni.redirectTo({
  350. url: `/subpackage/orders/opening-account-people?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  351. });
  352. } else {
  353. uni.redirectTo({
  354. url: `/subpackage/orders/opening-account-unit?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  355. });
  356. }
  357. } else if (val.orderStep === 2) {
  358. uni.redirectTo({
  359. url: `/subpackage/orders/car-release?orderId=${val.orderId}&&vehiclePlateColor=${val.vehiclePlateColor}`,
  360. });
  361. } else if (val.orderStep === 3) {
  362. uni.redirectTo({
  363. url: `/subpackage/orders/choice-product?orderId=${val.orderId}`,
  364. });
  365. // if(val.isValueCard==2){
  366. // uni.redirectTo({
  367. // url:`/subpackage/orders/interestsList?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`
  368. // });
  369. // }else{
  370. // uni.redirectTo({
  371. // url: `/subpackage/orders/choice-product?orderId=${val.orderId}`,
  372. // });
  373. // }
  374. } else if (val.orderStep === 4) {
  375. uni.redirectTo({
  376. url: `/subpackage/orders/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`,
  377. });
  378. } else if (val.orderStep === 26) {
  379. uni.redirectTo({
  380. url: `/subpackage/orders/product-detail?orderId=${val.orderId}&&clientFee=${val.product.clientFee}&&id=${val.productId}`,
  381. });
  382. }
  383. };
  384. onLoad((option : any) => {
  385. globalParam();
  386. state.data.opId = getItem(StorageKeys.OpenId);
  387. state.data.type = option.type; //客车
  388. state.data.userType = option.userType;
  389. state.data.promoteId = option.promoteId;
  390. state.isValueCard = option.isValueCard
  391. state.data.cardType = option.isValueCard
  392. state.totalAmount = option.totalAmount;
  393. state.equityId = option.equityId;
  394. console.log("订单选择推广发行产品接口", option)
  395. getInfo();
  396. uni.getLocation({
  397. type: 'wgs84',
  398. success: function (res) {
  399. state.data.longitude = res.longitude;
  400. state.data.latitude = res.latitude;
  401. console.log("成功回调", res)
  402. uni.request({
  403. url: 'https://apis.map.qq.com/ws/geocoder/v1/',
  404. data: {
  405. location: (res.latitude + "," + res.longitude),
  406. key: 'U3EBZ-EITC3-SRW3P-3PKVC-LWFD6-SJBAE',
  407. },
  408. success: function (res) {
  409. console.log("成功回调", res)
  410. state.data.detailedAddress = res.data.result.address; // 详细地址信息
  411. // 处理获取到的地址信息
  412. },
  413. fail: function (error) {
  414. // 请求失败的处理
  415. }
  416. });
  417. }
  418. });
  419. });
  420. //监听页面滚动
  421. onPageScroll((e) => {
  422. scrollTop.value = e.scrollTop;
  423. });
  424. onShow((option) => {
  425. var data = {
  426. openId: getItem(StorageKeys.OpenId),
  427. };
  428. if (getItem(StorageKeys.OpenId)) {
  429. const options = {
  430. type: 2,
  431. data: data,
  432. method: "POST",
  433. showLoading: true,
  434. };
  435. request(addressQuery, options).then((res) => {
  436. const data = stringToJson(res.bizContent);
  437. console.log("111", data);
  438. state.addressArray = data.data ? data.data : [];
  439. for (var i = 0; i < state.addressArray.length; i++) {
  440. if (state.addressArray[i]['defaultAddress'] == 1) {
  441. state.data = {
  442. ...state.data,
  443. ...state.addressArray[i],
  444. };
  445. }
  446. }
  447. });
  448. }
  449. uni.$on('updateData', function (data) {
  450. var arr = [];
  451. arr.push(data)
  452. state.addressArray = arr
  453. console.log("dizhi", arr)
  454. })
  455. // 删除地址
  456. if (option) {
  457. if (option.del == 1) {
  458. state.addressArray = [];
  459. }
  460. }
  461. });
  462. onUnload(() => {
  463. uni.$off('updateData');
  464. })
  465. const productReCodeAction = (orderId) => {
  466. var data = {
  467. promoteId: state.data.promoteId,
  468. orderId: orderId,
  469. isValueCard: state.isValueCard
  470. };
  471. const options = {
  472. type: 2,
  473. data: data,
  474. method: "POST",
  475. showLoading: true,
  476. };
  477. return new Promise(async (resolve, reject) => {
  478. const res = await request(productReCode, options);
  479. const data = stringToJson(res.bizContent);
  480. console.log("111")
  481. resolve(data);
  482. }).catch((error) => {
  483. console.log("222")
  484. reject(error);
  485. });
  486. };
  487. const addProductRequest = () => {
  488. const options = {
  489. type: 2,
  490. data: {
  491. orderId: state.orderId, //订单编号
  492. openId: getItem(StorageKeys.OpenId), //操作人 id
  493. equityId: state.equityId, //权益Id
  494. totalAmount: state.totalAmount, //总金额
  495. isRepeatPurchase: 0
  496. },
  497. method: "POST",
  498. showLoading: true,
  499. };
  500. console.log("optionss", options);
  501. return new Promise(async (resolve, reject) => {
  502. const res = await request(addProduct, options);
  503. const data = stringToJson(res.bizContent);
  504. console.log("111")
  505. resolve(data);
  506. }).catch((error) => {
  507. console.log("222")
  508. reject(error);
  509. });
  510. }
  511. </script>
  512. <style lang="scss" scoped>
  513. .flex {
  514. display: flex;
  515. align-items: center;
  516. }
  517. .content-wrap {
  518. position: relative;
  519. margin-top: -50rpx;
  520. padding: 0rpx 30rpx;
  521. .title {
  522. font-size: 30rpx;
  523. font-family: Noto Sans S Chinese;
  524. font-weight: 400;
  525. color: #000000;
  526. line-height: 30rpx;
  527. margin-bottom: 30rpx;
  528. }
  529. .car-input {}
  530. .chepai-lane {
  531. margin-top: 60rpx;
  532. margin-bottom: 20rpx;
  533. }
  534. .address-lane {
  535. margin-bottom: 30rpx;
  536. .title {
  537. font-size: 30rpx;
  538. font-weight: 400;
  539. color: #000000;
  540. line-height: 30rpx;
  541. }
  542. }
  543. }
  544. .address-content {
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. padding-bottom: 30rpx;
  549. border-bottom: 1rpx solid #dcdcdc;
  550. .name {
  551. font-size: 26rpx;
  552. font-family: Microsoft YaHei;
  553. font-weight: 400;
  554. color: #999999;
  555. font-size: 26rpx;
  556. }
  557. .phone {
  558. font-size: 26rpx;
  559. font-family: Microsoft YaHei;
  560. font-weight: 400;
  561. color: #999999;
  562. line-height: 26rpx;
  563. margin-left: 20rpx;
  564. }
  565. .arror .icon {
  566. width: 36rpx;
  567. height: 36rpx;
  568. }
  569. .address {
  570. font-size: 32rpx;
  571. font-family: Microsoft YaHei;
  572. font-weight: 400;
  573. color: #333333;
  574. line-height: 32rpx;
  575. }
  576. }
  577. .address-line {
  578. padding: 20px;
  579. .flex-bettwen {
  580. display: flex;
  581. align-items: center;
  582. justify-content: space-between;
  583. }
  584. .xing {
  585. width: 68rpx;
  586. height: 68rpx;
  587. background: rgba(0, 179, 139, 0.2);
  588. border-radius: 50%;
  589. font-size: 26rpx;
  590. font-weight: 400;
  591. color: #00b38b;
  592. line-height: 68rpx;
  593. text-align: center;
  594. }
  595. .content {
  596. margin-left: 20px;
  597. .name {
  598. font-size: 30rpx;
  599. font-family: Microsoft YaHei;
  600. font-weight: 500;
  601. color: #333333;
  602. }
  603. .phone {
  604. margin-left: 10rpx;
  605. font-size: 24rpx;
  606. font-family: Microsoft YaHei;
  607. font-weight: 400;
  608. color: #999999;
  609. line-height: 36rpx;
  610. }
  611. .address {
  612. margin-top: 10rpx;
  613. font-size: 26rpx;
  614. font-family: Microsoft YaHei;
  615. font-weight: 400;
  616. color: #333333;
  617. line-height: 36rpx;
  618. }
  619. .picture {
  620. width: 48rpx;
  621. height: 48rpx;
  622. }
  623. .editIcon {
  624. width: 48rpx;
  625. height: 48rpx;
  626. }
  627. }
  628. }
  629. .action {
  630. padding-bottom: 100rpx;
  631. .button {
  632. height: 80rpx;
  633. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  634. border-radius: 40rpx;
  635. font-size: 32rpx;
  636. font-weight: 400;
  637. color: #ffffff;
  638. line-height: 80rpx;
  639. }
  640. }
  641. .action-bottom {
  642. padding-bottom: 30rpx;
  643. .button {
  644. height: 80rpx;
  645. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  646. border-radius: 40rpx;
  647. font-size: 32rpx;
  648. font-weight: 400;
  649. color: #ffffff;
  650. line-height: 80rpx;
  651. }
  652. }
  653. :deep(.numberplates .numberplate-bg) {
  654. width: 190rpx;
  655. }
  656. :deep(.numberplates .numberplate) {
  657. margin-right: 0rpx !important;
  658. width: 190rpx;
  659. }
  660. :deep(.numberplates) {
  661. justify-content: space-between;
  662. }
  663. .agreement {
  664. font-size: 30rpx;
  665. display: flex;
  666. flex-wrap: wrap;
  667. margin-top: 20rpx;
  668. align-items: center;
  669. justify-content: center;
  670. }
  671. .default {
  672. border: 1rpx solid #00b38b;
  673. border-radius: 5rpx;
  674. padding: 2rpx 4rpx;
  675. color: #00b38b;
  676. margin-left: 4rpx;
  677. }
  678. </style>