index.vue 100 KB

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