index.vue 101 KB

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