index.vue 80 KB

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