index.vue 124 KB

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