luma.vue 76 KB

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