index.vue 77 KB

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