index.vue 21 KB

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