index.vue 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414
  1. <template>
  2. <view style="padding-bottom: 50upx;">
  3. <view v-if="shangxian=='是'">
  4. <view class="top_view">
  5. <!-- <view class="flex justify-between padding-left-xl">
  6. <image src="../../static/upload/hometoplefttitle.png" style="width: 312rpx;height: 102rpx;"></image>
  7. <image src="../../static/upload/hometopimage.png" style="width: 329rpx;height: 151rpx;"></image>
  8. </view> -->
  9. <view>
  10. <image v-if="globalImages" :src="globalImages + 'imgs/banner.jpg'" style="width: 100%;height: 320rpx;" mode=""></image>
  11. </view>
  12. <view style="margin: 0 auto; text-align: center;" class="padding">
  13. <view style="font-size: 40rpx; font-weight: bold;">千万车主的新选择</view>
  14. <view class="flex padding" style="margin-top: 30rpx;">
  15. <view style="margin: 0 auto;">
  16. <image v-if="globalImages" :src="globalImages + 'imgs/dingdan.png'" style="width: 56rpx;height: 56rpx;" mode=""></image>
  17. <view style="font-size: 24rpx;">海量订单</view>
  18. </view>
  19. <view style="margin: 0 auto;">
  20. <image v-if="globalImages" :src="globalImages + 'imgs/hegui.png'" style="width: 56rpx;height: 56rpx;" mode=""></image>
  21. <view style="font-size: 24rpx;">合法合规</view>
  22. </view>
  23. <view style="margin: 0 auto;">
  24. <image v-if="globalImages" :src="globalImages + 'imgs/tixian (2).png'" style="width: 56rpx;height: 56rpx;" mode=""></image>
  25. <view style="font-size: 24rpx;">快速提现</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="top_centerView">
  30. <view style="margin: 0 10rpx 20rpx;">
  31. 出发地
  32. </view>
  33. <view class="addboxs bg" style="padding: 0 30rpx;" @click="goCFAddress(1)">
  34. <view class="add_cont">
  35. <view class="green"></view>
  36. <view class="" v-if="addlist.address === ''">请选择出发地...</view>
  37. <view class="add_tit" v-else>
  38. <view class="flex align-center">
  39. 从<view class="text-cut" style="color: #346EF6;max-width: 420rpx;">
  40. {{addlist.address}}
  41. </view>出发
  42. </view>
  43. <!-- <view class="text-sm" style="color: #999999;font-weight: 500;margin-top: 5rpx;"
  44. v-if="riderNumber">
  45. 附近有{{riderNumber}}个司机
  46. </view> -->
  47. </view>
  48. </view>
  49. <view>
  50. <image src="../../static/image/go.png" style="width: 16rpx;height: 25rpx;">
  51. </image>
  52. </view>
  53. </view>
  54. <view style="margin: 0 10rpx 20rpx;">
  55. 目的地
  56. </view>
  57. <view class="addboxs bg" style="padding: 0 30rpx;" @click="goCFAddress(2)">
  58. <view class="add_cont">
  59. <view class="orgin"></view>
  60. <view class="add_tit" v-if="addlists.address === ''">输入目的地</view>
  61. <view class="add_tit" v-else>{{addlists.address}}</view>
  62. </view>
  63. <view>
  64. <image src="../../static/image/go.png" style="width: 16rpx;height: 25rpx;">
  65. </image>
  66. </view>
  67. </view>
  68. <view style="margin: 0 10rpx 20rpx;">
  69. 出发时间
  70. </view>
  71. <view class="flex align-center addboxs bg" style="padding: 0 30rpx;" @click="openTime()">
  72. <view class="flex align-center">
  73. <image src="/static/upload/time.png" style="width: 34rpx;height: 34rpx;"></image>
  74. <view class="add_tit margin-left-xs" v-if="!yuyueTime">选择预约时间</view>
  75. <view class="add_tit margin-left-xs" v-else>{{yuyueTime}}</view>
  76. </view>
  77. <view class="margin-left-xs">
  78. <image src="/static/image/right.png" style="width: 12rpx;height: 20rpx;">
  79. </image>
  80. </view>
  81. </view>
  82. <view class="fb_btn" @tap="goSave">发布行程</view>
  83. </view>
  84. </view>
  85. <view>
  86. <view v-if="orderList && orderList.length > 0">
  87. <view class="myOrder_view">
  88. <view>您有{{orderCounts}}个正在进行中的行程</view>
  89. <view @tap="goMore('')">查看全部</view>
  90. </view>
  91. <view class="myOrder_itemView">
  92. <view class="" v-for="(item,index) in orderList" @tap="goItemDetail(item)">
  93. <view class="flex justify-between align-center">
  94. <view class="item_title">正在寻找乘客</view>
  95. <image src="/static/image/right.png" style="width: 16rpx;height: 25rpx;"></image>
  96. </view>
  97. <view class="flex align-center add_name" style="margin: 30rpx 0rpx 4rpx;">
  98. <view class="green"></view>{{item.shipCity}} {{item.shipAddress}}
  99. </view>
  100. <image src="/static/upload/up.png" class="order_up"></image>
  101. <view class="flex align-center add_name">
  102. <view class="orgin"></view>{{item.deliveryCity}} {{item.deliveryAddress}}
  103. </view>
  104. <view class="item_title" style="margin-top: 26rpx;">{{item.startTime}}出发</view>
  105. <view v-if="index != orderList.length - 1" class="margin-tb-sm"
  106. style="width: 100%;height:1rpx;background: #F2F2F2;"></view>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- #ifdef H5 -->
  111. <u-sticky :h5-nav-height="0" @fixed="xdCheck" @unfixed="noXDCheck">
  112. <!-- #endif -->
  113. <!-- #ifndef H5 -->
  114. <u-sticky @fixed="xdCheck" @unfixed="noXDCheck">
  115. <!-- #endif -->
  116. <view class="tab_view" id="tabSelView"
  117. :style="scrollTop == 1 ? '' : 'margin-top: 40rpx;height: 100rpx;'">
  118. <view :class="tabSel == 1 ? 'tab_items' : 'tab_item'" @tap="tabSelClick(1)">市内订单</view>
  119. <view :class="tabSel == 2 ? 'tab_items' : 'tab_item'" @tap="tabSelClick(2)">跨城订单</view>
  120. </view>
  121. <view style="background: #FFFFFF;">
  122. <u-dropdown :menu-icon='menuicon' ref="uDropdown" @open="open" @close="close"
  123. menu-icon-size="18">
  124. <u-dropdown-item v-model="value1" :title="mrtitle">
  125. <view class="slot-content">
  126. <view class=" flex flex-wrap padding">
  127. <view class="listpp" v-for="(item,index) in mrlist" :key="index"
  128. :class="mrIndex==index?'listppAct':''" @click="changeTj(item,index)">
  129. {{item.label}}
  130. </view>
  131. </view>
  132. </view>
  133. </u-dropdown-item>
  134. <u-dropdown-item v-model="value2" :title="carname">
  135. <view class="slot-content">
  136. <view class="padding">
  137. <!-- <view class="text-df text-bold">订单类型</view> -->
  138. <view class="text-df text-bold">订单类型</view>
  139. <view class="flex">
  140. <view :class="appointmentType == 0 ? 'bz_item_sel' : 'bz_item'"
  141. @tap="checkBZ(0)">
  142. 全部
  143. </view>
  144. <view :class="appointmentType == 1 ? 'bz_item_sel' : 'bz_item'"
  145. @tap="checkBZ(1)">
  146. 独享
  147. </view>
  148. <view :class="appointmentType == 2 ? 'bz_item_sel' : 'bz_item'"
  149. @tap="checkBZ(2)">
  150. 愿拼
  151. </view>
  152. </view>
  153. <view class="text-df text-bold margin-top">乘车人数</view>
  154. <view class="flex">
  155. <view :class="appointmentNum == 0 ? 'bz_item_sel' : 'bz_item'"
  156. @tap="checkBZNum(0)">
  157. 全部
  158. </view>
  159. <view :class="appointmentNum == 1 ? 'bz_item_sel' : 'bz_item'"
  160. @tap="checkBZNum(1)">
  161. 1位乘客
  162. </view>
  163. <view :class="appointmentNum == 2 ? 'bz_item_sel' : 'bz_item'"
  164. @tap="checkBZNum(2)">
  165. 2位乘客
  166. </view>
  167. <view :class="appointmentNum == 3 ? 'bz_item_sel' : 'bz_item'"
  168. @tap="checkBZNum(3)">
  169. 3位及以上乘客
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. </u-dropdown-item>
  175. </u-dropdown>
  176. </view>
  177. </u-sticky>
  178. <view class="boxa" @click="goOrder(item)" v-for="(item,index) in list" :key="index">
  179. <view class="flex align-center justify-between" style="padding: 30rpx 30rpx 0rpx;">
  180. <view class="item_time">{{item.appointmentStartTime}}</view>
  181. <!-- <view class="item_shunlu">{{item.similarity ? item.similarity : '0'}}% <text
  182. style="font-size: 24rpx;">顺路</text> </view> -->
  183. </view>
  184. <view class="padding margin-top-xs">
  185. <view class="flex align-center justify-between" style="margin-bottom: 4rpx;">
  186. <view class="flex align-center">
  187. <view class="green"></view>
  188. <view class="item_addName">{{item.shipAddress}}</view>
  189. </view>
  190. <!-- <view class="item_juli">{{item.startDistance}}km</view> -->
  191. </view>
  192. <view class="flex align-center margin-top justify-between">
  193. <view class="flex align-center">
  194. <view class="orgin"></view>
  195. <view class="item_addName">{{item.deliveryAddress}}</view>
  196. </view>
  197. <!-- <view class="item_juli">{{item.endDistance}}km</view> -->
  198. </view>
  199. <view class="margin-top flex align-center justify-between">
  200. <view class="flex align-center">
  201. <image src="/static/upload/person.png" style="width: 30rpx;height: 31rpx;"></image>
  202. <view style="margin-left: 16rpx;width: fit-content;" class="item_addName">
  203. {{item.appointmentNum}}人乘坐·{{item.appointmentType == 1 ? '独享' : '拼车'}}
  204. </view>
  205. </view>
  206. <!-- <view class="item_juli">订单里程{{item.kmDistance}}km</view> -->
  207. </view>
  208. </view>
  209. <view class="margin-tb-sm" style="width: 100%;height:1rpx;background: #F2F2F2;"></view>
  210. <view class="flex align-center justify-between padding-lr ">
  211. <view style="color: #FF2020;font-size: 32rpx;font-weight: bold;">
  212. <text>¥</text><text style="font-size: 42rpx;">{{item.driveMoney}}</text>
  213. </view>
  214. <view class="item_btn" @tap.stop="goOrder(item)">立即同行</view>
  215. </view>
  216. </view>
  217. <view class="empty" v-if="list.length == 0">
  218. <view style="width: 100%;margin: 0 auto;text-align: center;">
  219. <image src="/static/image/empty.png" style="width: 300rpx;height: 300rpx;"></image>
  220. <view style="color: #CCCCCC;" v-if="driverRouteId != ''">暂无订单内容</view>
  221. <view style="color: #CCCCCC;" v-else>请发布行程后再来查看订单信息</view>
  222. </view>
  223. </view>
  224. </view>
  225. <u-popup v-model="remkShow" mode="bottom" border-radius="40" :closeable="true">
  226. <view style="padding: 50rpx 30rpx 50rpx 30rpx;">
  227. <view class="text-lg text-bold padding-bottom-sm">出行车辆与座位数</view>
  228. <view class="bz_item_sel">
  229. {{driverPlate}}
  230. </view>
  231. <view class="text-df text-bold margin-top">乘车人数</view>
  232. <view class="flex">
  233. <view :class="personNum == 1 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZFB(1)">
  234. 1座
  235. </view>
  236. <view :class="personNum == 2 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZFB(2)">
  237. 2座
  238. </view>
  239. <view :class="personNum == 3 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZFB(3)">
  240. 3座
  241. </view>
  242. <view :class="personNum == 4 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZFB(4)">
  243. 4座
  244. </view>
  245. </view>
  246. <view class="text-df text-bold margin-top">是否有同行亲友</view>
  247. <view class="flex">
  248. <view :class="friendsType == 1 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZQY(1)">
  249. </view>
  250. <view :class="friendsType == 2 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZQY(2)">
  251. </view>
  252. </view>
  253. <view class="text-df text-bold margin-top">高速费用</view>
  254. <view class="flex">
  255. <view :class="isHighSpeedPrice == 1 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZGS(1)">
  256. 司机承担
  257. </view>
  258. <view :class="isHighSpeedPrice == 2 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZGS(2)">
  259. 乘客承担
  260. </view>
  261. <view :class="isHighSpeedPrice == 3 ? 'bz_item_sel' : 'bz_item'" @tap="checkBZGS(3)">
  262. 费用AA
  263. </view>
  264. </view>
  265. <view class="remkbtn" @click="remarkSave()">确定</view>
  266. </view>
  267. </u-popup>
  268. <u-picker :start-year="dqYear" v-model="Timeshow" mode="time" :params="params"
  269. @confirm="timeConfirm"></u-picker>
  270. <view class="soss" @click="goJinji()">
  271. <image src="../../static/my/jjqz.png" mode=""></image>
  272. </view>
  273. <view class="sosTD" v-if="orderCounts && orderCounts > 0 && scrollShow" @tap="showTD">
  274. <image src="/static/upload/tingdan.png"></image>
  275. </view>
  276. <view class="sosT" v-if="orderCounts && orderCounts > 0 && !scrollShow">
  277. <image v-if="!tdShow" src="../../static/upload/starttd.png" @click="goTingDan()"
  278. style="width: 149rpx;height: 24rpx;">
  279. </image>
  280. <image v-if="tdShow" src="../../static/upload/endTD.png" @click="goTingDan()"
  281. style="width: 149rpx;height: 24rpx;">
  282. </image>
  283. <u-line direction="col" color="#FFFFFF" length="30" />
  284. <view class="flex align-center" @click="goEditTD()">
  285. <image src="/static/upload/tdset.png" style="width: 28rpx;height: 26rpx;"></image>
  286. <view class="sosT_text">设置</view>
  287. </view>
  288. </view>
  289. <view class="sos" @click="goTop()">
  290. <image src="/static/upload/goTop.png" mode=""></image>
  291. </view>
  292. <view class="sos" @click="goRefers()" style="bottom: 160rpx;">
  293. <image src="/static/upload/refers.png" mode=""></image>
  294. </view>
  295. </view>
  296. <view v-if="shangxian=='否'">
  297. <view class="flex align-center padding-lr padding-top" style="padding-top: 100rpx;">
  298. <view class="u-m-r-10">
  299. <image :src="avatar" style="width: 100rpx;height: 100rpx;border-radius: 100rpx;"
  300. @click="goNav('/pages/login/login')"></image>
  301. </view>
  302. <view class="u-flex-1 u-m-l-10 text-white r" v-if="!isLogin">
  303. <view class="" @click="goNav('/pages/login/login')">{{userName}}</view>
  304. </view>
  305. <view v-else class="text-xl u-p-l-20 text-bold" @click="goNav('/pages/login/login')">
  306. 登录
  307. </view>
  308. </view>
  309. <view class="flex align-center padding-left">
  310. <image src="/static/image/data.png" style="width: 26upx;height: 26upx;"></image>
  311. <view class="margin-left-xs flex align-center" style="color: #999999;">
  312. <view>开始时间</view>
  313. <view>结束时间</view>
  314. </view>
  315. </view>
  316. <view class="flex align-center box text-center">
  317. <view class="">
  318. ¥<text class="text-bold text-xl">0</text>
  319. <view>总收益</view>
  320. </view>
  321. <view class="" style="margin-left:180upx">
  322. <text class="text-bold text-xl">0</text>
  323. <view>用户评分</view>
  324. </view>
  325. </view>
  326. <view style="padding: 30upx 30upx;">
  327. <view class="text-bold text-lg margin-bottom-sm flex justify-between">
  328. <view>接单管理</view>
  329. <view>
  330. <text style="color: #666666;font-size: 26upx;margin-right: 10upx;">查看全部</text>
  331. </view>
  332. </view>
  333. <view class="orderbox ">
  334. <view class="">
  335. <text class="text-bold text-xl">0</text>
  336. <view class="margin-top-xs">待完成</view>
  337. </view>
  338. <view class="">
  339. <text class="text-bold text-xl">0</text>
  340. <view class="margin-top-xs">已完成</view>
  341. </view>
  342. <view class="">
  343. <text class="text-bold text-xl">0</text>
  344. <view class="margin-top-xs">已评价</view>
  345. </view>
  346. </view>
  347. </view>
  348. <view style="padding: 30upx 30upx;">
  349. <view class="text-bold text-lg margin-bottom-sm flex justify-between">
  350. <view>今日订单</view>
  351. <view>
  352. <text style="color: #666666;font-size: 26upx;margin-right: 10upx;">查看全部</text>
  353. </view>
  354. </view>
  355. <view class="orderbox ">
  356. <view class="">
  357. <text class="text-bold text-xl">0</text>
  358. <view class="margin-top-xs">待完成</view>
  359. </view>
  360. <view class="">
  361. <text class="text-bold text-xl">0</text>
  362. <view class="margin-top-xs">已完成</view>
  363. </view>
  364. <view class="">
  365. <text class="text-bold text-xl">0</text>
  366. <view class="margin-top-xs">已评价</view>
  367. </view>
  368. </view>
  369. </view>
  370. </view>
  371. </view>
  372. </template>
  373. <script>
  374. import empty from '@/components/empty'
  375. import { waitForGlobalImages } from '@/utils/globalImageLoader'
  376. export default {
  377. components: {
  378. empty
  379. },
  380. onShareAppMessage(res) { //发送给朋友
  381. return {
  382. title: this.tuiguang,
  383. path: '/pages/index/index',
  384. imageUrl: this.tuiguangImg,
  385. }
  386. },
  387. onShareTimeline(res) { //分享到朋友圈
  388. return {
  389. title: this.tuiguang,
  390. path: '/pages/index/index',
  391. imageUrl: this.tuiguangImg,
  392. }
  393. },
  394. data() {
  395. return {
  396. avatar:'/static/logo.png',
  397. isLogin: true,
  398. userName: '匿名',
  399. isHighSpeedPrice: 0,
  400. tdShow: false,
  401. dqYear: '',
  402. orderCounts: 0,
  403. orderList: [],
  404. friendsType: 0,
  405. remkShow: false,
  406. personNum: 0,
  407. appointmentNum: 0,
  408. appointmentType: '',
  409. shangxian: '',
  410. pricetit: '全部目的地',
  411. carname: '高级筛选',
  412. value1: 1,
  413. value2: 2,
  414. value3: 1,
  415. value4: 2,
  416. menuicon: 'arrow-down-fill',
  417. mrtitle: '智能筛选',
  418. mrlist: [{
  419. label: '智能排序',
  420. value: 0,
  421. }, {
  422. label: '最早出发',
  423. value: 1,
  424. }, {
  425. label: '价格最高',
  426. value: 2,
  427. }, {
  428. label: '起点最近',
  429. value: 3,
  430. }],
  431. mrIndex: 0,
  432. driverRouteId: '',
  433. params: {
  434. year: true,
  435. month: true,
  436. day: true,
  437. hour: true,
  438. minute: true,
  439. second: false
  440. },
  441. Timeshow: false,
  442. tabSel: 1,
  443. addlist: {
  444. address: ''
  445. }, //出发地址
  446. addressId: '',
  447. addlists: {
  448. address: ''
  449. }, //目的地
  450. addressIds: "",
  451. yuyueTime: '',
  452. tuiguang: '',
  453. tuiguangImg: '',
  454. time: '',
  455. indent: {},
  456. latitude: '',
  457. longitude: '',
  458. province: '',
  459. city: '',
  460. district: '',
  461. list: [],
  462. page: 1,
  463. driverPlate: '',
  464. checkCertification: 0, //是否实名 状态 1待审核 2已通过 3已拒绝
  465. cashDeposit: 0, //缴纳保证金
  466. onLineFlag: 1, //1上线 2下线
  467. arr: [],
  468. showModal1: true,
  469. riderLine: 0,
  470. tabList: [{
  471. name: '即时代驾',
  472. id: 1
  473. },
  474. {
  475. name: '包时代驾',
  476. id: 1
  477. },
  478. {
  479. name: '朋友代叫',
  480. id: 2
  481. },
  482. {
  483. name: '预约代驾',
  484. id: 3
  485. }
  486. ],
  487. bfShow: false,
  488. userId: '',
  489. current: 0,
  490. isDrop: false, //是否打开下拉筛选
  491. isVip: false, //是否是会员
  492. scrollTop: 0,
  493. scrollShow: false,
  494. globalImages: ''
  495. }
  496. },
  497. onHide() {
  498. // clearInterval(this.time)
  499. },
  500. onLoad(e) {
  501. waitForGlobalImages().then((path) => {
  502. console.log('✅ 全局图片路径:', path)
  503. this.globalImages = path
  504. })
  505. let that = this
  506. // #ifdef MP-WEIXIN
  507. if (e.scene) {
  508. const scene = decodeURIComponent(e.scene);
  509. if (scene.split('=')[0].indexOf('userId') != -1) {
  510. let riderUserId = scene.split('=')[1]
  511. that.$queue.setData('riderUserId', riderUserId);
  512. } else {
  513. that.$queue.setData('inviterCode', scene.split(',')[0]);
  514. }
  515. }
  516. // #endif
  517. // 获取邀请码保存到本地
  518. if (e.invitation) {
  519. that.$queue.setData('inviterCode', e.invitation);
  520. }
  521. this.$Request.getT('/app/common/type/284').then(res => {
  522. if (res.code === 0) {
  523. // #ifdef MP-WEIXIN
  524. uni.setStorageSync('shangxian', res.data.value)
  525. // #endif
  526. // #ifndef MP-WEIXIN
  527. uni.setStorageSync('shangxian', '否')
  528. // #endif
  529. this.shangxian = uni.getStorageSync('shangxian')
  530. }
  531. });
  532. let timeNow = new Date();
  533. timeNow.setMinutes(timeNow.getMinutes() + 30);
  534. this.dqYear = timeNow.getFullYear()
  535. this.yuyueTime =
  536. `${this.padZero(timeNow.getMonth() + 1)}月${this.padZero(timeNow.getDate())}日${this.padZero(timeNow.getHours())}:${this.padZero(timeNow.getMinutes())}`;
  537. // this.yuyueTime = e.month + '月' + e.day + '日' + ' ' + e.hour + ':' + e.minute
  538. let sysInfo = uni.getSystemInfoSync()
  539. let tabbarHeight = sysInfo.screenHeight - sysInfo.safeArea.bottom
  540. console.log(tabbarHeight, '2222222')
  541. that.userId = uni.getStorageSync('userId')
  542. // that.shouru()
  543. // that.getNewOrder()
  544. uni.getLocation({
  545. // #ifdef APP
  546. type: 'wgs84',
  547. // #endif
  548. // #ifndef APP
  549. type: 'gcj02', //wgs84 gcj02
  550. // #endif
  551. success: function(res) {
  552. console.log(res, '获取经纬度')
  553. that.latitude = res.latitude
  554. that.longitude = res.longitude
  555. that.addlist.lng = res.longitude
  556. that.addlist.lat = res.latitude
  557. uni.setStorageSync('latitude', res.latitude)
  558. uni.setStorageSync('longitude', res.longitude)
  559. let data = {
  560. lat: res.latitude,
  561. lng: res.longitude
  562. }
  563. that.$Request.getT('/app/Login/selectCity', data).then(res => {
  564. if (res.code === 0) {
  565. that.province = res.data.province
  566. that.city = res.data.city
  567. that.district = res.data.district
  568. uni.setStorageSync('cityName', res.data.city)
  569. that.addlist.address = res.data.address
  570. that.addlist.province = res.data.province
  571. that.addlist.city = res.data.city
  572. that.addlist.district = res.data.district
  573. that.taskData()
  574. that.getLocation()
  575. }
  576. });
  577. that.getUserInfo()
  578. },
  579. fail: function(ree) {
  580. console.log(ree, '获取地址失败')
  581. if (uni.getStorageSync('latitude') && uni.getStorageSync('longitude')) {
  582. that.latitude = uni.getStorageSync('latitude')
  583. that.longitude = uni.getStorageSync('longitude')
  584. that.getUserInfo()
  585. that.getLocation()
  586. }
  587. // else {
  588. // uni.startLocationUpdate({
  589. // type: 'gcj02', //gcj02 wgs84
  590. // isHighAccuracy: true, //开启高精度定位(!!!必需)
  591. // geocode: true,
  592. // success: res => {
  593. // uni.onLocationChange(function(res2) {
  594. // console.log('实时纬度:' + res2.latitude);
  595. // console.log('实时经度:' + res2.longitude);
  596. // that.latitude = res2.latitude
  597. // that.longitude = res2.longitude
  598. // uni.setStorageSync('latitude', that.latitude)
  599. // uni.setStorageSync('longitude', that.longitude)
  600. // let data = {
  601. // lat: res.latitude,
  602. // lng: res.longitude
  603. // }
  604. // that.$Request.getT('/app/Login/selectCity', data)
  605. // .then(
  606. // res => {
  607. // if (res.code === 0) {
  608. // that.province = res.data.province
  609. // that.city = res.data.city
  610. // that.district = res.data.district
  611. // that.getLocation()
  612. // }
  613. // });
  614. // that.getUserInfo()
  615. // });
  616. // },
  617. // fail: err => {
  618. // // clearInterval(this.ordertimer)
  619. // console.error('开启小程序接收位置消息失败:', err)
  620. // },
  621. // complete: msg => {
  622. // // clearInterval(this.ordertimer)
  623. // console.log('调用开启小程序接收位置消息 API 完成')
  624. // }
  625. // });
  626. // }
  627. }
  628. });
  629. if (that.userId) {
  630. that.time = setInterval(function() {
  631. // that.getNewOrder()
  632. uni.getLocation({
  633. // #ifdef APP
  634. type: 'wgs84',
  635. // #endif
  636. // #ifndef APP
  637. type: 'gcj02', //wgs84 gcj02
  638. // #endif
  639. success: function(res) {
  640. console.log(res, '获取经纬度')
  641. that.latitude = res.latitude
  642. that.longitude = res.longitude
  643. uni.setStorageSync('latitude', res.latitude)
  644. uni.setStorageSync('longitude', res.longitude)
  645. let data = {
  646. lat: res.latitude,
  647. lng: res.longitude
  648. }
  649. that.$Request.getT('/app/Login/selectCity', data).then(res => {
  650. if (res.code === 0) {
  651. that.province = res.data.province
  652. that.city = res.data.city
  653. uni.setStorageSync('cityName', res.data.city)
  654. that.district = res.data.district
  655. that.getLocation()
  656. }
  657. });
  658. // that.getUserInfo()
  659. },
  660. fail: function() {
  661. console.log('获取地址失败')
  662. if (uni.getStorageSync('latitude') && uni.getStorageSync('longitude')) {
  663. that.latitude = uni.getStorageSync('latitude')
  664. that.longitude = uni.getStorageSync('longitude')
  665. // that.getUserInfo()
  666. that.getLocation()
  667. } else {
  668. // that.getUserInfo()
  669. // that.getLocation()
  670. uni.startLocationUpdate({
  671. // #ifdef APP
  672. type: 'wgs84',
  673. // #endif
  674. // #ifndef APP
  675. type: 'gcj02', //wgs84 gcj02
  676. // #endif
  677. isHighAccuracy: true, //开启高精度定位(!!!必需)
  678. geocode: true,
  679. success: res => {
  680. uni.onLocationChange(function(res2) {
  681. console.log('实时纬度:' + res2.latitude);
  682. console.log('实时经度:' + res2.longitude);
  683. that.latitude = res2.latitude
  684. that.longitude = res2.longitude
  685. uni.setStorageSync('latitude', that
  686. .latitude)
  687. uni.setStorageSync('longitude', that
  688. .longitude)
  689. let data = {
  690. lat: res.latitude,
  691. lng: res.longitude
  692. }
  693. that.$Request.getT(
  694. '/app/Login/selectCity',
  695. data).then(res => {
  696. if (res.code === 0) {
  697. that.province = res
  698. .data
  699. .province
  700. that.city = res.data
  701. .city
  702. that.district = res
  703. .data
  704. .district
  705. that.getLocation()
  706. }
  707. });
  708. // that.getUserInfo()
  709. });
  710. },
  711. fail: err => {
  712. // clearInterval(this.ordertimer)
  713. console.error('开启小程序接收位置消息失败:', err)
  714. },
  715. complete: msg => {
  716. // clearInterval(this.ordertimer)
  717. console.log('调用开启小程序接收位置消息 API 完成')
  718. }
  719. });
  720. }
  721. }
  722. });
  723. }, 10000)
  724. }
  725. },
  726. onShow() {
  727. this.$Request.getT('/app/common/type/358').then(res => {
  728. if (res.code === 0) {
  729. uni.setStorageSync('tuiguang', res.data.value)
  730. this.tuiguang = res.data.value;
  731. }
  732. });
  733. this.$Request.getT('/app/common/type/357').then(res => {
  734. if (res.code === 0) {
  735. uni.setStorageSync('tuiguangImg', res.data.value)
  736. this.tuiguangImg = res.data.value;
  737. }
  738. });
  739. let that = this
  740. that.$Request.getT('/app/common/type/428').then(res => { //师傅端小程序订单状态通知 428
  741. if (res.code == 0) {
  742. if (res.data && res.data.value) {
  743. that.arr.push(res.data.value)
  744. }
  745. }
  746. })
  747. that.$Request.getT('/app/common/type/429').then(res => { //师傅端小程序新订单通知 429
  748. if (res.code == 0) {
  749. if (res.data && res.data.value) {
  750. that.arr.push(res.data.value)
  751. }
  752. }
  753. })
  754. that.userId = uni.getStorageSync('userId')
  755. if (that.userId) {
  756. that.getMyOrderList();
  757. that.getUserInfo()
  758. // that.shouru()
  759. if (that.showModal1) {
  760. // #ifdef MP-WEIXIN
  761. that.openMsg()
  762. // #endif
  763. }
  764. } else {
  765. this.userId = ''
  766. this.orderCounts = 0;
  767. this.orderList = []
  768. this.list = []
  769. this.isVip = false
  770. clearInterval(that.time)
  771. clearInterval(that.timeTD)
  772. this.tdShow = false
  773. this.indent = {}
  774. }
  775. },
  776. onPageScroll(e) {
  777. // e.scrollTop 是页面在垂直方向已滚动的距离(单位px)
  778. this.scrollShow = true;
  779. },
  780. methods: {
  781. showTD() {
  782. this.scrollShow = false;
  783. },
  784. getMassgeList() {
  785. let that = this;
  786. this.$Request.getT('/app/message/selectMessageByUserId?state=13&isSee=0&page=1&limit=1').then(res => {
  787. if (res.code == 0 && res.data) {
  788. if (res.data.records && res.data.records.length > 0) {
  789. if (res.data.records[0].content) {
  790. clearInterval(that.timeTD)
  791. const innerAudioContext = uni.createInnerAudioContext();
  792. innerAudioContext.autoplay = true;
  793. innerAudioContext.src = res.data.records[0].content;
  794. innerAudioContext.onPlay(() => {
  795. console.log('开始播放');
  796. });
  797. innerAudioContext.onEnded(() => {
  798. that.timeTD = setInterval(function() {
  799. that.getMassgeList();
  800. }, 3000);
  801. });
  802. that.page = 1;
  803. that.getMyOrderList();
  804. that.getUserInfo()
  805. }
  806. }
  807. }
  808. });
  809. },
  810. goTingDan() {
  811. let that = this;
  812. if (!this.tdShow) {
  813. that.tdShow = true
  814. let driverId = this.$queue.getData('driverId');
  815. let city = that.city ? that.city : ''
  816. let data = {
  817. isListeningOrders: 1,
  818. driverId: driverId,
  819. city: city,
  820. latitude: that.latitude,
  821. longitude: that.longitude
  822. }
  823. that.$queue.showLoading('设置中...')
  824. that.$Request.postJson('/app/driver/updateDriver', data).then(res => {
  825. uni.hideLoading();
  826. if (res.code == 0) {
  827. that.$queue.showToast('开始听单!')
  828. setTimeout(d => {
  829. that.timeTD = setInterval(function() {
  830. console.log(that.bfShow, "13456")
  831. that.getMassgeList();
  832. }, 5000);
  833. }, 1500)
  834. } else {
  835. that.$queue.showToast(res.msg)
  836. }
  837. });
  838. } else {
  839. let driverId = this.$queue.getData('driverId');
  840. let city = that.city ? that.city : ''
  841. let data = {
  842. isListeningOrders: 1,
  843. driverId: driverId,
  844. city: city,
  845. latitude: that.latitude,
  846. longitude: that.longitude
  847. }
  848. that.$queue.showLoading('设置中...')
  849. that.$Request.postJson('/app/driver/updateDriver', data).then(res => {
  850. uni.hideLoading();
  851. if (res.code == 0) {
  852. that.tdShow = false
  853. that.$queue.showToast('已结束听单!')
  854. clearInterval(that.timeTD)
  855. } else {
  856. that.$queue.showToast(res.msg)
  857. }
  858. });
  859. }
  860. },
  861. goEditTD() {
  862. if (!this.userId) {
  863. uni.navigateTo({
  864. url: '/pages/login/login'
  865. })
  866. return;
  867. }
  868. uni.navigateTo({
  869. url: '/my/order/tdSet'
  870. });
  871. },
  872. goTop() {
  873. uni.pageScrollTo({
  874. scrollTop: 0,
  875. duration: 300
  876. });
  877. },
  878. goRefers() {
  879. if (this.userId) {
  880. this.$queue.showLoading('刷新中...')
  881. this.page = 1;
  882. this.getMyOrderList();
  883. this.getUserInfo()
  884. } else {
  885. this.orderCounts = 0;
  886. this.orderList = []
  887. this.list = []
  888. this.isVip = false
  889. clearInterval(that.time)
  890. this.indent = {}
  891. }
  892. },
  893. getMyOrderList() {
  894. this.$Request.getT('/app/driverRoute/selectDriverRouteListByUserId?page=1&limit=2').then(red => {
  895. if (red.code == 0 && red.data) {
  896. this.orderList = red.data.records;
  897. this.orderCounts = red.data.total;
  898. if (red.data.records && red.data.records.length > 0) {
  899. this.driverRouteId = red.data.records[0].driverRouteId;
  900. // this.addlist.province = red.data.records[0].shipProvince;
  901. // this.addlist.city = red.data.records[0].shipCity;
  902. // this.addlist.district = red.data.records[0].shipDistrict;
  903. // this.addlist.lng = red.data.records[0].shipAddressLongitude;
  904. // this.addlist.lat = red.data.records[0].shipAddressLatitude;
  905. // this.addlist.address = red.data.records[0].shipAddress;
  906. // this.addlists.province = red.data.records[0].deliveryProvince;
  907. // this.addlists.city = red.data.records[0].deliveryCity;
  908. // this.addlists.district = red.data.records[0].deliveryDistrict;
  909. // this.addlists.lng = red.data.records[0].deliveryAddressLongitude;
  910. // this.addlists.lat = red.data.records[0].deliveryAddressLatitude;
  911. // this.addlists.address = red.data.records[0].deliveryAddress;
  912. // this.yuyueTime = red.data.records[0].startTime;
  913. this.$queue.setData('driverRouteId', red.data.records[0].driverRouteId)
  914. this.taskData();
  915. }
  916. }
  917. uni.hideLoading();
  918. });
  919. },
  920. remarkSave() {
  921. this.remkShow = false;
  922. if (this.friendsType < 1 || this.personNum < 1) {
  923. this.$queue.showToast('请选择乘车人数和是否有亲友同行!')
  924. return;
  925. }
  926. if (this.isHighSpeedPrice < 1) {
  927. this.$queue.showToast('请选择是否承担高速费用!')
  928. return;
  929. }
  930. this.$queue.showLoading('提交中...')
  931. let driverId = this.$queue.getData('driverId');
  932. let userId = this.$queue.getData('userId');
  933. let data = {
  934. driverId: driverId,
  935. shipProvince: this.addlist.province,
  936. shipCity: this.addlist.city,
  937. shipDistrict: this.addlist.district,
  938. shipAddressLongitude: this.addlist.lng,
  939. shipAddressLatitude: this.addlist.lat,
  940. shipAddress: this.addlist.address,
  941. deliveryProvince: this.addlists.province,
  942. deliveryCity: this.addlists.city,
  943. isHighSpeedPrice: this.isHighSpeedPrice,
  944. seatNum: this.personNum,
  945. isFriends: this.friendsType,
  946. deliveryDistrict: this.addlists.district,
  947. deliveryAddressLongitude: this.addlists.lng,
  948. deliveryAddressLatitude: this.addlists.lat,
  949. deliveryAddress: this.addlists.address,
  950. startTime: this.yuyueTime,
  951. userId: userId
  952. }
  953. this.$Request.postJson('/app/driverRoute/insertDriverRoute', data).then(
  954. res => {
  955. uni.hideLoading();
  956. if (res.code == 0) {
  957. this.addlists.address = '';
  958. let timeNow = new Date();
  959. timeNow.setMinutes(timeNow.getMinutes() + 30);
  960. this.dqYear = timeNow.getFullYear()
  961. this.yuyueTime =
  962. `${this.padZero(timeNow.getMonth() + 1)}月${this.padZero(timeNow.getDate())}日${this.padZero(timeNow.getHours())}:${this.padZero(timeNow.getMinutes())}`;
  963. this.$queue.showToast('发布成功!');
  964. this.getUserInfo();
  965. this.getMyOrderList();
  966. } else {
  967. this.$queue.showToast(res.msg);
  968. }
  969. })
  970. },
  971. //获取正在进行的订单数量
  972. getMasterHaveOrder() {
  973. // this.$Request.getT('/app/orders/getMasterHaveOrder').then(res=>{
  974. // if(res.code == 0){
  975. // }
  976. // })
  977. return new Promise((resolve, reject) => {
  978. this.$Request.getT('/app/orders/getMasterHaveOrder').then(res => {
  979. if (res.code == 0) {
  980. resolve(res.data); // 假设你要获取的数据在res.data中,这里根据实际情况修改
  981. } else {
  982. reject(res);
  983. }
  984. }).catch(error => {
  985. reject(error);
  986. });
  987. });
  988. },
  989. goJinji() {
  990. uni.navigateTo({
  991. url: '/my/setting/jinji'
  992. })
  993. },
  994. open(index) {
  995. console.log('open', index)
  996. this.$refs.uDropdown.highlight();
  997. this.isDrop = true
  998. },
  999. close(index) {
  1000. console.log('close', index)
  1001. // 关闭的时候,给当前项加上高亮
  1002. // 当然,您也可以通过监听dropdown-item的@change事件进行处理
  1003. this.$refs.uDropdown.highlight(index);
  1004. this.isDrop = false
  1005. },
  1006. timeConfirm(e) {
  1007. this.yuyueTime = e.month + '月' + e.day + '日' + '' + e.hour + ':' + e.minute
  1008. },
  1009. openTime() {
  1010. this.Timeshow = true
  1011. },
  1012. goCFAddress(index) {
  1013. let that = this
  1014. uni.chooseLocation({
  1015. success: function(res) {
  1016. console.log('位置名称:' + res.name);
  1017. console.log('详细地址:' + res.address);
  1018. console.log('纬度:' + res.latitude);
  1019. console.log('经度:' + res.longitude);
  1020. if (index == 1) {
  1021. that.addlist.address = res.name
  1022. that.addlist.lng = res.longitude
  1023. that.addlist.lat = res.latitude
  1024. let data = {
  1025. lat: res.latitude,
  1026. lng: res.longitude
  1027. }
  1028. that.$Request.getT('/app/Login/selectCity', data).then(res => {
  1029. if (res.code === 0) {
  1030. that.addlist.province = res.data.province
  1031. that.addlist.city = res.data.city
  1032. that.addlist.district = res.data.district
  1033. }
  1034. });
  1035. } else if (index == 2) {
  1036. that.addlists.address = res.name
  1037. that.addlists.lng = res.longitude
  1038. that.addlists.lat = res.latitude
  1039. let data = {
  1040. lat: res.latitude,
  1041. lng: res.longitude
  1042. }
  1043. that.$Request.getT('/app/Login/selectCity', data).then(res => {
  1044. if (res.code === 0) {
  1045. that.addlists.province = res.data.province
  1046. that.addlists.city = res.data.city
  1047. that.addlists.district = res.data.district
  1048. }
  1049. });
  1050. }
  1051. }
  1052. });
  1053. },
  1054. //时间格式转换
  1055. padZero(num) {
  1056. return num < 10 ? `0${num}` : num;
  1057. },
  1058. change(index) {
  1059. if (uni.getStorageSync('token')) {
  1060. this.current = index
  1061. this.taskData()
  1062. }
  1063. },
  1064. // 今日收入、订单量
  1065. shouru() {
  1066. // this.$Request.getT('/app/orders/findIncome').then(res => {
  1067. // if (res.code == 0) {
  1068. // this.indent = res.data
  1069. // }
  1070. // console.log('res', res)
  1071. // });
  1072. },
  1073. getNewOrder() {
  1074. this.$Request.getT('/app/message/getOrderMessage').then(res => {
  1075. if (res.code == 0) {
  1076. if (res.data > 0) {
  1077. // this.aplayAudio()
  1078. }
  1079. }
  1080. });
  1081. },
  1082. //接单池刷新
  1083. aplayAudio() {
  1084. // console.log('语音提示')
  1085. // const innerAudioContext = uni.createInnerAudioContext();
  1086. // innerAudioContext.autoplay = true;
  1087. // // innerAudioContext.src ='../../static/mpc/order.mp3';
  1088. // innerAudioContext.src =
  1089. // 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/0753211f78d718d44ee6372e33eae9ee.mp3';
  1090. // innerAudioContext.onPlay(() => {
  1091. // console.log('开始播放');
  1092. // });
  1093. // innerAudioContext.onError((res) => {
  1094. // console.log(res.errMsg);
  1095. // console.log(res.errCode);
  1096. // });
  1097. },
  1098. // 获取个人信息
  1099. getUserInfo() {
  1100. let userId = this.$queue.getData('userId');
  1101. if (!userId) {
  1102. return;
  1103. }
  1104. this.$Request.getT("/app/user/selectUserDetails?userId=" + userId).then(res => {
  1105. if (res.code == 0) {
  1106. this.$nextTick(function() {
  1107. // this.checkCertification = res.data.checkCertification
  1108. this.cashDeposit = res.data.cashDeposit
  1109. this.onLineFlag = res.data.onLineFlag
  1110. this.riderLine = res.data.riderLine
  1111. if (res.data.isVip && res.data.isVip == 1) {
  1112. this.isVip = true
  1113. } else {
  1114. this.isVip = false
  1115. }
  1116. })
  1117. } else {
  1118. this.$queue.logout();
  1119. uni.showModal({
  1120. showCancel: false,
  1121. title: '登录失败',
  1122. content: res.msg,
  1123. });
  1124. }
  1125. });
  1126. this.$Request.getT('/app/driver/selectDriverByUserId?userId=' + userId).then(res => {
  1127. if (res.code == 0 && res.data) {
  1128. this.checkCertification = res.data.status
  1129. this.driverPlate = res.data.driverPlate
  1130. if (this.checkCertification && this.checkCertification == 2) {
  1131. // this.$Request.getT('/app/driverRoute/selectDriverRouteByUserId?userId=' + userId).then(
  1132. // red => {
  1133. // if (red.code == 0 && red.data) {
  1134. // this.driverRouteId = red.data.driverRouteId;
  1135. // this.addlist.province = red.data.shipProvince;
  1136. // this.addlist.city = red.data.shipCity;
  1137. // this.addlist.district = red.data.shipDistrict;
  1138. // this.addlist.lng = red.data.shipAddressLongitude;
  1139. // this.addlist.lat = red.data.shipAddressLatitude;
  1140. // this.addlist.address = red.data.shipAddress;
  1141. // this.addlists.province = red.data.deliveryProvince;
  1142. // this.addlists.city = red.data.deliveryCity;
  1143. // this.addlists.district = red.data.deliveryDistrict;
  1144. // this.addlists.lng = red.data.deliveryAddressLongitude;
  1145. // this.addlists.lat = red.data.deliveryAddressLatitude;
  1146. // this.addlists.address = red.data.deliveryAddress;
  1147. // this.yuyueTime = red.data.startTime;
  1148. // this.$queue.setData('driverRouteId', red.data.driverRouteId)
  1149. // this.taskData();
  1150. // }
  1151. // })
  1152. }
  1153. uni.setStorageSync('checkCertification', res.data.status)
  1154. uni.setStorageSync('driverId', res.data.driverId)
  1155. }
  1156. })
  1157. },
  1158. async goCloseSave() {
  1159. let data = await this.getMasterHaveOrder()
  1160. console.log(data, '22222222222222')
  1161. if (data > 0) {
  1162. uni.showModal({
  1163. title: '提示',
  1164. content: '有订单正在进行中,无法取消当前行程',
  1165. showCancel: false
  1166. })
  1167. return
  1168. }
  1169. if (this.isDrop) {
  1170. this.$refs.uDropdown.close();
  1171. }
  1172. let that = this;
  1173. uni.showModal({
  1174. title: '提示',
  1175. content: '确认取消发布行程吗?',
  1176. cancelText: '取消',
  1177. confirmText: '确认',
  1178. complete: function(ret) {
  1179. if (ret.confirm) {
  1180. let data = {
  1181. driverRouteId: that.driverRouteId
  1182. }
  1183. that.$Request.postT('/app/driverRoute/deleteDriverRoute', data).then(res => {
  1184. if (res.code == 0) {
  1185. that.addlist.address = ''
  1186. that.addlists.address = ''
  1187. that.driverRouteId = ''
  1188. that.$queue.removeItem('driverRouteId')
  1189. that.list = []
  1190. that.page = 1;
  1191. that.$queue.showToast('取消成功!');
  1192. let timeNow = new Date();
  1193. that.yuyueTime =
  1194. `${that.padZero(timeNow.getMonth() + 1)}月${that.padZero(timeNow.getDate())}日${that.padZero(timeNow.getHours())}:${that.padZero(timeNow.getMinutes())}`;
  1195. } else {
  1196. that.$queue.showToast(res.msg);
  1197. }
  1198. });
  1199. }
  1200. }
  1201. })
  1202. },
  1203. goItemDetail(item) {
  1204. if (!this.userId) {
  1205. uni.navigateTo({
  1206. url: '/pages/login/login'
  1207. })
  1208. return;
  1209. }
  1210. uni.navigateTo({
  1211. url: '/my/order/myOrderDetail?driverRouteId=' + item.driverRouteId
  1212. });
  1213. },
  1214. goMore(indentNumber) {
  1215. if (!this.userId) {
  1216. uni.navigateTo({
  1217. url: '/pages/login/login'
  1218. })
  1219. return;
  1220. }
  1221. if (this.orderCounts < 1) {
  1222. this.$queue.showToast('请发布行程后再来查看吧!')
  1223. return;
  1224. }
  1225. uni.navigateTo({
  1226. url: '/my/order/myOrderList?indentNumber=' + indentNumber
  1227. });
  1228. },
  1229. goSave() {
  1230. // this.$refs.uDropdown.close();
  1231. if (this.userId) {
  1232. if (this.addlist.address === '') {
  1233. this.$queue.showToast('请选择出发地址!')
  1234. return;
  1235. }
  1236. if (this.addlists.address === '') {
  1237. this.$queue.showToast('请选择目的地!')
  1238. return;
  1239. }
  1240. if (this.yuyueTime === '') {
  1241. this.$queue.showToast('请选择预约时间!')
  1242. return;
  1243. }
  1244. if (this.checkCertification == 2) {
  1245. this.$Request.getT('/app/common/type/261').then(res => {
  1246. if (res.code === 0) {
  1247. let baozhengjin = res.data.value;
  1248. if (uni.getStorageSync('isBindung') == '是') {
  1249. if ((Number(this.cashDeposit) < Number(baozhengjin))) {
  1250. uni.showModal({
  1251. title: '提示',
  1252. content: '保证金不足,请先缴纳保证金后再发单',
  1253. success: function(res) {
  1254. if (res.confirm) {
  1255. console.log('用户点击确定');
  1256. uni.navigateTo({
  1257. url: '/my/wallet/baozhengjin'
  1258. })
  1259. } else if (res.cancel) {
  1260. console.log('用户点击取消');
  1261. }
  1262. }
  1263. });
  1264. return
  1265. }
  1266. }
  1267. this.remkShow = true;
  1268. }
  1269. });
  1270. } else if (this.checkCertification == 1) {
  1271. uni.showToast({
  1272. title: '实名认证审核中,请稍等...',
  1273. icon: 'none'
  1274. })
  1275. return
  1276. } else {
  1277. uni.showModal({
  1278. title: '提示',
  1279. content: '请先实名认证后再发单',
  1280. success: function(res) {
  1281. if (res.confirm) {
  1282. console.log('用户点击确定');
  1283. uni.navigateTo({
  1284. url: '/my/renzheng/index'
  1285. })
  1286. } else if (res.cancel) {
  1287. console.log('用户点击取消');
  1288. }
  1289. }
  1290. });
  1291. return;
  1292. }
  1293. } else {
  1294. uni.navigateTo({
  1295. url: '/pages/login/login'
  1296. })
  1297. }
  1298. },
  1299. goOrder(e) {
  1300. if (this.userId) {
  1301. if (this.checkCertification == 2) {
  1302. this.$Request.getT('/app/common/type/261').then(res => {
  1303. if (res.code === 0) {
  1304. let baozhengjin = res.data.value;
  1305. // console.log((Number(this.cashDeposit) - Number(baozhengjin))>0)
  1306. // return
  1307. if (uni.getStorageSync('isBindung') == '是') {
  1308. if ((Number(this.cashDeposit) >= Number(baozhengjin))) {
  1309. // uni.navigateTo({
  1310. // url: '/pages/index/orderDet?indentNumber=' + e.ordersId
  1311. // })
  1312. this.goMore(e.ordersId);
  1313. } else {
  1314. uni.showModal({
  1315. title: '提示',
  1316. content: '保证金不足,请先缴纳保证金后再接单',
  1317. success: function(res) {
  1318. if (res.confirm) {
  1319. console.log('用户点击确定');
  1320. uni.navigateTo({
  1321. url: '/my/wallet/baozhengjin'
  1322. })
  1323. } else if (res.cancel) {
  1324. console.log('用户点击取消');
  1325. }
  1326. }
  1327. });
  1328. }
  1329. } else {
  1330. this.goMore(e.ordersId);
  1331. // uni.navigateTo({
  1332. // url: '/pages/index/orderDet?indentNumber=' + e.ordersId
  1333. // })
  1334. }
  1335. }
  1336. });
  1337. } else if (this.checkCertification == 1) {
  1338. uni.showToast({
  1339. title: '实名认证审核中,请稍等...',
  1340. icon: 'none'
  1341. })
  1342. return
  1343. } else if (this.checkCertification == '' || this.checkCertification == null) {
  1344. uni.showModal({
  1345. title: '提示',
  1346. content: '请先实名认证后再接单',
  1347. success: function(res) {
  1348. if (res.confirm) {
  1349. console.log('用户点击确定');
  1350. uni.navigateTo({
  1351. url: '/my/renzheng/index'
  1352. })
  1353. } else if (res.cancel) {
  1354. console.log('用户点击取消');
  1355. }
  1356. }
  1357. });
  1358. return;
  1359. }
  1360. } else {
  1361. uni.navigateTo({
  1362. url: '/pages/login/login'
  1363. })
  1364. }
  1365. },
  1366. checkBZGS(index) {
  1367. this.isHighSpeedPrice = index;
  1368. },
  1369. checkBZQY(index) {
  1370. this.friendsType = index;
  1371. },
  1372. checkBZFB(index) {
  1373. this.personNum = index;
  1374. },
  1375. checkBZNum(index) {
  1376. this.appointmentNum = index
  1377. this.page = 1;
  1378. this.taskData()
  1379. },
  1380. checkBZ(index) {
  1381. this.appointmentType = index
  1382. this.page = 1;
  1383. this.taskData()
  1384. },
  1385. changeTj(item, index) {
  1386. this.$refs.uDropdown.close();
  1387. this.mrIndex = index
  1388. this.page = 1;
  1389. this.taskData()
  1390. },
  1391. xdCheck(e) {
  1392. this.scrollTop = 1;
  1393. console.log('吸顶')
  1394. },
  1395. noXDCheck(e) {
  1396. this.scrollTop = 0;
  1397. console.log('no吸顶')
  1398. },
  1399. tabSelClick(index) {
  1400. this.tabSel = index;
  1401. this.page = 1;
  1402. this.taskData()
  1403. },
  1404. // 获取新任务数据
  1405. taskData() {
  1406. // if (this.orderCounts < 1) {
  1407. // uni.hideLoading();
  1408. // uni.stopPullDownRefresh();
  1409. // return;
  1410. // }
  1411. let shipProvince = this.province
  1412. let shipCity = this.city
  1413. let orderType = 1;
  1414. if (this.tabSel == 2) { //跨市
  1415. shipProvince = '';
  1416. shipCity = '';
  1417. orderType = 2;
  1418. }
  1419. let sort = this.mrIndex ? this.mrIndex : '';
  1420. let userId = this.$queue.getData('userId');
  1421. let data = {
  1422. page: this.page,
  1423. limit: 10,
  1424. od: this.latitude,
  1425. ol: this.longitude,
  1426. appointmentType: this.appointmentType ? this.appointmentType : '',
  1427. appointmentNum: this.appointmentNum ? this.appointmentNum : '',
  1428. shipProvince: shipProvince,
  1429. driverUserId: userId,
  1430. shipCity: shipCity,
  1431. orderType: orderType,
  1432. status: 2,
  1433. sort: sort
  1434. }
  1435. this.$Request.getT('/app/orders/selectOrdersList', data).then(res => {
  1436. uni.hideLoading()
  1437. if (res.code == 0) {
  1438. if (this.page == 1) {
  1439. this.list = res.data.list
  1440. } else {
  1441. this.list = [...this.list, ...res.data.list]
  1442. }
  1443. }
  1444. uni.stopPullDownRefresh();
  1445. });
  1446. },
  1447. // 接单成功语音播放
  1448. // aplayAudios() {
  1449. // // console.log('语音提示')
  1450. // const innerAudioContext = uni.createInnerAudioContext();
  1451. // innerAudioContext.autoplay = true;
  1452. // innerAudioContext.src =
  1453. // 'https://pw.xianmxkj.com/file/uploadPath/2022/03/15/c096db4257ecc2547814d4f51c6518bd.mp3';
  1454. // innerAudioContext.onPlay(() => {
  1455. // console.log('开始播放');
  1456. // });
  1457. // innerAudioContext.onError((res) => {
  1458. // console.log(res.errMsg);
  1459. // console.log(res.errCode);
  1460. // });
  1461. // },
  1462. // 上传师傅位置
  1463. getLocation() {
  1464. if (!this.userId) {
  1465. return;
  1466. }
  1467. if (this.orderCounts < 1) {
  1468. return;
  1469. }
  1470. let data = {
  1471. lng: this.longitude,
  1472. lat: this.latitude,
  1473. userId: this.userId,
  1474. province: this.province,
  1475. city: this.city,
  1476. district: this.district,
  1477. }
  1478. this.$Request.getT('/timedtask/riderLocation', data).then(res => {
  1479. if (res.code == 0) {
  1480. console.log('上传师傅位置')
  1481. }
  1482. });
  1483. },
  1484. //接单
  1485. jiedan(item) {
  1486. // #ifdef MP-WEIXIN
  1487. if (uni.getStorageSync('sendMsg')) {
  1488. uni.requestSubscribeMessage({
  1489. tmplIds: this.arr,
  1490. success(re) {
  1491. // console.log(re,'**********')
  1492. var datas = JSON.stringify(re);
  1493. if (datas.indexOf("accept") != -1) {
  1494. console.log(re)
  1495. }
  1496. },
  1497. fail: (res) => {
  1498. console.log(res)
  1499. }
  1500. })
  1501. }
  1502. // #endif
  1503. if (this.isDrop) {
  1504. this.$refs.uDropdown.close();
  1505. }
  1506. if (this.userId) {
  1507. if (uni.getStorageSync('isOpenVip') == '是') {
  1508. if (this.isVip == false) {
  1509. uni.showModal({
  1510. title: '提示',
  1511. content: '开通会员后可接单',
  1512. confirmText: '开通会员',
  1513. complete(ret) {
  1514. if (ret.confirm) {
  1515. uni.navigateTo({
  1516. url: '/my/vip/vip'
  1517. })
  1518. }
  1519. }
  1520. })
  1521. return
  1522. }
  1523. }
  1524. if (this.checkCertification == 2) {
  1525. this.$Request.getT('/app/common/type/261').then(res => {
  1526. if (res.code === 0) {
  1527. let baozhengjin = res.data.value;
  1528. let that = this
  1529. console.log((Number(this.cashDeposit) >= Number(baozhengjin)))
  1530. // return
  1531. if (uni.getStorageSync('isBindung') == '是') {
  1532. if ((Number(this.cashDeposit) >= Number(baozhengjin))) {
  1533. uni.showModal({
  1534. title: '提示',
  1535. content: '确定抢单吗?',
  1536. success: function(res) {
  1537. if (res.confirm) {
  1538. // console.log('用户点击确定');
  1539. that.$Request.postT(
  1540. '/app/orders/takingOrders?ordersId=' +
  1541. item.ordersId + '&userId=' + that.userId +
  1542. '&driverRouteId=' + that.driverRouteId)
  1543. .then(res => {
  1544. if (res.code == 0) {
  1545. that.taskData()
  1546. uni.showToast({
  1547. title: '接单成功',
  1548. icon: 'none'
  1549. })
  1550. setTimeout(function() {
  1551. uni.switchTab({
  1552. url: '/pages/order/order'
  1553. })
  1554. }, 1000)
  1555. } else {
  1556. that.taskData()
  1557. uni.showToast({
  1558. title: res.msg,
  1559. icon: 'none',
  1560. duration: 1500
  1561. })
  1562. }
  1563. });
  1564. } else if (res.cancel) {
  1565. // console.log('用户点击取消');
  1566. }
  1567. }
  1568. });
  1569. } else {
  1570. uni.showModal({
  1571. title: '提示',
  1572. content: '还未缴纳保证金,请先去缴纳保证金',
  1573. success: function(res) {
  1574. if (res.confirm) {
  1575. console.log('用户点击确定');
  1576. uni.navigateTo({
  1577. url: '/my/wallet/baozhengjin'
  1578. })
  1579. } else if (res.cancel) {
  1580. console.log('用户点击取消');
  1581. }
  1582. }
  1583. });
  1584. }
  1585. } else {
  1586. uni.showModal({
  1587. title: '提示',
  1588. content: '确定抢单吗?',
  1589. success: function(res) {
  1590. if (res.confirm) {
  1591. // console.log('用户点击确定');
  1592. that.$Request.postT(
  1593. '/app/orders/takingOrders?ordersId=' +
  1594. item.ordersId + '&userId=' + that.userId +
  1595. '&driverRouteId=' + that.driverRouteId)
  1596. .then(res => {
  1597. if (res.code == 0) {
  1598. that.taskData()
  1599. uni.showToast({
  1600. title: '接单成功',
  1601. icon: 'none'
  1602. })
  1603. setTimeout(function() {
  1604. uni.switchTab({
  1605. url: '/pages/order/order'
  1606. })
  1607. }, 1000)
  1608. } else {
  1609. that.taskData()
  1610. uni.showToast({
  1611. title: res.msg,
  1612. icon: 'none',
  1613. duration: 1500
  1614. })
  1615. }
  1616. });
  1617. } else if (res.cancel) {
  1618. // console.log('用户点击取消');
  1619. }
  1620. }
  1621. });
  1622. }
  1623. }
  1624. });
  1625. } else if (this.checkCertification == 1) {
  1626. uni.showToast({
  1627. title: '实名认证审核中,请稍等...',
  1628. icon: 'none'
  1629. })
  1630. return
  1631. } else if (this.checkCertification == '' || this.checkCertification == null) {
  1632. uni.showModal({
  1633. title: '提示',
  1634. content: '请先实名认证后再接单',
  1635. success: function(res) {
  1636. if (res.confirm) {
  1637. console.log('用户点击确定');
  1638. uni.navigateTo({
  1639. url: '/my/renzheng/index'
  1640. })
  1641. } else if (res.cancel) {
  1642. console.log('用户点击取消');
  1643. }
  1644. }
  1645. });
  1646. return;
  1647. }
  1648. } else {
  1649. uni.navigateTo({
  1650. url: '/pages/login/login'
  1651. })
  1652. }
  1653. },
  1654. goNav(e,) {
  1655. console.log(e)
  1656. if (this.userId) {
  1657. uni.navigateTo({
  1658. url: e
  1659. })
  1660. } else {
  1661. uni.showModal({
  1662. title: '提示',
  1663. content: '您还未登录,请先登录',
  1664. success: function(res) {
  1665. if (res.confirm) {
  1666. uni.navigateTo({
  1667. url: '/pages/login/login'
  1668. })
  1669. } else if (res.cancel) {
  1670. console.log('用户点击取消');
  1671. }
  1672. }
  1673. })
  1674. }
  1675. },
  1676. // 开启订阅消息
  1677. openMsg() {
  1678. console.log('订阅消息')
  1679. var that = this
  1680. uni.getSetting({
  1681. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1682. success(ret) {
  1683. console.log(ret.subscriptionsSetting, '------------------')
  1684. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1685. if (ret.subscriptionsSetting.itemSettings) {
  1686. uni.setStorageSync('sendMsg', true)
  1687. uni.openSetting({ // 打开设置页
  1688. success(rea) {
  1689. console.log(rea.authSetting)
  1690. }
  1691. });
  1692. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1693. console.log(99999)
  1694. uni.setStorageSync('sendMsg', false)
  1695. uni.showModal({
  1696. title: '提示',
  1697. content: '为了更好的体验,请绑定消息推送',
  1698. confirmText: '确定',
  1699. cancelText: '取消',
  1700. success: function(res) {
  1701. if (res.confirm) {
  1702. console.log(that.arr)
  1703. wx.requestSubscribeMessage({
  1704. tmplIds: that.arr,
  1705. success(re) {
  1706. console.log(JSON.stringify(re),
  1707. '++++++++++++++')
  1708. var datas = JSON.stringify(re);
  1709. if (datas.indexOf("accept") != -1) {
  1710. console.log(re)
  1711. // uni.setStorageSync('sendMsg', true)
  1712. }
  1713. },
  1714. fail: (res) => {
  1715. console.log(res)
  1716. }
  1717. })
  1718. // uni.setStorageSync('sendMsg', true)
  1719. console.log('确认')
  1720. that.showModal1 = false
  1721. } else if (res.cancel) {
  1722. console.log('取消')
  1723. // uni.setStorageSync('sendMsg', false)
  1724. that.showModal1 = true
  1725. }
  1726. }
  1727. })
  1728. }
  1729. }
  1730. })
  1731. }
  1732. },
  1733. // 上拉加载
  1734. onReachBottom: function() {
  1735. if (this.userId) {
  1736. this.page = this.page + 1;
  1737. this.taskData();
  1738. }
  1739. },
  1740. onPullDownRefresh: function() {
  1741. // #ifdef MP-WEIXIN
  1742. if (uni.getStorageSync('sendMsg')) {
  1743. uni.requestSubscribeMessage({
  1744. tmplIds: this.arr,
  1745. success(re) {
  1746. // console.log(re,'**********')
  1747. var datas = JSON.stringify(re);
  1748. if (datas.indexOf("accept") != -1) {
  1749. console.log(re)
  1750. }
  1751. },
  1752. fail: (res) => {
  1753. console.log(res)
  1754. }
  1755. })
  1756. }
  1757. // #endif
  1758. if (this.userId) {
  1759. this.page = 1;
  1760. this.taskData();
  1761. } else {
  1762. uni.hideLoading();
  1763. uni.stopPullDownRefresh();
  1764. }
  1765. },
  1766. }
  1767. </script>
  1768. <style lang="less">
  1769. page {
  1770. background: #F5F5F5;
  1771. }
  1772. ::v-deep .u-sticky {
  1773. background-color: #F5F5F5;
  1774. }
  1775. .sosTD {
  1776. width: 140rpx;
  1777. height: 80rpx;
  1778. position: fixed;
  1779. bottom: 160rpx;
  1780. left: 32rpx;
  1781. z-index: 99;
  1782. image {
  1783. width: 80rpx;
  1784. height: 80rpx;
  1785. }
  1786. }
  1787. .sosT {
  1788. width: 390rpx;
  1789. position: fixed;
  1790. bottom: 160rpx;
  1791. left: 25%;
  1792. background: #25262A;
  1793. padding: 20rpx;
  1794. z-index: 99;
  1795. font-family: Source Han Sans CN;
  1796. font-weight: 500;
  1797. font-size: 26rpx;
  1798. color: #FFFFFF;
  1799. border-radius: 45px;
  1800. display: flex;
  1801. justify-content: space-between;
  1802. padding: 30rpx 40rpx;
  1803. align-items: center;
  1804. .sosT_text {
  1805. font-family: Source Han Sans CN;
  1806. font-weight: 500;
  1807. font-size: 26rpx;
  1808. color: #FFFFFF;
  1809. margin-left: 10rpx;
  1810. }
  1811. }
  1812. .soss {
  1813. width: 70rpx;
  1814. height: 70rpx;
  1815. position: fixed;
  1816. bottom: 290rpx;
  1817. left: 32rpx;
  1818. z-index: 99;
  1819. image {
  1820. width: 70rpx;
  1821. height: 70rpx;
  1822. }
  1823. }
  1824. .sos {
  1825. width: 100rpx;
  1826. height: 100rpx;
  1827. position: fixed;
  1828. bottom: 290rpx;
  1829. right: 32rpx;
  1830. z-index: 99;
  1831. image {
  1832. width: 100rpx;
  1833. height: 100rpx;
  1834. border-radius: 50%;
  1835. }
  1836. }
  1837. .labelsx {
  1838. padding: 0 30rpx;
  1839. .scroll-view_H {
  1840. white-space: nowrap;
  1841. width: 100%;
  1842. }
  1843. .scroll-view-item_labe {
  1844. display: inline-block;
  1845. // width: 20%;
  1846. padding: 0 35rpx;
  1847. // width: 121rpx;
  1848. height: 60rpx;
  1849. background: #FFFFFF;
  1850. border-radius: 8rpx;
  1851. text-align: center;
  1852. font-size: 24rpx;
  1853. font-family: PingFang SC;
  1854. font-weight: 500;
  1855. color: #333333;
  1856. // line-height: 60rpx;
  1857. margin-right: 20rpx;
  1858. display: inline-flex;
  1859. align-items: center;
  1860. justify-content: center;
  1861. }
  1862. .scroll-view-item_labeAct {
  1863. background: #EAF9FF;
  1864. color: #00c18a;
  1865. }
  1866. }
  1867. // 价格 车龄筛选
  1868. .slot-content {
  1869. border-radius: 0rpx 0rpx 32rpx 32rpx;
  1870. padding-bottom: 30rpx;
  1871. background: #FFFFFF;
  1872. .listpp {
  1873. // text-align: center;
  1874. padding: 0rpx 20rpx;
  1875. // width: 150rpx;
  1876. height: 60rpx;
  1877. background: #F7F8FC;
  1878. border-radius: 8rpx;
  1879. display: flex;
  1880. align-items: center;
  1881. justify-content: center;
  1882. margin-right: 20rpx;
  1883. margin-bottom: 20rpx;
  1884. font-size: 24rpx;
  1885. font-family: PingFang SC;
  1886. font-weight: 500;
  1887. color: #171717;
  1888. }
  1889. .listppAct {
  1890. padding: 0rpx 20rpx;
  1891. height: 60rpx;
  1892. display: flex;
  1893. align-items: center;
  1894. justify-content: center;
  1895. background: #e8fbf6;
  1896. border: 1px solid #00c18a;
  1897. border-radius: 8rpx;
  1898. font-size: 24rpx;
  1899. font-family: PingFang SC;
  1900. font-weight: 500;
  1901. color: #00c18a;
  1902. }
  1903. .btn {
  1904. background: #00c18a;
  1905. color: #FFF;
  1906. padding: 20rpx 0;
  1907. text-align: center;
  1908. }
  1909. }
  1910. .empty {
  1911. width: 100%;
  1912. background: #ffffff;
  1913. height: 600rpx;
  1914. // margin-top: 20rpx;
  1915. padding-top: 60rpx;
  1916. }
  1917. .item_addName {
  1918. font-family: PingFang SC;
  1919. font-weight: 600;
  1920. font-size: 28rpx;
  1921. color: #1A1A1A;
  1922. width: 520rpx;
  1923. white-space: nowrap;
  1924. text-overflow: ellipsis;
  1925. overflow: hidden;
  1926. }
  1927. .item_juli {
  1928. font-family: PingFang SC;
  1929. font-weight: 500;
  1930. font-size: 26rpx;
  1931. color: #999999;
  1932. }
  1933. .item_btn {
  1934. width: 150rpx;
  1935. height: 58rpx;
  1936. background: #00c18a;
  1937. border-radius: 29rpx;
  1938. text-align: center;
  1939. line-height: 58rpx;
  1940. font-family: PingFang SC;
  1941. font-weight: 500;
  1942. font-size: 24rpx;
  1943. color: #FFFFFF;
  1944. }
  1945. .tab_view {
  1946. width: 750rpx;
  1947. background: #F3F5F9;
  1948. display: flex;
  1949. // margin-top: 40rpx;
  1950. .tab_item {
  1951. width: 375rpx;
  1952. height: 100rpx;
  1953. background: #F3F5F9;
  1954. border-radius: 24rpx 24rpx 0px 0px;
  1955. text-align: center;
  1956. line-height: 100rpx;
  1957. font-family: Source Han Sans CN;
  1958. font-weight: bold;
  1959. font-size: 28rpx;
  1960. color: #999999;
  1961. }
  1962. .tab_items {
  1963. width: 375rpx;
  1964. height: 100rpx;
  1965. background: #FFFFFF;
  1966. border-radius: 24rpx 24rpx 0px 0px;
  1967. text-align: center;
  1968. line-height: 100rpx;
  1969. font-family: Source Han Sans CN;
  1970. font-weight: bold;
  1971. font-size: 28rpx;
  1972. color: #333333;
  1973. }
  1974. }
  1975. .addboxs {
  1976. display: flex;
  1977. align-items: center;
  1978. justify-content: space-between;
  1979. margin: 0 10rpx 30rpx;
  1980. height: 80rpx;
  1981. border-radius: 16rpx;
  1982. .add_cont {
  1983. display: flex;
  1984. align-items: center;
  1985. }
  1986. .add_tit {
  1987. font-size: 30rpx;
  1988. font-family: PingFang SC;
  1989. font-weight: bold;
  1990. color: #333333;
  1991. margin-left: 10rpx;
  1992. }
  1993. }
  1994. .bg {
  1995. // background: #FFFFFF;
  1996. background: #f5f5f5;
  1997. border-radius: 16rpx;
  1998. border: 1px solid #f5f5f5;
  1999. }
  2000. .bgc {
  2001. // background: #FFFFFF;
  2002. }
  2003. .myOrder_view {
  2004. width: 686rpx;
  2005. height: 120rpx;
  2006. background: #e8fbf6;
  2007. border-radius: 32rpx 32rpx 0px 0px;
  2008. margin: 0 auto;
  2009. margin-top: 30rpx;
  2010. display: flex;
  2011. justify-content: space-between;
  2012. font-family: Source Han Sans CN;
  2013. font-weight: 500;
  2014. font-size: 26rpx;
  2015. color: #00c18a;
  2016. padding: 30rpx;
  2017. }
  2018. .myOrder_itemView {
  2019. width: 686rpx;
  2020. // height: 549rpx;
  2021. background: #FFFFFF;
  2022. border-radius: 32rpx;
  2023. margin: 0 auto;
  2024. margin-top: -30rpx;
  2025. padding: 30rpx 40rpx;
  2026. .item_title {
  2027. font-family: Source Han Sans CN;
  2028. font-weight: 600;
  2029. font-size: 32rpx;
  2030. color: #242424;
  2031. }
  2032. }
  2033. .order_up {
  2034. width: 6rpx;
  2035. height: 24rpx;
  2036. margin-left: 6rpx;
  2037. }
  2038. .green {
  2039. width: 16rpx;
  2040. height: 16rpx;
  2041. background: #1FC657;
  2042. border-radius: 50%;
  2043. margin-right: 20rpx;
  2044. }
  2045. .orgin {
  2046. width: 16rpx;
  2047. height: 16rpx;
  2048. background: #FBAC04;
  2049. border-radius: 50%;
  2050. margin-right: 20rpx;
  2051. }
  2052. .fb_btn {
  2053. width: 592rpx;
  2054. height: 80rpx;
  2055. background: #00c18a;
  2056. border-radius: 16rpx;
  2057. margin: 0 auto;
  2058. margin-top: 40rpx;
  2059. font-family: PingFang SC;
  2060. font-weight: 800;
  2061. font-size: 28rpx;
  2062. color: #FFFFFF;
  2063. text-align: center;
  2064. line-height: 80rpx;
  2065. }
  2066. .bz_item {
  2067. width: fit-content;
  2068. padding: 18rpx 30rpx;
  2069. // height: 71rpx;
  2070. background: #FFFFFF;
  2071. border-radius: 24rpx;
  2072. border: 1px solid #CCCCCC;
  2073. font-family: PingFang SC;
  2074. font-weight: 500;
  2075. font-size: 24rpx;
  2076. color: #030303;
  2077. margin-top: 20rpx;
  2078. margin-right: 20rpx;
  2079. }
  2080. .bz_item_sel {
  2081. width: fit-content;
  2082. padding: 18rpx 30rpx;
  2083. // height: 71rpx;
  2084. background: #FFFFFF;
  2085. border-radius: 24rpx;
  2086. border: 1px solid #00c18a;
  2087. font-family: PingFang SC;
  2088. font-weight: 500;
  2089. font-size: 24rpx;
  2090. color: #00c18a;
  2091. margin-top: 20rpx;
  2092. margin-right: 20rpx;
  2093. }
  2094. .remkbtn {
  2095. width: 100%;
  2096. height: 98rpx;
  2097. background: #346EF6;
  2098. border-radius: 16rpx;
  2099. font-size: 28rpx;
  2100. font-family: PingFang SC;
  2101. font-weight: bold;
  2102. color: #FFFFFF;
  2103. display: flex;
  2104. align-items: center;
  2105. justify-content: center;
  2106. line-height: 98rpx;
  2107. margin-top: 40rpx;
  2108. }
  2109. .top_view {
  2110. width: 750rpx;
  2111. // height: 681rpx;
  2112. // background: linear-gradient(80deg, #3670F6 0%, #8EB0FF 100%);
  2113. // background: linear-gradient(to bottom, #3670F6 0%, #8EB0FF 70%, #F5F5F5 90%);
  2114. // padding-top: 100rpx;
  2115. .top_centerView {
  2116. width: 686rpx;
  2117. // height: 409rpx;
  2118. background: #FFFFFF;
  2119. border-radius: 20rpx;
  2120. margin: 0 auto;
  2121. // margin-top: 40rpx;
  2122. padding: 20rpx 20rpx 40rpx;
  2123. }
  2124. }
  2125. .maps {
  2126. width: 100%;
  2127. height: 100vh;
  2128. position: fixed;
  2129. top: 0;
  2130. z-index: 1;
  2131. }
  2132. .bottomBtn {
  2133. position: fixed;
  2134. bottom: 88rpx;
  2135. right: 20rpx;
  2136. z-index: 10;
  2137. .bottomBtn-img {
  2138. width: 100rpx;
  2139. height: 100rpx;
  2140. border-radius: 50%;
  2141. }
  2142. }
  2143. .orderInfoNum {
  2144. width: 100%;
  2145. height: auto;
  2146. background-color: #F5F5F5;
  2147. padding: 30rpx 0;
  2148. .orderInfoNum-box {
  2149. width: 686rpx;
  2150. height: 100%;
  2151. background-color: #FFFFFF;
  2152. border-radius: 24rpx;
  2153. padding: 20rpx;
  2154. }
  2155. .orderInfoNum-box-title {
  2156. width: 100%;
  2157. text-align: center;
  2158. font-weight: bold;
  2159. font-size: 30rpx;
  2160. }
  2161. .orderInfoNum-box-num {
  2162. margin-top: 20rpx;
  2163. text-align: center;
  2164. }
  2165. .orderInfoNum-box-num-item-top {
  2166. font-size: 26rpx;
  2167. font-weight: bold;
  2168. }
  2169. .orderInfoNum-box-num-item-txt {
  2170. color: #999999;
  2171. font-size: 24rpx;
  2172. }
  2173. }
  2174. .boxa {
  2175. background: #FFFFFF;
  2176. border-radius: 24rpx;
  2177. margin: 0 30rpx;
  2178. // padding: 30rpx 0;
  2179. margin-top: 30rpx;
  2180. padding-bottom: 20rpx;
  2181. // margin-bottom: 30rpx;
  2182. .item_time {
  2183. font-family: Source Han Sans CN;
  2184. font-weight: bold;
  2185. font-size: 28rpx;
  2186. color: #242424;
  2187. }
  2188. .item_shunlu {
  2189. width: 210rpx;
  2190. height: 80rpx;
  2191. background: #EFF4FF;
  2192. border-radius: 0px 24rpx 0px 50rpx;
  2193. text-align: center;
  2194. line-height: 80rpx;
  2195. font-family: Source Han Sans CN;
  2196. font-weight: bold;
  2197. font-size: 32rpx;
  2198. color: #346EF6;
  2199. }
  2200. .addbox {
  2201. display: flex;
  2202. align-items: center;
  2203. justify-content: space-between;
  2204. padding: 0 30rpx;
  2205. height: 110rpx;
  2206. border-radius: 16rpx;
  2207. }
  2208. .add_cont {
  2209. display: flex;
  2210. align-items: center;
  2211. }
  2212. .add_tit {
  2213. font-size: 30rpx;
  2214. font-family: PingFang SC;
  2215. font-weight: bold;
  2216. color: #333333;
  2217. }
  2218. .bg {
  2219. background: #F5F5F5;
  2220. }
  2221. .bgs {
  2222. background: #F5F8FF;
  2223. }
  2224. .green {
  2225. width: 16rpx;
  2226. height: 16rpx;
  2227. background: #1FC657;
  2228. border-radius: 50%;
  2229. margin-right: 20rpx;
  2230. }
  2231. .orgin {
  2232. width: 16rpx;
  2233. height: 16rpx;
  2234. background: #FBAC04;
  2235. border-radius: 50%;
  2236. margin-right: 20rpx;
  2237. }
  2238. .btn {
  2239. height: 78rpx;
  2240. background: linear-gradient(87deg, #346EF6 0%, #7BA2FF 100%);
  2241. border-radius: 4rpx;
  2242. font-size: 28rpx;
  2243. font-family: PingFang SC;
  2244. font-weight: bold;
  2245. color: #FFFFFF;
  2246. margin: 30rpx 30rpx 0;
  2247. display: flex;
  2248. align-items: center;
  2249. justify-content: center;
  2250. }
  2251. }
  2252. .box {
  2253. width: 690upx;
  2254. margin: 0 auto;
  2255. height: 120rpx;
  2256. background: #557EFD;
  2257. border-radius: 16upx 16upx 0px 0px;
  2258. color: #FFFFFF;
  2259. padding: 0upx 30upx;
  2260. margin-top: 20upx;
  2261. }
  2262. .orderbox {
  2263. width: 690upx;
  2264. margin: 0 auto;
  2265. height: 153upx;
  2266. background: #FAFAFA;
  2267. border-radius: 16upx;
  2268. display: flex;
  2269. align-items: center;
  2270. justify-content: space-between;
  2271. text-align: center;
  2272. padding: 0upx 30upx;
  2273. }
  2274. </style>