index.vue 103 KB

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