index.vue 125 KB

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