index.vue 22 KB

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