index.vue 122 KB

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