index.vue 87 KB

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