index.vue 102 KB

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