index.vue 124 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581
  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.$Request
  1506. .getT('/app/tbindent/selectTbIndentPage', {
  1507. page: 1,
  1508. limit: 10,
  1509. acquireCode: that.shoudanma
  1510. })
  1511. .then((res) => {
  1512. console.log(res, 'lk')
  1513. uni.hideLoading()
  1514. if (res.data) {
  1515. if (res.data.list.length > 0) {
  1516. for (var i = 0; i < res.data.list.length; i++) {
  1517. if (res.data.list[i].distancess > 1000) {
  1518. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  1519. } else {
  1520. if (res.data.list[i].distancess == '0') {
  1521. res.data.list[i].distancess = '0m'
  1522. } else {
  1523. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  1524. }
  1525. }
  1526. if (res.data.list[i].distancessd > 1000) {
  1527. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  1528. } else {
  1529. if (res.data.list[i].distancessd == '0') {
  1530. res.data.list[i].distancessd = '0m'
  1531. } else {
  1532. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(1) + 'm'
  1533. }
  1534. }
  1535. }
  1536. }
  1537. var saomajie = []
  1538. saomajie = res.data.list
  1539. that.list2 = res.data.list
  1540. console.log(saomajie, '列表')
  1541. if (that.list2.length > 0) {
  1542. if (that.list2[0].indentState == '2' || that.list2[0].indentState == '3') {
  1543. //收单
  1544. that.shouorder()
  1545. } else if (that.list2[0].indentState == '4') {
  1546. that.saomaPeisong = true
  1547. } else {
  1548. that.jiedanNo = true
  1549. that.shoudanma = ''
  1550. }
  1551. } else {
  1552. // that.saomaPeisong=true
  1553. that.jiedanNo = true
  1554. that.shoudanma = ''
  1555. }
  1556. } else if (res.msg == '当前订单无法接单') {
  1557. that.jiedanNo = true
  1558. that.shoudanma = ''
  1559. }
  1560. that.$forceUpdate()
  1561. uni.stopPullDownRefresh()
  1562. // 加载提示关闭
  1563. uni.hideLoading()
  1564. })
  1565. },
  1566. // 收单
  1567. shouorder() {
  1568. let that = this
  1569. if (that.checkCertification == 0) {
  1570. uni.showToast({
  1571. title: '实名认证审核中,无法收单',
  1572. icon: 'none'
  1573. })
  1574. return
  1575. }
  1576. if (that.checkCertification == 2) {
  1577. uni.showToast({
  1578. title: '实名认证未通过,无法收单',
  1579. icon: 'none'
  1580. })
  1581. return
  1582. }
  1583. uni.showLoading({
  1584. title: '加载中',
  1585. mask: true // 是否显示透明蒙层,防止触摸穿透
  1586. })
  1587. console.log('用户点击确定')
  1588. that.$Request
  1589. .postT('/app/tbindent/orderIndentReceiving', {
  1590. acquireCode: that.shoudanma
  1591. })
  1592. .then((res) => {
  1593. console.log(res, 'ppp')
  1594. if (res.code == 0) {
  1595. uni.showToast({
  1596. title: '收单成功',
  1597. icon: 'none'
  1598. })
  1599. // 在toast显示2000毫秒(2秒)后执行操作
  1600. setTimeout(function () {
  1601. that.current = 2
  1602. that.indentState = 4
  1603. that.taskDataJ()
  1604. }, 1200)
  1605. } else {
  1606. console.log('失败:', res.data)
  1607. uni.showToast({
  1608. title: res.msg,
  1609. icon: 'none'
  1610. })
  1611. // that.taskData()
  1612. }
  1613. // 加载提示关闭
  1614. uni.hideLoading()
  1615. that.shouhuoma = ''
  1616. })
  1617. },
  1618. // 打开隐私协议页面
  1619. openPrivacyContract() {
  1620. let that = this
  1621. wx.openPrivacyContract({
  1622. fail: () => {
  1623. that.$queue.showToast('遇到错误无法打开!')
  1624. }
  1625. })
  1626. },
  1627. // 拒绝隐私协议
  1628. exitMiniProgram() {
  1629. // 直接退出小程序
  1630. wx.exitMiniProgram()
  1631. },
  1632. // 同意隐私协议
  1633. handleAgreePrivacyAuthorization() {
  1634. // this.$refs.popusAuthorization.close();
  1635. this.Authorization = false
  1636. let that = this
  1637. uni.getLocation({
  1638. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  1639. success: function (res) {
  1640. console.log('当前位置的经度:' + res.longitude)
  1641. console.log('当前位置的纬度:' + res.latitude)
  1642. // uni.request({
  1643. // url: that.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+res.longitude+',%22lat%22:'+res.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
  1644. // success: res => {
  1645. // console.log(res,'ppp运行')
  1646. // that.province = res.data.result.addressComponent.province
  1647. // that.city = res.data.result.addressComponent.city
  1648. // that.district = res.data.result.addressComponent.county
  1649. // },
  1650. // fail: err => {
  1651. // console.log("请求超时");
  1652. // console.log(err);
  1653. // },
  1654. // // complete: () => { //无论成功都会调用
  1655. // // uni.hideLoading()
  1656. // // }
  1657. // })
  1658. // let data = {
  1659. // lat: res.latitude,
  1660. // lng: res.longitude
  1661. // }
  1662. // that.$Request.getT('/app/Login/selectCity', data).then((res) => {
  1663. // if (res.code == 0) {
  1664. // that.province = res.data.province
  1665. // that.city = res.data.city
  1666. // that.district = res.data.district
  1667. // }
  1668. // })
  1669. },
  1670. fail(e) {
  1671. uni.hideLoading()
  1672. uni.showModal({
  1673. title: '温馨提示',
  1674. content: '您的定位权限未开启,请开启后再来操作吧!',
  1675. showCancel: true,
  1676. cancelText: '取消',
  1677. confirmText: '确认',
  1678. success: (res) => {
  1679. if (res.confirm) {
  1680. // #ifdef MP-WEIXIN
  1681. uni.openSetting({
  1682. // 打开设置页
  1683. success(rea) {
  1684. console.log(rea.authSetting)
  1685. }
  1686. })
  1687. // #endif
  1688. // #ifdef APP-PLUS
  1689. gotoAppPermissionSetting()
  1690. // #endif
  1691. }
  1692. }
  1693. })
  1694. }
  1695. })
  1696. },
  1697. //获取最大接单数
  1698. getOrderNum() {
  1699. // orderNum
  1700. this.$Request.get('/app/common/type/342').then((res) => {
  1701. if (res.code == 0 && res.data.value) {
  1702. this.orderNum = res.data.value
  1703. }
  1704. })
  1705. },
  1706. //获取骑手所在站点
  1707. getZhandian() {
  1708. let data = {
  1709. userId: uni.getStorageSync('userId')
  1710. }
  1711. this.$Request.get('/admin/riderStation/getRiderStationName', data).then((res) => {
  1712. console.log('骑手站点', this.userId, res)
  1713. if (res.code == 0 && res.data.stationName) {
  1714. this.qiZhandian = res.data.stationName
  1715. }
  1716. })
  1717. },
  1718. // 上传骑手位置
  1719. getLocation() {
  1720. if (this.userId) {
  1721. let data = {
  1722. lng: this.longitude,
  1723. lat: this.latitude,
  1724. userId: this.userId,
  1725. province: this.province,
  1726. city: this.city,
  1727. district: this.district
  1728. }
  1729. this.$Request.getT('/timedtask/riderLocation', data).then((res) => {
  1730. if ((res.code = 0)) {
  1731. console.log('上传骑手位置')
  1732. }
  1733. })
  1734. }
  1735. },
  1736. switchxdd(e) {
  1737. this.xddcheck = e
  1738. // #ifdef MP-WEIXIN
  1739. if (uni.getStorageSync('sendMsg')) {
  1740. uni.requestSubscribeMessage({
  1741. tmplIds: this.arr,
  1742. success(re) {
  1743. // console.log(re,'**********')
  1744. var datas = JSON.stringify(re)
  1745. if (datas.indexOf('accept') != -1) {
  1746. console.log(re)
  1747. }
  1748. },
  1749. fail: (res) => {
  1750. console.log(res)
  1751. }
  1752. })
  1753. }
  1754. // #endif
  1755. let isSendMsg = 1
  1756. if (!this.xddcheck) {
  1757. isSendMsg = 2
  1758. }
  1759. let data = {
  1760. isSendMsg: isSendMsg
  1761. }
  1762. this.$Request.postJson('/app/user/updateUser', data).then((res) => {
  1763. if (res.code == 0) {
  1764. }
  1765. })
  1766. },
  1767. //获取用户信息
  1768. getUserInfo() {
  1769. let that = this
  1770. that.$Request.getT('/app/userinfo/findUserInfoById').then((res) => {
  1771. if (res.code == 0 && res.data) {
  1772. that.seen = res.data.onLineFlag == 1 ? false : true
  1773. // that.xddcheck = res.data.isSendMsg == 2 ? false : true;
  1774. that.checkCertification = res.data.checkCertification
  1775. this.qiPhone = res.data.phone
  1776. uni.setStorageSync('phone', res.data.phone)
  1777. uni.setStorageSync('checkCertification', res.data.checkCertification)
  1778. if (that.seen) {
  1779. that.tit = '休息中'
  1780. } else {
  1781. that.tit = '接单中'
  1782. // that.locationUpdate()
  1783. }
  1784. uni.getLocation({
  1785. type: 'wgs84',
  1786. success: (res) => {
  1787. console.log('当前位置的经度:' + res.longitude)
  1788. console.log('当前位置的纬度:' + res.latitude)
  1789. that.longitude = res.longitude
  1790. that.latitude = res.latitude
  1791. that.locationUpdate(that.longitude, that.latitude)
  1792. if (that.current == 0) {
  1793. if (!that.ifrenwu) {
  1794. this.getShanglist()
  1795. } else {
  1796. that.taskData()
  1797. }
  1798. //
  1799. } else if (that.current == 1) {
  1800. that.indentState = 3
  1801. that.taskDataJ()
  1802. this.indentIds = []
  1803. this.checkedz=false
  1804. } else if (that.current == 2) {
  1805. that.indentState = 4
  1806. that.taskDataJ()
  1807. this.indentIds = []
  1808. this.checkedz=false
  1809. }
  1810. }
  1811. })
  1812. }
  1813. })
  1814. },
  1815. // 顶部tab切换
  1816. change(index) {
  1817. // #ifdef MP-WEIXIN
  1818. if (uni.getStorageSync('sendMsg')) {
  1819. uni.requestSubscribeMessage({
  1820. tmplIds: this.arr,
  1821. success(re) {
  1822. // console.log(re,'**********')
  1823. var datas = JSON.stringify(re)
  1824. if (datas.indexOf('accept') != -1) {
  1825. console.log(re)
  1826. }
  1827. },
  1828. fail: (res) => {
  1829. console.log(res)
  1830. }
  1831. })
  1832. }
  1833. // #endif
  1834. this.current = index
  1835. if (index == 0) {
  1836. //接单池
  1837. uni.showLoading({
  1838. title: '加载中...',
  1839. mask: true // 是否显示透明蒙层,防止触摸穿透
  1840. })
  1841. this.page1 = 1
  1842. this.ifrenwu = false
  1843. this.getShanglist()
  1844. // this.taskData()
  1845. } else if (index == 1) {
  1846. //待取货
  1847. uni.showLoading({
  1848. title: '加载中...',
  1849. mask: true // 是否显示透明蒙层,防止触摸穿透
  1850. })
  1851. this.page3 = 1
  1852. this.indentState = 3
  1853. this.taskDataJ()
  1854. this.indentIds = []
  1855. this.checkedz=false
  1856. } else if (index == 2) {
  1857. //配送中
  1858. uni.showLoading({
  1859. title: '加载中...',
  1860. mask: true // 是否显示透明蒙层,防止触摸穿透
  1861. })
  1862. this.page3 = 1
  1863. this.indentState = 4
  1864. this.taskDataJ()
  1865. this.indentIds = []
  1866. this.checkedz=false
  1867. } else if (index == 3) {
  1868. //全部订单
  1869. // uni.showLoading({
  1870. // title: '加载中...',
  1871. // mask: true, // 是否显示透明蒙层,防止触摸穿透
  1872. // })
  1873. this.current = 0
  1874. uni.navigateTo({
  1875. url: '/pages/riderMy/order'
  1876. })
  1877. }
  1878. },
  1879. // 上下线
  1880. bindup() {
  1881. let that = this
  1882. if (!that.userId) {
  1883. uni.navigateTo({
  1884. url: '/pages/login/login'
  1885. })
  1886. return
  1887. }
  1888. // #ifdef MP-WEIXIN
  1889. if (uni.getStorageSync('sendMsg')) {
  1890. uni.requestSubscribeMessage({
  1891. tmplIds: this.arr,
  1892. success(re) {
  1893. // console.log(re,'**********')
  1894. var datas = JSON.stringify(re)
  1895. if (datas.indexOf('accept') != -1) {
  1896. console.log(re)
  1897. }
  1898. },
  1899. fail: (res) => {
  1900. console.log(res)
  1901. }
  1902. })
  1903. }
  1904. // #endif
  1905. let content = ''
  1906. if (that.seen) {
  1907. content = '确认开始接单吗'
  1908. } else {
  1909. content = '确认停止接单吗'
  1910. }
  1911. uni.showModal({
  1912. title: '提示',
  1913. content: content,
  1914. success: function (res) {
  1915. if (res.confirm) {
  1916. that.$Request
  1917. .postT('/app/userinfo/updateOnLine', {
  1918. onLineFlag: that.seen ? 1 : 2
  1919. })
  1920. .then((res) => {
  1921. that.getUserInfo()
  1922. })
  1923. }
  1924. }
  1925. })
  1926. },
  1927. // 更新骑手位置信息
  1928. locationUpdate(lng, lat) {
  1929. let that = this
  1930. // setInterval(function() {
  1931. that.$Request
  1932. .postT('/app/userinfo/updateCoordinate', {
  1933. lng: lng,
  1934. lat: lat
  1935. })
  1936. .then((res) => {
  1937. console.log('位置信息更新', res)
  1938. if (!that.ifrenwu) {
  1939. this.getShanglist()
  1940. } else {
  1941. that.taskData()
  1942. }
  1943. // that.taskData()
  1944. })
  1945. // }, 600000)
  1946. },
  1947. //跳转某商家订单
  1948. dingdetails(shopId) {
  1949. this.shopId = shopId
  1950. this.ifrenwu = true
  1951. this.taskData()
  1952. },
  1953. //返回商户
  1954. fanhuiShang() {
  1955. this.ifrenwu = false
  1956. this.getShanglist()
  1957. },
  1958. // 跳转订单详情
  1959. binddetails(id, types) {
  1960. // #ifdef MP-WEIXIN
  1961. if (uni.getStorageSync('sendMsg')) {
  1962. uni.requestSubscribeMessage({
  1963. tmplIds: this.arr,
  1964. success(re) {
  1965. // console.log(re,'**********')
  1966. var datas = JSON.stringify(re)
  1967. if (datas.indexOf('accept') != -1) {
  1968. console.log(re)
  1969. }
  1970. },
  1971. fail: (res) => {
  1972. console.log(res)
  1973. }
  1974. })
  1975. }
  1976. // #endif
  1977. console.log('```', id, types)
  1978. if (types == 1 || types == 2 || types == 3 || types == 5) {
  1979. uni.navigateTo({
  1980. url: '/pages/index/buyOrder/buyOrder?id=' + id
  1981. })
  1982. } else {
  1983. uni.navigateTo({
  1984. url: '/pages/index/cityOrder/cityOrder?id=' + id
  1985. })
  1986. }
  1987. },
  1988. // 接单
  1989. bindorder(item, index) {
  1990. let that = this
  1991. if (!that.userId) {
  1992. uni.showModal({
  1993. title: '提示',
  1994. content: '请先登录后再接单',
  1995. success: function (res) {
  1996. if (res.confirm) {
  1997. console.log('用户点击确定')
  1998. uni.navigateTo({
  1999. url: '/pages/login/login'
  2000. })
  2001. } else if (res.cancel) {
  2002. console.log('用户点击取消')
  2003. }
  2004. }
  2005. })
  2006. return
  2007. }
  2008. // #ifdef MP-WEIXIN
  2009. if (uni.getStorageSync('sendMsg')) {
  2010. uni.requestSubscribeMessage({
  2011. tmplIds: this.arr,
  2012. success(re) {
  2013. // console.log(re,'**********')
  2014. var datas = JSON.stringify(re)
  2015. if (datas.indexOf('accept') != -1) {
  2016. console.log(re)
  2017. }
  2018. },
  2019. fail: (res) => {
  2020. console.log(res)
  2021. }
  2022. })
  2023. }
  2024. // #endif
  2025. if (that.checkCertification == null) {
  2026. uni.showModal({
  2027. title: '提示',
  2028. content: '请先实名认证后再接单',
  2029. success: function (res) {
  2030. if (res.confirm) {
  2031. console.log('用户点击确定')
  2032. uni.navigateTo({
  2033. url: '/pages/riderMy/approve/approve'
  2034. })
  2035. } else if (res.cancel) {
  2036. console.log('用户点击取消')
  2037. }
  2038. }
  2039. })
  2040. return
  2041. }
  2042. if (that.checkCertification == 0) {
  2043. uni.showToast({
  2044. title: '实名认证审核中,无法接单',
  2045. icon: 'none'
  2046. })
  2047. return
  2048. }
  2049. if (that.checkCertification == 2) {
  2050. uni.showToast({
  2051. title: '实名认证未通过,无法接单',
  2052. icon: 'none'
  2053. })
  2054. return
  2055. }
  2056. uni.showModal({
  2057. title: '提示',
  2058. content: '确认接单吗',
  2059. success: function (res) {
  2060. if (res.confirm) {
  2061. uni.showLoading({
  2062. title: '加载中',
  2063. mask: true // 是否显示透明蒙层,防止触摸穿透
  2064. })
  2065. console.log('用户点击确定', item.indentNumber)
  2066. that.$Request
  2067. .postT('/app/tbindent/indentReceiving', {
  2068. indentNumber: item.indentNumber
  2069. })
  2070. .then((res) => {
  2071. console.log(res, 'kkk')
  2072. if (res.code == 0) {
  2073. // that.page1 = 1
  2074. // this.getShanglist()
  2075. // that.taskData()
  2076. uni.showToast({
  2077. title: '接单成功',
  2078. icon: 'none'
  2079. })
  2080. // 在toast显示2000毫秒(2秒)后执行操作
  2081. setTimeout(function () {
  2082. //刷新当前列,不返回分页的第一条
  2083. that.list_box.splice(index, 1)
  2084. }, 1200)
  2085. } else {
  2086. console.log('失败:', res.data)
  2087. uni.showToast({
  2088. title: res.msg,
  2089. icon: 'none'
  2090. })
  2091. // 在toast显示2000毫秒(2秒)后执行操作
  2092. setTimeout(function () {
  2093. if (!that.ifrenwu) {
  2094. that.page1 = 1
  2095. that.getShanglist()
  2096. } else {
  2097. that.page2 = 1
  2098. that.taskData()
  2099. }
  2100. }, 1200)
  2101. // that.getShanglist()
  2102. // that.taskData()
  2103. }
  2104. // 加载提示关闭
  2105. uni.hideLoading()
  2106. })
  2107. } else if (res.cancel) {
  2108. console.log('用户点击取消')
  2109. }
  2110. }
  2111. })
  2112. },
  2113. // 未登录接单
  2114. bindorder1() {
  2115. uni.showToast({
  2116. title: '上线后方可接单',
  2117. icon: 'none'
  2118. })
  2119. },
  2120. bindridermy() {
  2121. // #ifdef MP-WEIXIN
  2122. if (uni.getStorageSync('sendMsg')) {
  2123. uni.requestSubscribeMessage({
  2124. tmplIds: this.arr,
  2125. success(re) {
  2126. // console.log(re,'**********')
  2127. var datas = JSON.stringify(re)
  2128. if (datas.indexOf('accept') != -1) {
  2129. console.log(re)
  2130. }
  2131. },
  2132. fail: (res) => {
  2133. console.log(res)
  2134. }
  2135. })
  2136. }
  2137. // #endif
  2138. uni.navigateTo({
  2139. url: '/pages/riderMy/riderMy'
  2140. })
  2141. },
  2142. onshow() {
  2143. console.log('第一个')
  2144. this.show = true
  2145. },
  2146. //获取接单池各商家列表
  2147. getShanglist() {
  2148. uni.showLoading({
  2149. title: '加载中',
  2150. mask: true // 是否显示透明蒙层,防止触摸穿透
  2151. })
  2152. uni.request({
  2153. url: this.config("ROOAA") +'geocoder?postStr={%27ver%22:%221%22,%22lon%22:'+this.longitude+',%22lat%22:'+this.latitude+'}&type=geocode&tk=ad07f7a00b20b7f4cd4af3b6f7590330',
  2154. success: res => {
  2155. console.log(res,'ppp运行')
  2156. this.province = res.data.result.addressComponent.province
  2157. this.city = res.data.result.addressComponent.city
  2158. this.district = res.data.result.addressComponent.county
  2159. var daa = {
  2160. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2161. indentType: this.indentType,
  2162. limit: 10,
  2163. page: this.page1,
  2164. receivingPattern: this.receivingPettern,
  2165. riderLat: this.latitude,
  2166. riderLng: this.longitude,
  2167. city:this.city
  2168. }
  2169. console.log('之前', daa)
  2170. this.$Request
  2171. .postJson('/app/tbindent/find-new-indent-group-by-shop', {
  2172. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2173. indentType: this.indentType,
  2174. limit: 10,
  2175. page: this.page1,
  2176. receivingPattern: this.receivingPettern,
  2177. riderLat: this.latitude,
  2178. riderLng: this.longitude,
  2179. city:this.city
  2180. })
  2181. .then((res) => {
  2182. uni.hideLoading()
  2183. console.log('接单池商家',res)
  2184. if (res.data) {
  2185. if (res.data.list.length > 0) {
  2186. }
  2187. this.totalCount1 = res.data.totalCount
  2188. if (this.page1 == 1) {
  2189. this.list_shanghu = res.data.list
  2190. } else {
  2191. this.list_shanghu = this.list_shanghu.concat(res.data.list)
  2192. }
  2193. console.log(this.list_shanghu, 'this.list_shanghu')
  2194. }
  2195. this.$forceUpdate()
  2196. uni.stopPullDownRefresh()
  2197. // 加载提示关闭
  2198. uni.hideLoading()
  2199. })
  2200. },
  2201. fail: err => {
  2202. console.log("请求超时");
  2203. console.log(err);
  2204. var daa = {
  2205. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2206. indentType: this.indentType,
  2207. limit: 10,
  2208. page: this.page1,
  2209. receivingPattern: this.receivingPettern,
  2210. riderLat: this.latitude,
  2211. riderLng: this.longitude,
  2212. city:this.city
  2213. }
  2214. console.log('之前', daa)
  2215. this.$Request
  2216. .postJson('/app/tbindent/find-new-indent-group-by-shop', {
  2217. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2218. indentType: this.indentType,
  2219. limit: 10,
  2220. page: this.page1,
  2221. receivingPattern: this.receivingPettern,
  2222. riderLat: this.latitude,
  2223. riderLng: this.longitude,
  2224. city:this.city
  2225. })
  2226. .then((res) => {
  2227. uni.hideLoading()
  2228. console.log('接单池商家',res)
  2229. if (res.data) {
  2230. if (res.data.list.length > 0) {
  2231. }
  2232. this.totalCount1 = res.data.totalCount
  2233. if (this.page1 == 1) {
  2234. this.list_shanghu = res.data.list
  2235. } else {
  2236. this.list_shanghu = this.list_shanghu.concat(res.data.list)
  2237. }
  2238. console.log(this.list_shanghu, 'this.list_shanghu')
  2239. }
  2240. this.$forceUpdate()
  2241. uni.stopPullDownRefresh()
  2242. // 加载提示关闭
  2243. uni.hideLoading()
  2244. })
  2245. },
  2246. // complete: () => { //无论成功都会调用
  2247. // uni.hideLoading()
  2248. // }
  2249. })
  2250. },
  2251. // 获取新任务数据
  2252. taskData() {
  2253. uni.showLoading({
  2254. title: '加载中',
  2255. mask: true // 是否显示透明蒙层,防止触摸穿透
  2256. })
  2257. this.$Request
  2258. .postJson('/app/tbindent/find-new-indent', {
  2259. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2260. page: this.page2,
  2261. limit: 10,
  2262. receivingPattern: this.receivingPettern,
  2263. indentType: this.indentType,
  2264. shopId: this.shopId,
  2265. riderLat: this.latitude,
  2266. riderLng: this.longitude,
  2267. city:this.city
  2268. })
  2269. .then((res) => {
  2270. uni.hideLoading()
  2271. if (res.data) {
  2272. if (res.data.list.length > 0) {
  2273. for (var i = 0; i < res.data.list.length; i++) {
  2274. if (res.data.list[i].distancess > 1000) {
  2275. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  2276. } else {
  2277. if (res.data.list[i].distancess == '0') {
  2278. res.data.list[i].distancess = '0m'
  2279. } else {
  2280. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  2281. }
  2282. }
  2283. // if (res.data.list[i].distance > 1000) {
  2284. // res.data.list[i].distance = Number((res.data.list[i].distance / 1000)).toFixed(2) + "km"
  2285. // } else {
  2286. // if (res.data.list[i].distance == 0) {
  2287. // res.data.list[i].distance = "0m";
  2288. // } else {
  2289. // res.data.list[i].distance = Number(res.data.list[i].distance).toFixed(1) + "m";
  2290. // }
  2291. // }
  2292. if (res.data.list[i].distancessd > 1000) {
  2293. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  2294. } else {
  2295. if (res.data.list[i].distancessd == '0') {
  2296. res.data.list[i].distancessd = '0m'
  2297. } else {
  2298. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(1) + 'm'
  2299. }
  2300. }
  2301. }
  2302. }
  2303. this.totalCount2 = res.data.totalCount
  2304. if (this.page2 == 1) {
  2305. this.list_box = res.data.list
  2306. } else {
  2307. this.list_box = this.list_box.concat(res.data.list)
  2308. }
  2309. console.log('list_box', this.list_box)
  2310. }
  2311. this.$forceUpdate()
  2312. uni.stopPullDownRefresh()
  2313. // 加载提示关闭
  2314. uni.hideLoading()
  2315. })
  2316. },
  2317. // 获取待取货和配送中订单
  2318. taskDataJ() {
  2319. uni.showLoading({
  2320. title: '加载中',
  2321. mask: true // 是否显示透明蒙层,防止触摸穿透
  2322. })
  2323. console.log('this.keyword',this.keyword)
  2324. this.$Request
  2325. .getT('/app/tbindent/findRiderIndent', {
  2326. page: this.page3,
  2327. limit: 10,
  2328. indentState: this.indentState,
  2329. keyword:this.keyword,//收货地址或收货人手机号
  2330. // ol: this.longitude,
  2331. // od: this.latitude
  2332. })
  2333. .then((res) => {
  2334. this.totalCount3 = res.data.totalCount
  2335. if (this.page3 == 1) {
  2336. this.lists = res.data.list
  2337. } else {
  2338. this.lists = this.lists.concat(res.data.list)
  2339. }
  2340. for (var i in this.lists) {
  2341. if (this.lists[i].distanceInitial > 1000) {
  2342. this.lists[i].distanceInitials = (Number(this.lists[i].distanceInitial) / 1000).toFixed(2)
  2343. }
  2344. if (this.lists[i].distance > 1000) {
  2345. this.lists[i].distances = (Number(this.lists[i].distance) / 1000).toFixed(2)
  2346. }
  2347. }
  2348. this.lists.map(item=>{
  2349. item.checkeds = false
  2350. })
  2351. console.log('lists', this.lists)
  2352. uni.stopPullDownRefresh()
  2353. // 加载提示关闭
  2354. uni.hideLoading()
  2355. })
  2356. },
  2357. switch1(e) {
  2358. // #ifdef MP-WEIXIN
  2359. if (uni.getStorageSync('sendMsg')) {
  2360. uni.requestSubscribeMessage({
  2361. tmplIds: this.arr,
  2362. success(re) {
  2363. // console.log(re,'**********')
  2364. var datas = JSON.stringify(re)
  2365. if (datas.indexOf('accept') != -1) {
  2366. console.log(re)
  2367. }
  2368. },
  2369. fail: (res) => {
  2370. console.log(res)
  2371. }
  2372. })
  2373. }
  2374. // #endif
  2375. this.checked = e
  2376. this.check = !this.check
  2377. if (e == true) {
  2378. this.receivingPettern = '1'
  2379. }
  2380. if (e == false) {
  2381. // this.checked = false
  2382. // this.check = true
  2383. this.receivingPettern = '2'
  2384. }
  2385. console.log(e)
  2386. },
  2387. switch2(e) {
  2388. // #ifdef MP-WEIXIN
  2389. if (uni.getStorageSync('sendMsg')) {
  2390. uni.requestSubscribeMessage({
  2391. tmplIds: this.arr,
  2392. success(re) {
  2393. // console.log(re,'**********')
  2394. var datas = JSON.stringify(re)
  2395. if (datas.indexOf('accept') != -1) {
  2396. console.log(re)
  2397. }
  2398. },
  2399. fail: (res) => {
  2400. console.log(res)
  2401. }
  2402. })
  2403. }
  2404. // #endif
  2405. console.log(e)
  2406. this.check = e
  2407. this.checked = !this.check
  2408. if (e == true) {
  2409. // this.checked = true
  2410. // this.check = false
  2411. this.receivingPettern = '2'
  2412. }
  2413. if (e == false) {
  2414. // this.checked = false
  2415. // this.check = true
  2416. this.receivingPettern = '1'
  2417. }
  2418. },
  2419. // 打开类型选择模态框
  2420. showModals() {
  2421. // #ifdef MP-WEIXIN
  2422. if (uni.getStorageSync('sendMsg')) {
  2423. uni.requestSubscribeMessage({
  2424. tmplIds: this.arr,
  2425. success(re) {
  2426. // console.log(re,'**********')
  2427. var datas = JSON.stringify(re)
  2428. if (datas.indexOf('accept') != -1) {
  2429. console.log(re)
  2430. }
  2431. },
  2432. fail: (res) => {
  2433. console.log(res)
  2434. }
  2435. })
  2436. }
  2437. // #endif
  2438. this.showModal = true
  2439. },
  2440. radioChange(e) {
  2441. // console.log(e);
  2442. },
  2443. radioGroupChange(e) {
  2444. console.log('······2', e)
  2445. this.indentTypeName = e
  2446. },
  2447. // 点击确定按钮
  2448. confirm() {
  2449. // #ifdef MP-WEIXIN
  2450. if (uni.getStorageSync('sendMsg')) {
  2451. uni.requestSubscribeMessage({
  2452. tmplIds: this.arr,
  2453. success(re) {
  2454. // console.log(re,'**********')
  2455. var datas = JSON.stringify(re)
  2456. if (datas.indexOf('accept') != -1) {
  2457. console.log(re)
  2458. }
  2459. },
  2460. fail: (res) => {
  2461. console.log(res)
  2462. }
  2463. })
  2464. }
  2465. // #endif
  2466. if (this.indentTypeName == '全部') {
  2467. this.indentType = null
  2468. }
  2469. if (this.indentTypeName == '帮我取') {
  2470. this.indentType = 2
  2471. }
  2472. if (this.indentTypeName == '帮我送') {
  2473. this.indentType = 1
  2474. }
  2475. if (this.indentTypeName == '同城帮买') {
  2476. this.indentType = 3
  2477. }
  2478. if (this.indentTypeName == '同城服务') {
  2479. this.indentType = 4
  2480. }
  2481. if (this.indentTypeName == '同城外卖') {
  2482. this.indentType = 5
  2483. }
  2484. },
  2485. // 获取地址
  2486. dizhis() {
  2487. var that = this
  2488. uni.chooseLocation({
  2489. success: function (res) {
  2490. console.log(res)
  2491. uni.setStorageSync('dizhi', res)
  2492. that.quyu = res.name
  2493. that.quyuLongitude = res.longitude
  2494. that.quyuLatitude = res.latitude
  2495. }
  2496. })
  2497. },
  2498. // 关闭底部弹出层
  2499. closePopup() {
  2500. // #ifdef MP-WEIXIN
  2501. if (uni.getStorageSync('sendMsg')) {
  2502. uni.requestSubscribeMessage({
  2503. tmplIds: this.arr,
  2504. success(re) {
  2505. // console.log(re,'**********')
  2506. var datas = JSON.stringify(re)
  2507. if (datas.indexOf('accept') != -1) {
  2508. console.log(re)
  2509. }
  2510. },
  2511. fail: (res) => {
  2512. console.log(res)
  2513. }
  2514. })
  2515. }
  2516. // #endif
  2517. if (this.quyuLongitude != '') {
  2518. this.longitude = this.quyuLongitude
  2519. this.latitude = this.quyuLatitude
  2520. }
  2521. if (!this.ifrenwu) {
  2522. this.page1 = 1
  2523. this.getShanglist()
  2524. } else {
  2525. this.page2 = 1
  2526. this.taskData()
  2527. }
  2528. },
  2529. // 订单详情
  2530. bindorderDetail(indentNumber, orderId) {
  2531. // #ifdef MP-WEIXIN
  2532. if (uni.getStorageSync('sendMsg')) {
  2533. uni.requestSubscribeMessage({
  2534. tmplIds: this.arr,
  2535. success(re) {
  2536. // console.log(re,'**********')
  2537. var datas = JSON.stringify(re)
  2538. if (datas.indexOf('accept') != -1) {
  2539. console.log(re)
  2540. }
  2541. },
  2542. fail: (res) => {
  2543. console.log(res)
  2544. }
  2545. })
  2546. }
  2547. // #endif
  2548. console.log(indentNumber, orderId)
  2549. uni.navigateTo({
  2550. url: '/pages/index/orderdetail/orderdetail?orderId=' + orderId + '&id=' + indentNumber
  2551. })
  2552. },
  2553. // 取消订单
  2554. quxiao(indentNumber, index) {
  2555. // #ifdef MP-WEIXIN
  2556. if (uni.getStorageSync('sendMsg')) {
  2557. uni.requestSubscribeMessage({
  2558. tmplIds: this.arr,
  2559. success(re) {
  2560. // console.log(re,'**********')
  2561. var datas = JSON.stringify(re)
  2562. if (datas.indexOf('accept') != -1) {
  2563. console.log(re)
  2564. }
  2565. },
  2566. fail: (res) => {
  2567. console.log(res)
  2568. }
  2569. })
  2570. }
  2571. // #endif
  2572. let that = this
  2573. uni.showModal({
  2574. title: '提示',
  2575. content: '取消订单将会被扣保证金',
  2576. success: function (res) {
  2577. if (res.confirm) {
  2578. uni.showLoading({
  2579. title: '加载中',
  2580. mask: true // 是否显示透明蒙层,防止触摸穿透
  2581. })
  2582. console.log('用户点击确定')
  2583. that.$Request
  2584. .postT('/app/tbindent/riderCancleIndent', {
  2585. indentNumber: indentNumber
  2586. })
  2587. .then((res) => {
  2588. console.log(res)
  2589. if (res.code == 0) {
  2590. uni.showToast({
  2591. title: '订单已取消',
  2592. icon: 'none'
  2593. })
  2594. // 在toast显示2000毫秒(2秒)后执行操作
  2595. setTimeout(function () {
  2596. //刷新当前列,不返回分页的第一条
  2597. that.lists.splice(index, 1)
  2598. }, 1200)
  2599. // that.taskDataJ()
  2600. } else {
  2601. uni.showToast({
  2602. title: res.msg,
  2603. icon: 'none'
  2604. })
  2605. // 在toast显示2000毫秒(2秒)后执行操作
  2606. setTimeout(function () {
  2607. that.taskDataJ()
  2608. }, 1200)
  2609. }
  2610. // 加载提示关闭
  2611. uni.hideLoading()
  2612. })
  2613. } else if (res.cancel) {
  2614. console.log('用户点击取消')
  2615. }
  2616. }
  2617. })
  2618. },
  2619. quhuo(indentId, index) {
  2620. let that = this
  2621. // #ifdef MP-WEIXIN
  2622. if (uni.getStorageSync('sendMsg')) {
  2623. uni.requestSubscribeMessage({
  2624. tmplIds: this.arr,
  2625. success(re) {
  2626. // console.log(re,'**********')
  2627. var datas = JSON.stringify(re)
  2628. if (datas.indexOf('accept') != -1) {
  2629. console.log(re)
  2630. }
  2631. },
  2632. fail: (res) => {
  2633. console.log(res)
  2634. }
  2635. })
  2636. }
  2637. // #endif
  2638. uni.showModal({
  2639. title: '提示',
  2640. content: '确认到取货吗',
  2641. success: function (res) {
  2642. if (res.confirm) {
  2643. uni.showLoading({
  2644. title: '加载中',
  2645. mask: true // 是否显示透明蒙层,防止触摸穿透
  2646. })
  2647. that.$Request
  2648. .postJson('/app/tbindent/riderBuyGoods', {
  2649. indentId: indentId,
  2650. indentState: '4'
  2651. })
  2652. .then((res) => {
  2653. console.log(res)
  2654. if (res.code == 0) {
  2655. uni.showToast({
  2656. title: '确认取货成功',
  2657. icon: 'none'
  2658. })
  2659. // that.indentState = 4
  2660. setTimeout(function () {
  2661. // that.taskDataJ()
  2662. //刷新当前列,不返回分页的第一条
  2663. that.lists.splice(index, 1)
  2664. // that.current = 2
  2665. }, 1200)
  2666. } else {
  2667. uni.showToast({
  2668. title: res.msg,
  2669. icon: 'none'
  2670. })
  2671. setTimeout(function () {
  2672. that.taskDataJ()
  2673. // that.current = 2
  2674. }, 1200)
  2675. }
  2676. // 加载提示关闭
  2677. uni.hideLoading()
  2678. })
  2679. } else {
  2680. }
  2681. }
  2682. })
  2683. },
  2684. //拍照
  2685. paiOrder(e) {
  2686. if (this.shoudanma != '') {
  2687. this.saomaPeisong = false
  2688. this.indentNumber = e.indentNumber
  2689. this.orderId = e.orderId
  2690. this.alertPhone = true
  2691. return
  2692. }
  2693. this.indentNumber = e.indentNumber
  2694. this.orderId = e.orderId
  2695. this.alertPhone = true
  2696. },
  2697. shouhuo(e, index) {
  2698. if (this.shoudanma != '') {
  2699. this.saomaPeisong = false
  2700. this.orderId = e.orderId
  2701. this.querenduanxinList()
  2702. //需拍照的弹出框
  2703. this.alertduan = true
  2704. return
  2705. }
  2706. this.indentNumber = e.indentNumber
  2707. // if(e.indentType==5){
  2708. // this.querenSh()
  2709. // }
  2710. if (e.itemCodeFlag == 0 && e.indentType != 5) {
  2711. this.shows = true
  2712. } else {
  2713. this.orderId = e.orderId
  2714. this.querenduanxinList()
  2715. //需拍照的弹出框
  2716. this.alertduan = true
  2717. // this.querenSh()
  2718. }
  2719. },
  2720. // 图片上传
  2721. addImages(e) {
  2722. uni.showLoading({
  2723. title: '加载中',
  2724. mask: true // 是否显示透明蒙层,防止触摸穿透
  2725. })
  2726. if (e == 1) {
  2727. var num = this.goodsPicture.length
  2728. this.count = 2 - num
  2729. }
  2730. let that = this
  2731. uni.chooseImage({
  2732. count: this.count,
  2733. sourceType: ['camera', 'album'],
  2734. success: (res) => {
  2735. for (let i = 0; i < res.tempFiles.length; i++) {
  2736. //这里的id和页面中写的html代码的canvas的id要一致
  2737. let canvasId = 'zipCanvas'
  2738. //原图的路径
  2739. let imagePath = res.tempFiles[i].path
  2740. //大小限制
  2741. let limitSize = 1024 * 2
  2742. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  2743. let drawWidth = uni.getSystemInfoSync().windowWidth
  2744. let that = this
  2745. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
  2746. uni.showLoading({
  2747. title: '上传中'
  2748. })
  2749. uni.uploadFile({
  2750. url: that.config('APIHOST1') + '/alioss/upload',
  2751. filePath: resPath,
  2752. name: 'file',
  2753. success: (uploadFileRes) => {
  2754. if (e == 1) {
  2755. if (that.goodsPicture.length < 2) {
  2756. that.goodsPicture.push(JSON.parse(uploadFileRes.data).data)
  2757. }
  2758. }
  2759. uni.hideLoading()
  2760. },
  2761. fail: () => {
  2762. uni.showToast({
  2763. title: '上传失败',
  2764. icon: 'error'
  2765. })
  2766. }
  2767. })
  2768. })
  2769. }
  2770. }
  2771. })
  2772. },
  2773. // 图片删除
  2774. removeImg(index, texts) {
  2775. if (texts == 'lb') {
  2776. this.goodsPicture.splice(index, 1)
  2777. }
  2778. },
  2779. config: function (name) {
  2780. var info = null
  2781. if (name) {
  2782. var name2 = name.split('.') //字符分割
  2783. if (name2.length > 1) {
  2784. info = configdata[name2[0]][name2[1]] || null
  2785. } else {
  2786. info = configdata[name] || null
  2787. }
  2788. if (info == null) {
  2789. let web_config = cache.get('web_config')
  2790. if (web_config) {
  2791. if (name2.length > 1) {
  2792. info = web_config[name2[0]][name2[1]] || null
  2793. } else {
  2794. info = web_config[name] || null
  2795. }
  2796. }
  2797. }
  2798. }
  2799. return info
  2800. },
  2801. // 监听拍照框关闭
  2802. onclose() {
  2803. this.alertPhone = false
  2804. this.alertduan = false
  2805. this.goodsPicture = []
  2806. },
  2807. //确认上传图片
  2808. querenduanxin() {
  2809. uni.showLoading({
  2810. title: '加载中',
  2811. mask: true // 是否显示透明蒙层,防止触摸穿透
  2812. })
  2813. var tupian = this.goodsPicture.toString()
  2814. var indentNumber = this.indentNumber
  2815. this.$Request
  2816. .putT(`/app/tbindent/delivery-img/${indentNumber}`, {
  2817. userId: uni.getStorageSync('userId'),
  2818. // indentNumber:this.indentNumber,
  2819. imgs: tupian
  2820. })
  2821. .then((res) => {
  2822. console.log(res, 'img')
  2823. if (res.code == 0) {
  2824. if (this.shoudanma != '') {
  2825. this.alertPhone = false
  2826. this.saomaCha()
  2827. // this.saomaPeisong=true
  2828. }
  2829. this.alertPhone = false
  2830. uni.showToast({
  2831. title: '图片上传完成',
  2832. icon: 'none'
  2833. })
  2834. // 在toast显示2000毫秒(2秒)后执行操作
  2835. setTimeout(function () {}, 1200)
  2836. } else {
  2837. uni.showToast({
  2838. title: res.msg,
  2839. icon: 'none'
  2840. })
  2841. }
  2842. // 加载提示关闭
  2843. uni.hideLoading()
  2844. })
  2845. },
  2846. // 获取确认送达短信模板
  2847. querenduanxinList() {
  2848. uni.showLoading({
  2849. title: '加载中',
  2850. mask: true // 是否显示透明蒙层,防止触摸穿透
  2851. })
  2852. // this.$Request.postT('/app/tb-indent-sms/template', {
  2853. this.$Request
  2854. .getT('/app/tb-indent-sms/template', {
  2855. // indentNumber: this.indentNumber,
  2856. // itemCode: this.shouhuoma
  2857. })
  2858. .then((res) => {
  2859. console.log(res)
  2860. this.duanxin = res.data.list
  2861. if (res.code == 0) {
  2862. this.page1 = 1
  2863. this.page2 = 1
  2864. this.page3 = 1
  2865. // this.alertPhone = false
  2866. this.alertduan = true
  2867. } else {
  2868. uni.showToast({
  2869. title: res.msg,
  2870. icon: 'none'
  2871. })
  2872. }
  2873. // 加载提示关闭
  2874. uni.hideLoading()
  2875. })
  2876. },
  2877. querenSh() {
  2878. // #ifdef MP-WEIXIN
  2879. if (uni.getStorageSync('sendMsg')) {
  2880. uni.requestSubscribeMessage({
  2881. tmplIds: this.arr,
  2882. success(re) {
  2883. // console.log(re,'**********')
  2884. var datas = JSON.stringify(re)
  2885. if (datas.indexOf('accept') != -1) {
  2886. console.log(re)
  2887. }
  2888. },
  2889. fail: (res) => {
  2890. console.log(res)
  2891. }
  2892. })
  2893. }
  2894. // #endif
  2895. let that = this
  2896. // var date = new Date();
  2897. // var year = date.getFullYear();
  2898. // let Rcode = year + that.shouhuoma
  2899. // that.$Request.postT('/app/tbindent/riderDelivery', {
  2900. uni.showLoading({
  2901. title: '加载中',
  2902. mask: true // 是否显示透明蒙层,防止触摸穿透
  2903. })
  2904. if (this.shoudanma != '') {
  2905. console.log('1aaaaa')
  2906. this.$Request
  2907. .postJson('/app/tbindent/orderRiderDelivery', {
  2908. smsTemplateId: that.duanxin[0].id,
  2909. // indentNumber: that.indentNumber,
  2910. acquireCode: that.shoudanma
  2911. // imgs:'',
  2912. // itemCode: Rcode
  2913. // itemCode: that.shouhuoma
  2914. })
  2915. .then((res) => {
  2916. console.log(res)
  2917. if (res.code == 0) {
  2918. uni.showToast({
  2919. title: '订单完成',
  2920. icon: 'none'
  2921. })
  2922. // 在toast显示2000毫秒(2秒)后执行操作
  2923. setTimeout(function () {
  2924. that.alertduan = false
  2925. that.taskDataJ()
  2926. }, 1200)
  2927. } else {
  2928. uni.showToast({
  2929. title: res.msg,
  2930. icon: 'none'
  2931. })
  2932. }
  2933. // 加载提示关闭
  2934. uni.hideLoading()
  2935. that.shouhuoma = ''
  2936. })
  2937. return
  2938. }
  2939. console.log('2bbbbb')
  2940. this.$Request
  2941. .postJson('/app/tbindent/riderDelivery', {
  2942. smsTemplateId: this.duanxin[0].id,
  2943. indentNumber: that.indentNumber,
  2944. // itemCode: Rcode
  2945. itemCode: that.shouhuoma
  2946. })
  2947. .then((res) => {
  2948. console.log(res)
  2949. that.shouhuoma = ''
  2950. if (res.code == 0) {
  2951. this.alertduan = false
  2952. // this.alertduan = false
  2953. this.shows = false
  2954. uni.showToast({
  2955. title: '订单完成',
  2956. icon: 'none'
  2957. })
  2958. // 在toast显示2000毫秒(2秒)后执行操作
  2959. setTimeout(function () {
  2960. that.alertduan = false
  2961. // this.alertduan = false
  2962. that.shows = false
  2963. that.taskDataJ()
  2964. }, 1200)
  2965. // this.lists = []
  2966. // that.taskDataJ()
  2967. } else {
  2968. uni.showToast({
  2969. title: res.msg,
  2970. icon: 'none'
  2971. })
  2972. // 在toast显示2000毫秒(2秒)后执行操作
  2973. setTimeout(function () {
  2974. that.taskDataJ()
  2975. }, 1200)
  2976. }
  2977. // 加载提示关闭
  2978. uni.hideLoading()
  2979. })
  2980. },
  2981. // 开启订阅消息
  2982. openMsg() {
  2983. console.log('订阅消息')
  2984. var that = this
  2985. uni.getSetting({
  2986. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  2987. success(ret) {
  2988. console.log(ret.subscriptionsSetting, '------------------')
  2989. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  2990. if (ret.subscriptionsSetting.itemSettings) {
  2991. uni.setStorageSync('sendMsg', true)
  2992. uni.openSetting({
  2993. // 打开设置页
  2994. success(rea) {
  2995. console.log(rea.authSetting)
  2996. }
  2997. })
  2998. } else {
  2999. // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  3000. uni.setStorageSync('sendMsg', false)
  3001. uni.showModal({
  3002. title: '提示',
  3003. content: '为了更好的体验,请绑定消息推送',
  3004. confirmText: '确定',
  3005. cancelText: '取消',
  3006. success: function (res) {
  3007. if (res.confirm) {
  3008. wx.requestSubscribeMessage({
  3009. tmplIds: that.arr,
  3010. success(re) {
  3011. var datas = JSON.stringify(re)
  3012. if (datas.indexOf('accept') != -1) {
  3013. console.log(re)
  3014. // uni.setStorageSync('sendMsg', true)
  3015. }
  3016. },
  3017. fail: (res) => {
  3018. console.log(res)
  3019. }
  3020. })
  3021. // uni.setStorageSync('sendMsg', true)
  3022. that.showModal111 = false
  3023. } else if (res.cancel) {
  3024. console.log('取消')
  3025. // uni.setStorageSync('sendMsg', false)
  3026. that.showModal111 = true
  3027. }
  3028. }
  3029. })
  3030. }
  3031. }
  3032. })
  3033. },
  3034. //单个订单转单
  3035. zhuanOrder(indentId) {
  3036. this.saomaPeisong=false
  3037. this.phone = ''
  3038. this.zhuanName = ''
  3039. this.indentId = indentId
  3040. this.showOrder = true
  3041. },
  3042. zhuandan() {
  3043. uni.showLoading({
  3044. title: '加载中',
  3045. mask: true // 是否显示透明蒙层,防止触摸穿透
  3046. })
  3047. this.$Request
  3048. .postT('/app/tbindent/transferOfOrder', {
  3049. indentId: this.indentId,
  3050. phone: this.phone,
  3051. realName: this.zhuanName
  3052. })
  3053. .then((res) => {
  3054. if (res.code == 0) {
  3055. this.phone = ''
  3056. this.$queue.setData('zhuandan', this.indentId)
  3057. uni.showToast({
  3058. title: '转单成功',
  3059. icon: 'none'
  3060. })
  3061. setTimeout((d) => {
  3062. //刷新当前列,不返回分页的第一条
  3063. that.lists.splice(index, 1)
  3064. }, 1000)
  3065. } else {
  3066. uni.showToast({
  3067. title: res.msg,
  3068. icon: 'none'
  3069. })
  3070. }
  3071. // 加载提示关闭
  3072. uni.hideLoading()
  3073. })
  3074. },
  3075. //收货地址或收货人手机号搜索
  3076. searchKeyword(e){
  3077. this.keyword=e.detail.value
  3078. // this.taskDataJ()
  3079. },
  3080. //搜索框回车
  3081. shouhuiche() {
  3082. this.taskDataJ()
  3083. },
  3084. //一键批量转单弹框
  3085. allZhuan(){
  3086. this.pageDai=1
  3087. this.showsZhuan=true
  3088. this.getDaizhuan()
  3089. },
  3090. //未选择时转单
  3091. allZhuanNo(){
  3092. uni.showToast({
  3093. title: '请先选择需要转的订单!',
  3094. icon: 'none'
  3095. })
  3096. },
  3097. // 选中某个复选框时,触发
  3098. checkboxChange(e) {
  3099. e.checkeds=!e.checkeds
  3100. if(this.indentIds.indexOf(e.indentId)==-1){//如果没有选中则把indentId增加到数组中
  3101. this.indentIds.push(e.indentId)
  3102. }else{//如果找到了则把indentId删除
  3103. this.indentIds.splice(this.indentIds.indexOf(e.indentId),1)
  3104. }
  3105. if(this.indentIds.length==this.lists.length){ //判断是否全部选中
  3106. this.checkedz = true
  3107. }else{
  3108. this.checkedz = false
  3109. }
  3110. console.log(this.indentIds,'this.indentIds111')
  3111. },
  3112. //全选
  3113. checkboxChanges(){
  3114. this.indentIds = []
  3115. if(this.checkedz==false){//全选(把总复选框选中并把goodsid赋给数组)
  3116. this.checkedz = true
  3117. this.lists.map(item=>{
  3118. item.checkeds = true
  3119. this.indentIds.push(item.indentId)
  3120. })
  3121. console.log(this.lists)
  3122. console.log(this.indentIds,'this.indentIds')
  3123. }else{//全不选
  3124. this.checkedz = false
  3125. this.lists.map(item=>{
  3126. item.checkeds = false
  3127. })
  3128. }
  3129. },
  3130. //待转单分页数据
  3131. getDaizhuan(){
  3132. uni.showLoading({
  3133. title: '加载中',
  3134. mask: true // 是否显示透明蒙层,防止触摸穿透
  3135. })
  3136. console.log('listDaiaaaaa', this.pageDai,this.sizeDai,this.indentIds.join(','))
  3137. this.$Request
  3138. .getT('/app/tbindent/findRiderIndentByIds', {
  3139. page: this.pageDai,
  3140. limit: this.sizeDai,
  3141. indentIds:this.indentIds.join(','),//待转单订单indentid
  3142. })
  3143. .then((res) => {
  3144. console.log('listDai', res)
  3145. this.pageCountDai = res.data.totalCount
  3146. if (this.pageDai == 1) {
  3147. this.listDai = res.data.list
  3148. } else {
  3149. this.listDai = this.listDai.concat(res.data.list)
  3150. }
  3151. // console.log('listDai', this.listDai)
  3152. // res.page -- 后端返回的当前页,
  3153. // res.pageCount -- 后端返回的总页数
  3154. if(this.listDai.length == 0 || res.data.currPage==res.data.totalPage) {
  3155. this.statusDai = 'nomore';
  3156. }
  3157. // 加载提示关闭
  3158. uni.hideLoading()
  3159. })
  3160. },
  3161. // 待转单数据滚动到底部
  3162. scrolltolowerDai(e) {
  3163. if(this.listDai.length < this.pageCountDai){
  3164. this.pageDai++
  3165. this.getDaizhuan()
  3166. }else {
  3167. this.statusDai = 'nomore';
  3168. }
  3169. },
  3170. //删除待转单
  3171. deleteDing(e,index){
  3172. let that = this
  3173. //删除当前列,不返回分页的第一条
  3174. that.listDai.splice(index, 1)//this.indentIds.indexOf(e.indentId)
  3175. that.indentIds.splice(index, 1)
  3176. if(that.indentIds.length==0){
  3177. that.lists.map(item=>{
  3178. item.checkeds = false
  3179. })
  3180. that.checkedz=false
  3181. }else{
  3182. that.lists.map(item=>{
  3183. if(item.indentId==e.indentId){
  3184. item.checkeds = false
  3185. }
  3186. })
  3187. that.checkedz=false
  3188. }
  3189. },
  3190. //批量转单
  3191. transformOrder(){
  3192. let that = this
  3193. uni.showLoading({
  3194. title: '加载中',
  3195. mask: true // 是否显示透明蒙层,防止触摸穿透
  3196. })
  3197. if(that.indentIds.length==0){
  3198. uni.showToast({
  3199. title: '待转订单不能为空!',
  3200. icon: 'none'
  3201. })
  3202. }else if(that.riderId==''){
  3203. uni.showToast({
  3204. title: '请选择骑手!',
  3205. icon: 'none'
  3206. })
  3207. }else{
  3208. var daa = {
  3209. indentIds: that.indentIds, //数据ID集合
  3210. riderId: that.riderId,//被转单骑手ID
  3211. }
  3212. console.log('转单之前', daa)
  3213. that.$Request
  3214. .postJson('/app/tbindent/transferOfOrders', {
  3215. indentIds: that.indentIds, //数据ID集合
  3216. riderId: that.riderId,//被转单骑手ID
  3217. })
  3218. .then((res) => {
  3219. if (res.code == 0) {
  3220. uni.showToast({
  3221. title: '批量转单成功',
  3222. icon: 'none'
  3223. })
  3224. // 在toast显示2000毫秒(2秒)后执行操作
  3225. setTimeout(function () {
  3226. that.riderId=''
  3227. that.riderName=''
  3228. that.indentIds=[]
  3229. that.checkedz=false
  3230. that.showsZhuan=false
  3231. that.taskDataJ()
  3232. }, 1200)
  3233. } else {
  3234. uni.showToast({
  3235. title: res.msg,
  3236. icon: 'none'
  3237. })
  3238. // 在toast显示2000毫秒(2秒)后执行操作
  3239. setTimeout(function () {
  3240. that.riderId=''
  3241. that.riderName=''
  3242. that.indentIds=[]
  3243. that.checkedz=false
  3244. that.showsZhuan=false
  3245. that.taskDataJ()
  3246. }, 1200)
  3247. }
  3248. // 加载提示关闭
  3249. uni.hideLoading()
  3250. })
  3251. }
  3252. },
  3253. //取消转单
  3254. quxiaoZhuan(){
  3255. this.riderId=''
  3256. this.riderName=''
  3257. this.indentIds=[]
  3258. this.checkedz=false
  3259. this.showsZhuan=false
  3260. },
  3261. //选择转单人弹框
  3262. selectPeople(){
  3263. this.showsSelect=true
  3264. this.getRiders()
  3265. },
  3266. //骑手关键字搜索
  3267. searchKeywordRider(e){
  3268. this.keywordRider=e.detail.value
  3269. this.getRiders()
  3270. },
  3271. //被转单骑手分页数据
  3272. getRiders(){
  3273. uni.showLoading({
  3274. title: '加载中',
  3275. mask: true // 是否显示透明蒙层,防止触摸穿透
  3276. })
  3277. console.log('listRideraaaaa', this.pageRider,this.sizeRider)
  3278. this.$Request
  3279. .getT('/app/user/findRiders', {
  3280. page: this.pageRider,
  3281. limit: this.sizeRider,
  3282. keyword:this.keywordRider,//手机号或骑手姓名
  3283. })
  3284. .then((res) => {
  3285. console.log('listRider', res)
  3286. this.pageCountRider = res.data.totalCount
  3287. if (this.pageRider == 1) {
  3288. this.listRider = res.data.list
  3289. } else {
  3290. this.listRider = this.listRider.concat(res.data.list)
  3291. }
  3292. // console.log('listRider', this.listRider)
  3293. // res.page -- 后端返回的当前页,
  3294. // res.pageCount -- 后端返回的总页数
  3295. if(this.listRider.length == 0 || res.data.currPage==res.data.totalPage) {
  3296. this.status = 'nomore';
  3297. }
  3298. // 加载提示关闭
  3299. uni.hideLoading()
  3300. })
  3301. },
  3302. // 骑手数据滚动到底部
  3303. scrolltolower(e) {
  3304. if(this.listRider.length < this.pageCountRider){
  3305. this.pageRider++
  3306. this.getRiders()
  3307. }else {
  3308. this.status = 'nomore';
  3309. }
  3310. },
  3311. //选择骑手
  3312. getRider(e){
  3313. this.riderId=e.userId
  3314. this.riderName=e.userName
  3315. this.showsSelect=false
  3316. },
  3317. //删除已选骑手
  3318. deleteRider(){
  3319. this.riderId=''
  3320. this.riderName=''
  3321. },
  3322. },
  3323. // 上拉加载
  3324. onReachBottom: function () {
  3325. if (this.current == 0) {
  3326. if (!this.ifrenwu) {
  3327. console.log(this.list_shanghu.length, this.totalCount1, 'list_shanghu')
  3328. if (this.list_shanghu.length < this.totalCount1) {
  3329. this.page1 = this.page1 + 1
  3330. this.getShanglist()
  3331. } else {
  3332. uni.showToast({
  3333. title: '已经最后一页啦',
  3334. icon: 'none'
  3335. })
  3336. }
  3337. } else {
  3338. console.log(this.list_box.length, this.totalCount2, 'jjj')
  3339. if (this.list_box.length < this.totalCount2) {
  3340. this.page2 = this.page2 + 1
  3341. this.taskData()
  3342. this.checkedz=false
  3343. } else {
  3344. uni.showToast({
  3345. title: '已经最后一页啦',
  3346. icon: 'none'
  3347. })
  3348. }
  3349. }
  3350. } else if (this.current == 1) {
  3351. //配送中
  3352. if (this.lists.length < this.totalCount3) {
  3353. this.page3 = this.page3 + 1
  3354. this.indentState = 3
  3355. this.taskDataJ()
  3356. this.checkedz=false
  3357. } else {
  3358. uni.showToast({
  3359. title: '已经最后一页啦',
  3360. icon: 'none'
  3361. })
  3362. }
  3363. } else if (this.current == 2) {
  3364. //全部订单
  3365. if (this.lists.length < this.totalCount3) {
  3366. this.page3 = this.page3 + 1
  3367. this.indentState = 4
  3368. this.taskDataJ()
  3369. } else {
  3370. uni.showToast({
  3371. title: '已经最后一页啦',
  3372. icon: 'none'
  3373. })
  3374. }
  3375. }
  3376. },
  3377. onPullDownRefresh: function () {
  3378. if (this.current == 0) {
  3379. if (!this.ifrenwu) {
  3380. this.page1 = 1
  3381. this.getShanglist()
  3382. } else {
  3383. this.page2 = 1
  3384. this.taskData()
  3385. }
  3386. } else if (this.current == 1) {
  3387. this.page3 = 1
  3388. this.indentState = 3
  3389. this.taskDataJ()
  3390. } else if (this.current == 2) {
  3391. this.page3 = 1
  3392. this.indentState = 4
  3393. this.taskDataJ()
  3394. }
  3395. },
  3396. }
  3397. </script>
  3398. <style>
  3399. body {
  3400. background: #f5f5f5;
  3401. }
  3402. .privacy {
  3403. position: fixed;
  3404. top: 0;
  3405. right: 0;
  3406. bottom: 0;
  3407. left: 0;
  3408. background: rgba(0, 0, 0, 0.5);
  3409. z-index: 9999999;
  3410. display: flex;
  3411. align-items: center;
  3412. justify-content: center;
  3413. }
  3414. .contentview {
  3415. width: 632rpx;
  3416. padding: 48rpx;
  3417. box-sizing: border-box;
  3418. background: #fff;
  3419. border-radius: 16rpx;
  3420. }
  3421. .contentview .title {
  3422. text-align: center;
  3423. color: #333;
  3424. font-weight: bold;
  3425. font-size: 32rpx;
  3426. }
  3427. .contentview .des {
  3428. font-size: 26rpx;
  3429. color: #666;
  3430. margin-top: 40rpx;
  3431. text-align: justify;
  3432. line-height: 1.6;
  3433. }
  3434. .contentview .des .link {
  3435. color: #07c160;
  3436. text-decoration: underline;
  3437. }
  3438. button::after {
  3439. border: none;
  3440. }
  3441. .btns {
  3442. margin-top: 48rpx;
  3443. display: flex;
  3444. }
  3445. .btns .item {
  3446. justify-content: space-between;
  3447. width: 244rpx;
  3448. height: 80rpx;
  3449. display: flex;
  3450. align-items: center;
  3451. justify-content: center;
  3452. border-radius: 16rpx;
  3453. box-sizing: border-box;
  3454. border: none;
  3455. }
  3456. .btns .reject {
  3457. background: #f4f4f5;
  3458. color: #909399;
  3459. }
  3460. .btns .agree {
  3461. background: #07c160;
  3462. color: #fff;
  3463. }
  3464. .content {
  3465. margin-top: 100rpx;
  3466. min-height: 100vh; /* 设置最小高度为视口高度 */
  3467. }
  3468. /* 待取货和配送中搜索框 */
  3469. // 搜索框
  3470. .search-bar{
  3471. position: relative;
  3472. width: 100%;
  3473. height: 100rpx;
  3474. margin-top: 20rpx;
  3475. }
  3476. .search-bar-box{
  3477. display: flex;
  3478. margin: 0 auto;
  3479. width: 670rpx;
  3480. height: 90rpx;
  3481. background: rgba(255, 255, 255, 1);
  3482. border: 1px solid rgba(255, 141, 26, 1);
  3483. border-radius: 7rpx;
  3484. }
  3485. .search-span{
  3486. width: 38rpx;
  3487. height: 38rpx;
  3488. margin-top: 27rpx;
  3489. margin-left: 20rpx;
  3490. }
  3491. .search-text{
  3492. width: 100%;
  3493. margin-top: 20rpx;
  3494. margin-left: 20rpx;
  3495. font-size: 30rpx;
  3496. color: rgba(166, 166, 166, 1);
  3497. }
  3498. .impute {
  3499. text-align: center;
  3500. margin-left: 4%;
  3501. margin-top: 20rpx;
  3502. width: 690rpx;
  3503. height: 90rpx;
  3504. opacity: 1;
  3505. border-radius: 7rpx;
  3506. background: rgba(255, 255, 255, 1);
  3507. border: 1px solid rgba(255, 141, 26, 1);
  3508. }
  3509. /* 全选框和批量转单 */
  3510. .kuang-bar{
  3511. position: relative;
  3512. margin-left: 5%;
  3513. width: 90%;
  3514. height: 70rpx;
  3515. margin-top: 20rpx;
  3516. }
  3517. .kuang-padd{
  3518. float: left;
  3519. width: 20%;
  3520. display: flex;
  3521. margin: 10rpx auto;
  3522. font-size: 28rpx;
  3523. font-weight: 400;
  3524. line-height: 50rpx;
  3525. color: rgba(166, 166, 166, 1);
  3526. }
  3527. .kuang-li{
  3528. margin: 0 0 0 4%;
  3529. width: 50rpx;
  3530. height: 50rpx;
  3531. }
  3532. .kuang-kong{
  3533. opacity: 1;
  3534. border-radius: 6rpx;
  3535. border: 1rpx solid rgba(166, 166, 166, 1);
  3536. }
  3537. .kuang-se{
  3538. opacity: 1;
  3539. border-radius: 6rpx;
  3540. background: rgba(255, 141, 26, 1);
  3541. }
  3542. .kuang-line{
  3543. float: left;
  3544. margin-left: 5px;
  3545. margin-right: 5px;
  3546. width: 0px;
  3547. height: 220px;
  3548. border: 0.5px solid rgba(230, 230, 230, 1);
  3549. }
  3550. .kuang-btn{
  3551. float: right;
  3552. width: 163rpx;
  3553. height: 70rpx;
  3554. border-radius: 13rpx;
  3555. font-size: 28rpx;
  3556. font-weight: 400;
  3557. line-height: 70rpx;
  3558. text-align: center;
  3559. }
  3560. .selectpil{
  3561. background: rgba(255, 141, 26, 1);
  3562. color: rgba(255, 255, 255, 1);
  3563. }
  3564. .noselect{
  3565. background: #cccccc;
  3566. color: rgba(0, 0, 0, 0.6);
  3567. }
  3568. .slot-wrap {
  3569. display: flex;
  3570. justify-content: center;
  3571. align-items: center;
  3572. /* 如果您想让slot内容占满整个导航栏的宽度 */
  3573. /* flex: 1; */
  3574. /* 如果您想让slot内容与导航栏左右有空隙 */
  3575. /* padding: 0 30rpx; */
  3576. }
  3577. .u-title {
  3578. color: #000000 !important;
  3579. font-size: 31rpx !important;
  3580. font-weight: bold !important;
  3581. }
  3582. .solt {
  3583. position: relative;
  3584. }
  3585. .slot_left {
  3586. width: 60rpx;
  3587. height: 60rpx;
  3588. position: absolute;
  3589. top: 15rpx;
  3590. left: 20rpx;
  3591. }
  3592. .slot_left image {
  3593. width: 60rpx;
  3594. height: 60rpx;
  3595. }
  3596. .slot_content {
  3597. width: 35rpx;
  3598. height: 35rpx;
  3599. position: absolute;
  3600. top: 26rpx;
  3601. left: 280rpx;
  3602. }
  3603. .slot_content image {
  3604. width: 35rpx;
  3605. height: 35rpx;
  3606. }
  3607. /* tabs */
  3608. .u-tab-item {
  3609. color: #333333 !important;
  3610. /* font-size: 26rpx !important; */
  3611. letter-spacing: 2rpx;
  3612. }
  3613. .u-tab-bar {
  3614. width: 65rpx !important;
  3615. height: 8rpx !important;
  3616. background-color: #ff7f00 !important;
  3617. border-radius: 0rpx !important;
  3618. position: absolute !important;
  3619. bottom: 0rpx !important;
  3620. left: -14rpx !important;
  3621. }
  3622. .tabs_box {
  3623. display: none;
  3624. padding-bottom: 120rpx;
  3625. }
  3626. .dis {
  3627. display: block;
  3628. width: 100%;
  3629. margin-bottom: 190rpx;
  3630. }
  3631. .list_box1 {
  3632. width: 90%;
  3633. margin: 0 auto;
  3634. height: auto;
  3635. background: #ffffff;
  3636. border-radius: 23rpx;
  3637. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3638. margin-top: 20rpx;
  3639. padding-bottom: 20rpx;
  3640. }
  3641. .list_box {
  3642. width: 90%;
  3643. margin: 0 auto;
  3644. height: auto;
  3645. background: #ffffff;
  3646. border-radius: 23rpx;
  3647. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3648. margin-top: 20rpx;
  3649. padding-bottom: 20rpx;
  3650. }
  3651. .list_box2 {
  3652. width: 90%;
  3653. margin: 0 auto;
  3654. height: auto;
  3655. background: #ffffff;
  3656. border-radius: 23rpx;
  3657. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3658. margin-top: 20rpx;
  3659. }
  3660. .order_title {
  3661. width: 90%;
  3662. margin: 0 auto;
  3663. border-radius: 14px 14px, 0px, 0px;
  3664. background: rgba(255, 239, 222, 1);
  3665. height: 40upx;
  3666. color: rgba(255, 141, 26, 1);
  3667. font-size: 24upx;
  3668. line-height: 40upx;
  3669. text-align: center;
  3670. }
  3671. .part1 {
  3672. width: 90%;
  3673. margin: 0 auto;
  3674. justify-content: left;
  3675. align-items: center;
  3676. display: flex;
  3677. height: 100rpx;
  3678. position: relative;
  3679. }
  3680. .box_one {
  3681. background: #c4e2ff;
  3682. color: #359cff;
  3683. /* width: 60px;
  3684. height: 45rpx; */
  3685. padding: 0px 10px;
  3686. font-size: 26rpx;
  3687. text-align: center;
  3688. line-height: 45rpx;
  3689. border-radius: 5rpx;
  3690. }
  3691. .box_four {
  3692. color: #666666;
  3693. border: 1rpx solid #666666;
  3694. font-size: 22rpx;
  3695. width: 95px;
  3696. height: 40rpx;
  3697. text-align: center;
  3698. line-height: 40rpx;
  3699. border-radius: 5rpx;
  3700. margin-left: 20rpx;
  3701. }
  3702. .box_two {
  3703. color: #666666;
  3704. border: 1rpx solid #666666;
  3705. font-size: 22rpx;
  3706. /* width: 60px; */
  3707. height: 40rpx;
  3708. text-align: center;
  3709. line-height: 40rpx;
  3710. border-radius: 5rpx;
  3711. margin-left: 20rpx;
  3712. padding: 0 10rpx;
  3713. }
  3714. .box_two1 {
  3715. width: auto;
  3716. padding: 0 10rpx;
  3717. }
  3718. .box_three {
  3719. color: #666666;
  3720. border: 1rpx solid #666666;
  3721. font-size: 22rpx;
  3722. width: 75px;
  3723. height: 40rpx;
  3724. text-align: center;
  3725. line-height: 40rpx;
  3726. border-radius: 5rpx;
  3727. margin-left: 20rpx;
  3728. }
  3729. .part2 {
  3730. width: 90%;
  3731. margin: 0 auto;
  3732. }
  3733. /* 下线 */
  3734. .address_name {
  3735. font-size: 28rpx;
  3736. font-weight: bold;
  3737. letter-spacing: 2rpx;
  3738. /* line-height: 60rpx; */
  3739. display: -webkit-box;
  3740. -webkit-box-orient: vertical;
  3741. -webkit-line-clamp: 1;
  3742. overflow: hidden;
  3743. }
  3744. .name {
  3745. color: #999999;
  3746. font-size: 21rpx;
  3747. }
  3748. .name text {
  3749. /* margin-left: 10rpx; */
  3750. }
  3751. /* 上线 */
  3752. .box_add {
  3753. display: flex;
  3754. }
  3755. .distance {
  3756. flex: 1;
  3757. /* text-align: center; */
  3758. font-size: 28rpx;
  3759. display: flex;
  3760. justify-content: left;
  3761. align-items: center;
  3762. }
  3763. .a {
  3764. font-size: 16rpx;
  3765. }
  3766. .add_name {
  3767. /* display: flex; */
  3768. flex: 4;
  3769. }
  3770. .sh_name {
  3771. font-size: 28rpx;
  3772. font-weight: bold;
  3773. letter-spacing: 2rpx;
  3774. }
  3775. .sh_name1 {
  3776. font-size: 28rpx;
  3777. font-weight: bold;
  3778. letter-spacing: 2rpx;
  3779. color: #999999;
  3780. }
  3781. .xs_add {
  3782. color: #999999;
  3783. font-size: 21rpx;
  3784. margin-top: 10rpx;
  3785. }
  3786. .jiantou {
  3787. margin-left: 43rpx;
  3788. display: flex;
  3789. /* justify-content: space-between; */
  3790. align-items: center;
  3791. height: 40px;
  3792. line-height: 40px;
  3793. }
  3794. .jiantou image {
  3795. width: 20rpx;
  3796. height: 40rpx;
  3797. }
  3798. .jiantou > view {
  3799. margin-left: 10rpx;
  3800. }
  3801. .part3 {
  3802. width: 90%;
  3803. margin: 0 auto;
  3804. display: flex;
  3805. }
  3806. .three_left {
  3807. flex: 1;
  3808. height: 100rpx;
  3809. display: flex;
  3810. justify-content: left;
  3811. align-items: center;
  3812. }
  3813. .three_left image {
  3814. width: 20px;
  3815. height: 20px;
  3816. }
  3817. .three_left text {
  3818. color: #ff7f00;
  3819. font-size: 25rpx;
  3820. margin-left: 10rpx;
  3821. }
  3822. .three_right {
  3823. /* flex: 1; */
  3824. height: 100rpx;
  3825. display: flex;
  3826. justify-content: flex-end;
  3827. align-items: center;
  3828. color: #ff7f00;
  3829. font-size: 32rpx;
  3830. font-weight: bold;
  3831. }
  3832. .part4 {
  3833. width: 90%;
  3834. margin: 0 auto;
  3835. }
  3836. .box_btn {
  3837. width: 100%;
  3838. background: #cccccc;
  3839. height: 70rpx;
  3840. color: white;
  3841. text-align: center;
  3842. line-height: 70rpx;
  3843. font-size: 26rpx;
  3844. letter-spacing: 2rpx;
  3845. border-radius: 8rpx;
  3846. }
  3847. .box_btn1 {
  3848. width: 100%;
  3849. background: #ff7f00;
  3850. height: 80rpx;
  3851. color: white;
  3852. text-align: center;
  3853. line-height: 80rpx;
  3854. font-size: 31rpx;
  3855. letter-spacing: 2rpx;
  3856. border-radius: 8rpx;
  3857. }
  3858. .box_btn5 {
  3859. width: 16%;
  3860. margin-left: 40rpx;
  3861. background: #ff7f00;
  3862. height: 60rpx;
  3863. color: white;
  3864. text-align: center;
  3865. line-height: 60rpx;
  3866. font-size: 31rpx;
  3867. letter-spacing: 2rpx;
  3868. border-radius: 8rpx;
  3869. }
  3870. .part_six {
  3871. width: 90%;
  3872. margin: 0 auto;
  3873. display: flex;
  3874. }
  3875. .phone {
  3876. flex: 1;
  3877. }
  3878. .phone image {
  3879. width: 29rpx;
  3880. height: 33rpx;
  3881. margin-left: 30rpx;
  3882. }
  3883. .conmm {
  3884. font-size: 19rpx;
  3885. text-align: center;
  3886. letter-spacing: 5rpx;
  3887. }
  3888. .box_btn2 {
  3889. flex: 5;
  3890. width: 100%;
  3891. background: #ff7f00;
  3892. height: 70rpx;
  3893. color: white;
  3894. text-align: center;
  3895. line-height: 70rpx;
  3896. font-size: 26rpx;
  3897. letter-spacing: 2rpx;
  3898. border-radius: 6rpx;
  3899. }
  3900. /* tabbar */
  3901. .tabbar {
  3902. position: fixed;
  3903. bottom: 0rpx;
  3904. left: 0rpx;
  3905. right: 0rpx;
  3906. width: 100%;
  3907. height: 100rpx;
  3908. background: #ffffff;
  3909. display: flex;
  3910. }
  3911. .tabbar_type {
  3912. flex: 1;
  3913. text-align: center;
  3914. font-size: 22rpx;
  3915. margin-top: 10rpx;
  3916. }
  3917. .type_image {
  3918. width: 100%;
  3919. display: flex;
  3920. justify-content: center;
  3921. align-items: center;
  3922. }
  3923. .type_image image {
  3924. width: 47rpx;
  3925. height: 47rpx;
  3926. }
  3927. .tabbar_btn {
  3928. flex: 4;
  3929. display: flex;
  3930. justify-content: center;
  3931. align-items: center;
  3932. }
  3933. .btn {
  3934. width: 90%;
  3935. height: 80rpx;
  3936. background: #ff7f00;
  3937. color: white;
  3938. text-align: center;
  3939. line-height: 80rpx;
  3940. font-size: 26rpx;
  3941. letter-spacing: 2rpx;
  3942. border-radius: 8rpx;
  3943. }
  3944. .btn3 {
  3945. width: 90%;
  3946. height: 80rpx;
  3947. background: #cccccc;
  3948. color: white;
  3949. text-align: center;
  3950. line-height: 80rpx;
  3951. font-size: 26rpx;
  3952. letter-spacing: 2rpx;
  3953. border-radius: 8rpx;
  3954. }
  3955. /* 接单设置弹框 */
  3956. .u-drawer-bottom {
  3957. background-color: #f5f5f5 !important;
  3958. }
  3959. .popup_box {
  3960. width: 90%;
  3961. margin: 0 auto;
  3962. margin-top: 35rpx;
  3963. }
  3964. .title {
  3965. font-size: 29rpx;
  3966. font-weight: bold;
  3967. letter-spacing: 2rpx;
  3968. }
  3969. .part_one {
  3970. width: 100%;
  3971. background: #ffffff;
  3972. margin-top: 18rpx;
  3973. border-radius: 20rpx;
  3974. display: flex;
  3975. height: 120rpx;
  3976. }
  3977. .left {
  3978. flex: 3;
  3979. line-height: 40rpx;
  3980. margin-left: 20rpx;
  3981. margin-top: 20rpx;
  3982. }
  3983. .gotype {
  3984. font-size: 26rpx;
  3985. font-weight: bold;
  3986. letter-spacing: 2rpx;
  3987. }
  3988. .tit {
  3989. color: #999999;
  3990. font-size: 22rpx;
  3991. letter-spacing: 2rpx;
  3992. }
  3993. .right {
  3994. flex: 1;
  3995. display: flex;
  3996. justify-content: flex-end;
  3997. align-items: center;
  3998. margin-right: 30rpx;
  3999. }
  4000. .part_two {
  4001. width: 100%;
  4002. margin: 0 auto;
  4003. background: #ffffff;
  4004. border-radius: 20rpx;
  4005. margin-top: 20rpx;
  4006. height: 130rpx;
  4007. display: flex;
  4008. }
  4009. .two_left {
  4010. flex: 1;
  4011. display: flex;
  4012. justify-content: left;
  4013. align-items: center;
  4014. margin-left: 30rpx;
  4015. font-size: 29rpx;
  4016. font-weight: bold;
  4017. letter-spacing: 2rpx;
  4018. }
  4019. .two_right {
  4020. flex: 1;
  4021. display: flex;
  4022. justify-content: flex-end;
  4023. align-items: center;
  4024. margin-right: 30rpx;
  4025. color: #999999;
  4026. font-size: 25rpx;
  4027. letter-spacing: 2rpx;
  4028. }
  4029. .slot-content {
  4030. padding: 30rpx;
  4031. }
  4032. /* */
  4033. .tabs_box {
  4034. display: none;
  4035. }
  4036. .dis {
  4037. display: block;
  4038. width: 100%;
  4039. }
  4040. .u-tab-item {
  4041. /* font-size: 26upx !important; */
  4042. /* color: #666666 !important; */
  4043. }
  4044. .success_box {
  4045. width: 100%;
  4046. }
  4047. .order_box {
  4048. position: relative;
  4049. width: 90%;
  4050. height: 100%;
  4051. margin: 0 auto;
  4052. /* height: 420rpx; */
  4053. background: #ffffff;
  4054. margin-top: 20rpx;
  4055. border-radius: 16px;
  4056. }
  4057. .order_success {
  4058. width: 90%;
  4059. margin: 0 auto;
  4060. display: flex;
  4061. height: 80upx;
  4062. }
  4063. .order_name {
  4064. flex: 1;
  4065. display: flex;
  4066. justify-content: left;
  4067. align-items: center;
  4068. font-weight: bold;
  4069. font-size: 29rpx;
  4070. letter-spacing: 1upx;
  4071. }
  4072. .order_data {
  4073. flex: 1;
  4074. color: #999999;
  4075. display: flex;
  4076. justify-content: flex-end;
  4077. align-items: center;
  4078. font-size: 26rpx;
  4079. }
  4080. .city_type {
  4081. width: 90%;
  4082. margin: 0 auto;
  4083. height: 60upx;
  4084. line-height: 60upx;
  4085. display: flex;
  4086. justify-content: left;
  4087. align-items: center;
  4088. }
  4089. .type_name {
  4090. font-size: 27rpx;
  4091. }
  4092. .city_text {
  4093. width: 70rpx;
  4094. line-height: 36rpx;
  4095. color: #49a5ff;
  4096. background: #c4e2ff;
  4097. text-align: center;
  4098. font-size: 19rpx;
  4099. margin-left: 20rpx;
  4100. }
  4101. .city_address {
  4102. width: 92%;
  4103. margin: 0 auto;
  4104. margin-top: -10rpx;
  4105. }
  4106. /* 发货地址 */
  4107. .fh_box {
  4108. display: flex;
  4109. /* height: 80upx; */
  4110. margin-top: 20upx;
  4111. }
  4112. .fh_image {
  4113. flex: 1;
  4114. display: flex;
  4115. /* justify-content: left;
  4116. align-items: center; */
  4117. }
  4118. .box {
  4119. flex: 9;
  4120. }
  4121. .fh_name {
  4122. font-size: 26rpx;
  4123. font-weight: 600;
  4124. letter-spacing: 2upx;
  4125. }
  4126. .fh_type {
  4127. color: #999999;
  4128. font-size: 22upx;
  4129. }
  4130. .fh_type text {
  4131. margin-left: 20upx;
  4132. }
  4133. /* 送货地址 */
  4134. .sh_box {
  4135. display: flex;
  4136. margin-bottom: 14upx;
  4137. margin-top: 14rpx;
  4138. }
  4139. .sh_image {
  4140. flex: 1;
  4141. display: flex;
  4142. /* justify-content: left;
  4143. align-items: center; */
  4144. }
  4145. .sh_name {
  4146. font-size: 28rpx;
  4147. font-weight: 600;
  4148. letter-spacing: 2upx;
  4149. }
  4150. .sh_type {
  4151. color: #999999;
  4152. font-size: 22upx;
  4153. }
  4154. .sh_type text {
  4155. margin-left: 20upx;
  4156. }
  4157. .fh_image image {
  4158. width: 40rpx;
  4159. height: 40rpx;
  4160. }
  4161. .sh_image image {
  4162. width: 40rpx;
  4163. height: 40rpx;
  4164. }
  4165. .order_btn {
  4166. display: flex;
  4167. justify-content: flex-end;
  4168. align-items: center;
  4169. height: 100upx;
  4170. line-height: 100upx;
  4171. /* margin-top: 8upx; */
  4172. }
  4173. .btn1 {
  4174. width: 170upx;
  4175. font-size: 28rpx;
  4176. line-height: 60upx;
  4177. text-align: center;
  4178. border: 1upx solid #9c9c9c;
  4179. border-radius: 20upx;
  4180. color: #9c9c9c;
  4181. margin-right: 30upx;
  4182. }
  4183. .btn7 {
  4184. width: 170upx;
  4185. font-size: 28rpx;
  4186. line-height: 60upx;
  4187. text-align: center;
  4188. border-radius: 20upx;
  4189. background: rgba(0, 186, 173, 1);
  4190. color: rgba(255, 255, 255, 1);
  4191. margin-right: 30upx;
  4192. }
  4193. /* 拍照 */
  4194. .btn_pai {
  4195. width: 150rpx;
  4196. height: 60rpx;
  4197. line-height: 60rpx;
  4198. text-align: center;
  4199. background: rgba(255, 201, 189, 1);
  4200. font-size: 28rpx;
  4201. border: 2rpx solid rgba(255, 201, 189, 1);
  4202. color: #333333;
  4203. border-radius: 20upx;
  4204. font-weight: 700;
  4205. margin-left: 15rpx;
  4206. }
  4207. .btn2 {
  4208. width: 170upx;
  4209. line-height: 60upx;
  4210. color: white;
  4211. background: #ff6a04;
  4212. font-size: 28rpx;
  4213. text-align: center;
  4214. margin-right: 30upx;
  4215. border-radius: 20upx;
  4216. }
  4217. /* 一键转单弹框 */
  4218. .receipt_zhuan {
  4219. width: 100%;
  4220. margin: 0 auto;
  4221. }
  4222. .zhuan_title {
  4223. width: 100%;
  4224. line-height: 100rpx;
  4225. font-size: 28rpx;
  4226. font-weight: bold;
  4227. text-align: center;
  4228. letter-spacing: 2rpx;
  4229. margin-top: 21rpx;
  4230. margin-bottom: 25rpx;
  4231. }
  4232. .zhuan-mode{
  4233. background-color: rgba(247, 247, 247, 1);
  4234. width: 100%;
  4235. }
  4236. .zhuan-title{
  4237. margin-left: 18rpx;
  4238. font-size: 32rpx;
  4239. font-weight: 600;
  4240. letter-spacing: 0px;
  4241. line-height: 46rpx;
  4242. color: rgba(0, 0, 0, 1);
  4243. }
  4244. .zhuan-que{
  4245. width: 100%;
  4246. height: 670rpx;
  4247. overflow-y: auto;
  4248. }
  4249. .zhuan-ding{
  4250. display: grid;
  4251. position: relative;
  4252. margin: 10rpx 0 0 20rpx;
  4253. width: 650rpx;
  4254. opacity: 1;
  4255. border-radius: 1rpx;
  4256. background: rgba(255, 255, 255, 1);
  4257. }
  4258. .ding-1{
  4259. position: relative;
  4260. margin: 11rpx 0 0 28rpx;
  4261. padding-top: 11rpx;
  4262. font-size: 28rpx;
  4263. font-weight: 600;
  4264. letter-spacing: 0px;
  4265. line-height: 41rpx;
  4266. color: rgba(0, 0, 0, 1);
  4267. }
  4268. .ding-shop{
  4269. float:left;
  4270. }
  4271. .ding-xuhao{
  4272. float:left;
  4273. margin-left: 30rpx;
  4274. }
  4275. .ding-2{
  4276. position: relative;
  4277. margin: 11rpx 0 0 28rpx;
  4278. font-size: 28rpx;
  4279. font-weight: 400;
  4280. letter-spacing: 0px;
  4281. line-height: 41rpx;
  4282. color: rgba(102, 102, 102, 1);
  4283. }
  4284. .zhuan-btu1{
  4285. float: left;
  4286. width: 120rpx;
  4287. height: 60rpx;
  4288. opacity: 1;
  4289. border-radius: 5rpx;
  4290. background: rgba(255, 141, 26, 1);
  4291. font-size: 28rpx;
  4292. font-weight: 400;
  4293. letter-spacing: 0rpx;
  4294. line-height: 60rpx;
  4295. color: rgba(255, 255, 255, 1);
  4296. text-align: center;
  4297. }
  4298. .zhuan-text{
  4299. float: left;
  4300. margin-left: 30rpx;
  4301. font-size: 28rpx;
  4302. font-weight: 400;
  4303. letter-spacing: 0px;
  4304. line-height: 60rpx;
  4305. color: rgba(0, 0, 0, 1);
  4306. }
  4307. .zhuan-btu2{
  4308. float: left;
  4309. width: 305rpx;
  4310. height: 90rpx;
  4311. opacity: 1;
  4312. border-radius: 9rpx;
  4313. border: 1rpx solid rgba(255, 141, 26, 1);
  4314. font-size: 28rpx;
  4315. font-weight: 400;
  4316. letter-spacing: 0px;
  4317. line-height: 90rpx;
  4318. color: rgba(255, 141, 26, 1);
  4319. text-align: center;
  4320. }
  4321. .zhuan-btu3{
  4322. float: right;
  4323. width: 305rpx;
  4324. height: 90rpx;
  4325. opacity: 1;
  4326. border-radius: 9rpx;
  4327. background: rgba(255, 141, 26, 1);
  4328. font-size: 28rpx;
  4329. font-weight: 400;
  4330. letter-spacing: 0px;
  4331. line-height: 90rpx;
  4332. color: rgba(255, 255, 255, 1);
  4333. text-align: center;
  4334. }
  4335. /* 选择转单人弹框 */
  4336. .xuan-list{
  4337. position: relative;
  4338. width: 100%;
  4339. height: 140rpx;
  4340. background: rgba(255, 255, 255, 1);
  4341. }
  4342. .xuan-list2{
  4343. position: relative;
  4344. width: 100%;
  4345. height: 140rpx;
  4346. background: rgba(255, 246, 237, 1);
  4347. }
  4348. .xuan-right{
  4349. float: left;
  4350. margin-left: 22rpx;
  4351. }
  4352. .ding-3{
  4353. position: relative;
  4354. margin-top: 31rpx;
  4355. height: 40rpx;
  4356. font-size: 28rpx;
  4357. font-weight: 600;
  4358. letter-spacing: 0px;
  4359. line-height: 41rpx;
  4360. color: rgba(0, 0, 0, 1);
  4361. }
  4362. /* 收货码弹框 */
  4363. .receipt_code {
  4364. width: 90%;
  4365. margin: 0 auto;
  4366. }
  4367. .code_title {
  4368. width: 100%;
  4369. line-height: 100rpx;
  4370. font-size: 31rpx;
  4371. font-weight: bold;
  4372. text-align: center;
  4373. letter-spacing: 2rpx;
  4374. margin-top: 21rpx;
  4375. margin-bottom: 25rpx;
  4376. }
  4377. .u-input--border {
  4378. border: 1px solid #f2f2f2 !important;
  4379. background: #f2f2f2 !important;
  4380. color: #999999 !important;
  4381. font-weight: 500 !important;
  4382. letter-spacing: 2rpx !important;
  4383. }
  4384. .u-input__input {
  4385. font-size: 30rpx;
  4386. font-weight: bold;
  4387. flex: 1;
  4388. color: #999999 !important;
  4389. min-height: 85rpx !important;
  4390. margin-top: 7rpx;
  4391. }
  4392. .sure {
  4393. width: 100%;
  4394. height: 80rpx;
  4395. background: #ff7f00;
  4396. color: white;
  4397. border-radius: 46rpx;
  4398. text-align: center;
  4399. line-height: 80rpx;
  4400. margin-top: 30rpx;
  4401. letter-spacing: 2rpx;
  4402. }
  4403. /* 确认送达拍照框 */
  4404. .phone_title {
  4405. margin-top: 10px;
  4406. width: 100%;
  4407. height: 40px;
  4408. /* background-color: #FF7F00; */
  4409. text-align: center;
  4410. line-height: 40px;
  4411. /* color:#FFFFFF; */
  4412. }
  4413. .phone_title2 {
  4414. margin-top: 10px;
  4415. text-align: center;
  4416. color: #9d9d9d;
  4417. }
  4418. .code_title2 {
  4419. width: 100%;
  4420. line-height: 50rpx;
  4421. text-align: center;
  4422. letter-spacing: 2rpx;
  4423. margin-top: 21rpx;
  4424. margin-bottom: 25rpx;
  4425. }
  4426. </style>