index.vue 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521
  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. var daa = {
  2153. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2154. indentType: this.indentType,
  2155. limit: 10,
  2156. page: this.page1,
  2157. receivingPattern: this.receivingPettern,
  2158. riderLat: this.latitude,
  2159. riderLng: this.longitude
  2160. }
  2161. console.log('之前', daa)
  2162. this.$Request
  2163. .postJson('/app/tbindent/find-new-indent-group-by-shop', {
  2164. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2165. indentType: this.indentType,
  2166. limit: 10,
  2167. page: this.page1,
  2168. receivingPattern: this.receivingPettern,
  2169. riderLat: this.latitude,
  2170. riderLng: this.longitude,
  2171. city:this.city
  2172. })
  2173. .then((res) => {
  2174. uni.hideLoading()
  2175. if (res.data) {
  2176. if (res.data.list.length > 0) {
  2177. }
  2178. this.totalCount1 = res.data.totalCount
  2179. if (this.page1 == 1) {
  2180. this.list_shanghu = res.data.list
  2181. } else {
  2182. this.list_shanghu = this.list_shanghu.concat(res.data.list)
  2183. }
  2184. console.log(this.list_shanghu, 'this.list_shanghu')
  2185. }
  2186. this.$forceUpdate()
  2187. uni.stopPullDownRefresh()
  2188. // 加载提示关闭
  2189. uni.hideLoading()
  2190. })
  2191. },
  2192. // 获取新任务数据
  2193. taskData() {
  2194. uni.showLoading({
  2195. title: '加载中',
  2196. mask: true // 是否显示透明蒙层,防止触摸穿透
  2197. })
  2198. this.$Request
  2199. .postJson('/app/tbindent/find-new-indent', {
  2200. buyTpye: '', // 购买类型 0:骑手就近购买;1:用户指定地址购买"
  2201. page: this.page2,
  2202. limit: 10,
  2203. receivingPattern: this.receivingPettern,
  2204. indentType: this.indentType,
  2205. shopId: this.shopId,
  2206. riderLat: this.latitude,
  2207. riderLng: this.longitude,
  2208. city:this.city
  2209. })
  2210. .then((res) => {
  2211. uni.hideLoading()
  2212. if (res.data) {
  2213. if (res.data.list.length > 0) {
  2214. for (var i = 0; i < res.data.list.length; i++) {
  2215. if (res.data.list[i].distancess > 1000) {
  2216. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  2217. } else {
  2218. if (res.data.list[i].distancess == '0') {
  2219. res.data.list[i].distancess = '0m'
  2220. } else {
  2221. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  2222. }
  2223. }
  2224. // if (res.data.list[i].distance > 1000) {
  2225. // res.data.list[i].distance = Number((res.data.list[i].distance / 1000)).toFixed(2) + "km"
  2226. // } else {
  2227. // if (res.data.list[i].distance == 0) {
  2228. // res.data.list[i].distance = "0m";
  2229. // } else {
  2230. // res.data.list[i].distance = Number(res.data.list[i].distance).toFixed(1) + "m";
  2231. // }
  2232. // }
  2233. if (res.data.list[i].distancessd > 1000) {
  2234. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  2235. } else {
  2236. if (res.data.list[i].distancessd == '0') {
  2237. res.data.list[i].distancessd = '0m'
  2238. } else {
  2239. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(1) + 'm'
  2240. }
  2241. }
  2242. }
  2243. }
  2244. this.totalCount2 = res.data.totalCount
  2245. if (this.page2 == 1) {
  2246. this.list_box = res.data.list
  2247. } else {
  2248. this.list_box = this.list_box.concat(res.data.list)
  2249. }
  2250. console.log('list_box', this.list_box)
  2251. }
  2252. this.$forceUpdate()
  2253. uni.stopPullDownRefresh()
  2254. // 加载提示关闭
  2255. uni.hideLoading()
  2256. })
  2257. },
  2258. // 获取待取货和配送中订单
  2259. taskDataJ() {
  2260. uni.showLoading({
  2261. title: '加载中',
  2262. mask: true // 是否显示透明蒙层,防止触摸穿透
  2263. })
  2264. console.log('this.keyword',this.keyword)
  2265. this.$Request
  2266. .getT('/app/tbindent/findRiderIndent', {
  2267. page: this.page3,
  2268. limit: 10,
  2269. indentState: this.indentState,
  2270. keyword:this.keyword,//收货地址或收货人手机号
  2271. // ol: this.longitude,
  2272. // od: this.latitude
  2273. })
  2274. .then((res) => {
  2275. this.totalCount3 = res.data.totalCount
  2276. if (this.page3 == 1) {
  2277. this.lists = res.data.list
  2278. } else {
  2279. this.lists = this.lists.concat(res.data.list)
  2280. }
  2281. for (var i in this.lists) {
  2282. if (this.lists[i].distanceInitial > 1000) {
  2283. this.lists[i].distanceInitials = (Number(this.lists[i].distanceInitial) / 1000).toFixed(2)
  2284. }
  2285. if (this.lists[i].distance > 1000) {
  2286. this.lists[i].distances = (Number(this.lists[i].distance) / 1000).toFixed(2)
  2287. }
  2288. }
  2289. this.lists.map(item=>{
  2290. item.checkeds = false
  2291. })
  2292. console.log('lists', this.lists)
  2293. uni.stopPullDownRefresh()
  2294. // 加载提示关闭
  2295. uni.hideLoading()
  2296. })
  2297. },
  2298. switch1(e) {
  2299. // #ifdef MP-WEIXIN
  2300. if (uni.getStorageSync('sendMsg')) {
  2301. uni.requestSubscribeMessage({
  2302. tmplIds: this.arr,
  2303. success(re) {
  2304. // console.log(re,'**********')
  2305. var datas = JSON.stringify(re)
  2306. if (datas.indexOf('accept') != -1) {
  2307. console.log(re)
  2308. }
  2309. },
  2310. fail: (res) => {
  2311. console.log(res)
  2312. }
  2313. })
  2314. }
  2315. // #endif
  2316. this.checked = e
  2317. this.check = !this.check
  2318. if (e == true) {
  2319. this.receivingPettern = '1'
  2320. }
  2321. if (e == false) {
  2322. // this.checked = false
  2323. // this.check = true
  2324. this.receivingPettern = '2'
  2325. }
  2326. console.log(e)
  2327. },
  2328. switch2(e) {
  2329. // #ifdef MP-WEIXIN
  2330. if (uni.getStorageSync('sendMsg')) {
  2331. uni.requestSubscribeMessage({
  2332. tmplIds: this.arr,
  2333. success(re) {
  2334. // console.log(re,'**********')
  2335. var datas = JSON.stringify(re)
  2336. if (datas.indexOf('accept') != -1) {
  2337. console.log(re)
  2338. }
  2339. },
  2340. fail: (res) => {
  2341. console.log(res)
  2342. }
  2343. })
  2344. }
  2345. // #endif
  2346. console.log(e)
  2347. this.check = e
  2348. this.checked = !this.check
  2349. if (e == true) {
  2350. // this.checked = true
  2351. // this.check = false
  2352. this.receivingPettern = '2'
  2353. }
  2354. if (e == false) {
  2355. // this.checked = false
  2356. // this.check = true
  2357. this.receivingPettern = '1'
  2358. }
  2359. },
  2360. // 打开类型选择模态框
  2361. showModals() {
  2362. // #ifdef MP-WEIXIN
  2363. if (uni.getStorageSync('sendMsg')) {
  2364. uni.requestSubscribeMessage({
  2365. tmplIds: this.arr,
  2366. success(re) {
  2367. // console.log(re,'**********')
  2368. var datas = JSON.stringify(re)
  2369. if (datas.indexOf('accept') != -1) {
  2370. console.log(re)
  2371. }
  2372. },
  2373. fail: (res) => {
  2374. console.log(res)
  2375. }
  2376. })
  2377. }
  2378. // #endif
  2379. this.showModal = true
  2380. },
  2381. radioChange(e) {
  2382. // console.log(e);
  2383. },
  2384. radioGroupChange(e) {
  2385. console.log('······2', e)
  2386. this.indentTypeName = e
  2387. },
  2388. // 点击确定按钮
  2389. confirm() {
  2390. // #ifdef MP-WEIXIN
  2391. if (uni.getStorageSync('sendMsg')) {
  2392. uni.requestSubscribeMessage({
  2393. tmplIds: this.arr,
  2394. success(re) {
  2395. // console.log(re,'**********')
  2396. var datas = JSON.stringify(re)
  2397. if (datas.indexOf('accept') != -1) {
  2398. console.log(re)
  2399. }
  2400. },
  2401. fail: (res) => {
  2402. console.log(res)
  2403. }
  2404. })
  2405. }
  2406. // #endif
  2407. if (this.indentTypeName == '全部') {
  2408. this.indentType = null
  2409. }
  2410. if (this.indentTypeName == '帮我取') {
  2411. this.indentType = 2
  2412. }
  2413. if (this.indentTypeName == '帮我送') {
  2414. this.indentType = 1
  2415. }
  2416. if (this.indentTypeName == '同城帮买') {
  2417. this.indentType = 3
  2418. }
  2419. if (this.indentTypeName == '同城服务') {
  2420. this.indentType = 4
  2421. }
  2422. if (this.indentTypeName == '同城外卖') {
  2423. this.indentType = 5
  2424. }
  2425. },
  2426. // 获取地址
  2427. dizhis() {
  2428. var that = this
  2429. uni.chooseLocation({
  2430. success: function (res) {
  2431. console.log(res)
  2432. uni.setStorageSync('dizhi', res)
  2433. that.quyu = res.name
  2434. that.quyuLongitude = res.longitude
  2435. that.quyuLatitude = res.latitude
  2436. }
  2437. })
  2438. },
  2439. // 关闭底部弹出层
  2440. closePopup() {
  2441. // #ifdef MP-WEIXIN
  2442. if (uni.getStorageSync('sendMsg')) {
  2443. uni.requestSubscribeMessage({
  2444. tmplIds: this.arr,
  2445. success(re) {
  2446. // console.log(re,'**********')
  2447. var datas = JSON.stringify(re)
  2448. if (datas.indexOf('accept') != -1) {
  2449. console.log(re)
  2450. }
  2451. },
  2452. fail: (res) => {
  2453. console.log(res)
  2454. }
  2455. })
  2456. }
  2457. // #endif
  2458. if (this.quyuLongitude != '') {
  2459. this.longitude = this.quyuLongitude
  2460. this.latitude = this.quyuLatitude
  2461. }
  2462. if (!this.ifrenwu) {
  2463. this.page1 = 1
  2464. this.getShanglist()
  2465. } else {
  2466. this.page2 = 1
  2467. this.taskData()
  2468. }
  2469. },
  2470. // 订单详情
  2471. bindorderDetail(indentNumber, orderId) {
  2472. // #ifdef MP-WEIXIN
  2473. if (uni.getStorageSync('sendMsg')) {
  2474. uni.requestSubscribeMessage({
  2475. tmplIds: this.arr,
  2476. success(re) {
  2477. // console.log(re,'**********')
  2478. var datas = JSON.stringify(re)
  2479. if (datas.indexOf('accept') != -1) {
  2480. console.log(re)
  2481. }
  2482. },
  2483. fail: (res) => {
  2484. console.log(res)
  2485. }
  2486. })
  2487. }
  2488. // #endif
  2489. console.log(indentNumber, orderId)
  2490. uni.navigateTo({
  2491. url: '/pages/index/orderdetail/orderdetail?orderId=' + orderId + '&id=' + indentNumber
  2492. })
  2493. },
  2494. // 取消订单
  2495. quxiao(indentNumber, index) {
  2496. // #ifdef MP-WEIXIN
  2497. if (uni.getStorageSync('sendMsg')) {
  2498. uni.requestSubscribeMessage({
  2499. tmplIds: this.arr,
  2500. success(re) {
  2501. // console.log(re,'**********')
  2502. var datas = JSON.stringify(re)
  2503. if (datas.indexOf('accept') != -1) {
  2504. console.log(re)
  2505. }
  2506. },
  2507. fail: (res) => {
  2508. console.log(res)
  2509. }
  2510. })
  2511. }
  2512. // #endif
  2513. let that = this
  2514. uni.showModal({
  2515. title: '提示',
  2516. content: '取消订单将会被扣保证金',
  2517. success: function (res) {
  2518. if (res.confirm) {
  2519. uni.showLoading({
  2520. title: '加载中',
  2521. mask: true // 是否显示透明蒙层,防止触摸穿透
  2522. })
  2523. console.log('用户点击确定')
  2524. that.$Request
  2525. .postT('/app/tbindent/riderCancleIndent', {
  2526. indentNumber: indentNumber
  2527. })
  2528. .then((res) => {
  2529. console.log(res)
  2530. if (res.code == 0) {
  2531. uni.showToast({
  2532. title: '订单已取消',
  2533. icon: 'none'
  2534. })
  2535. // 在toast显示2000毫秒(2秒)后执行操作
  2536. setTimeout(function () {
  2537. //刷新当前列,不返回分页的第一条
  2538. that.lists.splice(index, 1)
  2539. }, 1200)
  2540. // that.taskDataJ()
  2541. } else {
  2542. uni.showToast({
  2543. title: res.msg,
  2544. icon: 'none'
  2545. })
  2546. // 在toast显示2000毫秒(2秒)后执行操作
  2547. setTimeout(function () {
  2548. that.taskDataJ()
  2549. }, 1200)
  2550. }
  2551. // 加载提示关闭
  2552. uni.hideLoading()
  2553. })
  2554. } else if (res.cancel) {
  2555. console.log('用户点击取消')
  2556. }
  2557. }
  2558. })
  2559. },
  2560. quhuo(indentId, index) {
  2561. let that = this
  2562. // #ifdef MP-WEIXIN
  2563. if (uni.getStorageSync('sendMsg')) {
  2564. uni.requestSubscribeMessage({
  2565. tmplIds: this.arr,
  2566. success(re) {
  2567. // console.log(re,'**********')
  2568. var datas = JSON.stringify(re)
  2569. if (datas.indexOf('accept') != -1) {
  2570. console.log(re)
  2571. }
  2572. },
  2573. fail: (res) => {
  2574. console.log(res)
  2575. }
  2576. })
  2577. }
  2578. // #endif
  2579. uni.showModal({
  2580. title: '提示',
  2581. content: '确认到取货吗',
  2582. success: function (res) {
  2583. if (res.confirm) {
  2584. uni.showLoading({
  2585. title: '加载中',
  2586. mask: true // 是否显示透明蒙层,防止触摸穿透
  2587. })
  2588. that.$Request
  2589. .postJson('/app/tbindent/riderBuyGoods', {
  2590. indentId: indentId,
  2591. indentState: '4'
  2592. })
  2593. .then((res) => {
  2594. console.log(res)
  2595. if (res.code == 0) {
  2596. uni.showToast({
  2597. title: '确认取货成功',
  2598. icon: 'none'
  2599. })
  2600. // that.indentState = 4
  2601. setTimeout(function () {
  2602. // that.taskDataJ()
  2603. //刷新当前列,不返回分页的第一条
  2604. that.lists.splice(index, 1)
  2605. // that.current = 2
  2606. }, 1200)
  2607. } else {
  2608. uni.showToast({
  2609. title: res.msg,
  2610. icon: 'none'
  2611. })
  2612. setTimeout(function () {
  2613. that.taskDataJ()
  2614. // that.current = 2
  2615. }, 1200)
  2616. }
  2617. // 加载提示关闭
  2618. uni.hideLoading()
  2619. })
  2620. } else {
  2621. }
  2622. }
  2623. })
  2624. },
  2625. //拍照
  2626. paiOrder(e) {
  2627. if (this.shoudanma != '') {
  2628. this.saomaPeisong = false
  2629. this.indentNumber = e.indentNumber
  2630. this.orderId = e.orderId
  2631. this.alertPhone = true
  2632. return
  2633. }
  2634. this.indentNumber = e.indentNumber
  2635. this.orderId = e.orderId
  2636. this.alertPhone = true
  2637. },
  2638. shouhuo(e, index) {
  2639. if (this.shoudanma != '') {
  2640. this.saomaPeisong = false
  2641. this.orderId = e.orderId
  2642. this.querenduanxinList()
  2643. //需拍照的弹出框
  2644. this.alertduan = true
  2645. return
  2646. }
  2647. this.indentNumber = e.indentNumber
  2648. // if(e.indentType==5){
  2649. // this.querenSh()
  2650. // }
  2651. if (e.itemCodeFlag == 0 && e.indentType != 5) {
  2652. this.shows = true
  2653. } else {
  2654. this.orderId = e.orderId
  2655. this.querenduanxinList()
  2656. //需拍照的弹出框
  2657. this.alertduan = true
  2658. // this.querenSh()
  2659. }
  2660. },
  2661. // 图片上传
  2662. addImages(e) {
  2663. uni.showLoading({
  2664. title: '加载中',
  2665. mask: true // 是否显示透明蒙层,防止触摸穿透
  2666. })
  2667. if (e == 1) {
  2668. var num = this.goodsPicture.length
  2669. this.count = 2 - num
  2670. }
  2671. let that = this
  2672. uni.chooseImage({
  2673. count: this.count,
  2674. sourceType: ['camera', 'album'],
  2675. success: (res) => {
  2676. for (let i = 0; i < res.tempFiles.length; i++) {
  2677. //这里的id和页面中写的html代码的canvas的id要一致
  2678. let canvasId = 'zipCanvas'
  2679. //原图的路径
  2680. let imagePath = res.tempFiles[i].path
  2681. //大小限制
  2682. let limitSize = 1024 * 2
  2683. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  2684. let drawWidth = uni.getSystemInfoSync().windowWidth
  2685. let that = this
  2686. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
  2687. uni.showLoading({
  2688. title: '上传中'
  2689. })
  2690. uni.uploadFile({
  2691. url: that.config('APIHOST1') + '/alioss/upload',
  2692. filePath: resPath,
  2693. name: 'file',
  2694. success: (uploadFileRes) => {
  2695. if (e == 1) {
  2696. if (that.goodsPicture.length < 2) {
  2697. that.goodsPicture.push(JSON.parse(uploadFileRes.data).data)
  2698. }
  2699. }
  2700. uni.hideLoading()
  2701. },
  2702. fail: () => {
  2703. uni.showToast({
  2704. title: '上传失败',
  2705. icon: 'error'
  2706. })
  2707. }
  2708. })
  2709. })
  2710. }
  2711. }
  2712. })
  2713. },
  2714. // 图片删除
  2715. removeImg(index, texts) {
  2716. if (texts == 'lb') {
  2717. this.goodsPicture.splice(index, 1)
  2718. }
  2719. },
  2720. config: function (name) {
  2721. var info = null
  2722. if (name) {
  2723. var name2 = name.split('.') //字符分割
  2724. if (name2.length > 1) {
  2725. info = configdata[name2[0]][name2[1]] || null
  2726. } else {
  2727. info = configdata[name] || null
  2728. }
  2729. if (info == null) {
  2730. let web_config = cache.get('web_config')
  2731. if (web_config) {
  2732. if (name2.length > 1) {
  2733. info = web_config[name2[0]][name2[1]] || null
  2734. } else {
  2735. info = web_config[name] || null
  2736. }
  2737. }
  2738. }
  2739. }
  2740. return info
  2741. },
  2742. // 监听拍照框关闭
  2743. onclose() {
  2744. this.alertPhone = false
  2745. this.alertduan = false
  2746. this.goodsPicture = []
  2747. },
  2748. //确认上传图片
  2749. querenduanxin() {
  2750. uni.showLoading({
  2751. title: '加载中',
  2752. mask: true // 是否显示透明蒙层,防止触摸穿透
  2753. })
  2754. var tupian = this.goodsPicture.toString()
  2755. var indentNumber = this.indentNumber
  2756. this.$Request
  2757. .putT(`/app/tbindent/delivery-img/${indentNumber}`, {
  2758. userId: uni.getStorageSync('userId'),
  2759. // indentNumber:this.indentNumber,
  2760. imgs: tupian
  2761. })
  2762. .then((res) => {
  2763. console.log(res, 'img')
  2764. if (res.code == 0) {
  2765. if (this.shoudanma != '') {
  2766. this.alertPhone = false
  2767. this.saomaCha()
  2768. // this.saomaPeisong=true
  2769. }
  2770. this.alertPhone = false
  2771. uni.showToast({
  2772. title: '图片上传完成',
  2773. icon: 'none'
  2774. })
  2775. // 在toast显示2000毫秒(2秒)后执行操作
  2776. setTimeout(function () {}, 1200)
  2777. } else {
  2778. uni.showToast({
  2779. title: res.msg,
  2780. icon: 'none'
  2781. })
  2782. }
  2783. // 加载提示关闭
  2784. uni.hideLoading()
  2785. })
  2786. },
  2787. // 获取确认送达短信模板
  2788. querenduanxinList() {
  2789. uni.showLoading({
  2790. title: '加载中',
  2791. mask: true // 是否显示透明蒙层,防止触摸穿透
  2792. })
  2793. // this.$Request.postT('/app/tb-indent-sms/template', {
  2794. this.$Request
  2795. .getT('/app/tb-indent-sms/template', {
  2796. // indentNumber: this.indentNumber,
  2797. // itemCode: this.shouhuoma
  2798. })
  2799. .then((res) => {
  2800. console.log(res)
  2801. this.duanxin = res.data.list
  2802. if (res.code == 0) {
  2803. this.page1 = 1
  2804. this.page2 = 1
  2805. this.page3 = 1
  2806. // this.alertPhone = false
  2807. this.alertduan = true
  2808. } else {
  2809. uni.showToast({
  2810. title: res.msg,
  2811. icon: 'none'
  2812. })
  2813. }
  2814. // 加载提示关闭
  2815. uni.hideLoading()
  2816. })
  2817. },
  2818. querenSh() {
  2819. // #ifdef MP-WEIXIN
  2820. if (uni.getStorageSync('sendMsg')) {
  2821. uni.requestSubscribeMessage({
  2822. tmplIds: this.arr,
  2823. success(re) {
  2824. // console.log(re,'**********')
  2825. var datas = JSON.stringify(re)
  2826. if (datas.indexOf('accept') != -1) {
  2827. console.log(re)
  2828. }
  2829. },
  2830. fail: (res) => {
  2831. console.log(res)
  2832. }
  2833. })
  2834. }
  2835. // #endif
  2836. let that = this
  2837. // var date = new Date();
  2838. // var year = date.getFullYear();
  2839. // let Rcode = year + that.shouhuoma
  2840. // that.$Request.postT('/app/tbindent/riderDelivery', {
  2841. uni.showLoading({
  2842. title: '加载中',
  2843. mask: true // 是否显示透明蒙层,防止触摸穿透
  2844. })
  2845. if (this.shoudanma != '') {
  2846. console.log('1aaaaa')
  2847. this.$Request
  2848. .postJson('/app/tbindent/orderRiderDelivery', {
  2849. smsTemplateId: that.duanxin[0].id,
  2850. // indentNumber: that.indentNumber,
  2851. acquireCode: that.shoudanma
  2852. // imgs:'',
  2853. // itemCode: Rcode
  2854. // itemCode: that.shouhuoma
  2855. })
  2856. .then((res) => {
  2857. console.log(res)
  2858. if (res.code == 0) {
  2859. uni.showToast({
  2860. title: '订单完成',
  2861. icon: 'none'
  2862. })
  2863. // 在toast显示2000毫秒(2秒)后执行操作
  2864. setTimeout(function () {
  2865. that.alertduan = false
  2866. that.taskDataJ()
  2867. }, 1200)
  2868. } else {
  2869. uni.showToast({
  2870. title: res.msg,
  2871. icon: 'none'
  2872. })
  2873. }
  2874. // 加载提示关闭
  2875. uni.hideLoading()
  2876. that.shouhuoma = ''
  2877. })
  2878. return
  2879. }
  2880. console.log('2bbbbb')
  2881. this.$Request
  2882. .postJson('/app/tbindent/riderDelivery', {
  2883. smsTemplateId: this.duanxin[0].id,
  2884. indentNumber: that.indentNumber,
  2885. // itemCode: Rcode
  2886. itemCode: that.shouhuoma
  2887. })
  2888. .then((res) => {
  2889. console.log(res)
  2890. that.shouhuoma = ''
  2891. if (res.code == 0) {
  2892. this.alertduan = false
  2893. // this.alertduan = false
  2894. this.shows = false
  2895. uni.showToast({
  2896. title: '订单完成',
  2897. icon: 'none'
  2898. })
  2899. // 在toast显示2000毫秒(2秒)后执行操作
  2900. setTimeout(function () {
  2901. that.alertduan = false
  2902. // this.alertduan = false
  2903. that.shows = false
  2904. that.taskDataJ()
  2905. }, 1200)
  2906. // this.lists = []
  2907. // that.taskDataJ()
  2908. } else {
  2909. uni.showToast({
  2910. title: res.msg,
  2911. icon: 'none'
  2912. })
  2913. // 在toast显示2000毫秒(2秒)后执行操作
  2914. setTimeout(function () {
  2915. that.taskDataJ()
  2916. }, 1200)
  2917. }
  2918. // 加载提示关闭
  2919. uni.hideLoading()
  2920. })
  2921. },
  2922. // 开启订阅消息
  2923. openMsg() {
  2924. console.log('订阅消息')
  2925. var that = this
  2926. uni.getSetting({
  2927. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  2928. success(ret) {
  2929. console.log(ret.subscriptionsSetting, '------------------')
  2930. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  2931. if (ret.subscriptionsSetting.itemSettings) {
  2932. uni.setStorageSync('sendMsg', true)
  2933. uni.openSetting({
  2934. // 打开设置页
  2935. success(rea) {
  2936. console.log(rea.authSetting)
  2937. }
  2938. })
  2939. } else {
  2940. // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  2941. uni.setStorageSync('sendMsg', false)
  2942. uni.showModal({
  2943. title: '提示',
  2944. content: '为了更好的体验,请绑定消息推送',
  2945. confirmText: '确定',
  2946. cancelText: '取消',
  2947. success: function (res) {
  2948. if (res.confirm) {
  2949. wx.requestSubscribeMessage({
  2950. tmplIds: that.arr,
  2951. success(re) {
  2952. var datas = JSON.stringify(re)
  2953. if (datas.indexOf('accept') != -1) {
  2954. console.log(re)
  2955. // uni.setStorageSync('sendMsg', true)
  2956. }
  2957. },
  2958. fail: (res) => {
  2959. console.log(res)
  2960. }
  2961. })
  2962. // uni.setStorageSync('sendMsg', true)
  2963. that.showModal111 = false
  2964. } else if (res.cancel) {
  2965. console.log('取消')
  2966. // uni.setStorageSync('sendMsg', false)
  2967. that.showModal111 = true
  2968. }
  2969. }
  2970. })
  2971. }
  2972. }
  2973. })
  2974. },
  2975. //单个订单转单
  2976. zhuanOrder(indentId) {
  2977. this.saomaPeisong=false
  2978. this.phone = ''
  2979. this.zhuanName = ''
  2980. this.indentId = indentId
  2981. this.showOrder = true
  2982. },
  2983. zhuandan() {
  2984. uni.showLoading({
  2985. title: '加载中',
  2986. mask: true // 是否显示透明蒙层,防止触摸穿透
  2987. })
  2988. this.$Request
  2989. .postT('/app/tbindent/transferOfOrder', {
  2990. indentId: this.indentId,
  2991. phone: this.phone,
  2992. realName: this.zhuanName
  2993. })
  2994. .then((res) => {
  2995. if (res.code == 0) {
  2996. this.phone = ''
  2997. this.$queue.setData('zhuandan', this.indentId)
  2998. uni.showToast({
  2999. title: '转单成功',
  3000. icon: 'none'
  3001. })
  3002. setTimeout((d) => {
  3003. //刷新当前列,不返回分页的第一条
  3004. that.lists.splice(index, 1)
  3005. }, 1000)
  3006. } else {
  3007. uni.showToast({
  3008. title: res.msg,
  3009. icon: 'none'
  3010. })
  3011. }
  3012. // 加载提示关闭
  3013. uni.hideLoading()
  3014. })
  3015. },
  3016. //收货地址或收货人手机号搜索
  3017. searchKeyword(e){
  3018. this.keyword=e.detail.value
  3019. // this.taskDataJ()
  3020. },
  3021. //搜索框回车
  3022. shouhuiche() {
  3023. this.taskDataJ()
  3024. },
  3025. //一键批量转单弹框
  3026. allZhuan(){
  3027. this.pageDai=1
  3028. this.showsZhuan=true
  3029. this.getDaizhuan()
  3030. },
  3031. //未选择时转单
  3032. allZhuanNo(){
  3033. uni.showToast({
  3034. title: '请先选择需要转的订单!',
  3035. icon: 'none'
  3036. })
  3037. },
  3038. // 选中某个复选框时,触发
  3039. checkboxChange(e) {
  3040. e.checkeds=!e.checkeds
  3041. if(this.indentIds.indexOf(e.indentId)==-1){//如果没有选中则把indentId增加到数组中
  3042. this.indentIds.push(e.indentId)
  3043. }else{//如果找到了则把indentId删除
  3044. this.indentIds.splice(this.indentIds.indexOf(e.indentId),1)
  3045. }
  3046. if(this.indentIds.length==this.lists.length){ //判断是否全部选中
  3047. this.checkedz = true
  3048. }else{
  3049. this.checkedz = false
  3050. }
  3051. console.log(this.indentIds,'this.indentIds111')
  3052. },
  3053. //全选
  3054. checkboxChanges(){
  3055. this.indentIds = []
  3056. if(this.checkedz==false){//全选(把总复选框选中并把goodsid赋给数组)
  3057. this.checkedz = true
  3058. this.lists.map(item=>{
  3059. item.checkeds = true
  3060. this.indentIds.push(item.indentId)
  3061. })
  3062. console.log(this.lists)
  3063. console.log(this.indentIds,'this.indentIds')
  3064. }else{//全不选
  3065. this.checkedz = false
  3066. this.lists.map(item=>{
  3067. item.checkeds = false
  3068. })
  3069. }
  3070. },
  3071. //待转单分页数据
  3072. getDaizhuan(){
  3073. uni.showLoading({
  3074. title: '加载中',
  3075. mask: true // 是否显示透明蒙层,防止触摸穿透
  3076. })
  3077. console.log('listDaiaaaaa', this.pageDai,this.sizeDai,this.indentIds.join(','))
  3078. this.$Request
  3079. .getT('/app/tbindent/findRiderIndentByIds', {
  3080. page: this.pageDai,
  3081. limit: this.sizeDai,
  3082. indentIds:this.indentIds.join(','),//待转单订单indentid
  3083. })
  3084. .then((res) => {
  3085. console.log('listDai', res)
  3086. this.pageCountDai = res.data.totalCount
  3087. if (this.pageDai == 1) {
  3088. this.listDai = res.data.list
  3089. } else {
  3090. this.listDai = this.listDai.concat(res.data.list)
  3091. }
  3092. // console.log('listDai', this.listDai)
  3093. // res.page -- 后端返回的当前页,
  3094. // res.pageCount -- 后端返回的总页数
  3095. if(this.listDai.length == 0 || res.data.currPage==res.data.totalPage) {
  3096. this.statusDai = 'nomore';
  3097. }
  3098. // 加载提示关闭
  3099. uni.hideLoading()
  3100. })
  3101. },
  3102. // 待转单数据滚动到底部
  3103. scrolltolowerDai(e) {
  3104. if(this.listDai.length < this.pageCountDai){
  3105. this.pageDai++
  3106. this.getDaizhuan()
  3107. }else {
  3108. this.statusDai = 'nomore';
  3109. }
  3110. },
  3111. //删除待转单
  3112. deleteDing(e,index){
  3113. let that = this
  3114. //删除当前列,不返回分页的第一条
  3115. that.listDai.splice(index, 1)//this.indentIds.indexOf(e.indentId)
  3116. that.indentIds.splice(index, 1)
  3117. if(that.indentIds.length==0){
  3118. that.lists.map(item=>{
  3119. item.checkeds = false
  3120. })
  3121. that.checkedz=false
  3122. }else{
  3123. that.lists.map(item=>{
  3124. if(item.indentId==e.indentId){
  3125. item.checkeds = false
  3126. }
  3127. })
  3128. that.checkedz=false
  3129. }
  3130. },
  3131. //批量转单
  3132. transformOrder(){
  3133. let that = this
  3134. uni.showLoading({
  3135. title: '加载中',
  3136. mask: true // 是否显示透明蒙层,防止触摸穿透
  3137. })
  3138. if(that.indentIds.length==0){
  3139. uni.showToast({
  3140. title: '待转订单不能为空!',
  3141. icon: 'none'
  3142. })
  3143. }else if(that.riderId==''){
  3144. uni.showToast({
  3145. title: '请选择骑手!',
  3146. icon: 'none'
  3147. })
  3148. }else{
  3149. var daa = {
  3150. indentIds: that.indentIds, //数据ID集合
  3151. riderId: that.riderId,//被转单骑手ID
  3152. }
  3153. console.log('转单之前', daa)
  3154. that.$Request
  3155. .postJson('/app/tbindent/transferOfOrders', {
  3156. indentIds: that.indentIds, //数据ID集合
  3157. riderId: that.riderId,//被转单骑手ID
  3158. })
  3159. .then((res) => {
  3160. if (res.code == 0) {
  3161. uni.showToast({
  3162. title: '批量转单成功',
  3163. icon: 'none'
  3164. })
  3165. // 在toast显示2000毫秒(2秒)后执行操作
  3166. setTimeout(function () {
  3167. that.riderId=''
  3168. that.riderName=''
  3169. that.indentIds=[]
  3170. that.checkedz=false
  3171. that.showsZhuan=false
  3172. that.taskDataJ()
  3173. }, 1200)
  3174. } else {
  3175. uni.showToast({
  3176. title: res.msg,
  3177. icon: 'none'
  3178. })
  3179. // 在toast显示2000毫秒(2秒)后执行操作
  3180. setTimeout(function () {
  3181. that.riderId=''
  3182. that.riderName=''
  3183. that.indentIds=[]
  3184. that.checkedz=false
  3185. that.showsZhuan=false
  3186. that.taskDataJ()
  3187. }, 1200)
  3188. }
  3189. // 加载提示关闭
  3190. uni.hideLoading()
  3191. })
  3192. }
  3193. },
  3194. //取消转单
  3195. quxiaoZhuan(){
  3196. this.riderId=''
  3197. this.riderName=''
  3198. this.indentIds=[]
  3199. this.checkedz=false
  3200. this.showsZhuan=false
  3201. },
  3202. //选择转单人弹框
  3203. selectPeople(){
  3204. this.showsSelect=true
  3205. this.getRiders()
  3206. },
  3207. //骑手关键字搜索
  3208. searchKeywordRider(e){
  3209. this.keywordRider=e.detail.value
  3210. this.getRiders()
  3211. },
  3212. //被转单骑手分页数据
  3213. getRiders(){
  3214. uni.showLoading({
  3215. title: '加载中',
  3216. mask: true // 是否显示透明蒙层,防止触摸穿透
  3217. })
  3218. console.log('listRideraaaaa', this.pageRider,this.sizeRider)
  3219. this.$Request
  3220. .getT('/app/user/findRiders', {
  3221. page: this.pageRider,
  3222. limit: this.sizeRider,
  3223. keyword:this.keywordRider,//手机号或骑手姓名
  3224. })
  3225. .then((res) => {
  3226. console.log('listRider', res)
  3227. this.pageCountRider = res.data.totalCount
  3228. if (this.pageRider == 1) {
  3229. this.listRider = res.data.list
  3230. } else {
  3231. this.listRider = this.listRider.concat(res.data.list)
  3232. }
  3233. // console.log('listRider', this.listRider)
  3234. // res.page -- 后端返回的当前页,
  3235. // res.pageCount -- 后端返回的总页数
  3236. if(this.listRider.length == 0 || res.data.currPage==res.data.totalPage) {
  3237. this.status = 'nomore';
  3238. }
  3239. // 加载提示关闭
  3240. uni.hideLoading()
  3241. })
  3242. },
  3243. // 骑手数据滚动到底部
  3244. scrolltolower(e) {
  3245. if(this.listRider.length < this.pageCountRider){
  3246. this.pageRider++
  3247. this.getRiders()
  3248. }else {
  3249. this.status = 'nomore';
  3250. }
  3251. },
  3252. //选择骑手
  3253. getRider(e){
  3254. this.riderId=e.userId
  3255. this.riderName=e.userName
  3256. this.showsSelect=false
  3257. },
  3258. //删除已选骑手
  3259. deleteRider(){
  3260. this.riderId=''
  3261. this.riderName=''
  3262. },
  3263. },
  3264. // 上拉加载
  3265. onReachBottom: function () {
  3266. if (this.current == 0) {
  3267. if (!this.ifrenwu) {
  3268. console.log(this.list_shanghu.length, this.totalCount1, 'list_shanghu')
  3269. if (this.list_shanghu.length < this.totalCount1) {
  3270. this.page1 = this.page1 + 1
  3271. this.getShanglist()
  3272. } else {
  3273. uni.showToast({
  3274. title: '已经最后一页啦',
  3275. icon: 'none'
  3276. })
  3277. }
  3278. } else {
  3279. console.log(this.list_box.length, this.totalCount2, 'jjj')
  3280. if (this.list_box.length < this.totalCount2) {
  3281. this.page2 = this.page2 + 1
  3282. this.taskData()
  3283. this.checkedz=false
  3284. } else {
  3285. uni.showToast({
  3286. title: '已经最后一页啦',
  3287. icon: 'none'
  3288. })
  3289. }
  3290. }
  3291. } else if (this.current == 1) {
  3292. //配送中
  3293. if (this.lists.length < this.totalCount3) {
  3294. this.page3 = this.page3 + 1
  3295. this.indentState = 3
  3296. this.taskDataJ()
  3297. this.checkedz=false
  3298. } else {
  3299. uni.showToast({
  3300. title: '已经最后一页啦',
  3301. icon: 'none'
  3302. })
  3303. }
  3304. } else if (this.current == 2) {
  3305. //全部订单
  3306. if (this.lists.length < this.totalCount3) {
  3307. this.page3 = this.page3 + 1
  3308. this.indentState = 4
  3309. this.taskDataJ()
  3310. } else {
  3311. uni.showToast({
  3312. title: '已经最后一页啦',
  3313. icon: 'none'
  3314. })
  3315. }
  3316. }
  3317. },
  3318. onPullDownRefresh: function () {
  3319. if (this.current == 0) {
  3320. if (!this.ifrenwu) {
  3321. this.page1 = 1
  3322. this.getShanglist()
  3323. } else {
  3324. this.page2 = 1
  3325. this.taskData()
  3326. }
  3327. } else if (this.current == 1) {
  3328. this.page3 = 1
  3329. this.indentState = 3
  3330. this.taskDataJ()
  3331. } else if (this.current == 2) {
  3332. this.page3 = 1
  3333. this.indentState = 4
  3334. this.taskDataJ()
  3335. }
  3336. },
  3337. }
  3338. </script>
  3339. <style>
  3340. body {
  3341. background: #f5f5f5;
  3342. }
  3343. .privacy {
  3344. position: fixed;
  3345. top: 0;
  3346. right: 0;
  3347. bottom: 0;
  3348. left: 0;
  3349. background: rgba(0, 0, 0, 0.5);
  3350. z-index: 9999999;
  3351. display: flex;
  3352. align-items: center;
  3353. justify-content: center;
  3354. }
  3355. .contentview {
  3356. width: 632rpx;
  3357. padding: 48rpx;
  3358. box-sizing: border-box;
  3359. background: #fff;
  3360. border-radius: 16rpx;
  3361. }
  3362. .contentview .title {
  3363. text-align: center;
  3364. color: #333;
  3365. font-weight: bold;
  3366. font-size: 32rpx;
  3367. }
  3368. .contentview .des {
  3369. font-size: 26rpx;
  3370. color: #666;
  3371. margin-top: 40rpx;
  3372. text-align: justify;
  3373. line-height: 1.6;
  3374. }
  3375. .contentview .des .link {
  3376. color: #07c160;
  3377. text-decoration: underline;
  3378. }
  3379. button::after {
  3380. border: none;
  3381. }
  3382. .btns {
  3383. margin-top: 48rpx;
  3384. display: flex;
  3385. }
  3386. .btns .item {
  3387. justify-content: space-between;
  3388. width: 244rpx;
  3389. height: 80rpx;
  3390. display: flex;
  3391. align-items: center;
  3392. justify-content: center;
  3393. border-radius: 16rpx;
  3394. box-sizing: border-box;
  3395. border: none;
  3396. }
  3397. .btns .reject {
  3398. background: #f4f4f5;
  3399. color: #909399;
  3400. }
  3401. .btns .agree {
  3402. background: #07c160;
  3403. color: #fff;
  3404. }
  3405. .content {
  3406. margin-top: 100rpx;
  3407. min-height: 100vh; /* 设置最小高度为视口高度 */
  3408. }
  3409. /* 待取货和配送中搜索框 */
  3410. // 搜索框
  3411. .search-bar{
  3412. position: relative;
  3413. width: 100%;
  3414. height: 100rpx;
  3415. margin-top: 20rpx;
  3416. }
  3417. .search-bar-box{
  3418. display: flex;
  3419. margin: 0 auto;
  3420. width: 670rpx;
  3421. height: 90rpx;
  3422. background: rgba(255, 255, 255, 1);
  3423. border: 1px solid rgba(255, 141, 26, 1);
  3424. border-radius: 7rpx;
  3425. }
  3426. .search-span{
  3427. width: 38rpx;
  3428. height: 38rpx;
  3429. margin-top: 27rpx;
  3430. margin-left: 20rpx;
  3431. }
  3432. .search-text{
  3433. width: 100%;
  3434. margin-top: 20rpx;
  3435. margin-left: 20rpx;
  3436. font-size: 30rpx;
  3437. color: rgba(166, 166, 166, 1);
  3438. }
  3439. .impute {
  3440. text-align: center;
  3441. margin-left: 4%;
  3442. margin-top: 20rpx;
  3443. width: 690rpx;
  3444. height: 90rpx;
  3445. opacity: 1;
  3446. border-radius: 7rpx;
  3447. background: rgba(255, 255, 255, 1);
  3448. border: 1px solid rgba(255, 141, 26, 1);
  3449. }
  3450. /* 全选框和批量转单 */
  3451. .kuang-bar{
  3452. position: relative;
  3453. margin-left: 5%;
  3454. width: 90%;
  3455. height: 70rpx;
  3456. margin-top: 20rpx;
  3457. }
  3458. .kuang-padd{
  3459. float: left;
  3460. width: 20%;
  3461. display: flex;
  3462. margin: 10rpx auto;
  3463. font-size: 28rpx;
  3464. font-weight: 400;
  3465. line-height: 50rpx;
  3466. color: rgba(166, 166, 166, 1);
  3467. }
  3468. .kuang-li{
  3469. margin: 0 0 0 4%;
  3470. width: 50rpx;
  3471. height: 50rpx;
  3472. }
  3473. .kuang-kong{
  3474. opacity: 1;
  3475. border-radius: 6rpx;
  3476. border: 1rpx solid rgba(166, 166, 166, 1);
  3477. }
  3478. .kuang-se{
  3479. opacity: 1;
  3480. border-radius: 6rpx;
  3481. background: rgba(255, 141, 26, 1);
  3482. }
  3483. .kuang-line{
  3484. float: left;
  3485. margin-left: 5px;
  3486. margin-right: 5px;
  3487. width: 0px;
  3488. height: 220px;
  3489. border: 0.5px solid rgba(230, 230, 230, 1);
  3490. }
  3491. .kuang-btn{
  3492. float: right;
  3493. width: 163rpx;
  3494. height: 70rpx;
  3495. border-radius: 13rpx;
  3496. font-size: 28rpx;
  3497. font-weight: 400;
  3498. line-height: 70rpx;
  3499. text-align: center;
  3500. }
  3501. .selectpil{
  3502. background: rgba(255, 141, 26, 1);
  3503. color: rgba(255, 255, 255, 1);
  3504. }
  3505. .noselect{
  3506. background: #cccccc;
  3507. color: rgba(0, 0, 0, 0.6);
  3508. }
  3509. .slot-wrap {
  3510. display: flex;
  3511. justify-content: center;
  3512. align-items: center;
  3513. /* 如果您想让slot内容占满整个导航栏的宽度 */
  3514. /* flex: 1; */
  3515. /* 如果您想让slot内容与导航栏左右有空隙 */
  3516. /* padding: 0 30rpx; */
  3517. }
  3518. .u-title {
  3519. color: #000000 !important;
  3520. font-size: 31rpx !important;
  3521. font-weight: bold !important;
  3522. }
  3523. .solt {
  3524. position: relative;
  3525. }
  3526. .slot_left {
  3527. width: 60rpx;
  3528. height: 60rpx;
  3529. position: absolute;
  3530. top: 15rpx;
  3531. left: 20rpx;
  3532. }
  3533. .slot_left image {
  3534. width: 60rpx;
  3535. height: 60rpx;
  3536. }
  3537. .slot_content {
  3538. width: 35rpx;
  3539. height: 35rpx;
  3540. position: absolute;
  3541. top: 26rpx;
  3542. left: 280rpx;
  3543. }
  3544. .slot_content image {
  3545. width: 35rpx;
  3546. height: 35rpx;
  3547. }
  3548. /* tabs */
  3549. .u-tab-item {
  3550. color: #333333 !important;
  3551. /* font-size: 26rpx !important; */
  3552. letter-spacing: 2rpx;
  3553. }
  3554. .u-tab-bar {
  3555. width: 65rpx !important;
  3556. height: 8rpx !important;
  3557. background-color: #ff7f00 !important;
  3558. border-radius: 0rpx !important;
  3559. position: absolute !important;
  3560. bottom: 0rpx !important;
  3561. left: -14rpx !important;
  3562. }
  3563. .tabs_box {
  3564. display: none;
  3565. padding-bottom: 120rpx;
  3566. }
  3567. .dis {
  3568. display: block;
  3569. width: 100%;
  3570. margin-bottom: 190rpx;
  3571. }
  3572. .list_box1 {
  3573. width: 90%;
  3574. margin: 0 auto;
  3575. height: auto;
  3576. background: #ffffff;
  3577. border-radius: 23rpx;
  3578. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3579. margin-top: 20rpx;
  3580. padding-bottom: 20rpx;
  3581. }
  3582. .list_box {
  3583. width: 90%;
  3584. margin: 0 auto;
  3585. height: auto;
  3586. background: #ffffff;
  3587. border-radius: 23rpx;
  3588. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3589. margin-top: 20rpx;
  3590. padding-bottom: 20rpx;
  3591. }
  3592. .list_box2 {
  3593. width: 90%;
  3594. margin: 0 auto;
  3595. height: auto;
  3596. background: #ffffff;
  3597. border-radius: 23rpx;
  3598. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  3599. margin-top: 20rpx;
  3600. }
  3601. .order_title {
  3602. width: 90%;
  3603. margin: 0 auto;
  3604. border-radius: 14px 14px, 0px, 0px;
  3605. background: rgba(255, 239, 222, 1);
  3606. height: 40upx;
  3607. color: rgba(255, 141, 26, 1);
  3608. font-size: 24upx;
  3609. line-height: 40upx;
  3610. text-align: center;
  3611. }
  3612. .part1 {
  3613. width: 90%;
  3614. margin: 0 auto;
  3615. justify-content: left;
  3616. align-items: center;
  3617. display: flex;
  3618. height: 100rpx;
  3619. position: relative;
  3620. }
  3621. .box_one {
  3622. background: #c4e2ff;
  3623. color: #359cff;
  3624. /* width: 60px;
  3625. height: 45rpx; */
  3626. padding: 0px 10px;
  3627. font-size: 26rpx;
  3628. text-align: center;
  3629. line-height: 45rpx;
  3630. border-radius: 5rpx;
  3631. }
  3632. .box_four {
  3633. color: #666666;
  3634. border: 1rpx solid #666666;
  3635. font-size: 22rpx;
  3636. width: 95px;
  3637. height: 40rpx;
  3638. text-align: center;
  3639. line-height: 40rpx;
  3640. border-radius: 5rpx;
  3641. margin-left: 20rpx;
  3642. }
  3643. .box_two {
  3644. color: #666666;
  3645. border: 1rpx solid #666666;
  3646. font-size: 22rpx;
  3647. /* width: 60px; */
  3648. height: 40rpx;
  3649. text-align: center;
  3650. line-height: 40rpx;
  3651. border-radius: 5rpx;
  3652. margin-left: 20rpx;
  3653. padding: 0 10rpx;
  3654. }
  3655. .box_two1 {
  3656. width: auto;
  3657. padding: 0 10rpx;
  3658. }
  3659. .box_three {
  3660. color: #666666;
  3661. border: 1rpx solid #666666;
  3662. font-size: 22rpx;
  3663. width: 75px;
  3664. height: 40rpx;
  3665. text-align: center;
  3666. line-height: 40rpx;
  3667. border-radius: 5rpx;
  3668. margin-left: 20rpx;
  3669. }
  3670. .part2 {
  3671. width: 90%;
  3672. margin: 0 auto;
  3673. }
  3674. /* 下线 */
  3675. .address_name {
  3676. font-size: 28rpx;
  3677. font-weight: bold;
  3678. letter-spacing: 2rpx;
  3679. /* line-height: 60rpx; */
  3680. display: -webkit-box;
  3681. -webkit-box-orient: vertical;
  3682. -webkit-line-clamp: 1;
  3683. overflow: hidden;
  3684. }
  3685. .name {
  3686. color: #999999;
  3687. font-size: 21rpx;
  3688. }
  3689. .name text {
  3690. /* margin-left: 10rpx; */
  3691. }
  3692. /* 上线 */
  3693. .box_add {
  3694. display: flex;
  3695. }
  3696. .distance {
  3697. flex: 1;
  3698. /* text-align: center; */
  3699. font-size: 28rpx;
  3700. display: flex;
  3701. justify-content: left;
  3702. align-items: center;
  3703. }
  3704. .a {
  3705. font-size: 16rpx;
  3706. }
  3707. .add_name {
  3708. /* display: flex; */
  3709. flex: 4;
  3710. }
  3711. .sh_name {
  3712. font-size: 28rpx;
  3713. font-weight: bold;
  3714. letter-spacing: 2rpx;
  3715. }
  3716. .sh_name1 {
  3717. font-size: 28rpx;
  3718. font-weight: bold;
  3719. letter-spacing: 2rpx;
  3720. color: #999999;
  3721. }
  3722. .xs_add {
  3723. color: #999999;
  3724. font-size: 21rpx;
  3725. margin-top: 10rpx;
  3726. }
  3727. .jiantou {
  3728. margin-left: 43rpx;
  3729. display: flex;
  3730. /* justify-content: space-between; */
  3731. align-items: center;
  3732. height: 40px;
  3733. line-height: 40px;
  3734. }
  3735. .jiantou image {
  3736. width: 20rpx;
  3737. height: 40rpx;
  3738. }
  3739. .jiantou > view {
  3740. margin-left: 10rpx;
  3741. }
  3742. .part3 {
  3743. width: 90%;
  3744. margin: 0 auto;
  3745. display: flex;
  3746. }
  3747. .three_left {
  3748. flex: 1;
  3749. height: 100rpx;
  3750. display: flex;
  3751. justify-content: left;
  3752. align-items: center;
  3753. }
  3754. .three_left image {
  3755. width: 20px;
  3756. height: 20px;
  3757. }
  3758. .three_left text {
  3759. color: #ff7f00;
  3760. font-size: 25rpx;
  3761. margin-left: 10rpx;
  3762. }
  3763. .three_right {
  3764. /* flex: 1; */
  3765. height: 100rpx;
  3766. display: flex;
  3767. justify-content: flex-end;
  3768. align-items: center;
  3769. color: #ff7f00;
  3770. font-size: 32rpx;
  3771. font-weight: bold;
  3772. }
  3773. .part4 {
  3774. width: 90%;
  3775. margin: 0 auto;
  3776. }
  3777. .box_btn {
  3778. width: 100%;
  3779. background: #cccccc;
  3780. height: 70rpx;
  3781. color: white;
  3782. text-align: center;
  3783. line-height: 70rpx;
  3784. font-size: 26rpx;
  3785. letter-spacing: 2rpx;
  3786. border-radius: 8rpx;
  3787. }
  3788. .box_btn1 {
  3789. width: 100%;
  3790. background: #ff7f00;
  3791. height: 80rpx;
  3792. color: white;
  3793. text-align: center;
  3794. line-height: 80rpx;
  3795. font-size: 31rpx;
  3796. letter-spacing: 2rpx;
  3797. border-radius: 8rpx;
  3798. }
  3799. .box_btn5 {
  3800. width: 16%;
  3801. margin-left: 40rpx;
  3802. background: #ff7f00;
  3803. height: 60rpx;
  3804. color: white;
  3805. text-align: center;
  3806. line-height: 60rpx;
  3807. font-size: 31rpx;
  3808. letter-spacing: 2rpx;
  3809. border-radius: 8rpx;
  3810. }
  3811. .part_six {
  3812. width: 90%;
  3813. margin: 0 auto;
  3814. display: flex;
  3815. }
  3816. .phone {
  3817. flex: 1;
  3818. }
  3819. .phone image {
  3820. width: 29rpx;
  3821. height: 33rpx;
  3822. margin-left: 30rpx;
  3823. }
  3824. .conmm {
  3825. font-size: 19rpx;
  3826. text-align: center;
  3827. letter-spacing: 5rpx;
  3828. }
  3829. .box_btn2 {
  3830. flex: 5;
  3831. width: 100%;
  3832. background: #ff7f00;
  3833. height: 70rpx;
  3834. color: white;
  3835. text-align: center;
  3836. line-height: 70rpx;
  3837. font-size: 26rpx;
  3838. letter-spacing: 2rpx;
  3839. border-radius: 6rpx;
  3840. }
  3841. /* tabbar */
  3842. .tabbar {
  3843. position: fixed;
  3844. bottom: 0rpx;
  3845. left: 0rpx;
  3846. right: 0rpx;
  3847. width: 100%;
  3848. height: 100rpx;
  3849. background: #ffffff;
  3850. display: flex;
  3851. }
  3852. .tabbar_type {
  3853. flex: 1;
  3854. text-align: center;
  3855. font-size: 22rpx;
  3856. margin-top: 10rpx;
  3857. }
  3858. .type_image {
  3859. width: 100%;
  3860. display: flex;
  3861. justify-content: center;
  3862. align-items: center;
  3863. }
  3864. .type_image image {
  3865. width: 47rpx;
  3866. height: 47rpx;
  3867. }
  3868. .tabbar_btn {
  3869. flex: 4;
  3870. display: flex;
  3871. justify-content: center;
  3872. align-items: center;
  3873. }
  3874. .btn {
  3875. width: 90%;
  3876. height: 80rpx;
  3877. background: #ff7f00;
  3878. color: white;
  3879. text-align: center;
  3880. line-height: 80rpx;
  3881. font-size: 26rpx;
  3882. letter-spacing: 2rpx;
  3883. border-radius: 8rpx;
  3884. }
  3885. .btn3 {
  3886. width: 90%;
  3887. height: 80rpx;
  3888. background: #cccccc;
  3889. color: white;
  3890. text-align: center;
  3891. line-height: 80rpx;
  3892. font-size: 26rpx;
  3893. letter-spacing: 2rpx;
  3894. border-radius: 8rpx;
  3895. }
  3896. /* 接单设置弹框 */
  3897. .u-drawer-bottom {
  3898. background-color: #f5f5f5 !important;
  3899. }
  3900. .popup_box {
  3901. width: 90%;
  3902. margin: 0 auto;
  3903. margin-top: 35rpx;
  3904. }
  3905. .title {
  3906. font-size: 29rpx;
  3907. font-weight: bold;
  3908. letter-spacing: 2rpx;
  3909. }
  3910. .part_one {
  3911. width: 100%;
  3912. background: #ffffff;
  3913. margin-top: 18rpx;
  3914. border-radius: 20rpx;
  3915. display: flex;
  3916. height: 120rpx;
  3917. }
  3918. .left {
  3919. flex: 3;
  3920. line-height: 40rpx;
  3921. margin-left: 20rpx;
  3922. margin-top: 20rpx;
  3923. }
  3924. .gotype {
  3925. font-size: 26rpx;
  3926. font-weight: bold;
  3927. letter-spacing: 2rpx;
  3928. }
  3929. .tit {
  3930. color: #999999;
  3931. font-size: 22rpx;
  3932. letter-spacing: 2rpx;
  3933. }
  3934. .right {
  3935. flex: 1;
  3936. display: flex;
  3937. justify-content: flex-end;
  3938. align-items: center;
  3939. margin-right: 30rpx;
  3940. }
  3941. .part_two {
  3942. width: 100%;
  3943. margin: 0 auto;
  3944. background: #ffffff;
  3945. border-radius: 20rpx;
  3946. margin-top: 20rpx;
  3947. height: 130rpx;
  3948. display: flex;
  3949. }
  3950. .two_left {
  3951. flex: 1;
  3952. display: flex;
  3953. justify-content: left;
  3954. align-items: center;
  3955. margin-left: 30rpx;
  3956. font-size: 29rpx;
  3957. font-weight: bold;
  3958. letter-spacing: 2rpx;
  3959. }
  3960. .two_right {
  3961. flex: 1;
  3962. display: flex;
  3963. justify-content: flex-end;
  3964. align-items: center;
  3965. margin-right: 30rpx;
  3966. color: #999999;
  3967. font-size: 25rpx;
  3968. letter-spacing: 2rpx;
  3969. }
  3970. .slot-content {
  3971. padding: 30rpx;
  3972. }
  3973. /* */
  3974. .tabs_box {
  3975. display: none;
  3976. }
  3977. .dis {
  3978. display: block;
  3979. width: 100%;
  3980. }
  3981. .u-tab-item {
  3982. /* font-size: 26upx !important; */
  3983. /* color: #666666 !important; */
  3984. }
  3985. .success_box {
  3986. width: 100%;
  3987. }
  3988. .order_box {
  3989. position: relative;
  3990. width: 90%;
  3991. height: 100%;
  3992. margin: 0 auto;
  3993. /* height: 420rpx; */
  3994. background: #ffffff;
  3995. margin-top: 20rpx;
  3996. border-radius: 16px;
  3997. }
  3998. .order_success {
  3999. width: 90%;
  4000. margin: 0 auto;
  4001. display: flex;
  4002. height: 80upx;
  4003. }
  4004. .order_name {
  4005. flex: 1;
  4006. display: flex;
  4007. justify-content: left;
  4008. align-items: center;
  4009. font-weight: bold;
  4010. font-size: 29rpx;
  4011. letter-spacing: 1upx;
  4012. }
  4013. .order_data {
  4014. flex: 1;
  4015. color: #999999;
  4016. display: flex;
  4017. justify-content: flex-end;
  4018. align-items: center;
  4019. font-size: 26rpx;
  4020. }
  4021. .city_type {
  4022. width: 90%;
  4023. margin: 0 auto;
  4024. height: 60upx;
  4025. line-height: 60upx;
  4026. display: flex;
  4027. justify-content: left;
  4028. align-items: center;
  4029. }
  4030. .type_name {
  4031. font-size: 27rpx;
  4032. }
  4033. .city_text {
  4034. width: 70rpx;
  4035. line-height: 36rpx;
  4036. color: #49a5ff;
  4037. background: #c4e2ff;
  4038. text-align: center;
  4039. font-size: 19rpx;
  4040. margin-left: 20rpx;
  4041. }
  4042. .city_address {
  4043. width: 92%;
  4044. margin: 0 auto;
  4045. margin-top: -10rpx;
  4046. }
  4047. /* 发货地址 */
  4048. .fh_box {
  4049. display: flex;
  4050. /* height: 80upx; */
  4051. margin-top: 20upx;
  4052. }
  4053. .fh_image {
  4054. flex: 1;
  4055. display: flex;
  4056. /* justify-content: left;
  4057. align-items: center; */
  4058. }
  4059. .box {
  4060. flex: 9;
  4061. }
  4062. .fh_name {
  4063. font-size: 26rpx;
  4064. font-weight: 600;
  4065. letter-spacing: 2upx;
  4066. }
  4067. .fh_type {
  4068. color: #999999;
  4069. font-size: 22upx;
  4070. }
  4071. .fh_type text {
  4072. margin-left: 20upx;
  4073. }
  4074. /* 送货地址 */
  4075. .sh_box {
  4076. display: flex;
  4077. margin-bottom: 14upx;
  4078. margin-top: 14rpx;
  4079. }
  4080. .sh_image {
  4081. flex: 1;
  4082. display: flex;
  4083. /* justify-content: left;
  4084. align-items: center; */
  4085. }
  4086. .sh_name {
  4087. font-size: 28rpx;
  4088. font-weight: 600;
  4089. letter-spacing: 2upx;
  4090. }
  4091. .sh_type {
  4092. color: #999999;
  4093. font-size: 22upx;
  4094. }
  4095. .sh_type text {
  4096. margin-left: 20upx;
  4097. }
  4098. .fh_image image {
  4099. width: 40rpx;
  4100. height: 40rpx;
  4101. }
  4102. .sh_image image {
  4103. width: 40rpx;
  4104. height: 40rpx;
  4105. }
  4106. .order_btn {
  4107. display: flex;
  4108. justify-content: flex-end;
  4109. align-items: center;
  4110. height: 100upx;
  4111. line-height: 100upx;
  4112. /* margin-top: 8upx; */
  4113. }
  4114. .btn1 {
  4115. width: 170upx;
  4116. font-size: 28rpx;
  4117. line-height: 60upx;
  4118. text-align: center;
  4119. border: 1upx solid #9c9c9c;
  4120. border-radius: 20upx;
  4121. color: #9c9c9c;
  4122. margin-right: 30upx;
  4123. }
  4124. .btn7 {
  4125. width: 170upx;
  4126. font-size: 28rpx;
  4127. line-height: 60upx;
  4128. text-align: center;
  4129. border-radius: 20upx;
  4130. background: rgba(0, 186, 173, 1);
  4131. color: rgba(255, 255, 255, 1);
  4132. margin-right: 30upx;
  4133. }
  4134. /* 拍照 */
  4135. .btn_pai {
  4136. width: 150rpx;
  4137. height: 60rpx;
  4138. line-height: 60rpx;
  4139. text-align: center;
  4140. background: rgba(255, 201, 189, 1);
  4141. font-size: 28rpx;
  4142. border: 2rpx solid rgba(255, 201, 189, 1);
  4143. color: #333333;
  4144. border-radius: 20upx;
  4145. font-weight: 700;
  4146. margin-left: 15rpx;
  4147. }
  4148. .btn2 {
  4149. width: 170upx;
  4150. line-height: 60upx;
  4151. color: white;
  4152. background: #ff6a04;
  4153. font-size: 28rpx;
  4154. text-align: center;
  4155. margin-right: 30upx;
  4156. border-radius: 20upx;
  4157. }
  4158. /* 一键转单弹框 */
  4159. .receipt_zhuan {
  4160. width: 100%;
  4161. margin: 0 auto;
  4162. }
  4163. .zhuan_title {
  4164. width: 100%;
  4165. line-height: 100rpx;
  4166. font-size: 28rpx;
  4167. font-weight: bold;
  4168. text-align: center;
  4169. letter-spacing: 2rpx;
  4170. margin-top: 21rpx;
  4171. margin-bottom: 25rpx;
  4172. }
  4173. .zhuan-mode{
  4174. background-color: rgba(247, 247, 247, 1);
  4175. width: 100%;
  4176. }
  4177. .zhuan-title{
  4178. margin-left: 18rpx;
  4179. font-size: 32rpx;
  4180. font-weight: 600;
  4181. letter-spacing: 0px;
  4182. line-height: 46rpx;
  4183. color: rgba(0, 0, 0, 1);
  4184. }
  4185. .zhuan-que{
  4186. width: 100%;
  4187. height: 670rpx;
  4188. overflow-y: auto;
  4189. }
  4190. .zhuan-ding{
  4191. display: grid;
  4192. position: relative;
  4193. margin: 10rpx 0 0 20rpx;
  4194. width: 650rpx;
  4195. opacity: 1;
  4196. border-radius: 1rpx;
  4197. background: rgba(255, 255, 255, 1);
  4198. }
  4199. .ding-1{
  4200. position: relative;
  4201. margin: 11rpx 0 0 28rpx;
  4202. padding-top: 11rpx;
  4203. font-size: 28rpx;
  4204. font-weight: 600;
  4205. letter-spacing: 0px;
  4206. line-height: 41rpx;
  4207. color: rgba(0, 0, 0, 1);
  4208. }
  4209. .ding-shop{
  4210. float:left;
  4211. }
  4212. .ding-xuhao{
  4213. float:left;
  4214. margin-left: 30rpx;
  4215. }
  4216. .ding-2{
  4217. position: relative;
  4218. margin: 11rpx 0 0 28rpx;
  4219. font-size: 28rpx;
  4220. font-weight: 400;
  4221. letter-spacing: 0px;
  4222. line-height: 41rpx;
  4223. color: rgba(102, 102, 102, 1);
  4224. }
  4225. .zhuan-btu1{
  4226. float: left;
  4227. width: 120rpx;
  4228. height: 60rpx;
  4229. opacity: 1;
  4230. border-radius: 5rpx;
  4231. background: rgba(255, 141, 26, 1);
  4232. font-size: 28rpx;
  4233. font-weight: 400;
  4234. letter-spacing: 0rpx;
  4235. line-height: 60rpx;
  4236. color: rgba(255, 255, 255, 1);
  4237. text-align: center;
  4238. }
  4239. .zhuan-text{
  4240. float: left;
  4241. margin-left: 30rpx;
  4242. font-size: 28rpx;
  4243. font-weight: 400;
  4244. letter-spacing: 0px;
  4245. line-height: 60rpx;
  4246. color: rgba(0, 0, 0, 1);
  4247. }
  4248. .zhuan-btu2{
  4249. float: left;
  4250. width: 305rpx;
  4251. height: 90rpx;
  4252. opacity: 1;
  4253. border-radius: 9rpx;
  4254. border: 1rpx solid rgba(255, 141, 26, 1);
  4255. font-size: 28rpx;
  4256. font-weight: 400;
  4257. letter-spacing: 0px;
  4258. line-height: 90rpx;
  4259. color: rgba(255, 141, 26, 1);
  4260. text-align: center;
  4261. }
  4262. .zhuan-btu3{
  4263. float: right;
  4264. width: 305rpx;
  4265. height: 90rpx;
  4266. opacity: 1;
  4267. border-radius: 9rpx;
  4268. background: rgba(255, 141, 26, 1);
  4269. font-size: 28rpx;
  4270. font-weight: 400;
  4271. letter-spacing: 0px;
  4272. line-height: 90rpx;
  4273. color: rgba(255, 255, 255, 1);
  4274. text-align: center;
  4275. }
  4276. /* 选择转单人弹框 */
  4277. .xuan-list{
  4278. position: relative;
  4279. width: 100%;
  4280. height: 140rpx;
  4281. background: rgba(255, 255, 255, 1);
  4282. }
  4283. .xuan-list2{
  4284. position: relative;
  4285. width: 100%;
  4286. height: 140rpx;
  4287. background: rgba(255, 246, 237, 1);
  4288. }
  4289. .xuan-right{
  4290. float: left;
  4291. margin-left: 22rpx;
  4292. }
  4293. .ding-3{
  4294. position: relative;
  4295. margin-top: 31rpx;
  4296. height: 40rpx;
  4297. font-size: 28rpx;
  4298. font-weight: 600;
  4299. letter-spacing: 0px;
  4300. line-height: 41rpx;
  4301. color: rgba(0, 0, 0, 1);
  4302. }
  4303. /* 收货码弹框 */
  4304. .receipt_code {
  4305. width: 90%;
  4306. margin: 0 auto;
  4307. }
  4308. .code_title {
  4309. width: 100%;
  4310. line-height: 100rpx;
  4311. font-size: 31rpx;
  4312. font-weight: bold;
  4313. text-align: center;
  4314. letter-spacing: 2rpx;
  4315. margin-top: 21rpx;
  4316. margin-bottom: 25rpx;
  4317. }
  4318. .u-input--border {
  4319. border: 1px solid #f2f2f2 !important;
  4320. background: #f2f2f2 !important;
  4321. color: #999999 !important;
  4322. font-weight: 500 !important;
  4323. letter-spacing: 2rpx !important;
  4324. }
  4325. .u-input__input {
  4326. font-size: 30rpx;
  4327. font-weight: bold;
  4328. flex: 1;
  4329. color: #999999 !important;
  4330. min-height: 85rpx !important;
  4331. margin-top: 7rpx;
  4332. }
  4333. .sure {
  4334. width: 100%;
  4335. height: 80rpx;
  4336. background: #ff7f00;
  4337. color: white;
  4338. border-radius: 46rpx;
  4339. text-align: center;
  4340. line-height: 80rpx;
  4341. margin-top: 30rpx;
  4342. letter-spacing: 2rpx;
  4343. }
  4344. /* 确认送达拍照框 */
  4345. .phone_title {
  4346. margin-top: 10px;
  4347. width: 100%;
  4348. height: 40px;
  4349. /* background-color: #FF7F00; */
  4350. text-align: center;
  4351. line-height: 40px;
  4352. /* color:#FFFFFF; */
  4353. }
  4354. .phone_title2 {
  4355. margin-top: 10px;
  4356. text-align: center;
  4357. color: #9d9d9d;
  4358. }
  4359. .code_title2 {
  4360. width: 100%;
  4361. line-height: 50rpx;
  4362. text-align: center;
  4363. letter-spacing: 2rpx;
  4364. margin-top: 21rpx;
  4365. margin-bottom: 25rpx;
  4366. }
  4367. </style>