index.vue 125 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591
  1. <template>
  2. <view>
  3. <view>
  4. <u-navbar :is-back="false" :title="tit">
  5. <view class="slot">
  6. <!-- 我的 -->
  7. <view class="slot_left" @click="bindridermy">
  8. <image :src="avatar" style="border-radius: 50%"></image>
  9. </view>
  10. <!-- 下线 -->
  11. <view class="slot_content" v-show="seen">
  12. <image src="../../static/rider/icon_down.png"></image>
  13. </view>
  14. <!-- 上线 -->
  15. <view class="slot_content" v-show="!seen">
  16. <image src="../../static/rider/icon_up.png"></image>
  17. </view>
  18. </view>
  19. </u-navbar>
  20. <!-- tabs -->
  21. <u-tabs style="position: fixed; width: 100%; z-index: 999" :list="tab" :is-scroll="false" inactive-color="#333333" :current="current" @change="change"></u-tabs>
  22. <view class="content">
  23. <!-- 待取货和配送中搜索框 -->
  24. <view class="search-bar" v-show="current == 1 || current == 2">
  25. <view class="search-bar-box">
  26. <image class="search-span" src="../../static/image/sousuo.png" />
  27. <input type="text" v-model="keyword" placeholder="请输入收货地址或收货人手机号码" @input="searchKeyword" @confirm="shouhuiche" class="search-text" focus />
  28. </view>
  29. <!-- <input type="text" v-model="shoudanma" class="impute padding-lr" placeholder="请输入收货地址或收货人手机号码" @input="onInput" @confirm="shouhuiche" /> -->
  30. </view>
  31. <!-- 全选框和批量转单 -->
  32. <view class="kuang-bar" v-if="(current == 1 || current == 2) && lists.length > 0">
  33. <view class="kuang-padd" v-if="checkedz" @click="checkboxChanges()">
  34. <view class="kuang-li kuang-se">
  35. <image src="../../static/image/select.png" style="width: 34rpx; height: 24rpx; margin: 5px 0 0 4px"></image>
  36. </view>
  37. <view style="margin-left: 14rpx">全选</view>
  38. </view>
  39. <view class="kuang-padd" v-else @click="checkboxChanges()">
  40. <view class="kuang-li kuang-kong"></view>
  41. <view style="margin-left: 14rpx">全选</view>
  42. </view>
  43. <view class="kuang-btn noselect" @click="allZhuanNo" v-if="indentIds.length == 0">批量转单</view>
  44. <view class="kuang-btn selectpil" @click="allZhuan" v-else>批量转单</view>
  45. </view>
  46. <!-- 新任务,展示所有商家时 -->
  47. <view class="tabs_box" :class="{ dis: current == 0 }" v-if="!ifrenwu">
  48. <view class="list_box2" v-for="(item, index) in list_shanghu" :key="index" @click="dingdetails(item.shopId)">
  49. <view style="line-height: 40px; font-size: 20px; margin-left: 20px">
  50. {{ item.shopName }}
  51. <text style="font-size: 16px; margin-left: 80px">订单数:{{ item.countOfWaitAccept }}单</text>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 新任务 -->
  56. <view class="tabs_box" :class="{ dis: current == 0 }" v-if="ifrenwu">
  57. <view class="box_btn5" @click.stop="fanhuiShang">返回</view>
  58. <!-- 下线中 -->
  59. <view class="list_box" v-for="(item, index) in list_box" :key="index" v-show="seen" @click="binddetails(item.indentNumber, item.indentType)">
  60. <view class="order_title" v-if="item.expectDeliveryTime">预约订单:{{ item.expectDeliveryTime }}送达</view>
  61. <view class="part1">
  62. <view class="box_one" v-if="item.indentType == 1">帮我送</view>
  63. <view class="box_one" v-if="item.indentType == 2">帮我取</view>
  64. <view class="box_one" v-if="item.indentType == 3">同城帮买</view>
  65. <view class="box_one" v-if="item.indentType == 4">同城服务</view>
  66. <view class="box_one" v-if="item.indentType == 5">同城外卖</view>
  67. <view class="box_two" v-if="item.indentType == 4 && item.serviceType">{{ item.serviceType }}</view>
  68. <view class="box_two box_two1" v-if="item.itemType != null || item.itemWeight != null">{{ item.itemType }}&nbsp;{{ item.itemWeight }}</view>
  69. <view class="box_three" v-if="item.indentType == 4 && item.tool">{{ item.tool }}</view>
  70. </view>
  71. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderPaySequence">#{{ item.orderPaySequence }}</view>
  72. <view style="padding: 0 10rpx; color: #ff7f00">{{ item.shopName }}</view>
  73. <view style="padding: 0 10rpx">订单编号:{{ item.indentNumber }}</view>
  74. <!-- 同城服务 -->
  75. <view class="part2" v-if="item.indentType == 4">
  76. <view class="address_name">{{ item.userAddressDetail }}({{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }})</view>
  77. <!-- <view class="name">{{item.deliveryUserName}}<text>{{item.deliveryUserPhone}}</text></view> -->
  78. </view>
  79. <!-- 同城帮买 就近-->
  80. <view class="part2" v-if="item.indentType == 3 && item.buyType == 0">
  81. <view class="address_name">{{ item.userAddressDetail }}</view>
  82. <view class="name">
  83. <text>{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}</text>
  84. </view>
  85. </view>
  86. <!-- 同城帮买 指定 -->
  87. <view class="part2" v-if="item.indentType == 3 && item.buyType == 1">
  88. <view class="box_add">
  89. <view class="add_name">
  90. <view class="sh_name">
  91. {{ item.shopAddressDetail }}
  92. </view>
  93. <view class="xs_add">{{ item.shopProvince }}{{ item.shopCity }}{{ item.shopDistrict }}</view>
  94. </view>
  95. </view>
  96. <view class="jiantou">
  97. <image src="../../static/rider/jiantou.png"></image>
  98. </view>
  99. <view class="box_add">
  100. <view class="add_name">
  101. <view class="sh_name">
  102. {{ item.userAddressDetail }}
  103. </view>
  104. <view class="xs_add">{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}</view>
  105. </view>
  106. </view>
  107. </view>
  108. <!-- 帮送 帮区-->
  109. <view class="part2" v-if="item.indentType == 1 || item.indentType == 2">
  110. <view class="box_add">
  111. <view class="add_name">
  112. <view class="sh_name">
  113. {{ item.shopAddressDetail }}
  114. </view>
  115. <view class="xs_add">{{ item.shopProvince }}{{ item.shopCity }}{{ item.shopDistrict }}</view>
  116. </view>
  117. </view>
  118. <view class="jiantou">
  119. <image src="../../static/rider/jiantou.png"></image>
  120. </view>
  121. <view class="box_add">
  122. <view class="add_name">
  123. <view class="sh_name">{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}</view>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 同城外卖 -->
  128. <view class="part2" v-if="item.indentType == 5">
  129. <view class="address_name">{{ item.userAddressDetail }}({{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }})</view>
  130. <!-- <view class="name">{{item.deliveryUserName}}<text>{{item.deliveryUserPhone}}</text></view> -->
  131. </view>
  132. <!-- -->
  133. <view class="part3">
  134. <view class="three_left">
  135. <!-- <image src="../../static/rider/icon_data.png"></image> -->
  136. <!-- <text v-if="item.indentType==1 ||item.indentType==2">{{item.predictTime}}分钟内送达</text> -->
  137. <!-- <text v-if="item.indentType==3">{{item.buyTime}}分钟内送达</text> -->
  138. <!-- <text v-if="item.indentType==4">{{item.visitTime}}分钟内送达</text> -->
  139. </view>
  140. <view class="three_right">¥{{ item.errandMoney }}</view>
  141. </view>
  142. <view class="part4">
  143. <view class="box_btn" @click.stop="bindorder1">接单</view>
  144. </view>
  145. </view>
  146. <!-- 上线 -->
  147. <view class="list_box" v-for="(item, index) in list_box" :key="index" v-if="!seen" @click="binddetails(item.indentNumber, item.indentType)">
  148. <view class="part1">
  149. <view class="box_one" v-if="item.indentType == 1">帮我送</view>
  150. <view class="box_one" v-if="item.indentType == 2">帮我取</view>
  151. <view class="box_one" v-if="item.indentType == 3">同城帮买</view>
  152. <view class="box_one" v-if="item.indentType == 4">同城服务</view>
  153. <view class="box_one" v-if="item.indentType == 5">同城外卖</view>
  154. <view class="box_two" v-if="item.indentType == 4 && item.serviceType">{{ item.serviceType }}</view>
  155. <view class="box_two box_two1" v-if="item.itemType != null || item.itemWeight != null">{{ item.itemType }}&nbsp;{{ item.itemWeight }}</view>
  156. <view class="box_three" v-if="item.indentType == 4 && item.tool">{{ item.tool }}</view>
  157. <view class="box_two box_two1" v-if="item.indentType == 3">{{ item.buyType == 0 ? '就近购买' : '指定地点购买' }}</view>
  158. <view style="position: absolute; right: 0; font-size: 22rpx; color: #999">{{ item.createTime }}</view>
  159. </view>
  160. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderPaySequence">#{{ item.orderPaySequence }}</view>
  161. <view style="padding: 0 30rpx; color: #ff7f00">{{ item.shopName }}</view>
  162. <view style="padding: 0 30rpx">订单编号:{{ item.indentNumber }}</view>
  163. <!-- 同城服务 -->
  164. <view class="part2" v-if="item.indentType == 4">
  165. <view class="box_add">
  166. <view class="distance" v-if="item.distancessd != '0.0m'">
  167. <view>{{ item.distancessd }}</view>
  168. </view>
  169. <view class="add_name">
  170. <view class="address_name">{{ item.userAddressDetail }}({{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }})</view>
  171. <!-- <view class="name">{{item.deliveryUserName}}<text>{{item.deliveryUserPhone}}</text>
  172. </view> -->
  173. </view>
  174. </view>
  175. </view>
  176. <!-- 同城帮买 就近-->
  177. <view class="part2" v-if="item.indentType == 3 && item.buyType == 0">
  178. <view class="box_add">
  179. <view class="distance" v-if="item.distancessd != '0.0m'">
  180. <view>{{ item.distancessd }}</view>
  181. </view>
  182. <view class="add_name">
  183. <view class="address_name">{{ item.userAddressDetail }}</view>
  184. <view class="name">
  185. <text>{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}{{ item.userAddressDetail }}</text>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 同城帮买 指定 -->
  191. <view class="part2" v-if="item.indentType == 3 && item.buyType == 1">
  192. <view class="box_add">
  193. <view class="distance" v-if="item.distancess != '0.0m'">
  194. <view>{{ item.distancess }}</view>
  195. </view>
  196. <view class="add_name">
  197. <view class="sh_name">
  198. {{ item.shopAddressDetail }}
  199. <!-- {{item.shopProvince?item.shopProvince:''}}{{item.shopCity?item.shopCity:''}}{{item.shopDistrict?item.shopDistrict:''}} -->
  200. </view>
  201. <view class="xs_add">
  202. {{ item.shopProvince ? item.shopProvince : '' }}{{ item.shopCity ? item.shopCity : '' }}{{ item.shopDistrict ? item.shopDistrict : '' }}
  203. </view>
  204. </view>
  205. </view>
  206. <view class="jiantou">
  207. <image src="../../static/rider/jiantou.png"></image>
  208. <!-- <view>{{item.distance}}</view> -->
  209. </view>
  210. <view class="box_add">
  211. <view class="distance" v-if="item.distancessd != '0.0m'">
  212. <view>{{ item.distancessd }}</view>
  213. </view>
  214. <view class="add_name">
  215. <view class="sh_name">{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}{{ item.userAddressDetail }}</view>
  216. </view>
  217. </view>
  218. </view>
  219. <!-- 帮送 帮取-->
  220. <view class="part2" v-if="item.indentType == 1 || item.indentType == 2">
  221. <view class="box_add">
  222. <view class="distance" v-if="item.distancess != '0.0m'">
  223. <view>{{ item.distancess }}</view>
  224. </view>
  225. <view class="add_name">
  226. <view class="sh_name">
  227. {{ item.shopAddressDetail }}
  228. <!-- {{item.shopProvince?item.shopProvince:''}}{{item.shopCity?item.shopCity:''}}{{item.shopDistrict?item.shopDistrict:''}} -->
  229. </view>
  230. <view class="xs_add">
  231. {{ item.shopProvince ? item.shopProvince : '' }}{{ item.shopCity ? item.shopCity : '' }}{{ item.shopDistrict ? item.shopDistrict : '' }}
  232. </view>
  233. </view>
  234. </view>
  235. <view class="jiantou">
  236. <image src="../../static/rider/jiantou.png"></image>
  237. <!-- <view>{{item.distance}}</view> -->
  238. </view>
  239. <view class="box_add">
  240. <view class="distance" v-if="item.distancessd != '0.0m'">
  241. <view>{{ item.distancessd }}</view>
  242. </view>
  243. <view class="add_name">
  244. <view class="sh_name">{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}{{ item.userAddressDetail }}</view>
  245. </view>
  246. </view>
  247. </view>
  248. <!-- 同城外卖 -->
  249. <view class="part2" v-if="item.indentType == 5">
  250. <view class="box_add">
  251. <view class="distance" v-if="item.distancess != '0.0m'">
  252. <view>{{ item.distancess }}</view>
  253. </view>
  254. <view class="add_name">
  255. <view class="sh_name">
  256. {{ item.shopAddressDetail }}
  257. </view>
  258. <view class="xs_add">
  259. {{ item.shipAddress ? item.shipAddress : '' }}
  260. </view>
  261. </view>
  262. </view>
  263. <view class="jiantou">
  264. <image src="../../static/rider/jiantou.png"></image>
  265. <!-- <view>{{item.distance}}</view> -->
  266. </view>
  267. <view class="box_add">
  268. <view class="distance" v-if="item.distancessd != '0.0m'">
  269. <view>{{ item.distancessd }}</view>
  270. </view>
  271. <view class="add_name">
  272. <view class="sh_name">{{ item.userProvince }}{{ item.userCity }}{{ item.userDistrict }}{{ item.userAddressDetail }}</view>
  273. </view>
  274. </view>
  275. </view>
  276. <view></view>
  277. <!-- -->
  278. <view class="part3">
  279. <view class="three_left" v-if="item.indentType == 4">
  280. <image src="../../static/rider/icon_data.png"></image>
  281. <text>预约时间:{{ item.sendOutTime ? item.sendOutTime : '立即送达' }}</text>
  282. </view>
  283. <view class="three_left" v-if="item.indentType != 4">
  284. <image src="../../static/rider/icon_data.png"></image>
  285. <text>送达时间:{{ item.sendOutTime ? item.sendOutTime : '立即送达' }}</text>
  286. </view>
  287. <view class="three_right" v-if="item.riderMoney">
  288. ¥{{ item.riderMoney }}
  289. <!-- <text style="font-size: 20upx;">(<text
  290. v-if="item.prepayMoney">预付{{item.prepayMoney}}元</text>
  291. <text v-if="item.tip">小费{{item.tip}}元</text> 跑腿费{{item.errandMoney}}元)</text> -->
  292. </view>
  293. <view class="three_right" v-else>¥ 0</view>
  294. </view>
  295. <view class="part4">
  296. <view class="box_btn1" @click.stop="bindorder(item, index)">接单</view>
  297. </view>
  298. </view>
  299. <empty v-if="list_box.length == 0"></empty>
  300. </view>
  301. <!-- 待取货 -->
  302. <view class="tabs_box" :class="{ dis: current == 1 }">
  303. <view class="order_box" v-for="(item, index) in lists" :key="index" @click="bindorderDetail(item.indentNumber, item.indentId)">
  304. <view class="kuang-li kuang-se" style="float: left; margin-top: 35%" @click.stop="checkboxChange(item)" v-if="item.checkeds">
  305. <image src="../../static/image/select.png" style="width: 34rpx; height: 24rpx; margin: 5px 0 0 4px"></image>
  306. </view>
  307. <view class="kuang-li kuang-kong" @click.stop="checkboxChange(item)" v-else style="float: left; margin-top: 35%"></view>
  308. <!-- <u-checkbox class="kuang-li kuang-kong" @change.stop="checkboxChange(item)" v-model="item.checkeds" style="float: left;margin-top: 35%;"> -->
  309. <!-- </u-checkbox> -->
  310. <view class="kuang-line"></view>
  311. <view style="margin-left: 81rpx">
  312. <view class="order_success" v-if="item.indentState == '2'">
  313. <view class="order_name">待支付领取</view>
  314. <view class="order_data">{{ item.receivingTime }}</view>
  315. </view>
  316. <view class="order_success" v-if="item.indentState == '3'">
  317. <view class="order_name">待取货</view>
  318. <view class="order_data">{{ item.receivingTime }}</view>
  319. </view>
  320. <view class="order_success" v-if="item.indentState == '4'">
  321. <view class="order_name">配送中</view>
  322. <view class="order_data">{{ item.receivingTime }}</view>
  323. </view>
  324. <view class="order_success" v-if="item.indentState == '5'">
  325. <view class="order_name">已送达,客户待确认</view>
  326. <view class="order_data">{{ item.receivingTime }}</view>
  327. </view>
  328. <view class="order_success" v-if="item.indentState == '6'">
  329. <view class="order_name">客户已确认</view>
  330. <view class="order_data">{{ item.receivingTime }}</view>
  331. </view>
  332. <view class="order_success" v-if="item.indentState == '7'">
  333. <view class="order_name">已完成</view>
  334. <view class="order_data">{{ item.receivingTime }}</view>
  335. </view>
  336. <view class="order_success" v-if="item.indentState == '9'">
  337. <view class="order_name">已取消</view>
  338. <view class="order_data">{{ item.receivingTime }}</view>
  339. </view>
  340. <u-line color="#E6E6E6" />
  341. <view class="order_city">
  342. <view class="city_type">
  343. <view class="type_name" v-if="item.indentType == 1">帮我送</view>
  344. <view class="type_name" v-if="item.indentType == 2">帮我取</view>
  345. <view class="type_name" v-if="item.indentType == 3">同城帮买</view>
  346. <view class="type_name" v-if="item.indentType == 4">同城服务</view>
  347. <view class="type_name" v-if="item.indentType == 5">同城外卖</view>
  348. <view class="city_text" v-if="item.itemType">{{ item.itemType }}</view>
  349. </view>
  350. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderPaySequence">#{{ item.orderPaySequence }}</view>
  351. <view style="padding: 0 30rpx; color: #ff7f00">{{ item.shopName }}</view>
  352. <view style="padding: 0 30rpx">订单编号:{{ item.indentNumber }}</view>
  353. <!-- 帮我送/帮我取 地址 -->
  354. <view class="city_address" v-if="item.indentType == 1 || item.indentType == 2">
  355. <view class="fh_box">
  356. <view class="fh_image">
  357. <image src="../../static/image/icon_f.png"></image>
  358. </view>
  359. <view class="box">
  360. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  361. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  362. <view class="fh_type">
  363. {{ item.shopName }}
  364. <text>{{ item.shopPhone }}</text>
  365. </view>
  366. </view>
  367. </view>
  368. <view class="sh_box">
  369. <view class="sh_image">
  370. <image src="../../static/image/icon_s.png"></image>
  371. </view>
  372. <view class="box">
  373. <view class="sh_name">{{ item.userAddressDetail }}</view>
  374. <view class="sh_type">
  375. {{ item.userName }}
  376. <text>{{ item.userPhone }}</text>
  377. </view>
  378. </view>
  379. </view>
  380. </view>
  381. <!-- 同城帮买 指定位置 -->
  382. <view class="city_address" v-if="item.indentType == 3">
  383. <view class="fh_box" v-if="item.buy_type == 1">
  384. <view class="fh_image">
  385. <image src="../../static/image/icon_f.png"></image>
  386. </view>
  387. <view class="box">
  388. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  389. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  390. <view class="fh_type">
  391. {{ item.shopName }}
  392. <text>{{ item.shopPhone }}</text>
  393. </view>
  394. </view>
  395. </view>
  396. <view class="sh_box">
  397. <view class="sh_image">
  398. <image src="../../static/image/icon_s.png"></image>
  399. </view>
  400. <view class="box">
  401. <view class="sh_name">{{ item.userAddressDetail }}</view>
  402. <view class="sh_type">
  403. {{ item.userName }}
  404. <text>{{ item.userPhone }}</text>
  405. </view>
  406. </view>
  407. </view>
  408. </view>
  409. <!-- 同城服务 -->
  410. <view class="city_address" v-if="item.indentType == 4">
  411. <view class="sh_box">
  412. <view class="sh_image">
  413. <image src="../../static/image/icon_s.png"></image>
  414. </view>
  415. <view class="box">
  416. <view class="sh_name">{{ item.userAddressDetail }}</view>
  417. <view class="sh_type">
  418. {{ item.userName }}
  419. <text>{{ item.userPhone }}</text>
  420. </view>
  421. </view>
  422. </view>
  423. </view>
  424. <!-- 同城外卖 -->
  425. <view class="city_address" v-if="item.indentType == 5">
  426. <view class="fh_box">
  427. <view class="fh_image">
  428. <image src="../../static/image/icon_f.png"></image>
  429. </view>
  430. <view class="box">
  431. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  432. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  433. <view class="fh_type">
  434. {{ item.shopName }}
  435. <text>{{ item.shopPhone }}</text>
  436. </view>
  437. </view>
  438. </view>
  439. <view class="sh_box">
  440. <view class="sh_image">
  441. <image src="../../static/image/icon_s.png"></image>
  442. </view>
  443. <view class="box">
  444. <view class="sh_name">{{ item.userAddressDetail }}</view>
  445. <view class="sh_type">
  446. {{ item.userName }}
  447. <text>{{ item.userPhone }}</text>
  448. </view>
  449. </view>
  450. </view>
  451. </view>
  452. </view>
  453. <u-line color="#E6E6E6" />
  454. <view class="order_btn">
  455. <view class="btn1" v-if="item.indentState == '3'" @click.stop="quxiao(item.indentNumber, index)">取消订单</view>
  456. <view class="btn7" v-if="item.indentState == '3'" @click.stop="zhuanOrder(item.indentId)">转单</view>
  457. <view class="btn2" v-if="item.indentState == '3'" @click.stop="quhuo(item.indentId, index)">确认取货</view>
  458. </view>
  459. </view>
  460. </view>
  461. <empty v-if="lists.length == 0"></empty>
  462. </view>
  463. <!-- 配送中-->
  464. <view class="tabs_box" :class="{ dis: current == 2 }">
  465. <view class="order_box" v-for="(item, index) in lists" :key="index" @click="bindorderDetail(item.indentNumber, item.indentId)">
  466. <view class="kuang-li kuang-se" style="float: left; margin-top: 35%" @click.stop="checkboxChange(item)" v-if="item.checkeds">
  467. <image src="../../static/image/select.png" style="width: 34rpx; height: 24rpx; margin: 5px 0 0 4px"></image>
  468. </view>
  469. <view class="kuang-li kuang-kong" @click.stop="checkboxChange(item)" v-else style="float: left; margin-top: 35%"></view>
  470. <view class="kuang-line"></view>
  471. <view style="margin-left: 81rpx">
  472. <view class="order_success" v-if="item.indentState == '2'">
  473. <view class="order_name">待支付领取</view>
  474. <view class="order_data">{{ item.receivingTime }}</view>
  475. </view>
  476. <view class="order_success" v-if="item.indentState == '3'">
  477. <view class="order_name">待取货</view>
  478. <view class="order_data">{{ item.receivingTime }}</view>
  479. </view>
  480. <view class="order_success" v-if="item.indentState == '4'">
  481. <view class="order_name">配送中</view>
  482. <view class="order_data">{{ item.receivingTime }}</view>
  483. </view>
  484. <view class="order_success" v-if="item.indentState == '5'">
  485. <view class="order_name">已送达,客户待确认</view>
  486. <view class="order_data">{{ item.receivingTime }}</view>
  487. </view>
  488. <view class="order_success" v-if="item.indentState == '6'">
  489. <view class="order_name">客户已确认</view>
  490. <view class="order_data">{{ item.receivingTime }}</view>
  491. </view>
  492. <view class="order_success" v-if="item.indentState == '7'">
  493. <view class="order_name">已完成</view>
  494. <view class="order_data">{{ item.receivingTime }}</view>
  495. </view>
  496. <view class="order_success" v-if="item.indentState == '9'">
  497. <view class="order_name">已取消</view>
  498. <view class="order_data">{{ item.receivingTime }}</view>
  499. </view>
  500. <u-line color="#E6E6E6" />
  501. <view class="order_city">
  502. <view class="city_type">
  503. <view class="type_name" v-if="item.indentType == 1">帮我送</view>
  504. <view class="type_name" v-if="item.indentType == 2">帮我取</view>
  505. <view class="type_name" v-if="item.indentType == 3">同城帮买</view>
  506. <view class="type_name" v-if="item.indentType == 4">同城服务</view>
  507. <view class="type_name" v-if="item.indentType == 5">同城外卖</view>
  508. <view class="city_text" v-if="item.itemType">{{ item.itemType }}</view>
  509. </view>
  510. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderPaySequence">#{{ item.orderPaySequence }}</view>
  511. <view style="padding: 0 30rpx; color: #ff7f00">{{ item.shopName }}</view>
  512. <view style="padding: 0 30rpx">订单编号:{{ item.indentNumber }}</view>
  513. <!-- 帮我送/帮我取 -->
  514. <view class="city_address" v-if="item.indentType == 1 || item.indentType == 2">
  515. <view class="fh_box">
  516. <view class="fh_image">
  517. <image src="../../static/image/icon_f.png"></image>
  518. </view>
  519. <view class="box">
  520. <!-- <view style="padding:0 30rpx;font-size: 20px;">#9</view> -->
  521. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  522. <view class="fh_type">
  523. {{ item.shopName }}
  524. <text>{{ item.shopPhone }}</text>
  525. </view>
  526. </view>
  527. </view>
  528. <view class="sh_box">
  529. <view class="sh_image">
  530. <image src="../../static/image/icon_s.png"></image>
  531. </view>
  532. <view class="box">
  533. <view class="sh_name">{{ item.userAddressDetail }}</view>
  534. <view class="sh_type">
  535. {{ item.userName }}
  536. <text>{{ item.userPhone }}</text>
  537. </view>
  538. </view>
  539. </view>
  540. </view>
  541. <!-- 同城帮买 -->
  542. <view class="city_address" v-if="item.indentType == 3">
  543. <view class="fh_box" v-if="item.buy_type == 1">
  544. <view class="fh_image">
  545. <image src="../../static/image/icon_f.png"></image>
  546. </view>
  547. <view class="box">
  548. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  549. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  550. <view class="fh_type">
  551. {{ item.shopName }}
  552. <text>{{ item.shopPhone }}</text>
  553. </view>
  554. </view>
  555. </view>
  556. <view class="sh_box">
  557. <view class="sh_image">
  558. <image src="../../static/image/icon_s.png"></image>
  559. </view>
  560. <view class="box">
  561. <view class="sh_name">{{ item.userAddressDetail }}</view>
  562. <view class="sh_type">
  563. {{ item.userName }}
  564. <text>{{ item.userPhone }}</text>
  565. </view>
  566. </view>
  567. </view>
  568. </view>
  569. <!-- 同城服务 -->
  570. <view class="city_address" v-if="item.indentType == 4">
  571. <view class="sh_box">
  572. <view class="sh_image">
  573. <image src="../../static/image/icon_s.png"></image>
  574. </view>
  575. <view class="box">
  576. <view class="sh_name">{{ item.userAddressDetail }}</view>
  577. <view class="sh_type">
  578. {{ item.userName }}
  579. <text>{{ item.userPhone }}</text>
  580. </view>
  581. </view>
  582. </view>
  583. </view>
  584. <!-- 同城外卖 -->
  585. <view class="city_address" v-if="item.indentType == 5">
  586. <view class="fh_box">
  587. <view class="fh_image">
  588. <image src="../../static/image/icon_f.png"></image>
  589. </view>
  590. <view class="box">
  591. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  592. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  593. <view class="fh_type">
  594. {{ item.shopName }}
  595. <text>{{ item.shopPhone }}</text>
  596. </view>
  597. </view>
  598. </view>
  599. <view class="sh_box">
  600. <view class="sh_image">
  601. <image src="../../static/image/icon_s.png"></image>
  602. </view>
  603. <view class="box">
  604. <view class="sh_name">{{ item.userAddressDetail }}</view>
  605. <view class="sh_type">
  606. {{ item.userName }}
  607. <text>{{ item.userPhone }}</text>
  608. </view>
  609. </view>
  610. </view>
  611. </view>
  612. </view>
  613. <u-line color="#E6E6E6" />
  614. <view class="order_btn">
  615. <view class="btn1" v-if="item.indentState == '3'" @click.stop="quxiao(item.indentNumber, index)">取消订单</view>
  616. <view class="btn1" v-if="item.indentState == '6'">客户待确认</view>
  617. <view class="btn2" v-if="item.indentState == '3'" @click.stop="quhuo(item.indentId, index)">确认取货</view>
  618. <!-- <view class="flex"
  619. v-if="item.status == 3&&item.orderType==2&&item.autoSendOrder ==1 &&item.deliveryImgs==null">
  620. <view class="btn_pai" @click.stop="paiOrder(item)">拍照</view>
  621. </view> -->
  622. <view class="flex" v-if="item.indentState == '4' || (item.indentState == '7' && item.deliveryImgs == null)">
  623. <view class="btn_pai" @click.stop="paiOrder(item)">拍照</view>
  624. </view>
  625. <view class="btn7" style="margin-left: 10px" v-if="item.indentState == '4'" @click.stop="zhuanOrder(item.indentId)">转单</view>
  626. <view class="btn2" v-if="item.indentState == '4'" @click.stop="shouhuo(item, index)">确认送达</view>
  627. <view class="btn2" v-if="item.indentState == '9'">已取消</view>
  628. </view>
  629. </view>
  630. </view>
  631. <empty v-if="lists.length == 0"></empty>
  632. </view>
  633. </view>
  634. <!-- tabbar -->
  635. <view class="tabbar">
  636. <view class="tabbar_type" @click="onshow" v-if="current == 0">
  637. <view class="type_image">
  638. <image src="../../static/rider/type.png"></image>
  639. </view>
  640. 接单设置
  641. </view>
  642. <view class="tabbar_btn" @click="bindup">
  643. <view class="btn" v-show="seen">开始接单</view>
  644. <view class="btn3" v-show="!seen">停止接单</view>
  645. </view>
  646. </view>
  647. <!-- 单个订单转单 -->
  648. <u-popup v-model="showOrder" mode="center" border-radius="18" :closeable="closeable" close-icon="close-circle" close-icon-size="45" width="580rpx" height="600rpx">
  649. <view class="receipt_code">
  650. <view class="code_title">填写转单信息(二选一即可)</view>
  651. <u-input v-model="phone" type="number" placeholder="填写转单人手机号码" :border="border" />
  652. <u-input v-model="zhuanName" type="text" placeholder="填写转单人姓名" :border="border" />
  653. <view class="sure" style="margin-top: 40rpx" @click="zhuandan">确定</view>
  654. </view>
  655. </u-popup>
  656. <!-- 一键转单弹框 -->
  657. <u-popup v-model="showsZhuan" mode="center" border-radius="18" :closeable="closeable" close-icon-size="45" width="690rpx" height="1110rpx">
  658. <view class="receipt_zhuan">
  659. <view class="zhuan_title">转单确认</view>
  660. <view class="zhuan-mode">
  661. <view class="zhuan-title">待转订单</view>
  662. <view class="zhuan-que">
  663. <scroll-view style="height: 670rpx" :scroll-y="true" class="block-main block-two-level block-pad" @scrolltolower="scrolltolowerDai">
  664. <view class="zhuan-ding" v-for="(item, index) in listDai" :key="index">
  665. <view class="ding-1">
  666. <view class="ding-shop">{{ item.shopName }}</view>
  667. <view class="ding-xuhao">#{{ item.orderPaySequence }}</view>
  668. <image
  669. src="../../static/image/shan.png"
  670. @click.stop="deleteDing(item, index)"
  671. style="width: 48rpx; height: 48rpx; float: right; margin: -10rpx 20rpx 0 0"
  672. ></image>
  673. </view>
  674. <view class="ding-2">
  675. <view class="ding-shop">{{ item.userName }}</view>
  676. <view class="ding-xuhao">{{ item.userPhone }}</view>
  677. </view>
  678. <view class="ding-2">
  679. {{ item.userAddressDetail }}
  680. </view>
  681. </view>
  682. <u-loadmore icon :status="statusDai" />
  683. </scroll-view>
  684. </view>
  685. <view class="zhuan-title">选择转单人</view>
  686. <view style="position: relative; margin: 22rpx 0 0 25rpx; height: 60rpx">
  687. <view class="zhuan-btu1" @click="selectPeople">选择</view>
  688. <view class="zhuan-text">{{ riderName }}</view>
  689. <image v-if="riderName" @click="deleteRider" src="../../static/image/delete.png" style="width: 30rpx; height: 30rpx; margin: 15rpx 0 0 10rpx"></image>
  690. </view>
  691. <view style="position: relative; margin: 36rpx 20rpx 0 20rpx; height: 90rpx">
  692. <view class="zhuan-btu2" @click="quxiaoZhuan">取消</view>
  693. <view class="zhuan-btu3" @click="transformOrder">确认</view>
  694. </view>
  695. </view>
  696. </view>
  697. </u-popup>
  698. <!-- 选择转单人弹框 -->
  699. <u-popup v-model="showsSelect" mode="center" border-radius="18" :closeable="closeable" close-icon-size="45" width="690rpx" height="399px">
  700. <view class="receipt_zhuan">
  701. <view class="zhuan_title">选择转单人</view>
  702. <view class="zhuan-mode">
  703. <view class="search-bar-box">
  704. <image class="search-span" src="../../static/image/sousuo.png" />
  705. <input type="text" v-model="keywordRider" placeholder="请输入手机号码或骑手姓名" class="search-text" @input="searchKeywordRider" focus />
  706. </view>
  707. <view class="zhuan-que">
  708. <scroll-view style="height: 670rpx" :scroll-y="true" class="block-main block-two-level block-pad" @scrolltolower="scrolltolower">
  709. <view class="xuan-list" v-for="(item, index) in listRider" :key="index" @click="getRider(item)">
  710. <image :src="item.avatar" style="width: 80rpx; height: 80rpx; float: left; margin: 30rpx 0 0 30rpx; border-radius: 50%"></image>
  711. <view class="xuan-right">
  712. <view class="ding-3">
  713. <view class="ding-shop">{{ item.userName }}</view>
  714. <view class="ding-xuhao">{{ item.phone }}</view>
  715. </view>
  716. <view class="ding-2" style="margin: 0 0 0 0">
  717. {{ item.stationName }}
  718. </view>
  719. </view>
  720. <u-line color="#E6E6E6" />
  721. </view>
  722. <!-- <view class="xuan-list2">
  723. <image src="../../static/logo.png" style="width: 80rpx;height: 80rpx;float: left;margin: 30rpx 0 0 30rpx;"></image>
  724. <view class="xuan-right">
  725. <view class="ding-3">
  726. <view class="ding-shop">张力离</view>
  727. <view class="ding-xuhao">12378325632</view>
  728. </view>
  729. <view class="ding-2" style="margin: 0 0 0 0;">
  730. 墨轩湖校区骑手团队
  731. </view>
  732. </view>
  733. <u-line color="#E6E6E6" />
  734. </view> -->
  735. <!-- 状态:加载更多、没有更多了... -->
  736. <u-loadmore icon :status="status" />
  737. </scroll-view>
  738. </view>
  739. </view>
  740. </view>
  741. </u-popup>
  742. <!-- 接单设置弹框 -->
  743. <u-popup v-model="show" mode="bottom" height="600rpx" :closeable="true" close-icon="close-circle" close-icon-size="50" close-icon-color="#CCCCCC" @close="closePopup()">
  744. <view class="popup_box">
  745. <view class="title">当前接单模式</view>
  746. <!-- <view class="part_one">
  747. <view class="left">
  748. <view class="gotype">近单模式</view>
  749. <view class="tit">推单范围{{distance?distance:'0'}}</view>
  750. </view>
  751. <view class="right">
  752. <u-switch v-model="checked" size="40" inactive-color="#CCCCCC" active-color="#FF6A04"
  753. @change="switch1">
  754. </u-switch>
  755. </view>
  756. </view>
  757. <view class="part_one">
  758. <view class="left">
  759. <view class="gotype">同城模式</view>
  760. <view class="tit">推单范围{{distance?distance:'0'}}</view>
  761. </view>
  762. <view class="right">
  763. <u-switch v-model="check" size="40" inactive-color="#CCCCCC" active-color="#FF6A04"
  764. @change="switch2"></u-switch>
  765. </view>
  766. </view> -->
  767. <view class="part_two">
  768. <view class="two_left">接单类型</view>
  769. <view class="two_right" @click="showModals()">
  770. {{ indentTypeName }}
  771. <u-icon name="arrow-right" color="#999999"></u-icon>
  772. </view>
  773. </view>
  774. <view class="part_two">
  775. <view class="two_left">常驻送货区域</view>
  776. <view class="two_right" @click="dizhis()">
  777. {{ quyu }}
  778. <u-icon name="arrow-right" color="#999999"></u-icon>
  779. </view>
  780. </view>
  781. <view class="part_one" v-if="checkxdd != '否'">
  782. <view class="left">
  783. <view class="gotype">新订单通知</view>
  784. <view class="tit">开启后{{ xddNumber }}KM内,系统自动推送新订单通知</view>
  785. </view>
  786. <view class="right">
  787. <u-switch v-model="xddcheck" size="40" inactive-color="#CCCCCC" active-color="#FF6A04" @change="switchxdd"></u-switch>
  788. </view>
  789. </view>
  790. <view class="part_two">
  791. <view class="two_left">同时接单量</view>
  792. <view class="two_right">
  793. 最大({{ orderNum }}单)
  794. <!-- <u-icon name="arrow-right" color="#999999"></u-icon> -->
  795. </view>
  796. </view>
  797. <view class="part_two">
  798. <view class="two_left">骑手所在站点</view>
  799. <view class="two_right">
  800. {{ qiZhandian }}
  801. <!-- <u-icon name="arrow-right" color="#999999"></u-icon> -->
  802. </view>
  803. </view>
  804. </view>
  805. </u-popup>
  806. <u-popup v-model="Authorization" mode="center" close-icon="close-circle" close-icon-pos="top-right" close-icon-color="#8f9298" close-icon-size="50">
  807. <view class="contentview">
  808. <view class="title">隐私保护指引</view>
  809. <view class="des" @click="openPrivacyContract">
  810. 在使用当前小程序服务之前,请仔细阅读
  811. <text style="color: #ff7f00">{{ privacyContractName }}</text>
  812. 。如你同意{{ privacyContractName }},请点击“同意”开始使用。
  813. </view>
  814. <view class="btns">
  815. <button class="item reject" @click="exitMiniProgram">拒绝</button>
  816. <button id="agree-btn" class="item agree" open-type="agreePrivacyAuthorization" @agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
  817. </view>
  818. </view>
  819. </u-popup>
  820. <!-- 类型选择-->
  821. <u-modal v-model="showModal" title="选择订单类型" :show-cancel-button="true" @confirm="confirm()">
  822. <view class="slot-content">
  823. <u-radio-group v-model="indentTypeName" @change="radioGroupChange" width="50%">
  824. <u-radio v-for="(item, index) in indentTypeList" :key="index" :name="item.name" :disabled="item.disabled" @change="radioChange">
  825. {{ item.name }}
  826. </u-radio>
  827. </u-radio-group>
  828. </view>
  829. </u-modal>
  830. <!-- 收货码弹框 -->
  831. <u-popup v-model="shows" mode="center" border-radius="18" :closeable="closeable" close-icon="close-circle" close-icon-size="45" width="580rpx" height="400rpx">
  832. <view class="receipt_code">
  833. <view class="code_title">填写收货码</view>
  834. <u-input v-model="shouhuoma" type="text" placeholder="请输入收货码" :border="true" />
  835. <view class="sure" @click="querenSh">确定</view>
  836. </view>
  837. </u-popup>
  838. <!-- 确认收货弹出框 -->
  839. <u-popup
  840. v-model="alertPhone"
  841. mode="center"
  842. border-radius="18"
  843. :closeable="closeable"
  844. close-icon="close-circle"
  845. close-icon-size="45"
  846. width="680rpx"
  847. height="540rpx"
  848. @close="onclose"
  849. >
  850. <view class="receipt_code">
  851. <view class="phone_title">图片凭证</view>
  852. <view class="phone_title2">请在确认外卖送达后、通过拍照,进行现场还原</view>
  853. <view>
  854. <view class="flex" style="overflow: hidden; flex-wrap: wrap">
  855. <view v-if="goodsPicture.length">
  856. <view class="margin-top flex margin-right-sm flex-wrap">
  857. <view
  858. class="flex"
  859. style="width: 200rpx; height: 200rpx; margin-right: 2rpx; position: relative"
  860. v-for="(image, index) in goodsPicture"
  861. :key="index"
  862. >
  863. <image :src="image" style="width: 100%; height: 100%"></image>
  864. <view style="z-index: 9; position: absolute; top: -15rpx; right: -15rpx" @click="removeImg(index, 'lb')">
  865. <u-icon name="close-circle-fill" color="#FCD202" size="50rpx"></u-icon>
  866. </view>
  867. </view>
  868. </view>
  869. </view>
  870. <view class="margin-top" @click="addImages(1)" v-if="goodsPicture.length <= 1">
  871. <view style="width: 200rpx; height: 200rpx; background: #f4f5f6" class="flex justify-center align-center">
  872. <view>
  873. <view class="text-center">
  874. <image :src="Tupian('/duanxin/addimg.png')" style="width: 65rpx; height: 55rpx"></image>
  875. </view>
  876. <view class="text-center text-black">添加图片</view>
  877. </view>
  878. </view>
  879. </view>
  880. </view>
  881. </view>
  882. <!-- <view class="receipt_code" v-if="alertduan">
  883. <view class="code_title">是否确认送达</view>
  884. <view class="code_title2">已选订单:1单</view>
  885. <view class="code_title2">通知形式:短信</view>
  886. <view class="code_title2">通知内容:{{duanxin[0].templateContent.substring(0, 21)}}{{qiPhone}}</view>
  887. <view class="sure" @click="querenSh">确认送达</view>
  888. </view> -->
  889. <view class="sure" @click="querenduanxin">确认拍照</view>
  890. </view>
  891. </u-popup>
  892. <!-- 确认收货选择短信框 -->
  893. <u-popup
  894. v-model="alertduan"
  895. v-if="alertduan"
  896. mode="center"
  897. border-radius="18"
  898. :closeable="closeable"
  899. close-icon="close-circle"
  900. close-icon-size="45"
  901. width="680rpx"
  902. height="600rpx"
  903. @close="onclose2"
  904. >
  905. <view class="receipt_code">
  906. <view class="code_title">是否确认送达</view>
  907. <view class="code_title2">已选订单:1单</view>
  908. <view class="code_title2">通知形式:短信</view>
  909. <view class="code_title2">通知内容:{{ duanxin[0].templateContent.substring(0, 21) }}{{ qiPhone }}</view>
  910. <view class="sure" @click="querenSh">确认送达</view>
  911. </view>
  912. </u-popup>
  913. <!-- 当前订单无法接的筛选条件 -->
  914. <u-popup v-model="jiedanNo" mode="center" border-radius="18" width="680rpx" height="600rpx">
  915. <view style="margin-top: 30%; margin-left: 34%">
  916. <image style="width: 200rpx; height: 200rpx" :src="Tupian('/qishou/wufajie.png')"></image>
  917. <view>当前订单无法接单</view>
  918. </view>
  919. </u-popup>
  920. <!-- 当前订单已接收 -->
  921. <u-popup v-model="saomaPeisong" v-if="saomaPeisong" mode="center" border-radius="18" width="680rpx" height="600rpx">
  922. <view>
  923. <view class="order_box" v-for="(item, index) in list2" :key="index" @click="bindorderDetail(item.indentNumber, item.indentId)">
  924. <view class="order_success" v-if="item.indentState == '2'">
  925. <view class="order_name">待支付领取</view>
  926. <view class="order_data">{{ item.receivingTime }}</view>
  927. </view>
  928. <view class="order_success" v-if="item.indentState == '3'">
  929. <view class="order_name">待取货</view>
  930. <view class="order_data">{{ item.receivingTime }}</view>
  931. </view>
  932. <view class="order_success" v-if="item.indentState == '4'">
  933. <view class="order_name">配送中</view>
  934. <view class="order_data">{{ item.receivingTime }}</view>
  935. </view>
  936. <view class="order_success" v-if="item.indentState == '5'">
  937. <view class="order_name">已送达,客户待确认</view>
  938. <view class="order_data">{{ item.receivingTime }}</view>
  939. </view>
  940. <view class="order_success" v-if="item.indentState == '6'">
  941. <view class="order_name">客户已确认</view>
  942. <view class="order_data">{{ item.receivingTime }}</view>
  943. </view>
  944. <view class="order_success" v-if="item.indentState == '7'">
  945. <view class="order_name">已完成</view>
  946. <view class="order_data">{{ item.receivingTime }}</view>
  947. </view>
  948. <view class="order_success" v-if="item.indentState == '9'">
  949. <view class="order_name">已取消</view>
  950. <view class="order_data">{{ item.receivingTime }}</view>
  951. </view>
  952. <u-line color="#E6E6E6" />
  953. <view class="order_city">
  954. <view class="city_type">
  955. <view class="type_name" v-if="item.indentType == 1">帮我送</view>
  956. <view class="type_name" v-if="item.indentType == 2">帮我取</view>
  957. <view class="type_name" v-if="item.indentType == 3">同城帮买</view>
  958. <view class="type_name" v-if="item.indentType == 4">同城服务</view>
  959. <view class="type_name" v-if="item.indentType == 5">同城外卖</view>
  960. <view class="city_text" v-if="item.itemType">{{ item.itemType }}</view>
  961. </view>
  962. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderPaySequence">#{{ item.orderPaySequence }}</view>
  963. <view style="padding: 0 30rpx; color: #ff7f00">{{ item.shopName }}</view>
  964. <view style="padding: 0 30rpx">订单编号:{{ item.indentNumber }}</view>
  965. <!-- 帮我送/帮我取 -->
  966. <view class="city_address" v-if="item.indentType == 1 || item.indentType == 2">
  967. <view class="fh_box">
  968. <view class="fh_image">
  969. <image src="../../static/image/icon_f.png"></image>
  970. </view>
  971. <view class="box">
  972. <!-- <view style="padding:0 30rpx;font-size: 20px;">#9</view> -->
  973. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  974. <view class="fh_type">
  975. {{ item.shopName }}
  976. <text>{{ item.shopPhone }}</text>
  977. </view>
  978. </view>
  979. </view>
  980. <view class="sh_box">
  981. <view class="sh_image">
  982. <image src="../../static/image/icon_s.png"></image>
  983. </view>
  984. <view class="box">
  985. <view class="sh_name">{{ item.userAddressDetail }}</view>
  986. <view class="sh_type">
  987. {{ item.userName }}
  988. <text>{{ item.userPhone }}</text>
  989. </view>
  990. </view>
  991. </view>
  992. </view>
  993. <!-- 同城帮买 -->
  994. <view class="city_address" v-if="item.indentType == 3">
  995. <view class="fh_box" v-if="item.buy_type == 1">
  996. <view class="fh_image">
  997. <image src="../../static/image/icon_f.png"></image>
  998. </view>
  999. <view class="box">
  1000. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  1001. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  1002. <view class="fh_type">
  1003. {{ item.shopName }}
  1004. <text>{{ item.shopPhone }}</text>
  1005. </view>
  1006. </view>
  1007. </view>
  1008. <view class="sh_box">
  1009. <view class="sh_image">
  1010. <image src="../../static/image/icon_s.png"></image>
  1011. </view>
  1012. <view class="box">
  1013. <view class="sh_name">{{ item.userAddressDetail }}</view>
  1014. <view class="sh_type">
  1015. {{ item.userName }}
  1016. <text>{{ item.userPhone }}</text>
  1017. </view>
  1018. </view>
  1019. </view>
  1020. </view>
  1021. <!-- 同城服务 -->
  1022. <view class="city_address" v-if="item.indentType == 4">
  1023. <view class="sh_box">
  1024. <view class="sh_image">
  1025. <image src="../../static/image/icon_s.png"></image>
  1026. </view>
  1027. <view class="box">
  1028. <view class="sh_name">{{ item.userAddressDetail }}</view>
  1029. <view class="sh_type">
  1030. {{ item.userName }}
  1031. <text>{{ item.userPhone }}</text>
  1032. </view>
  1033. </view>
  1034. </view>
  1035. </view>
  1036. <!-- 同城外卖 -->
  1037. <view class="city_address" v-if="item.indentType == 5">
  1038. <view class="fh_box">
  1039. <view class="fh_image">
  1040. <image src="../../static/image/icon_f.png"></image>
  1041. </view>
  1042. <view class="box">
  1043. <!-- <view style="padding:0 30rpx;font-size: 20px;" v-if="item.orderPaySequence">#{{item.orderPaySequence}}</view> -->
  1044. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  1045. <view class="fh_type">
  1046. {{ item.shopName }}
  1047. <text>{{ item.shopPhone }}</text>
  1048. </view>
  1049. </view>
  1050. </view>
  1051. <view class="sh_box">
  1052. <view class="sh_image">
  1053. <image src="../../static/image/icon_s.png"></image>
  1054. </view>
  1055. <view class="box">
  1056. <view class="sh_name">{{ item.userAddressDetail }}</view>
  1057. <view class="sh_type">
  1058. {{ item.userName }}
  1059. <text>{{ item.userPhone }}</text>
  1060. </view>
  1061. </view>
  1062. </view>
  1063. </view>
  1064. </view>
  1065. <u-line color="#E6E6E6" />
  1066. <view class="order_btn">
  1067. <view class="btn1" v-if="item.indentState == '3'" @click.stop="quxiao(item.indentNumber, index)">取消订单</view>
  1068. <view class="btn1" v-if="item.indentState == '6'">客户待确认</view>
  1069. <view class="btn2" v-if="item.indentState == '3'" @click.stop="quhuo(item.indentId, index)">确认取货</view>
  1070. <!-- <view class="flex"
  1071. v-if="item.status == 3&&item.orderType==2&&item.autoSendOrder ==1 &&item.deliveryImgs==null">
  1072. <view class="btn_pai" @click.stop="paiOrder(item)">拍照</view>
  1073. </view> -->
  1074. <view class="flex" v-if="item.indentState == '4' || (item.indentState == '7' && item.deliveryImgs == null)">
  1075. <view class="btn_pai" @click.stop="paiOrder(item)">拍照</view>
  1076. </view>
  1077. <view class="btn7" style="margin-left: 10px" v-if="item.indentState == '4'" @click.stop="zhuanOrder(item.indentId)">转单</view>
  1078. <view class="btn2" v-if="item.indentState == '4'" @click.stop="shouhuo(item, index)">确认送达</view>
  1079. <view class="btn2" v-if="item.indentState == '9'">已取消</view>
  1080. </view>
  1081. </view>
  1082. <empty v-if="list2.length == 0"></empty>
  1083. </view>
  1084. </u-popup>
  1085. </view>
  1086. <!-- 悬浮球 -->
  1087. <view style="width: 140rpx; height: 140rpx; position: fixed; bottom: 130px; right: 20rpx">
  1088. <!-- 上线 -->
  1089. <image v-if="!seen" :src="Tupian('/qishou/sao.png')" style="width: 100%; height: 100%" @click="saoma()" mode=""></image>
  1090. <!-- 下线 -->
  1091. <image v-if="seen" :src="Tupian('/qishou/sao.png')" style="width: 100%; height: 100%" @click="bindorder1()" mode=""></image>
  1092. <image v-if="!seen" :src="Tupian('/qishou/lu.png')" style="width: 100%; height: 100%" @click="luma()" mode=""></image>
  1093. <image v-if="seen" :src="Tupian('/qishou/lu.png')" style="width: 100%; height: 100%" @click="bindorder1()" mode=""></image>
  1094. </view>
  1095. <!-- 用于图片压缩的canvas画布 -->
  1096. <canvas
  1097. :style="{
  1098. width: cw + 'px',
  1099. height: cw + 'px',
  1100. position: 'absolute',
  1101. zIndex: -1,
  1102. left: '-10000rpx',
  1103. top: '-10000rpx'
  1104. }"
  1105. canvas-id="zipCanvas"
  1106. ></canvas>
  1107. <!--画布结束-->
  1108. </view>
  1109. </template>
  1110. <script>
  1111. import empty from '@/components/empty'
  1112. import { requestAndroidPermission, gotoAppPermissionSetting } from '@/components/permission.js'
  1113. import configdata from '@/common/config.js'
  1114. import getLessLimitSizeImage from '@/utils/imageCompress.js'
  1115. export default {
  1116. components: {
  1117. empty
  1118. },
  1119. onShareAppMessage(res) {
  1120. //发送给朋友
  1121. return {
  1122. title: this.tuiguang,
  1123. path: '/pages/index/index',
  1124. imageUrl: this.tuiguangImg
  1125. }
  1126. },
  1127. onShareTimeline(res) {
  1128. //分享到朋友圈
  1129. return {
  1130. title: this.tuiguang,
  1131. path: '/pages/index/index',
  1132. imageUrl: this.tuiguangImg
  1133. }
  1134. },
  1135. data() {
  1136. return {
  1137. Authorization: false,
  1138. alertPhone: false, //确认收货拍照弹出框
  1139. alertduan: false, //确认收货选择短信框
  1140. saomaPeisong: false, //扫码后配送中的单
  1141. privacyContractName: '',
  1142. checkxdd: '否',
  1143. xddNumber: 0,
  1144. xddcheck: true,
  1145. avatar: '', //头像
  1146. // 接单设置弹框
  1147. show: false,
  1148. tuiguang: '',
  1149. tuiguangImg: '',
  1150. closeable: true,
  1151. checked: false,
  1152. check: true,
  1153. showModal: false,
  1154. // head
  1155. tit: '休息中',
  1156. seen: true,
  1157. tab: [
  1158. {
  1159. name: '接单池'
  1160. },
  1161. {
  1162. name: '待取货'
  1163. },
  1164. {
  1165. name: '配送中'
  1166. },
  1167. {
  1168. name: '我的订单'
  1169. }
  1170. ],
  1171. current: 0,
  1172. page1: 1,
  1173. page2: 1,
  1174. page3: 1,
  1175. list_shanghu: [],
  1176. list_box: [],
  1177. list_tip: [],
  1178. take_list: [],
  1179. longitude: '', //经度
  1180. latitude: '', //纬度
  1181. indentType: null, //订单类型
  1182. indentTypeName: '全部',
  1183. indentTypeList: [
  1184. {
  1185. name: '全部',
  1186. disabled: false
  1187. },
  1188. {
  1189. name: '帮我取',
  1190. disabled: false
  1191. },
  1192. {
  1193. name: '帮我送',
  1194. disabled: false
  1195. },
  1196. {
  1197. name: '同城帮买',
  1198. disabled: false
  1199. },
  1200. {
  1201. name: '同城服务',
  1202. disabled: false
  1203. },
  1204. {
  1205. name: '同城外卖',
  1206. disabled: false
  1207. }
  1208. ],
  1209. quyu: '设置自己的常在位置',
  1210. quyuLongitude: '',
  1211. quyuLatitude: '',
  1212. totalCount1: 0, //最后一页
  1213. totalCount2: 0, //最后一页
  1214. totalCount3: 0, //最后一页
  1215. indentState: 3,
  1216. // lists: {
  1217. // list: []
  1218. // },
  1219. lists: [],
  1220. shows: false,
  1221. shouhuoma: '',
  1222. userId: '', //用户id
  1223. checkCertification: '', //是否实名认证
  1224. receivingPettern: '2', //1近单模式 2同城模式
  1225. province: '',
  1226. city: '',
  1227. district: '',
  1228. time: '',
  1229. distance: '',
  1230. jiedanSuccess: '',
  1231. jiedan: '',
  1232. arr: [],
  1233. showModal111: true,
  1234. orderNum: 0,
  1235. qiZhandian: '',
  1236. goodsPicture: [],
  1237. count: 3,
  1238. duanxin: [], //发送的短信
  1239. qiPhone: '', //骑手电话
  1240. ifrenwu: false,
  1241. shopId: '',
  1242. shoudanma: '', //收单码
  1243. jiedanNo: false, //当前不能接
  1244. list2: [],
  1245. //画板边长默认是屏幕宽度,正方形画布
  1246. cw: uni.getSystemInfoSync().windowWidth,
  1247. tianToken: '', //天地图token
  1248. showOrder: false, //单个订单转单弹框
  1249. phone: '',
  1250. zhuanName: '', //转单人姓名
  1251. indentId: '',
  1252. keyword: '', //收货地址或收货人手机号码订单搜索
  1253. showsZhuan: false, //一键转单弹框
  1254. showsSelect: false, //选择转单人弹框
  1255. indentIds: [], //选择的订单id数组
  1256. checkedz: false, //是否全部选中
  1257. riderId: '', //被转单骑手id
  1258. riderName: '', //被转单骑手姓名
  1259. //待转单列表
  1260. statusDai: 'loadmore', // 状态-正在加载中
  1261. pageDai: 1, // 当前页
  1262. sizeDai: 10, // 每页数量
  1263. pageCountDai: '', // 总页数
  1264. listDai: [], //待转订单
  1265. // 骑手转单人列表
  1266. status: 'loadmore', // 状态-正在加载中
  1267. pageRider: 1, // 当前页
  1268. sizeRider: 10, // 每页数量
  1269. pageCountRider: '', // 总页数
  1270. keywordRider: '', //搜索关键字
  1271. listRider: []
  1272. }
  1273. },
  1274. onHide() {
  1275. clearInterval(this.time)
  1276. },
  1277. onLoad() {
  1278. console.log(this.shouhuoma, '码')
  1279. uni.showLoading({
  1280. title: '加载中...',
  1281. mask: true // 是否显示透明蒙层,防止触摸穿透
  1282. })
  1283. var dizhi = uni.getStorageSync('dizhi')
  1284. if (dizhi.longitude) {
  1285. this.longitude = dizhi.longitude
  1286. this.latitude = dizhi.latitude
  1287. }
  1288. this.getShanglist()
  1289. // this.taskData()
  1290. let that = this
  1291. this.time = setInterval(() => {
  1292. // this.getShanglist()
  1293. // that.taskData()
  1294. that.getLocation()
  1295. }, 5000)
  1296. // #ifdef MP-WEIXIN
  1297. try {
  1298. wx.getPrivacySetting({
  1299. success: (res) => {
  1300. console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName)
  1301. if (res.needAuthorization) {
  1302. that.privacyContractName = res.privacyContractName
  1303. // this.$refs.popusAuthorization.open();
  1304. that.Authorization = true
  1305. }
  1306. },
  1307. fail: () => {},
  1308. complete: () => {}
  1309. })
  1310. } catch (e) {
  1311. //TODO handle the exception
  1312. }
  1313. // #endif
  1314. },
  1315. onShow() {
  1316. let that = this
  1317. that.getOrderNum()
  1318. that.getZhandian()
  1319. //获取天地图token
  1320. that.$Request.getT('/app/common/type/417').then((res) => {
  1321. if (res.code === 0) {
  1322. that.tianToken = res.data.value
  1323. }
  1324. })
  1325. //是否开启骑手新订单推送 340
  1326. that.$Request.getT('/app/common/type/340').then((res) => {
  1327. if (res.code === 0) {
  1328. that.checkxdd = res.data.value
  1329. }
  1330. })
  1331. //骑手新订单通知范围(km) 339
  1332. that.$Request.getT('/app/common/type/339').then((res) => {
  1333. if (res.code === 0) {
  1334. that.xddNumber = res.data.value
  1335. }
  1336. })
  1337. that.$Request.getT('/app/common/type/331').then((res) => {
  1338. if (res.code === 0) {
  1339. uni.setStorageSync('tuiguang', res.data.value)
  1340. that.tuiguang = res.data.value
  1341. }
  1342. })
  1343. that.$Request.getT('/app/common/type/332').then((res) => {
  1344. if (res.code === 0) {
  1345. uni.setStorageSync('tuiguangImg', res.data.value)
  1346. that.tuiguangImg = res.data.value
  1347. }
  1348. })
  1349. // 自动派单距离
  1350. that.$Request.getT('/app/common/type/303').then((res) => {
  1351. if (res.code === 0) {
  1352. if (res.data.value > 1000) {
  1353. that.distance = res.data.value / 1000 + '公里'
  1354. } else if (res.data.value > 100) {
  1355. that.distance = res.data.value + 'm'
  1356. }
  1357. }
  1358. })
  1359. //骑手端接单成功通知
  1360. that.$Request.getT('/app/common/type/310').then((res) => {
  1361. if (res.code === 0) {
  1362. // this.jiedan = res.data.value
  1363. that.arr.push(res.data.value)
  1364. }
  1365. })
  1366. //骑手端订单完成通知
  1367. that.$Request.getT('/app/common/type/311').then((res) => {
  1368. if (res.code === 0) {
  1369. // this.jiedanSuccess = res.data.value
  1370. that.arr.push(res.data.value)
  1371. }
  1372. })
  1373. //用户端骑手转单订单通知 338
  1374. that.$Request.getT('/app/common/type/338').then((res) => {
  1375. if (res.code === 0) {
  1376. that.arr.push(res.data.value)
  1377. }
  1378. })
  1379. //用户端骑手转单订单通知 335
  1380. // that.$Request.getT('/app/common/type/335').then(res => {
  1381. // if (res.code === 0) {
  1382. // that.arr.push(res.data.value)
  1383. // }
  1384. // });
  1385. that.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/logo.png'
  1386. that.userId = uni.getStorageSync('userId')
  1387. if (that.userId) {
  1388. console.log(that.userId, '用户id')
  1389. uni.getLocation({
  1390. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  1391. success: function (res) {
  1392. console.log('当前位置的经度:' + res.longitude)
  1393. console.log('当前位置的纬度:' + res.latitude)
  1394. // uni.request({
  1395. // url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
  1396. // success: res => {
  1397. // console.log(res,'ppp运行')
  1398. // that.province = res.data.result.addressComponent.province
  1399. // that.city = res.data.result.addressComponent.city
  1400. // that.district = res.data.result.addressComponent.county
  1401. // },
  1402. // fail: err => {
  1403. // console.log("请求超时");
  1404. // console.log(err);
  1405. // },
  1406. // // complete: () => { //无论成功都会调用
  1407. // // uni.hideLoading()
  1408. // // }
  1409. // })
  1410. // let data = {
  1411. // lat: res.latitude,
  1412. // lng: res.longitude
  1413. // }
  1414. // that.$Request.getT('/app/Login/selectCity', data).then((res) => {
  1415. // if (res.code == 0) {
  1416. // console.log(res,'天天')
  1417. // that.province = res.data.province
  1418. // that.city = res.data.city
  1419. // that.district = res.data.district
  1420. // }
  1421. // })
  1422. },
  1423. fail(e) {
  1424. uni.hideLoading()
  1425. uni.showModal({
  1426. title: '温馨提示',
  1427. content: '您的定位权限未开启,请开启后再来操作吧!',
  1428. showCancel: true,
  1429. cancelText: '取消',
  1430. confirmText: '确认',
  1431. success: (res) => {
  1432. if (res.confirm) {
  1433. // #ifdef MP-WEIXIN
  1434. uni.openSetting({
  1435. // 打开设置页
  1436. success(rea) {
  1437. console.log(rea.authSetting)
  1438. }
  1439. })
  1440. // #endif
  1441. // #ifdef APP-PLUS
  1442. gotoAppPermissionSetting()
  1443. // #endif
  1444. }
  1445. }
  1446. })
  1447. }
  1448. })
  1449. that.getUserInfo()
  1450. }
  1451. // #ifdef MP-WEIXIN
  1452. //订阅
  1453. if (that.userId) {
  1454. if (that.showModal111) {
  1455. that.openMsg()
  1456. }
  1457. }
  1458. // #endif
  1459. },
  1460. methods: {
  1461. //扫码取单,订单直接变为配送中
  1462. saoma() {
  1463. uni.showLoading({
  1464. title: '扫码中...',
  1465. mask: true // 是否显示透明蒙层,防止触摸穿透
  1466. })
  1467. var that = this
  1468. wx.scanCode({
  1469. onlyFromCamera: false, // 只允许从相机扫码
  1470. success(res) {
  1471. console.log('扫码成功:' + JSON.stringify(res) + res.result)
  1472. that.shoudanma = res.result
  1473. setTimeout(function () {
  1474. that.saomaCha()
  1475. }, 700)
  1476. //扫码成功并且有订单接单成功,变为配送中
  1477. //扫码成功后调用收单接口,判断是否成功和是否为配送中
  1478. // that.current = 2
  1479. // console.log(that.current,'that.current')
  1480. //当前订单无法接
  1481. // that.jiedanNo=true
  1482. // 扫码成功后 在此处理接下来的逻辑
  1483. // that.setData({
  1484. // shoudanma: res.result
  1485. // })
  1486. }
  1487. })
  1488. uni.hideLoading()
  1489. },
  1490. //录码收单
  1491. luma() {
  1492. uni.navigateTo({
  1493. url: '/pages/index/luma'
  1494. })
  1495. },
  1496. // 扫码查询订单列表
  1497. saomaCha() {
  1498. uni.showLoading({
  1499. title: '加载中',
  1500. mask: true // 是否显示透明蒙层,防止触摸穿透
  1501. })
  1502. var that = this
  1503. that.list2 = []
  1504. that.$Request
  1505. .getT(`/app/tbindent/get-by-code/${that.shoudanma}`, {
  1506. ///app/tbindent/selectTbIndentPage
  1507. // page: 1,
  1508. // limit: 10,
  1509. // acquireCode: that.shoudanma
  1510. })
  1511. .then((res) => {
  1512. console.log(res, 'lk')
  1513. uni.hideLoading()
  1514. if (res.data) {
  1515. if (res.data.length > 0) {
  1516. for (var i = 0; i < res.data.length; i++) {
  1517. if (res.data.distancess > 1000) {
  1518. res.data.distancess = Number(res.data.distancess / 1000).toFixed(2) + 'km'
  1519. } else {
  1520. if (res.data.distancess == '0') {
  1521. res.data.distancess = '0m'
  1522. } else {
  1523. res.data.distancess = Number(res.data.distancess).toFixed(1) + 'm'
  1524. }
  1525. }
  1526. if (res.data.distancessd > 1000) {
  1527. res.data.distancessd = Number(res.data.distancessd / 1000).toFixed(2) + 'km'
  1528. } else {
  1529. if (res.data.distancessd == '0') {
  1530. res.data.distancessd = '0m'
  1531. } else {
  1532. res.data.distancessd = Number(res.data.distancessd).toFixed(1) + 'm'
  1533. }
  1534. }
  1535. }
  1536. }
  1537. var saomajie = []
  1538. saomajie.push(res.data)
  1539. that.list2.push(res.data)
  1540. console.log(saomajie, '列表')
  1541. // if (that.list2.length > 0) {
  1542. if (that.list2[0].indentState == '2' || that.list2[0].indentState == '3') {
  1543. //收单
  1544. that.shouorder()
  1545. } else if (that.list2[0].indentState == '4') {
  1546. that.saomaPeisong = true
  1547. } else {
  1548. that.jiedanNo = true
  1549. that.shoudanma = ''
  1550. }
  1551. // } else {
  1552. // // that.saomaPeisong=true
  1553. // that.jiedanNo = true
  1554. // that.shoudanma = ''
  1555. // }
  1556. } else if (res.msg == '当前订单无法接单') {
  1557. that.jiedanNo = true
  1558. that.shoudanma = ''
  1559. }
  1560. that.$forceUpdate()
  1561. uni.stopPullDownRefresh()
  1562. // 加载提示关闭
  1563. uni.hideLoading()
  1564. })
  1565. },
  1566. // 收单
  1567. shouorder() {
  1568. let that = this
  1569. if (that.checkCertification == 0) {
  1570. uni.showToast({
  1571. title: '实名认证审核中,无法收单',
  1572. icon: 'none'
  1573. })
  1574. return
  1575. }
  1576. if (that.checkCertification == 2) {
  1577. uni.showToast({
  1578. title: '实名认证未通过,无法收单',
  1579. icon: 'none'
  1580. })
  1581. return
  1582. }
  1583. uni.showLoading({
  1584. title: '加载中',
  1585. mask: true // 是否显示透明蒙层,防止触摸穿透
  1586. })
  1587. console.log('用户点击确定')
  1588. that.$Request
  1589. .putJson(`/app/tbindent/receive/${that.shoudanma}`, {
  1590. ///app/tbindent/orderIndentReceiving
  1591. // acquireCode: that.shoudanma
  1592. })
  1593. .then((res) => {
  1594. console.log(res, 'ppp')
  1595. if (res.code == 0) {
  1596. uni.showToast({
  1597. title: '收单成功',
  1598. icon: 'none'
  1599. })
  1600. // 在toast显示2000毫秒(2秒)后执行操作
  1601. setTimeout(function () {
  1602. that.current = 2
  1603. that.indentState = 4
  1604. that.taskDataJ()
  1605. }, 1200)
  1606. } else {
  1607. console.log('失败:', res.data)
  1608. uni.showToast({
  1609. title: res.msg,
  1610. icon: 'none'
  1611. })
  1612. // that.taskData()
  1613. }
  1614. // 加载提示关闭
  1615. uni.hideLoading()
  1616. that.shouhuoma = ''
  1617. })
  1618. },
  1619. // 打开隐私协议页面
  1620. openPrivacyContract() {
  1621. let that = this
  1622. wx.openPrivacyContract({
  1623. fail: () => {
  1624. that.$queue.showToast('遇到错误无法打开!')
  1625. }
  1626. })
  1627. },
  1628. // 拒绝隐私协议
  1629. exitMiniProgram() {
  1630. // 直接退出小程序
  1631. wx.exitMiniProgram()
  1632. },
  1633. // 同意隐私协议
  1634. handleAgreePrivacyAuthorization() {
  1635. // this.$refs.popusAuthorization.close();
  1636. this.Authorization = false
  1637. let that = this
  1638. uni.getLocation({
  1639. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  1640. success: function (res) {
  1641. console.log('当前位置的经度:' + res.longitude)
  1642. console.log('当前位置的纬度:' + res.latitude)
  1643. // uni.request({
  1644. // url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
  1645. // success: res => {
  1646. // console.log(res,'ppp运行')
  1647. // that.province = res.data.result.addressComponent.province
  1648. // that.city = res.data.result.addressComponent.city
  1649. // that.district = res.data.result.addressComponent.county
  1650. // },
  1651. // fail: err => {
  1652. // console.log("请求超时");
  1653. // console.log(err);
  1654. // },
  1655. // // complete: () => { //无论成功都会调用
  1656. // // uni.hideLoading()
  1657. // // }
  1658. // })
  1659. // let data = {
  1660. // lat: res.latitude,
  1661. // lng: res.longitude
  1662. // }
  1663. // that.$Request.getT('/app/Login/selectCity', data).then((res) => {
  1664. // if (res.code == 0) {
  1665. // that.province = res.data.province
  1666. // that.city = res.data.city
  1667. // that.district = res.data.district
  1668. // }
  1669. // })
  1670. },
  1671. fail(e) {
  1672. uni.hideLoading()
  1673. uni.showModal({
  1674. title: '温馨提示',
  1675. content: '您的定位权限未开启,请开启后再来操作吧!',
  1676. showCancel: true,
  1677. cancelText: '取消',
  1678. confirmText: '确认',
  1679. success: (res) => {
  1680. if (res.confirm) {
  1681. // #ifdef MP-WEIXIN
  1682. uni.openSetting({
  1683. // 打开设置页
  1684. success(rea) {
  1685. console.log(rea.authSetting)
  1686. }
  1687. })
  1688. // #endif
  1689. // #ifdef APP-PLUS
  1690. gotoAppPermissionSetting()
  1691. // #endif
  1692. }
  1693. }
  1694. })
  1695. }
  1696. })
  1697. },
  1698. //获取最大接单数
  1699. getOrderNum() {
  1700. // orderNum
  1701. this.$Request.get('/app/common/type/342').then((res) => {
  1702. if (res.code == 0 && res.data.value) {
  1703. this.orderNum = res.data.value
  1704. }
  1705. })
  1706. },
  1707. //获取骑手所在站点
  1708. getZhandian() {
  1709. let data = {
  1710. userId: uni.getStorageSync('userId')
  1711. }
  1712. this.$Request.get('/admin/riderStation/getRiderStationName', data).then((res) => {
  1713. console.log('骑手站点', this.userId, res)
  1714. if (res.code == 0 && res.data.stationName) {
  1715. this.qiZhandian = res.data.stationName
  1716. }
  1717. })
  1718. },
  1719. // 上传骑手位置
  1720. getLocation() {
  1721. if (this.userId) {
  1722. let data = {
  1723. lng: this.longitude,
  1724. lat: this.latitude,
  1725. userId: this.userId,
  1726. province: this.province,
  1727. city: this.city,
  1728. district: this.district
  1729. }
  1730. this.$Request.getT('/timedtask/riderLocation', data).then((res) => {
  1731. if ((res.code = 0)) {
  1732. console.log('上传骑手位置')
  1733. }
  1734. })
  1735. }
  1736. },
  1737. switchxdd(e) {
  1738. this.xddcheck = e
  1739. // #ifdef MP-WEIXIN
  1740. if (uni.getStorageSync('sendMsg')) {
  1741. uni.requestSubscribeMessage({
  1742. tmplIds: this.arr,
  1743. success(re) {
  1744. // console.log(re,'**********')
  1745. var datas = JSON.stringify(re)
  1746. if (datas.indexOf('accept') != -1) {
  1747. console.log(re)
  1748. }
  1749. },
  1750. fail: (res) => {
  1751. console.log(res)
  1752. }
  1753. })
  1754. }
  1755. // #endif
  1756. let isSendMsg = 1
  1757. if (!this.xddcheck) {
  1758. isSendMsg = 2
  1759. }
  1760. let data = {
  1761. isSendMsg: isSendMsg
  1762. }
  1763. this.$Request.postJson('/app/user/updateUser', data).then((res) => {
  1764. if (res.code == 0) {
  1765. }
  1766. })
  1767. },
  1768. //获取用户信息
  1769. getUserInfo() {
  1770. let that = this
  1771. that.$Request.getT('/app/userinfo/findUserInfoById').then((res) => {
  1772. if (res.code == 0 && res.data) {
  1773. that.seen = res.data.onLineFlag == 1 ? false : true
  1774. // that.xddcheck = res.data.isSendMsg == 2 ? false : true;
  1775. that.checkCertification = res.data.checkCertification
  1776. this.qiPhone = res.data.phone
  1777. uni.setStorageSync('phone', res.data.phone)
  1778. uni.setStorageSync('checkCertification', res.data.checkCertification)
  1779. if (that.seen) {
  1780. that.tit = '休息中'
  1781. } else {
  1782. that.tit = '接单中'
  1783. // that.locationUpdate()
  1784. }
  1785. uni.getLocation({
  1786. type: 'wgs84',
  1787. success: (res) => {
  1788. console.log('当前位置的经度:' + res.longitude)
  1789. console.log('当前位置的纬度:' + res.latitude)
  1790. that.longitude = res.longitude
  1791. that.latitude = res.latitude
  1792. that.locationUpdate(that.longitude, that.latitude)
  1793. if (that.current == 0) {
  1794. if (!that.ifrenwu) {
  1795. this.getShanglist()
  1796. } else {
  1797. that.taskData()
  1798. }
  1799. //
  1800. } else if (that.current == 1) {
  1801. that.indentState = 3
  1802. that.taskDataJ()
  1803. this.indentIds = []
  1804. this.checkedz = false
  1805. } else if (that.current == 2) {
  1806. that.indentState = 4
  1807. that.taskDataJ()
  1808. this.indentIds = []
  1809. this.checkedz = false
  1810. }
  1811. }
  1812. })
  1813. }
  1814. })
  1815. },
  1816. // 顶部tab切换
  1817. change(index) {
  1818. // #ifdef MP-WEIXIN
  1819. if (uni.getStorageSync('sendMsg')) {
  1820. uni.requestSubscribeMessage({
  1821. tmplIds: this.arr,
  1822. success(re) {
  1823. // console.log(re,'**********')
  1824. var datas = JSON.stringify(re)
  1825. if (datas.indexOf('accept') != -1) {
  1826. console.log(re)
  1827. }
  1828. },
  1829. fail: (res) => {
  1830. console.log(res)
  1831. }
  1832. })
  1833. }
  1834. // #endif
  1835. this.current = index
  1836. if (index == 0) {
  1837. //接单池
  1838. uni.showLoading({
  1839. title: '加载中...',
  1840. mask: true // 是否显示透明蒙层,防止触摸穿透
  1841. })
  1842. this.page1 = 1
  1843. this.ifrenwu = false
  1844. this.getShanglist()
  1845. // this.taskData()
  1846. } else if (index == 1) {
  1847. //待取货
  1848. uni.showLoading({
  1849. title: '加载中...',
  1850. mask: true // 是否显示透明蒙层,防止触摸穿透
  1851. })
  1852. this.page3 = 1
  1853. this.indentState = 3
  1854. this.taskDataJ()
  1855. this.indentIds = []
  1856. this.checkedz = false
  1857. } else if (index == 2) {
  1858. //配送中
  1859. uni.showLoading({
  1860. title: '加载中...',
  1861. mask: true // 是否显示透明蒙层,防止触摸穿透
  1862. })
  1863. this.page3 = 1
  1864. this.indentState = 4
  1865. this.taskDataJ()
  1866. this.indentIds = []
  1867. this.checkedz = false
  1868. } else if (index == 3) {
  1869. //全部订单
  1870. // uni.showLoading({
  1871. // title: '加载中...',
  1872. // mask: true, // 是否显示透明蒙层,防止触摸穿透
  1873. // })
  1874. this.current = 0
  1875. uni.navigateTo({
  1876. url: '/pages/riderMy/order'
  1877. })
  1878. }
  1879. },
  1880. // 上下线
  1881. bindup() {
  1882. let that = this
  1883. if (!that.userId) {
  1884. uni.navigateTo({
  1885. url: '/pages/login/login'
  1886. })
  1887. return
  1888. }
  1889. // #ifdef MP-WEIXIN
  1890. if (uni.getStorageSync('sendMsg')) {
  1891. uni.requestSubscribeMessage({
  1892. tmplIds: this.arr,
  1893. success(re) {
  1894. // console.log(re,'**********')
  1895. var datas = JSON.stringify(re)
  1896. if (datas.indexOf('accept') != -1) {
  1897. console.log(re)
  1898. }
  1899. },
  1900. fail: (res) => {
  1901. console.log(res)
  1902. }
  1903. })
  1904. }
  1905. // #endif
  1906. let content = ''
  1907. if (that.seen) {
  1908. content = '确认开始接单吗'
  1909. } else {
  1910. content = '确认停止接单吗'
  1911. }
  1912. uni.showModal({
  1913. title: '提示',
  1914. content: content,
  1915. success: function (res) {
  1916. if (res.confirm) {
  1917. that.$Request
  1918. .postT('/app/userinfo/updateOnLine', {
  1919. onLineFlag: that.seen ? 1 : 2
  1920. })
  1921. .then((res) => {
  1922. that.getUserInfo()
  1923. })
  1924. }
  1925. }
  1926. })
  1927. },
  1928. // 更新骑手位置信息
  1929. locationUpdate(lng, lat) {
  1930. let that = this
  1931. // setInterval(function() {
  1932. that.$Request
  1933. .postT('/app/userinfo/updateCoordinate', {
  1934. lng: lng,
  1935. lat: lat
  1936. })
  1937. .then((res) => {
  1938. console.log('位置信息更新', res)
  1939. if (!that.ifrenwu) {
  1940. this.getShanglist()
  1941. } else {
  1942. that.taskData()
  1943. }
  1944. // that.taskData()
  1945. })
  1946. // }, 600000)
  1947. },
  1948. //跳转某商家订单
  1949. dingdetails(shopId) {
  1950. this.shopId = shopId
  1951. this.ifrenwu = true
  1952. this.taskData()
  1953. },
  1954. //返回商户
  1955. fanhuiShang() {
  1956. this.ifrenwu = false
  1957. this.getShanglist()
  1958. },
  1959. // 跳转订单详情
  1960. binddetails(id, types) {
  1961. // #ifdef MP-WEIXIN
  1962. if (uni.getStorageSync('sendMsg')) {
  1963. uni.requestSubscribeMessage({
  1964. tmplIds: this.arr,
  1965. success(re) {
  1966. // console.log(re,'**********')
  1967. var datas = JSON.stringify(re)
  1968. if (datas.indexOf('accept') != -1) {
  1969. console.log(re)
  1970. }
  1971. },
  1972. fail: (res) => {
  1973. console.log(res)
  1974. }
  1975. })
  1976. }
  1977. // #endif
  1978. console.log('```', id, types)
  1979. if (types == 1 || types == 2 || types == 3 || types == 5) {
  1980. uni.navigateTo({
  1981. url: '/pages/index/buyOrder/buyOrder?id=' + id
  1982. })
  1983. } else {
  1984. uni.navigateTo({
  1985. url: '/pages/index/cityOrder/cityOrder?id=' + id
  1986. })
  1987. }
  1988. },
  1989. // 接单
  1990. bindorder(item, index) {
  1991. let that = this
  1992. if (!that.userId) {
  1993. uni.showModal({
  1994. title: '提示',
  1995. content: '请先登录后再接单',
  1996. success: function (res) {
  1997. if (res.confirm) {
  1998. console.log('用户点击确定')
  1999. uni.navigateTo({
  2000. url: '/pages/login/login'
  2001. })
  2002. } else if (res.cancel) {
  2003. console.log('用户点击取消')
  2004. }
  2005. }
  2006. })
  2007. return
  2008. }
  2009. // #ifdef MP-WEIXIN
  2010. if (uni.getStorageSync('sendMsg')) {
  2011. uni.requestSubscribeMessage({
  2012. tmplIds: this.arr,
  2013. success(re) {
  2014. // console.log(re,'**********')
  2015. var datas = JSON.stringify(re)
  2016. if (datas.indexOf('accept') != -1) {
  2017. console.log(re)
  2018. }
  2019. },
  2020. fail: (res) => {
  2021. console.log(res)
  2022. }
  2023. })
  2024. }
  2025. // #endif
  2026. if (that.checkCertification == null) {
  2027. uni.showModal({
  2028. title: '提示',
  2029. content: '请先实名认证后再接单',
  2030. success: function (res) {
  2031. if (res.confirm) {
  2032. console.log('用户点击确定')
  2033. uni.navigateTo({
  2034. url: '/pages/riderMy/approve/approve'
  2035. })
  2036. } else if (res.cancel) {
  2037. console.log('用户点击取消')
  2038. }
  2039. }
  2040. })
  2041. return
  2042. }
  2043. if (that.checkCertification == 0) {
  2044. uni.showToast({
  2045. title: '实名认证审核中,无法接单',
  2046. icon: 'none'
  2047. })
  2048. return
  2049. }
  2050. if (that.checkCertification == 2) {
  2051. uni.showToast({
  2052. title: '实名认证未通过,无法接单',
  2053. icon: 'none'
  2054. })
  2055. return
  2056. }
  2057. uni.showModal({
  2058. title: '提示',
  2059. content: '确认接单吗',
  2060. success: function (res) {
  2061. if (res.confirm) {
  2062. uni.showLoading({
  2063. title: '加载中',
  2064. mask: true // 是否显示透明蒙层,防止触摸穿透
  2065. })
  2066. console.log('用户点击确定', item.indentNumber)
  2067. that.$Request
  2068. .postT('/app/tbindent/indentReceiving', {
  2069. indentNumber: item.indentNumber
  2070. })
  2071. .then((res) => {
  2072. console.log(res, 'kkk')
  2073. if (res.code == 0) {
  2074. // that.page1 = 1
  2075. // this.getShanglist()
  2076. // that.taskData()
  2077. uni.showToast({
  2078. title: '接单成功',
  2079. icon: 'none'
  2080. })
  2081. // 在toast显示2000毫秒(2秒)后执行操作
  2082. setTimeout(function () {
  2083. //刷新当前列,不返回分页的第一条
  2084. that.list_box.splice(index, 1)
  2085. }, 1200)
  2086. } else {
  2087. console.log('失败:', res.data)
  2088. uni.showToast({
  2089. title: res.msg,
  2090. icon: 'none'
  2091. })
  2092. // 在toast显示2000毫秒(2秒)后执行操作
  2093. setTimeout(function () {
  2094. if (!that.ifrenwu) {
  2095. that.page1 = 1
  2096. that.getShanglist()
  2097. } else {
  2098. that.page2 = 1
  2099. that.taskData()
  2100. }
  2101. }, 1200)
  2102. // that.getShanglist()
  2103. // that.taskData()
  2104. }
  2105. // 加载提示关闭
  2106. uni.hideLoading()
  2107. })
  2108. } else if (res.cancel) {
  2109. console.log('用户点击取消')
  2110. }
  2111. }
  2112. })
  2113. },
  2114. // 未登录接单
  2115. bindorder1() {
  2116. uni.showToast({
  2117. title: '上线后方可接单',
  2118. icon: 'none'
  2119. })
  2120. },
  2121. bindridermy() {
  2122. // #ifdef MP-WEIXIN
  2123. if (uni.getStorageSync('sendMsg')) {
  2124. uni.requestSubscribeMessage({
  2125. tmplIds: this.arr,
  2126. success(re) {
  2127. // console.log(re,'**********')
  2128. var datas = JSON.stringify(re)
  2129. if (datas.indexOf('accept') != -1) {
  2130. console.log(re)
  2131. }
  2132. },
  2133. fail: (res) => {
  2134. console.log(res)
  2135. }
  2136. })
  2137. }
  2138. // #endif
  2139. uni.navigateTo({
  2140. url: '/pages/riderMy/riderMy'
  2141. })
  2142. },
  2143. onshow() {
  2144. console.log('第一个')
  2145. this.show = true
  2146. },
  2147. //获取接单池各商家列表
  2148. getShanglist() {
  2149. uni.showLoading({
  2150. title: '加载中',
  2151. mask: true // 是否显示透明蒙层,防止触摸穿透
  2152. })
  2153. uni.request({
  2154. url:
  2155. this.config('ROOAA') +
  2156. 'geocoder?postStr={%27ver%22:%221%22,%22lon%22:' +
  2157. this.longitude +
  2158. ',%22lat%22:' +
  2159. this.latitude +
  2160. '}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
  2161. success: (res) => {
  2162. console.log(res, 'ppp运行')
  2163. if (res.data.result) {
  2164. this.province = res.data.result.addressComponent.province
  2165. this.city = res.data.result.addressComponent.city
  2166. this.district = res.data.result.addressComponent.county
  2167. }
  2168. var daa = {
  2169. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2170. indentType: this.indentType,
  2171. limit: 10,
  2172. page: this.page1,
  2173. receivingPattern: this.receivingPettern,
  2174. riderLat: this.latitude,
  2175. riderLng: this.longitude,
  2176. city: this.city
  2177. }
  2178. console.log('之前', daa)
  2179. this.$Request
  2180. .postJson('/app/tbindent/find-new-indent-group-by-shop', {
  2181. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2182. indentType: this.indentType,
  2183. limit: 10,
  2184. page: this.page1,
  2185. receivingPattern: this.receivingPettern,
  2186. riderLat: this.latitude,
  2187. riderLng: this.longitude,
  2188. city: this.city
  2189. })
  2190. .then((res) => {
  2191. uni.hideLoading()
  2192. console.log('接单池商家', res)
  2193. if (res.data) {
  2194. if (res.data.list.length > 0) {
  2195. }
  2196. this.totalCount1 = res.data.totalCount
  2197. if (this.page1 == 1) {
  2198. this.list_shanghu = res.data.list
  2199. } else {
  2200. this.list_shanghu = this.list_shanghu.concat(res.data.list)
  2201. }
  2202. console.log(this.list_shanghu, 'this.list_shanghu')
  2203. }
  2204. this.$forceUpdate()
  2205. uni.stopPullDownRefresh()
  2206. // 加载提示关闭
  2207. uni.hideLoading()
  2208. })
  2209. },
  2210. fail: (err) => {
  2211. console.log('请求超时')
  2212. console.log(err)
  2213. var daa = {
  2214. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2215. indentType: this.indentType,
  2216. limit: 10,
  2217. page: this.page1,
  2218. receivingPattern: this.receivingPettern,
  2219. riderLat: this.latitude,
  2220. riderLng: this.longitude,
  2221. city: this.city
  2222. }
  2223. console.log('之前', daa)
  2224. this.$Request
  2225. .postJson('/app/tbindent/find-new-indent-group-by-shop', {
  2226. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2227. indentType: this.indentType,
  2228. limit: 10,
  2229. page: this.page1,
  2230. receivingPattern: this.receivingPettern,
  2231. riderLat: this.latitude,
  2232. riderLng: this.longitude,
  2233. city: this.city
  2234. })
  2235. .then((res) => {
  2236. uni.hideLoading()
  2237. console.log('接单池商家', res)
  2238. if (res.data) {
  2239. if (res.data.list.length > 0) {
  2240. }
  2241. this.totalCount1 = res.data.totalCount
  2242. if (this.page1 == 1) {
  2243. this.list_shanghu = res.data.list
  2244. } else {
  2245. this.list_shanghu = this.list_shanghu.concat(res.data.list)
  2246. }
  2247. console.log(this.list_shanghu, 'this.list_shanghu')
  2248. }
  2249. this.$forceUpdate()
  2250. uni.stopPullDownRefresh()
  2251. // 加载提示关闭
  2252. uni.hideLoading()
  2253. })
  2254. }
  2255. // complete: () => { //无论成功都会调用
  2256. // uni.hideLoading()
  2257. // }
  2258. })
  2259. },
  2260. // 获取新任务数据
  2261. taskData() {
  2262. uni.showLoading({
  2263. title: '加载中',
  2264. mask: true // 是否显示透明蒙层,防止触摸穿透
  2265. })
  2266. this.$Request
  2267. .postJson('/app/tbindent/find-new-indent', {
  2268. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2269. page: this.page2,
  2270. limit: 10,
  2271. receivingPattern: this.receivingPettern,
  2272. indentType: this.indentType,
  2273. shopId: this.shopId,
  2274. riderLat: this.latitude,
  2275. riderLng: this.longitude,
  2276. city: this.city
  2277. })
  2278. .then((res) => {
  2279. uni.hideLoading()
  2280. if (res.data) {
  2281. if (res.data.list.length > 0) {
  2282. for (var i = 0; i < res.data.list.length; i++) {
  2283. if (res.data.list[i].distancess > 1000) {
  2284. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  2285. } else {
  2286. if (res.data.list[i].distancess == '0') {
  2287. res.data.list[i].distancess = '0m'
  2288. } else {
  2289. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  2290. }
  2291. }
  2292. // if (res.data.list[i].distance > 1000) {
  2293. // res.data.list[i].distance = Number((res.data.list[i].distance / 1000)).toFixed(2) + "km"
  2294. // } else {
  2295. // if (res.data.list[i].distance == 0) {
  2296. // res.data.list[i].distance = "0m";
  2297. // } else {
  2298. // res.data.list[i].distance = Number(res.data.list[i].distance).toFixed(1) + "m";
  2299. // }
  2300. // }
  2301. if (res.data.list[i].distancessd > 1000) {
  2302. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  2303. } else {
  2304. if (res.data.list[i].distancessd == '0') {
  2305. res.data.list[i].distancessd = '0m'
  2306. } else {
  2307. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(1) + 'm'
  2308. }
  2309. }
  2310. }
  2311. }
  2312. this.totalCount2 = res.data.totalCount
  2313. if (this.page2 == 1) {
  2314. this.list_box = res.data.list
  2315. } else {
  2316. this.list_box = this.list_box.concat(res.data.list)
  2317. }
  2318. console.log('list_box', this.list_box)
  2319. }
  2320. this.$forceUpdate()
  2321. uni.stopPullDownRefresh()
  2322. // 加载提示关闭
  2323. uni.hideLoading()
  2324. })
  2325. },
  2326. // 获取待取货和配送中订单
  2327. taskDataJ() {
  2328. uni.showLoading({
  2329. title: '加载中',
  2330. mask: true // 是否显示透明蒙层,防止触摸穿透
  2331. })
  2332. console.log('this.keyword', this.keyword)
  2333. this.$Request
  2334. .getT('/app/tbindent/findRiderIndent', {
  2335. page: this.page3,
  2336. limit: 10,
  2337. indentState: this.indentState,
  2338. keyword: this.keyword //收货地址或收货人手机号
  2339. // ol: this.longitude,
  2340. // od: this.latitude
  2341. })
  2342. .then((res) => {
  2343. this.totalCount3 = res.data.totalCount
  2344. if (this.page3 == 1) {
  2345. this.lists = res.data.list
  2346. } else {
  2347. this.lists = this.lists.concat(res.data.list)
  2348. }
  2349. for (var i in this.lists) {
  2350. if (this.lists[i].distanceInitial > 1000) {
  2351. this.lists[i].distanceInitials = (Number(this.lists[i].distanceInitial) / 1000).toFixed(2)
  2352. }
  2353. if (this.lists[i].distance > 1000) {
  2354. this.lists[i].distances = (Number(this.lists[i].distance) / 1000).toFixed(2)
  2355. }
  2356. }
  2357. this.lists.map((item) => {
  2358. item.checkeds = false
  2359. })
  2360. console.log('lists', this.lists)
  2361. uni.stopPullDownRefresh()
  2362. // 加载提示关闭
  2363. uni.hideLoading()
  2364. })
  2365. },
  2366. switch1(e) {
  2367. // #ifdef MP-WEIXIN
  2368. if (uni.getStorageSync('sendMsg')) {
  2369. uni.requestSubscribeMessage({
  2370. tmplIds: this.arr,
  2371. success(re) {
  2372. // console.log(re,'**********')
  2373. var datas = JSON.stringify(re)
  2374. if (datas.indexOf('accept') != -1) {
  2375. console.log(re)
  2376. }
  2377. },
  2378. fail: (res) => {
  2379. console.log(res)
  2380. }
  2381. })
  2382. }
  2383. // #endif
  2384. this.checked = e
  2385. this.check = !this.check
  2386. if (e == true) {
  2387. this.receivingPettern = '1'
  2388. }
  2389. if (e == false) {
  2390. // this.checked = false
  2391. // this.check = true
  2392. this.receivingPettern = '2'
  2393. }
  2394. console.log(e)
  2395. },
  2396. switch2(e) {
  2397. // #ifdef MP-WEIXIN
  2398. if (uni.getStorageSync('sendMsg')) {
  2399. uni.requestSubscribeMessage({
  2400. tmplIds: this.arr,
  2401. success(re) {
  2402. // console.log(re,'**********')
  2403. var datas = JSON.stringify(re)
  2404. if (datas.indexOf('accept') != -1) {
  2405. console.log(re)
  2406. }
  2407. },
  2408. fail: (res) => {
  2409. console.log(res)
  2410. }
  2411. })
  2412. }
  2413. // #endif
  2414. console.log(e)
  2415. this.check = e
  2416. this.checked = !this.check
  2417. if (e == true) {
  2418. // this.checked = true
  2419. // this.check = false
  2420. this.receivingPettern = '2'
  2421. }
  2422. if (e == false) {
  2423. // this.checked = false
  2424. // this.check = true
  2425. this.receivingPettern = '1'
  2426. }
  2427. },
  2428. // 打开类型选择模态框
  2429. showModals() {
  2430. // #ifdef MP-WEIXIN
  2431. if (uni.getStorageSync('sendMsg')) {
  2432. uni.requestSubscribeMessage({
  2433. tmplIds: this.arr,
  2434. success(re) {
  2435. // console.log(re,'**********')
  2436. var datas = JSON.stringify(re)
  2437. if (datas.indexOf('accept') != -1) {
  2438. console.log(re)
  2439. }
  2440. },
  2441. fail: (res) => {
  2442. console.log(res)
  2443. }
  2444. })
  2445. }
  2446. // #endif
  2447. this.showModal = true
  2448. },
  2449. radioChange(e) {
  2450. // console.log(e);
  2451. },
  2452. radioGroupChange(e) {
  2453. console.log('······2', e)
  2454. this.indentTypeName = e
  2455. },
  2456. // 点击确定按钮
  2457. confirm() {
  2458. // #ifdef MP-WEIXIN
  2459. if (uni.getStorageSync('sendMsg')) {
  2460. uni.requestSubscribeMessage({
  2461. tmplIds: this.arr,
  2462. success(re) {
  2463. // console.log(re,'**********')
  2464. var datas = JSON.stringify(re)
  2465. if (datas.indexOf('accept') != -1) {
  2466. console.log(re)
  2467. }
  2468. },
  2469. fail: (res) => {
  2470. console.log(res)
  2471. }
  2472. })
  2473. }
  2474. // #endif
  2475. if (this.indentTypeName == '全部') {
  2476. this.indentType = null
  2477. }
  2478. if (this.indentTypeName == '帮我取') {
  2479. this.indentType = 2
  2480. }
  2481. if (this.indentTypeName == '帮我送') {
  2482. this.indentType = 1
  2483. }
  2484. if (this.indentTypeName == '同城帮买') {
  2485. this.indentType = 3
  2486. }
  2487. if (this.indentTypeName == '同城服务') {
  2488. this.indentType = 4
  2489. }
  2490. if (this.indentTypeName == '同城外卖') {
  2491. this.indentType = 5
  2492. }
  2493. },
  2494. // 获取地址
  2495. dizhis() {
  2496. var that = this
  2497. uni.chooseLocation({
  2498. success: function (res) {
  2499. console.log(res, 'pgy')
  2500. uni.setStorageSync('dizhi', res)
  2501. that.quyu = res.name
  2502. that.quyuLongitude = res.longitude
  2503. that.quyuLatitude = res.latitude
  2504. }
  2505. })
  2506. },
  2507. // 关闭底部弹出层
  2508. closePopup() {
  2509. // #ifdef MP-WEIXIN
  2510. if (uni.getStorageSync('sendMsg')) {
  2511. uni.requestSubscribeMessage({
  2512. tmplIds: this.arr,
  2513. success(re) {
  2514. // console.log(re,'**********')
  2515. var datas = JSON.stringify(re)
  2516. if (datas.indexOf('accept') != -1) {
  2517. console.log(re)
  2518. }
  2519. },
  2520. fail: (res) => {
  2521. console.log(res)
  2522. }
  2523. })
  2524. }
  2525. // #endif
  2526. if (this.quyuLongitude != '') {
  2527. this.longitude = this.quyuLongitude
  2528. this.latitude = this.quyuLatitude
  2529. }
  2530. if (!this.ifrenwu) {
  2531. this.page1 = 1
  2532. this.getShanglist()
  2533. } else {
  2534. this.page2 = 1
  2535. this.taskData()
  2536. }
  2537. },
  2538. // 订单详情
  2539. bindorderDetail(indentNumber, orderId) {
  2540. // #ifdef MP-WEIXIN
  2541. if (uni.getStorageSync('sendMsg')) {
  2542. uni.requestSubscribeMessage({
  2543. tmplIds: this.arr,
  2544. success(re) {
  2545. // console.log(re,'**********')
  2546. var datas = JSON.stringify(re)
  2547. if (datas.indexOf('accept') != -1) {
  2548. console.log(re)
  2549. }
  2550. },
  2551. fail: (res) => {
  2552. console.log(res)
  2553. }
  2554. })
  2555. }
  2556. // #endif
  2557. console.log(indentNumber, orderId)
  2558. uni.navigateTo({
  2559. url: '/pages/index/orderdetail/orderdetail?orderId=' + orderId + '&id=' + indentNumber
  2560. })
  2561. },
  2562. // 取消订单
  2563. quxiao(indentNumber, index) {
  2564. // #ifdef MP-WEIXIN
  2565. if (uni.getStorageSync('sendMsg')) {
  2566. uni.requestSubscribeMessage({
  2567. tmplIds: this.arr,
  2568. success(re) {
  2569. // console.log(re,'**********')
  2570. var datas = JSON.stringify(re)
  2571. if (datas.indexOf('accept') != -1) {
  2572. console.log(re)
  2573. }
  2574. },
  2575. fail: (res) => {
  2576. console.log(res)
  2577. }
  2578. })
  2579. }
  2580. // #endif
  2581. let that = this
  2582. uni.showModal({
  2583. title: '提示',
  2584. content: '取消订单将会被扣保证金',
  2585. success: function (res) {
  2586. if (res.confirm) {
  2587. uni.showLoading({
  2588. title: '加载中',
  2589. mask: true // 是否显示透明蒙层,防止触摸穿透
  2590. })
  2591. console.log('用户点击确定')
  2592. that.$Request
  2593. .postT('/app/tbindent/riderCancleIndent', {
  2594. indentNumber: indentNumber
  2595. })
  2596. .then((res) => {
  2597. console.log(res)
  2598. if (res.code == 0) {
  2599. uni.showToast({
  2600. title: '订单已取消',
  2601. icon: 'none'
  2602. })
  2603. // 在toast显示2000毫秒(2秒)后执行操作
  2604. setTimeout(function () {
  2605. //刷新当前列,不返回分页的第一条
  2606. that.lists.splice(index, 1)
  2607. }, 1200)
  2608. // that.taskDataJ()
  2609. } else {
  2610. uni.showToast({
  2611. title: res.msg,
  2612. icon: 'none'
  2613. })
  2614. // 在toast显示2000毫秒(2秒)后执行操作
  2615. setTimeout(function () {
  2616. that.taskDataJ()
  2617. }, 1200)
  2618. }
  2619. // 加载提示关闭
  2620. uni.hideLoading()
  2621. })
  2622. } else if (res.cancel) {
  2623. console.log('用户点击取消')
  2624. }
  2625. }
  2626. })
  2627. },
  2628. quhuo(indentId, index) {
  2629. let that = this
  2630. // #ifdef MP-WEIXIN
  2631. if (uni.getStorageSync('sendMsg')) {
  2632. uni.requestSubscribeMessage({
  2633. tmplIds: this.arr,
  2634. success(re) {
  2635. // console.log(re,'**********')
  2636. var datas = JSON.stringify(re)
  2637. if (datas.indexOf('accept') != -1) {
  2638. console.log(re)
  2639. }
  2640. },
  2641. fail: (res) => {
  2642. console.log(res)
  2643. }
  2644. })
  2645. }
  2646. // #endif
  2647. uni.showModal({
  2648. title: '提示',
  2649. content: '确认到取货吗',
  2650. success: function (res) {
  2651. if (res.confirm) {
  2652. uni.showLoading({
  2653. title: '加载中',
  2654. mask: true // 是否显示透明蒙层,防止触摸穿透
  2655. })
  2656. that.$Request
  2657. .postJson('/app/tbindent/riderBuyGoods', {
  2658. indentId: indentId,
  2659. indentState: '4'
  2660. })
  2661. .then((res) => {
  2662. console.log(res)
  2663. if (res.code == 0) {
  2664. uni.showToast({
  2665. title: '确认取货成功',
  2666. icon: 'none'
  2667. })
  2668. // that.indentState = 4
  2669. setTimeout(function () {
  2670. // that.taskDataJ()
  2671. //刷新当前列,不返回分页的第一条
  2672. that.lists.splice(index, 1)
  2673. // that.current = 2
  2674. }, 1200)
  2675. } else {
  2676. uni.showToast({
  2677. title: res.msg,
  2678. icon: 'none'
  2679. })
  2680. setTimeout(function () {
  2681. that.taskDataJ()
  2682. // that.current = 2
  2683. }, 1200)
  2684. }
  2685. // 加载提示关闭
  2686. uni.hideLoading()
  2687. })
  2688. } else {
  2689. }
  2690. }
  2691. })
  2692. },
  2693. //拍照
  2694. paiOrder(e) {
  2695. if (this.shoudanma != '') {
  2696. this.saomaPeisong = false
  2697. this.indentNumber = e.indentNumber
  2698. this.orderId = e.orderId
  2699. this.alertPhone = true
  2700. return
  2701. }
  2702. this.indentNumber = e.indentNumber
  2703. this.orderId = e.orderId
  2704. this.alertPhone = true
  2705. },
  2706. shouhuo(e, index) {
  2707. if (this.shoudanma != '') {
  2708. this.saomaPeisong = false
  2709. this.orderId = e.orderId
  2710. this.querenduanxinList()
  2711. //需拍照的弹出框
  2712. this.alertduan = true
  2713. return
  2714. }
  2715. this.indentNumber = e.indentNumber
  2716. // if(e.indentType==5){
  2717. // this.querenSh()
  2718. // }
  2719. if (e.itemCodeFlag == 0 && e.indentType != 5) {
  2720. this.shows = true
  2721. } else {
  2722. this.orderId = e.orderId
  2723. this.querenduanxinList()
  2724. //需拍照的弹出框
  2725. this.alertduan = true
  2726. // this.querenSh()
  2727. }
  2728. },
  2729. // 图片上传
  2730. addImages(e) {
  2731. uni.showLoading({
  2732. title: '加载中',
  2733. mask: true // 是否显示透明蒙层,防止触摸穿透
  2734. })
  2735. if (e == 1) {
  2736. var num = this.goodsPicture.length
  2737. this.count = 2 - num
  2738. }
  2739. let that = this
  2740. uni.chooseImage({
  2741. count: this.count,
  2742. sourceType: ['camera', 'album'],
  2743. success: (res) => {
  2744. for (let i = 0; i < res.tempFiles.length; i++) {
  2745. //这里的id和页面中写的html代码的canvas的id要一致
  2746. let canvasId = 'zipCanvas'
  2747. //原图的路径
  2748. let imagePath = res.tempFiles[i].path
  2749. //大小限制
  2750. let limitSize = 1024 * 2
  2751. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  2752. let drawWidth = uni.getSystemInfoSync().windowWidth
  2753. let that = this
  2754. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
  2755. uni.showLoading({
  2756. title: '上传中'
  2757. })
  2758. uni.uploadFile({
  2759. url: that.config('APIHOST1') + '/alioss/upload',
  2760. filePath: resPath,
  2761. name: 'file',
  2762. success: (uploadFileRes) => {
  2763. if (e == 1) {
  2764. if (that.goodsPicture.length < 2) {
  2765. that.goodsPicture.push(JSON.parse(uploadFileRes.data).data)
  2766. }
  2767. }
  2768. uni.hideLoading()
  2769. },
  2770. fail: () => {
  2771. uni.showToast({
  2772. title: '上传失败',
  2773. icon: 'error'
  2774. })
  2775. }
  2776. })
  2777. })
  2778. }
  2779. }
  2780. })
  2781. },
  2782. // 图片删除
  2783. removeImg(index, texts) {
  2784. if (texts == 'lb') {
  2785. this.goodsPicture.splice(index, 1)
  2786. }
  2787. },
  2788. config: function (name) {
  2789. var info = null
  2790. if (name) {
  2791. var name2 = name.split('.') //字符分割
  2792. if (name2.length > 1) {
  2793. info = configdata[name2[0]][name2[1]] || null
  2794. } else {
  2795. info = configdata[name] || null
  2796. }
  2797. if (info == null) {
  2798. let web_config = cache.get('web_config')
  2799. if (web_config) {
  2800. if (name2.length > 1) {
  2801. info = web_config[name2[0]][name2[1]] || null
  2802. } else {
  2803. info = web_config[name] || null
  2804. }
  2805. }
  2806. }
  2807. }
  2808. return info
  2809. },
  2810. // 监听拍照框关闭
  2811. onclose() {
  2812. this.alertPhone = false
  2813. this.alertduan = false
  2814. this.goodsPicture = []
  2815. },
  2816. //确认上传图片
  2817. querenduanxin() {
  2818. uni.showLoading({
  2819. title: '加载中',
  2820. mask: true // 是否显示透明蒙层,防止触摸穿透
  2821. })
  2822. var tupian = this.goodsPicture.toString()
  2823. var indentNumber = this.indentNumber
  2824. this.$Request
  2825. .putT(`/app/tbindent/delivery-img/${indentNumber}`, {
  2826. userId: uni.getStorageSync('userId'),
  2827. // indentNumber:this.indentNumber,
  2828. imgs: tupian
  2829. })
  2830. .then((res) => {
  2831. console.log(res, 'img')
  2832. if (res.code == 0) {
  2833. if (this.shoudanma != '') {
  2834. this.alertPhone = false
  2835. this.saomaCha()
  2836. // this.saomaPeisong=true
  2837. }
  2838. this.alertPhone = false
  2839. uni.showToast({
  2840. title: '图片上传完成',
  2841. icon: 'none'
  2842. })
  2843. // 在toast显示2000毫秒(2秒)后执行操作
  2844. setTimeout(function () {}, 1200)
  2845. } else {
  2846. uni.showToast({
  2847. title: res.msg,
  2848. icon: 'none'
  2849. })
  2850. }
  2851. // 加载提示关闭
  2852. uni.hideLoading()
  2853. })
  2854. },
  2855. // 获取确认送达短信模板
  2856. querenduanxinList() {
  2857. uni.showLoading({
  2858. title: '加载中',
  2859. mask: true // 是否显示透明蒙层,防止触摸穿透
  2860. })
  2861. // this.$Request.postT('/app/tb-indent-sms/template', {
  2862. this.$Request
  2863. .getT('/app/tb-indent-sms/template', {
  2864. // indentNumber: this.indentNumber,
  2865. // itemCode: this.shouhuoma
  2866. })
  2867. .then((res) => {
  2868. console.log(res)
  2869. this.duanxin = res.data.list
  2870. if (res.code == 0) {
  2871. this.page1 = 1
  2872. this.page2 = 1
  2873. this.page3 = 1
  2874. // this.alertPhone = false
  2875. this.alertduan = true
  2876. } else {
  2877. uni.showToast({
  2878. title: res.msg,
  2879. icon: 'none'
  2880. })
  2881. }
  2882. // 加载提示关闭
  2883. uni.hideLoading()
  2884. })
  2885. },
  2886. querenSh() {
  2887. // #ifdef MP-WEIXIN
  2888. if (uni.getStorageSync('sendMsg')) {
  2889. uni.requestSubscribeMessage({
  2890. tmplIds: this.arr,
  2891. success(re) {
  2892. // console.log(re,'**********')
  2893. var datas = JSON.stringify(re)
  2894. if (datas.indexOf('accept') != -1) {
  2895. console.log(re)
  2896. }
  2897. },
  2898. fail: (res) => {
  2899. console.log(res)
  2900. }
  2901. })
  2902. }
  2903. // #endif
  2904. let that = this
  2905. // var date = new Date();
  2906. // var year = date.getFullYear();
  2907. // let Rcode = year + that.shouhuoma
  2908. // that.$Request.postT('/app/tbindent/riderDelivery', {
  2909. uni.showLoading({
  2910. title: '加载中',
  2911. mask: true // 是否显示透明蒙层,防止触摸穿透
  2912. })
  2913. if (this.shoudanma != '') {
  2914. console.log('1aaaaa')
  2915. this.$Request
  2916. .postJson('/app/tbindent/finish-order', {
  2917. ///app/tbindent/orderRiderDelivery
  2918. smsTemplateId: that.duanxin[0].id,
  2919. // indentNumber: that.indentNumber,
  2920. acquireCode: that.shoudanma
  2921. // imgs:'',
  2922. // itemCode: Rcode
  2923. // itemCode: that.shouhuoma
  2924. })
  2925. .then((res) => {
  2926. console.log(res)
  2927. if (res.code == 0) {
  2928. uni.showToast({
  2929. title: '订单完成',
  2930. icon: 'none'
  2931. })
  2932. // 在toast显示2000毫秒(2秒)后执行操作
  2933. setTimeout(function () {
  2934. that.alertduan = false
  2935. that.taskDataJ()
  2936. }, 1200)
  2937. } else {
  2938. uni.showToast({
  2939. title: res.msg,
  2940. icon: 'none'
  2941. })
  2942. }
  2943. // 加载提示关闭
  2944. uni.hideLoading()
  2945. that.shouhuoma = ''
  2946. })
  2947. return
  2948. }
  2949. console.log('2bbbbb')
  2950. this.$Request
  2951. .postJson('/app/tbindent/riderDelivery', {
  2952. smsTemplateId: this.duanxin[0].id,
  2953. indentNumber: that.indentNumber,
  2954. // itemCode: Rcode
  2955. itemCode: that.shouhuoma
  2956. })
  2957. .then((res) => {
  2958. console.log(res)
  2959. that.shouhuoma = ''
  2960. if (res.code == 0) {
  2961. this.alertduan = false
  2962. // this.alertduan = false
  2963. this.shows = false
  2964. uni.showToast({
  2965. title: '订单完成',
  2966. icon: 'none'
  2967. })
  2968. // 在toast显示2000毫秒(2秒)后执行操作
  2969. setTimeout(function () {
  2970. that.alertduan = false
  2971. // this.alertduan = false
  2972. that.shows = false
  2973. that.taskDataJ()
  2974. }, 1200)
  2975. // this.lists = []
  2976. // that.taskDataJ()
  2977. } else {
  2978. uni.showToast({
  2979. title: res.msg,
  2980. icon: 'none'
  2981. })
  2982. // 在toast显示2000毫秒(2秒)后执行操作
  2983. setTimeout(function () {
  2984. that.taskDataJ()
  2985. }, 1200)
  2986. }
  2987. // 加载提示关闭
  2988. uni.hideLoading()
  2989. })
  2990. },
  2991. // 开启订阅消息
  2992. openMsg() {
  2993. console.log('订阅消息')
  2994. var that = this
  2995. uni.getSetting({
  2996. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  2997. success(ret) {
  2998. console.log(ret.subscriptionsSetting, '------------------')
  2999. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  3000. if (ret.subscriptionsSetting.itemSettings) {
  3001. uni.setStorageSync('sendMsg', true)
  3002. uni.openSetting({
  3003. // 打开设置页
  3004. success(rea) {
  3005. console.log(rea.authSetting)
  3006. }
  3007. })
  3008. } else {
  3009. // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  3010. uni.setStorageSync('sendMsg', false)
  3011. uni.showModal({
  3012. title: '提示',
  3013. content: '为了更好的体验,请绑定消息推送',
  3014. confirmText: '确定',
  3015. cancelText: '取消',
  3016. success: function (res) {
  3017. if (res.confirm) {
  3018. wx.requestSubscribeMessage({
  3019. tmplIds: that.arr,
  3020. success(re) {
  3021. var datas = JSON.stringify(re)
  3022. if (datas.indexOf('accept') != -1) {
  3023. console.log(re)
  3024. // uni.setStorageSync('sendMsg', true)
  3025. }
  3026. },
  3027. fail: (res) => {
  3028. console.log(res)
  3029. }
  3030. })
  3031. // uni.setStorageSync('sendMsg', true)
  3032. that.showModal111 = false
  3033. } else if (res.cancel) {
  3034. console.log('取消')
  3035. // uni.setStorageSync('sendMsg', false)
  3036. that.showModal111 = true
  3037. }
  3038. }
  3039. })
  3040. }
  3041. }
  3042. })
  3043. },
  3044. //单个订单转单
  3045. zhuanOrder(indentId) {
  3046. this.saomaPeisong = false
  3047. this.phone = ''
  3048. this.zhuanName = ''
  3049. this.indentId = indentId
  3050. this.showOrder = true
  3051. },
  3052. zhuandan() {
  3053. uni.showLoading({
  3054. title: '加载中',
  3055. mask: true // 是否显示透明蒙层,防止触摸穿透
  3056. })
  3057. this.$Request
  3058. .postT('/app/tbindent/transferOfOrder', {
  3059. indentId: this.indentId,
  3060. phone: this.phone,
  3061. realName: this.zhuanName
  3062. })
  3063. .then((res) => {
  3064. if (res.code == 0) {
  3065. this.phone = ''
  3066. this.$queue.setData('zhuandan', this.indentId)
  3067. uni.showToast({
  3068. title: '转单成功',
  3069. icon: 'none'
  3070. })
  3071. setTimeout((d) => {
  3072. //刷新当前列,不返回分页的第一条
  3073. that.lists.splice(index, 1)
  3074. }, 1000)
  3075. } else {
  3076. uni.showToast({
  3077. title: res.msg,
  3078. icon: 'none'
  3079. })
  3080. }
  3081. // 加载提示关闭
  3082. uni.hideLoading()
  3083. })
  3084. },
  3085. //收货地址或收货人手机号搜索
  3086. searchKeyword(e) {
  3087. this.keyword = e.detail.value
  3088. // this.taskDataJ()
  3089. },
  3090. //搜索框回车
  3091. shouhuiche() {
  3092. this.taskDataJ()
  3093. },
  3094. //一键批量转单弹框
  3095. allZhuan() {
  3096. this.pageDai = 1
  3097. this.showsZhuan = true
  3098. this.getDaizhuan()
  3099. },
  3100. //未选择时转单
  3101. allZhuanNo() {
  3102. uni.showToast({
  3103. title: '请先选择需要转的订单!',
  3104. icon: 'none'
  3105. })
  3106. },
  3107. // 选中某个复选框时,触发
  3108. checkboxChange(e) {
  3109. e.checkeds = !e.checkeds
  3110. if (this.indentIds.indexOf(e.indentId) == -1) {
  3111. //如果没有选中则把indentId增加到数组中
  3112. this.indentIds.push(e.indentId)
  3113. } else {
  3114. //如果找到了则把indentId删除
  3115. this.indentIds.splice(this.indentIds.indexOf(e.indentId), 1)
  3116. }
  3117. if (this.indentIds.length == this.lists.length) {
  3118. //判断是否全部选中
  3119. this.checkedz = true
  3120. } else {
  3121. this.checkedz = false
  3122. }
  3123. console.log(this.indentIds, 'this.indentIds111')
  3124. },
  3125. //全选
  3126. checkboxChanges() {
  3127. this.indentIds = []
  3128. if (this.checkedz == false) {
  3129. //全选(把总复选框选中并把goodsid赋给数组)
  3130. this.checkedz = true
  3131. this.lists.map((item) => {
  3132. item.checkeds = true
  3133. this.indentIds.push(item.indentId)
  3134. })
  3135. console.log(this.lists)
  3136. console.log(this.indentIds, 'this.indentIds')
  3137. } else {
  3138. //全不选
  3139. this.checkedz = false
  3140. this.lists.map((item) => {
  3141. item.checkeds = false
  3142. })
  3143. }
  3144. },
  3145. //待转单分页数据
  3146. getDaizhuan() {
  3147. uni.showLoading({
  3148. title: '加载中',
  3149. mask: true // 是否显示透明蒙层,防止触摸穿透
  3150. })
  3151. console.log('listDaiaaaaa', this.pageDai, this.sizeDai, this.indentIds.join(','))
  3152. this.$Request
  3153. .getT('/app/tbindent/findRiderIndentByIds', {
  3154. page: this.pageDai,
  3155. limit: this.sizeDai,
  3156. indentIds: this.indentIds.join(',') //待转单订单indentid
  3157. })
  3158. .then((res) => {
  3159. console.log('listDai', res)
  3160. this.pageCountDai = res.data.totalCount
  3161. if (this.pageDai == 1) {
  3162. this.listDai = res.data.list
  3163. } else {
  3164. this.listDai = this.listDai.concat(res.data.list)
  3165. }
  3166. // console.log('listDai', this.listDai)
  3167. // res.page -- 后端返回的当前页,
  3168. // res.pageCount -- 后端返回的总页数
  3169. if (this.listDai.length == 0 || res.data.currPage == res.data.totalPage) {
  3170. this.statusDai = 'nomore'
  3171. }
  3172. // 加载提示关闭
  3173. uni.hideLoading()
  3174. })
  3175. },
  3176. // 待转单数据滚动到底部
  3177. scrolltolowerDai(e) {
  3178. if (this.listDai.length < this.pageCountDai) {
  3179. this.pageDai++
  3180. this.getDaizhuan()
  3181. } else {
  3182. this.statusDai = 'nomore'
  3183. }
  3184. },
  3185. //删除待转单
  3186. deleteDing(e, index) {
  3187. let that = this
  3188. //删除当前列,不返回分页的第一条
  3189. that.listDai.splice(index, 1) //this.indentIds.indexOf(e.indentId)
  3190. that.indentIds.splice(index, 1)
  3191. if (that.indentIds.length == 0) {
  3192. that.lists.map((item) => {
  3193. item.checkeds = false
  3194. })
  3195. that.checkedz = false
  3196. } else {
  3197. that.lists.map((item) => {
  3198. if (item.indentId == e.indentId) {
  3199. item.checkeds = false
  3200. }
  3201. })
  3202. that.checkedz = false
  3203. }
  3204. },
  3205. //批量转单
  3206. transformOrder() {
  3207. let that = this
  3208. uni.showLoading({
  3209. title: '加载中',
  3210. mask: true // 是否显示透明蒙层,防止触摸穿透
  3211. })
  3212. if (that.indentIds.length == 0) {
  3213. uni.showToast({
  3214. title: '待转订单不能为空!',
  3215. icon: 'none'
  3216. })
  3217. } else if (that.riderId == '') {
  3218. uni.showToast({
  3219. title: '请选择骑手!',
  3220. icon: 'none'
  3221. })
  3222. } else {
  3223. var daa = {
  3224. indentIds: that.indentIds, //数据ID集合
  3225. riderId: that.riderId //被转单骑手ID
  3226. }
  3227. console.log('转单之前', daa)
  3228. that.$Request
  3229. .postJson('/app/tbindent/transferOfOrders', {
  3230. indentIds: that.indentIds, //数据ID集合
  3231. riderId: that.riderId //被转单骑手ID
  3232. })
  3233. .then((res) => {
  3234. if (res.code == 0) {
  3235. uni.showToast({
  3236. title: '批量转单成功',
  3237. icon: 'none'
  3238. })
  3239. // 在toast显示2000毫秒(2秒)后执行操作
  3240. setTimeout(function () {
  3241. that.riderId = ''
  3242. that.riderName = ''
  3243. that.indentIds = []
  3244. that.checkedz = false
  3245. that.showsZhuan = false
  3246. that.taskDataJ()
  3247. }, 1200)
  3248. } else {
  3249. uni.showToast({
  3250. title: res.msg,
  3251. icon: 'none'
  3252. })
  3253. // 在toast显示2000毫秒(2秒)后执行操作
  3254. setTimeout(function () {
  3255. that.riderId = ''
  3256. that.riderName = ''
  3257. that.indentIds = []
  3258. that.checkedz = false
  3259. that.showsZhuan = false
  3260. that.taskDataJ()
  3261. }, 1200)
  3262. }
  3263. // 加载提示关闭
  3264. uni.hideLoading()
  3265. })
  3266. }
  3267. },
  3268. //取消转单
  3269. quxiaoZhuan() {
  3270. this.riderId = ''
  3271. this.riderName = ''
  3272. this.indentIds = []
  3273. this.checkedz = false
  3274. this.showsZhuan = false
  3275. },
  3276. //选择转单人弹框
  3277. selectPeople() {
  3278. this.showsSelect = true
  3279. this.getRiders()
  3280. },
  3281. //骑手关键字搜索
  3282. searchKeywordRider(e) {
  3283. this.keywordRider = e.detail.value
  3284. this.getRiders()
  3285. },
  3286. //被转单骑手分页数据
  3287. getRiders() {
  3288. uni.showLoading({
  3289. title: '加载中',
  3290. mask: true // 是否显示透明蒙层,防止触摸穿透
  3291. })
  3292. console.log('listRideraaaaa', this.pageRider, this.sizeRider)
  3293. this.$Request
  3294. .getT('/app/user/findRiders', {
  3295. page: this.pageRider,
  3296. limit: this.sizeRider,
  3297. keyword: this.keywordRider //手机号或骑手姓名
  3298. })
  3299. .then((res) => {
  3300. console.log('listRider', res)
  3301. this.pageCountRider = res.data.totalCount
  3302. if (this.pageRider == 1) {
  3303. this.listRider = res.data.list
  3304. } else {
  3305. this.listRider = this.listRider.concat(res.data.list)
  3306. }
  3307. // console.log('listRider', this.listRider)
  3308. // res.page -- 后端返回的当前页,
  3309. // res.pageCount -- 后端返回的总页数
  3310. if (this.listRider.length == 0 || res.data.currPage == res.data.totalPage) {
  3311. this.status = 'nomore'
  3312. }
  3313. // 加载提示关闭
  3314. uni.hideLoading()
  3315. })
  3316. },
  3317. // 骑手数据滚动到底部
  3318. scrolltolower(e) {
  3319. if (this.listRider.length < this.pageCountRider) {
  3320. this.pageRider++
  3321. this.getRiders()
  3322. } else {
  3323. this.status = 'nomore'
  3324. }
  3325. },
  3326. //选择骑手
  3327. getRider(e) {
  3328. this.riderId = e.userId
  3329. this.riderName = e.userName
  3330. this.showsSelect = false
  3331. },
  3332. //删除已选骑手
  3333. deleteRider() {
  3334. this.riderId = ''
  3335. this.riderName = ''
  3336. }
  3337. },
  3338. // 上拉加载
  3339. onReachBottom: function () {
  3340. if (this.current == 0) {
  3341. if (!this.ifrenwu) {
  3342. console.log(this.list_shanghu.length, this.totalCount1, 'list_shanghu')
  3343. if (this.list_shanghu.length < this.totalCount1) {
  3344. this.page1 = this.page1 + 1
  3345. this.getShanglist()
  3346. } else {
  3347. uni.showToast({
  3348. title: '已经最后一页啦',
  3349. icon: 'none'
  3350. })
  3351. }
  3352. } else {
  3353. console.log(this.list_box.length, this.totalCount2, 'jjj')
  3354. if (this.list_box.length < this.totalCount2) {
  3355. this.page2 = this.page2 + 1
  3356. this.taskData()
  3357. this.checkedz = false
  3358. } else {
  3359. uni.showToast({
  3360. title: '已经最后一页啦',
  3361. icon: 'none'
  3362. })
  3363. }
  3364. }
  3365. } else if (this.current == 1) {
  3366. //配送中
  3367. if (this.lists.length < this.totalCount3) {
  3368. this.page3 = this.page3 + 1
  3369. this.indentState = 3
  3370. this.taskDataJ()
  3371. this.checkedz = false
  3372. } else {
  3373. uni.showToast({
  3374. title: '已经最后一页啦',
  3375. icon: 'none'
  3376. })
  3377. }
  3378. } else if (this.current == 2) {
  3379. //全部订单
  3380. if (this.lists.length < this.totalCount3) {
  3381. this.page3 = this.page3 + 1
  3382. this.indentState = 4
  3383. this.taskDataJ()
  3384. } else {
  3385. uni.showToast({
  3386. title: '已经最后一页啦',
  3387. icon: 'none'
  3388. })
  3389. }
  3390. }
  3391. },
  3392. onPullDownRefresh: function () {
  3393. if (this.current == 0) {
  3394. if (!this.ifrenwu) {
  3395. this.page1 = 1
  3396. this.getShanglist()
  3397. } else {
  3398. this.page2 = 1
  3399. this.taskData()
  3400. }
  3401. } else if (this.current == 1) {
  3402. this.page3 = 1
  3403. this.indentState = 3
  3404. this.taskDataJ()
  3405. } else if (this.current == 2) {
  3406. this.page3 = 1
  3407. this.indentState = 4
  3408. this.taskDataJ()
  3409. }
  3410. }
  3411. }
  3412. </script>
  3413. <style>
  3414. body {
  3415. background: #f5f5f5;
  3416. }
  3417. .privacy {
  3418. position: fixed;
  3419. top: 0;
  3420. right: 0;
  3421. bottom: 0;
  3422. left: 0;
  3423. background: rgba(0, 0, 0, 0.5);
  3424. z-index: 9999999;
  3425. display: flex;
  3426. align-items: center;
  3427. justify-content: center;
  3428. }
  3429. .contentview {
  3430. width: 632rpx;
  3431. padding: 48rpx;
  3432. box-sizing: border-box;
  3433. background: #fff;
  3434. border-radius: 16rpx;
  3435. }
  3436. .contentview .title {
  3437. text-align: center;
  3438. color: #333;
  3439. font-weight: bold;
  3440. font-size: 32rpx;
  3441. }
  3442. .contentview .des {
  3443. font-size: 26rpx;
  3444. color: #666;
  3445. margin-top: 40rpx;
  3446. text-align: justify;
  3447. line-height: 1.6;
  3448. }
  3449. .contentview .des .link {
  3450. color: #07c160;
  3451. text-decoration: underline;
  3452. }
  3453. button::after {
  3454. border: none;
  3455. }
  3456. .btns {
  3457. margin-top: 48rpx;
  3458. display: flex;
  3459. }
  3460. .btns .item {
  3461. justify-content: space-between;
  3462. width: 244rpx;
  3463. height: 80rpx;
  3464. display: flex;
  3465. align-items: center;
  3466. justify-content: center;
  3467. border-radius: 16rpx;
  3468. box-sizing: border-box;
  3469. border: none;
  3470. }
  3471. .btns .reject {
  3472. background: #f4f4f5;
  3473. color: #909399;
  3474. }
  3475. .btns .agree {
  3476. background: #07c160;
  3477. color: #fff;
  3478. }
  3479. .content {
  3480. margin-top: 100rpx;
  3481. min-height: 100vh; /* 设置最小高度为视口高度 */
  3482. }
  3483. /* 待取货和配送中搜索框 */
  3484. // 搜索框
  3485. .search-bar {
  3486. position: relative;
  3487. width: 100%;
  3488. height: 100rpx;
  3489. margin-top: 20rpx;
  3490. }
  3491. .search-bar-box {
  3492. display: flex;
  3493. margin: 0 auto;
  3494. width: 670rpx;
  3495. height: 90rpx;
  3496. background: rgba(255, 255, 255, 1);
  3497. border: 1px solid rgba(255, 141, 26, 1);
  3498. border-radius: 7rpx;
  3499. }
  3500. .search-span {
  3501. width: 38rpx;
  3502. height: 38rpx;
  3503. margin-top: 27rpx;
  3504. margin-left: 20rpx;
  3505. }
  3506. .search-text {
  3507. width: 100%;
  3508. margin-top: 20rpx;
  3509. margin-left: 20rpx;
  3510. font-size: 30rpx;
  3511. color: rgba(166, 166, 166, 1);
  3512. }
  3513. .impute {
  3514. text-align: center;
  3515. margin-left: 4%;
  3516. margin-top: 20rpx;
  3517. width: 690rpx;
  3518. height: 90rpx;
  3519. opacity: 1;
  3520. border-radius: 7rpx;
  3521. background: rgba(255, 255, 255, 1);
  3522. border: 1px solid rgba(255, 141, 26, 1);
  3523. }
  3524. /* 全选框和批量转单 */
  3525. .kuang-bar {
  3526. position: relative;
  3527. margin-left: 5%;
  3528. width: 90%;
  3529. height: 70rpx;
  3530. margin-top: 20rpx;
  3531. }
  3532. .kuang-padd {
  3533. float: left;
  3534. width: 20%;
  3535. display: flex;
  3536. margin: 10rpx auto;
  3537. font-size: 28rpx;
  3538. font-weight: 400;
  3539. line-height: 50rpx;
  3540. color: rgba(166, 166, 166, 1);
  3541. }
  3542. .kuang-li {
  3543. margin: 0 0 0 4%;
  3544. width: 50rpx;
  3545. height: 50rpx;
  3546. }
  3547. .kuang-kong {
  3548. opacity: 1;
  3549. border-radius: 6rpx;
  3550. border: 1rpx solid rgba(166, 166, 166, 1);
  3551. }
  3552. .kuang-se {
  3553. opacity: 1;
  3554. border-radius: 6rpx;
  3555. background: rgba(255, 141, 26, 1);
  3556. }
  3557. .kuang-line {
  3558. float: left;
  3559. margin-left: 5px;
  3560. margin-right: 5px;
  3561. width: 0px;
  3562. height: 220px;
  3563. border: 0.5px solid rgba(230, 230, 230, 1);
  3564. }
  3565. .kuang-btn {
  3566. float: right;
  3567. width: 163rpx;
  3568. height: 70rpx;
  3569. border-radius: 13rpx;
  3570. font-size: 28rpx;
  3571. font-weight: 400;
  3572. line-height: 70rpx;
  3573. text-align: center;
  3574. }
  3575. .selectpil {
  3576. background: rgba(255, 141, 26, 1);
  3577. color: rgba(255, 255, 255, 1);
  3578. }
  3579. .noselect {
  3580. background: #cccccc;
  3581. color: rgba(0, 0, 0, 0.6);
  3582. }
  3583. .slot-wrap {
  3584. display: flex;
  3585. justify-content: center;
  3586. align-items: center;
  3587. /* 如果您想让slot内容占满整个导航栏的宽度 */
  3588. /* flex: 1; */
  3589. /* 如果您想让slot内容与导航栏左右有空隙 */
  3590. /* padding: 0 30rpx; */
  3591. }
  3592. .u-title {
  3593. color: #000000 !important;
  3594. font-size: 31rpx !important;
  3595. font-weight: bold !important;
  3596. }
  3597. .solt {
  3598. position: relative;
  3599. }
  3600. .slot_left {
  3601. width: 60rpx;
  3602. height: 60rpx;
  3603. position: absolute;
  3604. top: 15rpx;
  3605. left: 20rpx;
  3606. }
  3607. .slot_left image {
  3608. width: 60rpx;
  3609. height: 60rpx;
  3610. }
  3611. .slot_content {
  3612. width: 35rpx;
  3613. height: 35rpx;
  3614. position: absolute;
  3615. top: 26rpx;
  3616. left: 280rpx;
  3617. }
  3618. .slot_content image {
  3619. width: 35rpx;
  3620. height: 35rpx;
  3621. }
  3622. /* tabs */
  3623. .u-tab-item {
  3624. color: #333333 !important;
  3625. /* font-size: 26rpx !important; */
  3626. letter-spacing: 2rpx;
  3627. }
  3628. .u-tab-bar {
  3629. width: 65rpx !important;
  3630. height: 8rpx !important;
  3631. background-color: #ff7f00 !important;
  3632. border-radius: 0rpx !important;
  3633. position: absolute !important;
  3634. bottom: 0rpx !important;
  3635. left: -14rpx !important;
  3636. }
  3637. .tabs_box {
  3638. display: none;
  3639. padding-bottom: 120rpx;
  3640. }
  3641. .dis {
  3642. display: block;
  3643. width: 100%;
  3644. margin-bottom: 190rpx;
  3645. }
  3646. .list_box1 {
  3647. width: 90%;
  3648. margin: 0 auto;
  3649. height: auto;
  3650. background: #ffffff;
  3651. border-radius: 23rpx;
  3652. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3653. margin-top: 20rpx;
  3654. padding-bottom: 20rpx;
  3655. }
  3656. .list_box {
  3657. width: 90%;
  3658. margin: 0 auto;
  3659. height: auto;
  3660. background: #ffffff;
  3661. border-radius: 23rpx;
  3662. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3663. margin-top: 20rpx;
  3664. padding-bottom: 20rpx;
  3665. }
  3666. .list_box2 {
  3667. width: 90%;
  3668. margin: 0 auto;
  3669. height: auto;
  3670. background: #ffffff;
  3671. border-radius: 23rpx;
  3672. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3673. margin-top: 20rpx;
  3674. }
  3675. .order_title {
  3676. width: 90%;
  3677. margin: 0 auto;
  3678. border-radius: 14px 14px, 0px, 0px;
  3679. background: rgba(255, 239, 222, 1);
  3680. height: 40upx;
  3681. color: rgba(255, 141, 26, 1);
  3682. font-size: 24upx;
  3683. line-height: 40upx;
  3684. text-align: center;
  3685. }
  3686. .part1 {
  3687. width: 90%;
  3688. margin: 0 auto;
  3689. justify-content: left;
  3690. align-items: center;
  3691. display: flex;
  3692. height: 100rpx;
  3693. position: relative;
  3694. }
  3695. .box_one {
  3696. background: #c4e2ff;
  3697. color: #359cff;
  3698. /* width: 60px;
  3699. height: 45rpx; */
  3700. padding: 0px 10px;
  3701. font-size: 26rpx;
  3702. text-align: center;
  3703. line-height: 45rpx;
  3704. border-radius: 5rpx;
  3705. }
  3706. .box_four {
  3707. color: #666666;
  3708. border: 1rpx solid #666666;
  3709. font-size: 22rpx;
  3710. width: 95px;
  3711. height: 40rpx;
  3712. text-align: center;
  3713. line-height: 40rpx;
  3714. border-radius: 5rpx;
  3715. margin-left: 20rpx;
  3716. }
  3717. .box_two {
  3718. color: #666666;
  3719. border: 1rpx solid #666666;
  3720. font-size: 22rpx;
  3721. /* width: 60px; */
  3722. height: 40rpx;
  3723. text-align: center;
  3724. line-height: 40rpx;
  3725. border-radius: 5rpx;
  3726. margin-left: 20rpx;
  3727. padding: 0 10rpx;
  3728. }
  3729. .box_two1 {
  3730. width: auto;
  3731. padding: 0 10rpx;
  3732. }
  3733. .box_three {
  3734. color: #666666;
  3735. border: 1rpx solid #666666;
  3736. font-size: 22rpx;
  3737. width: 75px;
  3738. height: 40rpx;
  3739. text-align: center;
  3740. line-height: 40rpx;
  3741. border-radius: 5rpx;
  3742. margin-left: 20rpx;
  3743. }
  3744. .part2 {
  3745. width: 90%;
  3746. margin: 0 auto;
  3747. }
  3748. /* 下线 */
  3749. .address_name {
  3750. font-size: 28rpx;
  3751. font-weight: bold;
  3752. letter-spacing: 2rpx;
  3753. /* line-height: 60rpx; */
  3754. display: -webkit-box;
  3755. -webkit-box-orient: vertical;
  3756. -webkit-line-clamp: 1;
  3757. overflow: hidden;
  3758. }
  3759. .name {
  3760. color: #999999;
  3761. font-size: 21rpx;
  3762. }
  3763. .name text {
  3764. /* margin-left: 10rpx; */
  3765. }
  3766. /* 上线 */
  3767. .box_add {
  3768. display: flex;
  3769. }
  3770. .distance {
  3771. flex: 1;
  3772. /* text-align: center; */
  3773. font-size: 28rpx;
  3774. display: flex;
  3775. justify-content: left;
  3776. align-items: center;
  3777. }
  3778. .a {
  3779. font-size: 16rpx;
  3780. }
  3781. .add_name {
  3782. /* display: flex; */
  3783. flex: 4;
  3784. }
  3785. .sh_name {
  3786. font-size: 28rpx;
  3787. font-weight: bold;
  3788. letter-spacing: 2rpx;
  3789. }
  3790. .sh_name1 {
  3791. font-size: 28rpx;
  3792. font-weight: bold;
  3793. letter-spacing: 2rpx;
  3794. color: #999999;
  3795. }
  3796. .xs_add {
  3797. color: #999999;
  3798. font-size: 21rpx;
  3799. margin-top: 10rpx;
  3800. }
  3801. .jiantou {
  3802. margin-left: 43rpx;
  3803. display: flex;
  3804. /* justify-content: space-between; */
  3805. align-items: center;
  3806. height: 40px;
  3807. line-height: 40px;
  3808. }
  3809. .jiantou image {
  3810. width: 20rpx;
  3811. height: 40rpx;
  3812. }
  3813. .jiantou > view {
  3814. margin-left: 10rpx;
  3815. }
  3816. .part3 {
  3817. width: 90%;
  3818. margin: 0 auto;
  3819. display: flex;
  3820. }
  3821. .three_left {
  3822. flex: 1;
  3823. height: 100rpx;
  3824. display: flex;
  3825. justify-content: left;
  3826. align-items: center;
  3827. }
  3828. .three_left image {
  3829. width: 20px;
  3830. height: 20px;
  3831. }
  3832. .three_left text {
  3833. color: #ff7f00;
  3834. font-size: 25rpx;
  3835. margin-left: 10rpx;
  3836. }
  3837. .three_right {
  3838. /* flex: 1; */
  3839. height: 100rpx;
  3840. display: flex;
  3841. justify-content: flex-end;
  3842. align-items: center;
  3843. color: #ff7f00;
  3844. font-size: 32rpx;
  3845. font-weight: bold;
  3846. }
  3847. .part4 {
  3848. width: 90%;
  3849. margin: 0 auto;
  3850. }
  3851. .box_btn {
  3852. width: 100%;
  3853. background: #cccccc;
  3854. height: 70rpx;
  3855. color: white;
  3856. text-align: center;
  3857. line-height: 70rpx;
  3858. font-size: 26rpx;
  3859. letter-spacing: 2rpx;
  3860. border-radius: 8rpx;
  3861. }
  3862. .box_btn1 {
  3863. width: 100%;
  3864. background: #ff7f00;
  3865. height: 80rpx;
  3866. color: white;
  3867. text-align: center;
  3868. line-height: 80rpx;
  3869. font-size: 31rpx;
  3870. letter-spacing: 2rpx;
  3871. border-radius: 8rpx;
  3872. }
  3873. .box_btn5 {
  3874. width: 16%;
  3875. margin-left: 40rpx;
  3876. background: #ff7f00;
  3877. height: 60rpx;
  3878. color: white;
  3879. text-align: center;
  3880. line-height: 60rpx;
  3881. font-size: 31rpx;
  3882. letter-spacing: 2rpx;
  3883. border-radius: 8rpx;
  3884. }
  3885. .part_six {
  3886. width: 90%;
  3887. margin: 0 auto;
  3888. display: flex;
  3889. }
  3890. .phone {
  3891. flex: 1;
  3892. }
  3893. .phone image {
  3894. width: 29rpx;
  3895. height: 33rpx;
  3896. margin-left: 30rpx;
  3897. }
  3898. .conmm {
  3899. font-size: 19rpx;
  3900. text-align: center;
  3901. letter-spacing: 5rpx;
  3902. }
  3903. .box_btn2 {
  3904. flex: 5;
  3905. width: 100%;
  3906. background: #ff7f00;
  3907. height: 70rpx;
  3908. color: white;
  3909. text-align: center;
  3910. line-height: 70rpx;
  3911. font-size: 26rpx;
  3912. letter-spacing: 2rpx;
  3913. border-radius: 6rpx;
  3914. }
  3915. /* tabbar */
  3916. .tabbar {
  3917. position: fixed;
  3918. bottom: 0rpx;
  3919. left: 0rpx;
  3920. right: 0rpx;
  3921. width: 100%;
  3922. height: 100rpx;
  3923. background: #ffffff;
  3924. display: flex;
  3925. }
  3926. .tabbar_type {
  3927. flex: 1;
  3928. text-align: center;
  3929. font-size: 22rpx;
  3930. margin-top: 10rpx;
  3931. }
  3932. .type_image {
  3933. width: 100%;
  3934. display: flex;
  3935. justify-content: center;
  3936. align-items: center;
  3937. }
  3938. .type_image image {
  3939. width: 47rpx;
  3940. height: 47rpx;
  3941. }
  3942. .tabbar_btn {
  3943. flex: 4;
  3944. display: flex;
  3945. justify-content: center;
  3946. align-items: center;
  3947. }
  3948. .btn {
  3949. width: 90%;
  3950. height: 80rpx;
  3951. background: #ff7f00;
  3952. color: white;
  3953. text-align: center;
  3954. line-height: 80rpx;
  3955. font-size: 26rpx;
  3956. letter-spacing: 2rpx;
  3957. border-radius: 8rpx;
  3958. }
  3959. .btn3 {
  3960. width: 90%;
  3961. height: 80rpx;
  3962. background: #cccccc;
  3963. color: white;
  3964. text-align: center;
  3965. line-height: 80rpx;
  3966. font-size: 26rpx;
  3967. letter-spacing: 2rpx;
  3968. border-radius: 8rpx;
  3969. }
  3970. /* 接单设置弹框 */
  3971. .u-drawer-bottom {
  3972. background-color: #f5f5f5 !important;
  3973. }
  3974. .popup_box {
  3975. width: 90%;
  3976. margin: 0 auto;
  3977. margin-top: 35rpx;
  3978. }
  3979. .title {
  3980. font-size: 29rpx;
  3981. font-weight: bold;
  3982. letter-spacing: 2rpx;
  3983. }
  3984. .part_one {
  3985. width: 100%;
  3986. background: #ffffff;
  3987. margin-top: 18rpx;
  3988. border-radius: 20rpx;
  3989. display: flex;
  3990. height: 120rpx;
  3991. }
  3992. .left {
  3993. flex: 3;
  3994. line-height: 40rpx;
  3995. margin-left: 20rpx;
  3996. margin-top: 20rpx;
  3997. }
  3998. .gotype {
  3999. font-size: 26rpx;
  4000. font-weight: bold;
  4001. letter-spacing: 2rpx;
  4002. }
  4003. .tit {
  4004. color: #999999;
  4005. font-size: 22rpx;
  4006. letter-spacing: 2rpx;
  4007. }
  4008. .right {
  4009. flex: 1;
  4010. display: flex;
  4011. justify-content: flex-end;
  4012. align-items: center;
  4013. margin-right: 30rpx;
  4014. }
  4015. .part_two {
  4016. width: 100%;
  4017. margin: 0 auto;
  4018. background: #ffffff;
  4019. border-radius: 20rpx;
  4020. margin-top: 20rpx;
  4021. height: 130rpx;
  4022. display: flex;
  4023. }
  4024. .two_left {
  4025. flex: 1;
  4026. display: flex;
  4027. justify-content: left;
  4028. align-items: center;
  4029. margin-left: 30rpx;
  4030. font-size: 29rpx;
  4031. font-weight: bold;
  4032. letter-spacing: 2rpx;
  4033. }
  4034. .two_right {
  4035. flex: 1;
  4036. display: flex;
  4037. justify-content: flex-end;
  4038. align-items: center;
  4039. margin-right: 30rpx;
  4040. color: #999999;
  4041. font-size: 25rpx;
  4042. letter-spacing: 2rpx;
  4043. }
  4044. .slot-content {
  4045. padding: 30rpx;
  4046. }
  4047. /* */
  4048. .tabs_box {
  4049. display: none;
  4050. }
  4051. .dis {
  4052. display: block;
  4053. width: 100%;
  4054. }
  4055. .u-tab-item {
  4056. /* font-size: 26upx !important; */
  4057. /* color: #666666 !important; */
  4058. }
  4059. .success_box {
  4060. width: 100%;
  4061. }
  4062. .order_box {
  4063. position: relative;
  4064. width: 90%;
  4065. height: 100%;
  4066. margin: 0 auto;
  4067. /* height: 420rpx; */
  4068. background: #ffffff;
  4069. margin-top: 20rpx;
  4070. border-radius: 16px;
  4071. }
  4072. .order_success {
  4073. width: 90%;
  4074. margin: 0 auto;
  4075. display: flex;
  4076. height: 80upx;
  4077. }
  4078. .order_name {
  4079. flex: 1;
  4080. display: flex;
  4081. justify-content: left;
  4082. align-items: center;
  4083. font-weight: bold;
  4084. font-size: 29rpx;
  4085. letter-spacing: 1upx;
  4086. }
  4087. .order_data {
  4088. flex: 1;
  4089. color: #999999;
  4090. display: flex;
  4091. justify-content: flex-end;
  4092. align-items: center;
  4093. font-size: 26rpx;
  4094. }
  4095. .city_type {
  4096. width: 90%;
  4097. margin: 0 auto;
  4098. height: 60upx;
  4099. line-height: 60upx;
  4100. display: flex;
  4101. justify-content: left;
  4102. align-items: center;
  4103. }
  4104. .type_name {
  4105. font-size: 27rpx;
  4106. }
  4107. .city_text {
  4108. width: 70rpx;
  4109. line-height: 36rpx;
  4110. color: #49a5ff;
  4111. background: #c4e2ff;
  4112. text-align: center;
  4113. font-size: 19rpx;
  4114. margin-left: 20rpx;
  4115. }
  4116. .city_address {
  4117. width: 92%;
  4118. margin: 0 auto;
  4119. margin-top: -10rpx;
  4120. }
  4121. /* 发货地址 */
  4122. .fh_box {
  4123. display: flex;
  4124. /* height: 80upx; */
  4125. margin-top: 20upx;
  4126. }
  4127. .fh_image {
  4128. flex: 1;
  4129. display: flex;
  4130. /* justify-content: left;
  4131. align-items: center; */
  4132. }
  4133. .box {
  4134. flex: 9;
  4135. }
  4136. .fh_name {
  4137. font-size: 26rpx;
  4138. font-weight: 600;
  4139. letter-spacing: 2upx;
  4140. }
  4141. .fh_type {
  4142. color: #999999;
  4143. font-size: 22upx;
  4144. }
  4145. .fh_type text {
  4146. margin-left: 20upx;
  4147. }
  4148. /* 送货地址 */
  4149. .sh_box {
  4150. display: flex;
  4151. margin-bottom: 14upx;
  4152. margin-top: 14rpx;
  4153. }
  4154. .sh_image {
  4155. flex: 1;
  4156. display: flex;
  4157. /* justify-content: left;
  4158. align-items: center; */
  4159. }
  4160. .sh_name {
  4161. font-size: 28rpx;
  4162. font-weight: 600;
  4163. letter-spacing: 2upx;
  4164. }
  4165. .sh_type {
  4166. color: #999999;
  4167. font-size: 22upx;
  4168. }
  4169. .sh_type text {
  4170. margin-left: 20upx;
  4171. }
  4172. .fh_image image {
  4173. width: 40rpx;
  4174. height: 40rpx;
  4175. }
  4176. .sh_image image {
  4177. width: 40rpx;
  4178. height: 40rpx;
  4179. }
  4180. .order_btn {
  4181. display: flex;
  4182. justify-content: flex-end;
  4183. align-items: center;
  4184. height: 100upx;
  4185. line-height: 100upx;
  4186. /* margin-top: 8upx; */
  4187. }
  4188. .btn1 {
  4189. width: 170upx;
  4190. font-size: 28rpx;
  4191. line-height: 60upx;
  4192. text-align: center;
  4193. border: 1upx solid #9c9c9c;
  4194. border-radius: 20upx;
  4195. color: #9c9c9c;
  4196. margin-right: 30upx;
  4197. }
  4198. .btn7 {
  4199. width: 170upx;
  4200. font-size: 28rpx;
  4201. line-height: 60upx;
  4202. text-align: center;
  4203. border-radius: 20upx;
  4204. background: rgba(0, 186, 173, 1);
  4205. color: rgba(255, 255, 255, 1);
  4206. margin-right: 30upx;
  4207. }
  4208. /* 拍照 */
  4209. .btn_pai {
  4210. width: 150rpx;
  4211. height: 60rpx;
  4212. line-height: 60rpx;
  4213. text-align: center;
  4214. background: rgba(255, 201, 189, 1);
  4215. font-size: 28rpx;
  4216. border: 2rpx solid rgba(255, 201, 189, 1);
  4217. color: #333333;
  4218. border-radius: 20upx;
  4219. font-weight: 700;
  4220. margin-left: 15rpx;
  4221. }
  4222. .btn2 {
  4223. width: 170upx;
  4224. line-height: 60upx;
  4225. color: white;
  4226. background: #ff6a04;
  4227. font-size: 28rpx;
  4228. text-align: center;
  4229. margin-right: 30upx;
  4230. border-radius: 20upx;
  4231. }
  4232. /* 一键转单弹框 */
  4233. .receipt_zhuan {
  4234. width: 100%;
  4235. margin: 0 auto;
  4236. }
  4237. .zhuan_title {
  4238. width: 100%;
  4239. line-height: 100rpx;
  4240. font-size: 28rpx;
  4241. font-weight: bold;
  4242. text-align: center;
  4243. letter-spacing: 2rpx;
  4244. margin-top: 21rpx;
  4245. margin-bottom: 25rpx;
  4246. }
  4247. .zhuan-mode {
  4248. background-color: rgba(247, 247, 247, 1);
  4249. width: 100%;
  4250. }
  4251. .zhuan-title {
  4252. margin-left: 18rpx;
  4253. font-size: 32rpx;
  4254. font-weight: 600;
  4255. letter-spacing: 0px;
  4256. line-height: 46rpx;
  4257. color: rgba(0, 0, 0, 1);
  4258. }
  4259. .zhuan-que {
  4260. width: 100%;
  4261. height: 670rpx;
  4262. overflow-y: auto;
  4263. }
  4264. .zhuan-ding {
  4265. display: grid;
  4266. position: relative;
  4267. margin: 10rpx 0 0 20rpx;
  4268. width: 650rpx;
  4269. opacity: 1;
  4270. border-radius: 1rpx;
  4271. background: rgba(255, 255, 255, 1);
  4272. }
  4273. .ding-1 {
  4274. position: relative;
  4275. margin: 11rpx 0 0 28rpx;
  4276. padding-top: 11rpx;
  4277. font-size: 28rpx;
  4278. font-weight: 600;
  4279. letter-spacing: 0px;
  4280. line-height: 41rpx;
  4281. color: rgba(0, 0, 0, 1);
  4282. }
  4283. .ding-shop {
  4284. float: left;
  4285. }
  4286. .ding-xuhao {
  4287. float: left;
  4288. margin-left: 30rpx;
  4289. }
  4290. .ding-2 {
  4291. position: relative;
  4292. margin: 11rpx 0 0 28rpx;
  4293. font-size: 28rpx;
  4294. font-weight: 400;
  4295. letter-spacing: 0px;
  4296. line-height: 41rpx;
  4297. color: rgba(102, 102, 102, 1);
  4298. }
  4299. .zhuan-btu1 {
  4300. float: left;
  4301. width: 120rpx;
  4302. height: 60rpx;
  4303. opacity: 1;
  4304. border-radius: 5rpx;
  4305. background: rgba(255, 141, 26, 1);
  4306. font-size: 28rpx;
  4307. font-weight: 400;
  4308. letter-spacing: 0rpx;
  4309. line-height: 60rpx;
  4310. color: rgba(255, 255, 255, 1);
  4311. text-align: center;
  4312. }
  4313. .zhuan-text {
  4314. float: left;
  4315. margin-left: 30rpx;
  4316. font-size: 28rpx;
  4317. font-weight: 400;
  4318. letter-spacing: 0px;
  4319. line-height: 60rpx;
  4320. color: rgba(0, 0, 0, 1);
  4321. }
  4322. .zhuan-btu2 {
  4323. float: left;
  4324. width: 305rpx;
  4325. height: 90rpx;
  4326. opacity: 1;
  4327. border-radius: 9rpx;
  4328. border: 1rpx solid rgba(255, 141, 26, 1);
  4329. font-size: 28rpx;
  4330. font-weight: 400;
  4331. letter-spacing: 0px;
  4332. line-height: 90rpx;
  4333. color: rgba(255, 141, 26, 1);
  4334. text-align: center;
  4335. }
  4336. .zhuan-btu3 {
  4337. float: right;
  4338. width: 305rpx;
  4339. height: 90rpx;
  4340. opacity: 1;
  4341. border-radius: 9rpx;
  4342. background: rgba(255, 141, 26, 1);
  4343. font-size: 28rpx;
  4344. font-weight: 400;
  4345. letter-spacing: 0px;
  4346. line-height: 90rpx;
  4347. color: rgba(255, 255, 255, 1);
  4348. text-align: center;
  4349. }
  4350. /* 选择转单人弹框 */
  4351. .xuan-list {
  4352. position: relative;
  4353. width: 100%;
  4354. height: 140rpx;
  4355. background: rgba(255, 255, 255, 1);
  4356. }
  4357. .xuan-list2 {
  4358. position: relative;
  4359. width: 100%;
  4360. height: 140rpx;
  4361. background: rgba(255, 246, 237, 1);
  4362. }
  4363. .xuan-right {
  4364. float: left;
  4365. margin-left: 22rpx;
  4366. }
  4367. .ding-3 {
  4368. position: relative;
  4369. margin-top: 31rpx;
  4370. height: 40rpx;
  4371. font-size: 28rpx;
  4372. font-weight: 600;
  4373. letter-spacing: 0px;
  4374. line-height: 41rpx;
  4375. color: rgba(0, 0, 0, 1);
  4376. }
  4377. /* 收货码弹框 */
  4378. .receipt_code {
  4379. width: 90%;
  4380. margin: 0 auto;
  4381. }
  4382. .code_title {
  4383. width: 100%;
  4384. line-height: 100rpx;
  4385. font-size: 31rpx;
  4386. font-weight: bold;
  4387. text-align: center;
  4388. letter-spacing: 2rpx;
  4389. margin-top: 21rpx;
  4390. margin-bottom: 25rpx;
  4391. }
  4392. .u-input--border {
  4393. border: 1px solid #f2f2f2 !important;
  4394. background: #f2f2f2 !important;
  4395. color: #999999 !important;
  4396. font-weight: 500 !important;
  4397. letter-spacing: 2rpx !important;
  4398. }
  4399. .u-input__input {
  4400. font-size: 30rpx;
  4401. font-weight: bold;
  4402. flex: 1;
  4403. color: #999999 !important;
  4404. min-height: 85rpx !important;
  4405. margin-top: 7rpx;
  4406. }
  4407. .sure {
  4408. width: 100%;
  4409. height: 80rpx;
  4410. background: #ff7f00;
  4411. color: white;
  4412. border-radius: 46rpx;
  4413. text-align: center;
  4414. line-height: 80rpx;
  4415. margin-top: 30rpx;
  4416. letter-spacing: 2rpx;
  4417. }
  4418. /* 确认送达拍照框 */
  4419. .phone_title {
  4420. margin-top: 10px;
  4421. width: 100%;
  4422. height: 40px;
  4423. /* background-color: #FF7F00; */
  4424. text-align: center;
  4425. line-height: 40px;
  4426. /* color:#FFFFFF; */
  4427. }
  4428. .phone_title2 {
  4429. margin-top: 10px;
  4430. text-align: center;
  4431. color: #9d9d9d;
  4432. }
  4433. .code_title2 {
  4434. width: 100%;
  4435. line-height: 50rpx;
  4436. text-align: center;
  4437. letter-spacing: 2rpx;
  4438. margin-top: 21rpx;
  4439. margin-bottom: 25rpx;
  4440. }
  4441. </style>