index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. <template>
  2. <view class="deliver-goods">
  3. <header class="header">
  4. <view class="order-num">
  5. <view class="num line1">订单号:{{ order_id }}</view>
  6. </view>
  7. <view class="address">
  8. <view class="name">
  9. <text class="iconfont icon-ic_location4"></text>
  10. {{ delivery.real_name }}
  11. <text class="phone">{{ delivery.user_phone }}</text>
  12. </view>
  13. <view>地址:{{ delivery.user_address }}</view>
  14. </view>
  15. <view class="line">
  16. <image src="@/static/images/line.jpg" />
  17. </view>
  18. </header>
  19. <view class="wrapper">
  20. <view class="item acea-row row-between-wrapper">
  21. <view>发货方式</view>
  22. <view class="mode acea-row row-middle row-right">
  23. <template v-for="(item, index) in types">
  24. <view
  25. v-if="item.show"
  26. class="goods"
  27. :class="active === index || productType == 3 ? 'on' : ''"
  28. :key="index"
  29. @click="changeType(item, index)"
  30. >
  31. <text
  32. :class="[
  33. 'iconfont',
  34. active === index ? 'icon-ic_Selected' : 'icon-ic_unselect',
  35. ]"
  36. ></text>
  37. {{ item.title }}
  38. </view>
  39. </template>
  40. </view>
  41. </view>
  42. <block v-if="logistics.length > 0">
  43. <view class="list" v-show="active === 0">
  44. <view
  45. class="item acea-row row-middle"
  46. v-if="delivery.config_export_open == 1"
  47. >
  48. <view>发货类型</view>
  49. <view class="mode acea-row row-middle row-right">
  50. <view
  51. class="goods"
  52. :class="curExpress === item.key ? 'on' : ''"
  53. v-for="(item, index) in expressType"
  54. :key="index"
  55. @click="changeExpTpe(item, index)"
  56. >
  57. <text
  58. :class="[
  59. 'iconfont',
  60. curExpress === item.key
  61. ? 'icon-ic_Selected'
  62. : 'icon-ic_unselect',
  63. ]"
  64. ></text>
  65. {{ item.title }}
  66. </view>
  67. </view>
  68. </view>
  69. <block v-if="curExpress == 1">
  70. <view class="item acea-row row-middle">
  71. <view>快递公司</view>
  72. <view class="select-box">
  73. <picker
  74. class="pickerBox"
  75. @change="bindPickerChange"
  76. :value="seIndex"
  77. :range="logistics"
  78. range-key="name"
  79. >
  80. <view class="uni-input">{{ logistics[seIndex].name }}</view>
  81. </picker>
  82. </view>
  83. <text class="iconfont icon-ic_rightarrow"></text>
  84. </view>
  85. <view class="item acea-row row-middle">
  86. <view>快递单号</view>
  87. <input
  88. type="text"
  89. placeholder="请输入"
  90. v-model="delivery_id"
  91. class="mode"
  92. />
  93. <!-- #ifdef MP -->
  94. <text class="iconfont icon-xiangji" @click="scanCode"></text>
  95. <!-- #endif -->
  96. <!-- #ifdef H5 -->
  97. <text
  98. v-if="isWeixin"
  99. class="iconfont icon-xiangji"
  100. @click="scanCode"
  101. ></text>
  102. <!-- #endif -->
  103. </view>
  104. <view class="item">
  105. <view class="trip" v-if="curExpress == 1"
  106. >顺丰请输入单号 :收件人或寄件人手机号后四位</view
  107. >
  108. <view class="trip" v-if="curExpress == 1"
  109. >例如:SF000000000000:3941</view
  110. >
  111. </view>
  112. </block>
  113. <block v-if="curExpress == 2">
  114. <view class="item acea-row row-between-wrapper">
  115. <view>寄件人姓名</view>
  116. <input
  117. type="text"
  118. placeholder="填写寄件人姓名"
  119. v-model="to_name"
  120. class="mode"
  121. />
  122. </view>
  123. <view class="item acea-row row-between-wrapper">
  124. <view>寄件人电话</view>
  125. <input
  126. type="text"
  127. placeholder="填写寄件人电话"
  128. v-model="to_tel"
  129. class="mode"
  130. />
  131. </view>
  132. <view class="item acea-row row-between-wrapper">
  133. <view>寄件人地址</view>
  134. <input
  135. type="text"
  136. placeholder="填写寄件人地址"
  137. v-model="to_addr"
  138. class="mode"
  139. />
  140. </view>
  141. <view class="item acea-row row-between-wrapper">
  142. <view>快递公司</view>
  143. <view class="select-box">
  144. <picker
  145. class="pickerBox"
  146. @change="bindPickerChange"
  147. :value="seIndex"
  148. :range="logistics"
  149. range-key="name"
  150. >
  151. <!-- <view></view> -->
  152. <view class="uni-input">{{ logistics[seIndex].name }}</view>
  153. </picker>
  154. </view>
  155. </view>
  156. <view
  157. class="item acea-row row-between-wrapper"
  158. v-if="expTemp.length > 0"
  159. >
  160. <view>电子面单</view>
  161. <view class="picker-add">
  162. <picker
  163. class="pickerBox"
  164. @change="bindTempChange"
  165. :value="expIndex"
  166. :range="expTemp"
  167. range-key="title"
  168. >
  169. <view class="uni-input">{{ expTemp[expIndex].title }}</view>
  170. </picker>
  171. <view class="look" @click="previewImage">预览</view>
  172. </view>
  173. </view>
  174. </block>
  175. </view>
  176. </block>
  177. <view class="list" v-show="active === 1">
  178. <view class="item acea-row row-between-wrapper">
  179. <view>送货人</view>
  180. <view class="select-box" v-if="postPeople.length > 0">
  181. <picker
  182. class="pickerBox"
  183. @change="bindPostChange"
  184. :value="postIndex"
  185. :range="postPeople"
  186. range-key="wx_name"
  187. >
  188. <view class="acea-row row-middle">
  189. <view class="uni-input">{{
  190. postPeople[postIndex].wx_name
  191. }}</view>
  192. <text class="iconfont icon-ic_rightarrow"></text>
  193. </view>
  194. </picker>
  195. </view>
  196. </view>
  197. <view
  198. class="item acea-row row-between-wrapper"
  199. v-if="postPeople[postIndex]"
  200. >
  201. <view>手机号</view>
  202. <view class="select-box acea-row row-middle row-right">{{
  203. postPeople[postIndex].phone
  204. }}</view>
  205. </view>
  206. </view>
  207. <textarea
  208. v-show="active === 2"
  209. v-model="fictitious_content"
  210. class="textarea"
  211. @blur="bindTextAreaBlur"
  212. placeholder="备注"
  213. :maxlength="500"
  214. auto-height
  215. />
  216. </view>
  217. <!-- <view class="split-wrapper" v-if="totalNum > 1">
  218. <view class="split-switch acea-row row-between-wrapper">
  219. <view>分单发货</view>
  220. <view
  221. class="switch"
  222. :class="{ on: curGoods }"
  223. @click="changeGoods"
  224. ></view>
  225. </view>
  226. <splitOrder
  227. :select_all="false"
  228. :splitGoods="splitGoods"
  229. @getList="getList"
  230. v-if="curGoods"
  231. ></splitOrder>
  232. </view> -->
  233. <view class="height-add"></view>
  234. <view class="confirm-wrapper">
  235. <view class="confirm" @click="saveInfo">确认提交</view>
  236. </view>
  237. </view>
  238. </template>
  239. <script>
  240. import {
  241. getAdminOrderDelivery,
  242. setAdminOrderDelivery,
  243. getLogistics,
  244. orderExportTemp,
  245. orderDeliveryInfo,
  246. orderOrderDelivery,
  247. orderSplitInfo,
  248. orderSplitDelivery,
  249. } from "@/api/admin";
  250. import splitOrder from "../components/splitOrder";
  251. export default {
  252. name: "GoodsDeliver",
  253. components: {
  254. splitOrder,
  255. },
  256. props: {},
  257. data: function () {
  258. return {
  259. types: [
  260. {
  261. type: "express",
  262. title: "发货",
  263. key: 1,
  264. show: true,
  265. },
  266. {
  267. type: "send",
  268. title: "送货",
  269. key: 2,
  270. show: true,
  271. },
  272. {
  273. type: "fictitious",
  274. title: "无需物流",
  275. key: 3,
  276. show: true,
  277. },
  278. ],
  279. expressType: [
  280. {
  281. title: "手动填写",
  282. key: 1,
  283. },
  284. {
  285. title: "电子面单打印",
  286. key: 2,
  287. },
  288. ],
  289. orderGoods: [
  290. {
  291. title: "开启",
  292. key: 1,
  293. },
  294. {
  295. title: "关闭",
  296. key: 0,
  297. },
  298. ],
  299. curExpress: 1,
  300. active: 0,
  301. order_id: "",
  302. delivery: [],
  303. logistics: [],
  304. delivery_type: "1",
  305. delivery_name: "",
  306. delivery_id: "",
  307. seIndex: 0,
  308. expIndex: 0,
  309. expTemp: [], // 快递模板
  310. to_name: "", // 发货人名称
  311. to_tel: "", // 发货人电话
  312. to_addr: "", // 发货人地址
  313. postPeople: [], //配送人
  314. postIndex: 0,
  315. fictitious_content: "",
  316. listId: 0,
  317. curGoods: 0,
  318. splitGoods: [],
  319. cartIds: [],
  320. totalNum: 0,
  321. productType: 0,
  322. // #ifdef H5
  323. isWeixin: this.$wechat.isWeixin(),
  324. // #endif
  325. };
  326. },
  327. watch: {
  328. "$route.params.oid": function (newVal) {
  329. let that = this;
  330. if (newVal != undefined) {
  331. that.order_id = newVal;
  332. that.getIndex();
  333. }
  334. },
  335. },
  336. onLoad: function (option) {
  337. this.order_id = option.id;
  338. this.listId = option.listId;
  339. this.totalNum = option.totalNum;
  340. this.comeType = option.comeType;
  341. this.productType = option.productType;
  342. if (this.productType == 3) {
  343. // this.types.splice(0, 2);
  344. for (let i = 0; i < this.types.length; i++) {
  345. if (i == 2) {
  346. this.types[i].show = true;
  347. } else {
  348. this.types[i].show = false;
  349. }
  350. }
  351. this.delivery_type = 3;
  352. this.active = 2;
  353. }
  354. if (
  355. option.orderStatus == 8 ||
  356. option.orderStatus == 4 ||
  357. option.orderStatus == 9
  358. ) {
  359. this.curGoods = 1;
  360. this.orderGoods.pop();
  361. this.splitList();
  362. }
  363. this.getIndex();
  364. this.getLogistics();
  365. this.orderDeliveryInfo();
  366. this.geTorderOrderDelivery();
  367. },
  368. methods: {
  369. getList(val) {
  370. let that = this;
  371. that.splitGoods = val;
  372. let cartIds = [];
  373. val.forEach((item) => {
  374. if (item.checked) {
  375. let i = {
  376. cart_id: item.cart_id,
  377. cart_num: item.surplus_num,
  378. };
  379. cartIds.push(i);
  380. }
  381. });
  382. this.cartIds = cartIds;
  383. },
  384. splitList() {
  385. orderSplitInfo(this.listId)
  386. .then((res) => {
  387. let list = res.data;
  388. list.forEach((item) => {
  389. item.checked = false;
  390. item.numShow = item.surplus_num;
  391. });
  392. this.splitGoods = list;
  393. })
  394. .catch((err) => {
  395. return this.$util.Tips({
  396. title: err,
  397. });
  398. });
  399. },
  400. // 点击获取拆单列表
  401. changeGoods() {
  402. this.curGoods = this.curGoods ? 0 : 1;
  403. if (this.curGoods) {
  404. this.splitList();
  405. }
  406. },
  407. // 扫描快递单号一维码
  408. scanCode() {
  409. // #ifdef MP
  410. let that = this;
  411. uni.scanCode({
  412. scanType: ["barCode"],
  413. success(res) {
  414. that.delivery_id = res.result;
  415. },
  416. });
  417. // #endif
  418. // #ifdef H5
  419. if (this.$wechat.isWeixin()) {
  420. this.$wechat
  421. .wechatEvevt("scanQRCode", {
  422. needResult: 1,
  423. scanType: ["barCode"],
  424. })
  425. .then((res) => {
  426. let result = res.resultStr.split(",");
  427. this.delivery_id = result[1];
  428. });
  429. }
  430. // #endif
  431. },
  432. // 预览图片
  433. previewImage() {
  434. uni.previewImage({
  435. urls: [this.expTemp[this.expIndex].pic],
  436. success: function () {},
  437. fail: function (error) {},
  438. });
  439. },
  440. // 获取配送员列表
  441. geTorderOrderDelivery() {
  442. orderOrderDelivery().then((res) => {
  443. this.postPeople = res.data;
  444. });
  445. },
  446. // 配送员选择
  447. bindPostChange(e) {
  448. this.postIndex = e.detail.value;
  449. },
  450. // 选择发货类型
  451. changeExpTpe(item, index) {
  452. this.curExpress = item.key;
  453. this.getLogistics(index || "");
  454. },
  455. changeType: function (item, index) {
  456. this.active = index;
  457. this.delivery_type = item.key;
  458. },
  459. getIndex: function () {
  460. let that = this;
  461. getAdminOrderDelivery(that.order_id).then(
  462. (res) => {
  463. that.delivery = res.data;
  464. },
  465. (error) => {
  466. that.$util.Tips({
  467. title: error,
  468. });
  469. }
  470. );
  471. },
  472. getLogistics(status) {
  473. let that = this;
  474. getLogistics({
  475. status,
  476. }).then(
  477. (res) => {
  478. that.logistics = res.data;
  479. that.getExpTemp(res.data[0].code);
  480. },
  481. (error) => {
  482. that.$util.Tips({
  483. title: error,
  484. });
  485. }
  486. );
  487. },
  488. async saveInfo() {
  489. let that = this,
  490. delivery_type = that.delivery_type,
  491. delivery_name = that.logistics[that.seIndex].name,
  492. delivery_id = that.delivery_id,
  493. userName = that.delivery_name,
  494. save = {};
  495. save.delivery_type = delivery_type;
  496. save.delivery_code = that.logistics[that.seIndex].code;
  497. save.delivery_name = that.logistics[that.seIndex].name;
  498. save.type = that.active + 1;
  499. if (delivery_type == 1 && this.curExpress == 1) {
  500. if (!delivery_id) {
  501. return this.$util.Tips({
  502. title: "请填写快递单号",
  503. });
  504. }
  505. save.express_record_type = that.curExpress;
  506. save.delivery_id = delivery_id;
  507. if (that.curGoods) {
  508. that.setSplitInfo(save);
  509. } else {
  510. that.setInfo(save);
  511. }
  512. }
  513. if (delivery_type == 1 && this.curExpress == 2) {
  514. if (!that.to_name) {
  515. return this.$util.Tips({
  516. title: "请填写寄件人姓名",
  517. });
  518. }
  519. if (!that.to_tel) {
  520. return this.$util.Tips({
  521. title: "请填写寄件人手机号码",
  522. });
  523. }
  524. if (!/^1[3456789]\d{9}$/.test(that.to_tel)) {
  525. return this.$util.Tips({
  526. title: "请填写寄件人手机号码",
  527. });
  528. }
  529. if (!that.to_addr) {
  530. return this.$util.Tips({
  531. title: "请填写寄件人地址",
  532. });
  533. }
  534. if (that.expTemp.length == 0) {
  535. return this.$util.Tips({
  536. title: "请选择电子面单",
  537. });
  538. }
  539. save.express_record_type = that.curExpress;
  540. save.to_name = that.to_name;
  541. save.to_tel = that.to_tel;
  542. save.to_addr = that.to_addr;
  543. save.express_temp_id = that.expTemp[that.expIndex].temp_id;
  544. if (that.curGoods) {
  545. that.setSplitInfo(save);
  546. } else {
  547. that.setInfo(save);
  548. }
  549. }
  550. if (delivery_type == 2) {
  551. if (!that.postPeople.length) {
  552. return this.$util.Tips({
  553. title: "请在平台后台添加送货人",
  554. });
  555. }
  556. let obj = this.postPeople[this.postIndex];
  557. let params = {};
  558. params.type = that.delivery_type;
  559. params.sh_delivery_name = obj.wx_name;
  560. params.sh_delivery_id = obj.phone;
  561. params.sh_delivery_uid = obj.uid;
  562. if (that.curGoods) {
  563. that.setSplitInfo(params);
  564. } else {
  565. that.setInfo(params);
  566. }
  567. }
  568. if (delivery_type == 3) {
  569. let params = {};
  570. params.type = that.delivery_type;
  571. params.fictitious_content = that.fictitious_content;
  572. if (that.curGoods) {
  573. that.setSplitInfo(params);
  574. } else {
  575. that.setInfo(params);
  576. }
  577. }
  578. },
  579. setInfo: function (item) {
  580. let that = this;
  581. setAdminOrderDelivery(that.delivery.id, item).then(
  582. (res) => {
  583. that.$util.Tips({
  584. title: res.msg,
  585. icon: "success",
  586. mask: true,
  587. });
  588. setTimeout((res) => {
  589. if (this.comeType == 2) {
  590. uni.navigateTo({
  591. url: "/pages/admin/orderDetail/index?id=" + this.order_id,
  592. });
  593. } else {
  594. uni.navigateTo({
  595. url: "/pages/admin/orderList/index?types=1",
  596. });
  597. }
  598. }, 2000);
  599. },
  600. (error) => {
  601. that.$util.Tips({
  602. title: error,
  603. });
  604. }
  605. );
  606. },
  607. setSplitInfo(item) {
  608. if (!this.cartIds.length) {
  609. return this.$util.Tips({
  610. title: "请选择发货商品",
  611. });
  612. }
  613. item.cart_ids = this.cartIds;
  614. orderSplitDelivery(this.delivery.id, item)
  615. .then((res) => {
  616. this.$util.Tips({
  617. title: res.msg,
  618. icon: "success",
  619. mask: true,
  620. });
  621. setTimeout((res) => {
  622. if (this.comeType == 2) {
  623. uni.navigateTo({
  624. url: "/pages/admin/orderDetail/index?id=" + this.order_id,
  625. });
  626. } else {
  627. uni.navigateTo({
  628. url: "/pages/admin/orderList/index?types=1",
  629. });
  630. }
  631. }, 2000);
  632. })
  633. .catch((err) => {
  634. this.$util.Tips({
  635. title: err,
  636. });
  637. });
  638. },
  639. bindPickerChange(e) {
  640. this.seIndex = e.detail.value;
  641. this.getExpTemp(this.logistics[e.detail.value].code);
  642. },
  643. bindTempChange(e) {
  644. this.expIndex = e.detail.value;
  645. },
  646. getExpTemp(code) {
  647. orderExportTemp({
  648. com: code,
  649. }).then((res) => {
  650. this.expTemp = res.data.data;
  651. });
  652. },
  653. // 获取订单打印默认配置
  654. orderDeliveryInfo() {
  655. orderDeliveryInfo().then((res) => {
  656. this.to_name = res.data.to_name;
  657. this.to_tel = res.data.to_tel;
  658. this.to_addr = res.data.to_add;
  659. });
  660. },
  661. },
  662. };
  663. </script>
  664. <style lang="scss">
  665. .picker-add {
  666. display: flex;
  667. align-items: center;
  668. }
  669. .height-add {
  670. height: 120upx;
  671. }
  672. /*发货*/
  673. .deliver-goods {
  674. padding: 22rpx 20rpx;
  675. }
  676. .deliver-goods .header {
  677. position: relative;
  678. padding: 0 32rpx;
  679. border-radius: 24rpx;
  680. background: #ffffff;
  681. overflow: hidden;
  682. }
  683. .deliver-goods .header .order-num {
  684. padding: 20rpx 0;
  685. border-bottom: 1px dotted #eeeeee;
  686. }
  687. .deliver-goods .header .order-num .num {
  688. font-size: 28rpx;
  689. line-height: 40rpx;
  690. color: #333333;
  691. position: relative;
  692. }
  693. .deliver-goods header .order-num .num:after {
  694. }
  695. .deliver-goods header .order-num .name {
  696. width: 260upx;
  697. font-size: 26upx;
  698. color: #282828;
  699. text-align: center;
  700. }
  701. .deliver-goods header .order-num .name .iconfont {
  702. font-size: 35upx;
  703. color: #477ef3;
  704. vertical-align: middle;
  705. margin-right: 10upx;
  706. }
  707. .deliver-goods .header .address {
  708. padding: 20rpx 0 40rpx;
  709. font-size: 24rpx;
  710. line-height: 34rpx;
  711. color: #999999;
  712. }
  713. .deliver-goods .header .address .name {
  714. font-weight: 500;
  715. font-size: 30rpx;
  716. line-height: 42rpx;
  717. color: #333333;
  718. margin-bottom: 12rpx;
  719. }
  720. .deliver-goods .header .address .name .iconfont {
  721. margin-right: 8rpx;
  722. font-size: 32rpx;
  723. }
  724. .deliver-goods .header .address .name .phone {
  725. margin-left: 40rpx;
  726. }
  727. .deliver-goods .header .line {
  728. position: absolute;
  729. bottom: 0;
  730. left: 0;
  731. width: 100%;
  732. height: 4rpx;
  733. }
  734. .deliver-goods .header .line image {
  735. width: 100%;
  736. height: 100%;
  737. display: block;
  738. }
  739. .deliver-goods .wrapper {
  740. padding: 12rpx 0;
  741. border-radius: 24rpx;
  742. margin-top: 20rpx;
  743. background-color: #fff;
  744. }
  745. .deliver-goods .wrapper .item {
  746. padding: 0 24rpx;
  747. height: 80rpx;
  748. font-size: 28rpx;
  749. color: #333333;
  750. position: relative;
  751. }
  752. .deliver-goods .wrapper .item .mode {
  753. flex: 1;
  754. height: 100%;
  755. text-align: right;
  756. }
  757. .deliver-goods .wrapper .item .mode .iconfont {
  758. font-size: 32rpx;
  759. margin-right: 12rpx;
  760. color: #cccccc;
  761. }
  762. .deliver-goods .wrapper .item .mode .goods ~ .goods {
  763. margin-left: 50rpx;
  764. }
  765. .deliver-goods .wrapper .item .mode .goods {
  766. color: #999999;
  767. }
  768. .deliver-goods .wrapper .item .mode .goods.on {
  769. color: #333333;
  770. }
  771. .deliver-goods .wrapper .item .mode .goods.on .iconfont {
  772. color: $primary-admin;
  773. }
  774. .deliver-goods .wrapper .item .icon-up {
  775. position: absolute;
  776. font-size: 35upx;
  777. color: #2c2c2c;
  778. right: 30upx;
  779. }
  780. .deliver-goods .wrapper .item select {
  781. direction: rtl;
  782. padding-right: 60upx;
  783. position: relative;
  784. z-index: 2;
  785. }
  786. .deliver-goods .wrapper .item input::placeholder {
  787. color: #bbb;
  788. }
  789. .deliver-goods .confirm-wrapper {
  790. background-color: #ffffff;
  791. position: fixed;
  792. left: 0;
  793. bottom: 0;
  794. bottom: constant(safe-area-inset-bottom);
  795. bottom: env(safe-area-inset-bottom);
  796. width: 100%;
  797. padding: 20rpx;
  798. }
  799. .deliver-goods .confirm {
  800. font-weight: 500;
  801. font-size: 28rpx;
  802. color: #fff;
  803. height: 80rpx;
  804. border-radius: 40rpx;
  805. background: #2a7efb;
  806. text-align: center;
  807. line-height: 80rpx;
  808. }
  809. .select-box {
  810. flex: 1;
  811. height: 100%;
  812. .pickerBox {
  813. display: flex;
  814. align-items: center;
  815. justify-content: flex-end;
  816. width: 100%;
  817. height: 100%;
  818. .iconfont {
  819. margin-left: 8rpx;
  820. font-size: 24rpx;
  821. color: #999999;
  822. }
  823. }
  824. }
  825. .look {
  826. margin-left: 20rpx;
  827. color: $primary-admin;
  828. }
  829. .textarea {
  830. display: block;
  831. min-height: 192rpx;
  832. padding: 24rpx;
  833. width: 100%;
  834. // border-bottom: 1px solid #f0f0f0;
  835. box-sizing: border-box;
  836. }
  837. .icon-xiangji {
  838. font-size: 35rpx;
  839. color: $primary-admin;
  840. }
  841. .trip {
  842. font-size: 22rpx;
  843. color: #ccc;
  844. padding: 6rpx 0;
  845. }
  846. .split-wrapper {
  847. border-radius: 24rpx;
  848. margin-top: 20rpx;
  849. background: #ffffff;
  850. .splitOrder {
  851. padding: 0 24rpx 46rpx;
  852. margin: 0;
  853. }
  854. }
  855. .split-switch {
  856. padding: 40rpx 24rpx;
  857. font-size: 28rpx;
  858. color: #333333;
  859. .switch {
  860. position: relative;
  861. width: 79rpx;
  862. height: 48rpx;
  863. padding: 4rpx;
  864. border-radius: 24rpx;
  865. background: #dddddd;
  866. transition: background 0.1s, border 0.1s;
  867. &::after {
  868. content: "";
  869. position: absolute;
  870. top: 4rpx;
  871. left: 4rpx;
  872. width: 40rpx;
  873. height: 40rpx;
  874. border-radius: 20rpx;
  875. background: #ffffff;
  876. box-shadow: 0 3rpx 6rpx 0 rgba(0, 0, 0, 0.08);
  877. transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
  878. }
  879. &.on {
  880. background: #2a7efb;
  881. &::after {
  882. transform: translateX(31rpx);
  883. }
  884. }
  885. }
  886. }
  887. </style>