luma.vue 75 KB

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