luma.vue 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818
  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. }
  784. },
  785. onHide() {
  786. clearInterval(this.time)
  787. },
  788. onLoad() {
  789. var dizhi = uni.getStorageSync('dizhi')
  790. if (dizhi.longitude) {
  791. this.longitude = dizhi.longitude
  792. this.latitude = dizhi.latitude
  793. }
  794. // this.taskData()
  795. let that = this
  796. this.time = setInterval(function () {
  797. // that.taskData()
  798. that.getLocation()
  799. }, 5000)
  800. // #ifdef MP-WEIXIN
  801. try {
  802. wx.getPrivacySetting({
  803. success: (res) => {
  804. console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName)
  805. if (res.needAuthorization) {
  806. that.privacyContractName = res.privacyContractName
  807. // this.$refs.popusAuthorization.open();
  808. that.Authorization = true
  809. }
  810. },
  811. fail: () => {},
  812. complete: () => {}
  813. })
  814. } catch (e) {
  815. //TODO handle the exception
  816. }
  817. // #endif
  818. },
  819. onShow() {
  820. let that = this
  821. that.getOrderNum()
  822. //骑手端接单成功通知
  823. that.$Request.getT('/app/common/type/310').then((res) => {
  824. if (res.code === 0) {
  825. // this.jiedan = res.data.value
  826. that.arr.push(res.data.value)
  827. }
  828. })
  829. //骑手端订单完成通知
  830. that.$Request.getT('/app/common/type/311').then((res) => {
  831. if (res.code === 0) {
  832. // this.jiedanSuccess = res.data.value
  833. that.arr.push(res.data.value)
  834. }
  835. })
  836. //用户端骑手转单订单通知 338
  837. that.$Request.getT('/app/common/type/338').then((res) => {
  838. if (res.code === 0) {
  839. that.arr.push(res.data.value)
  840. }
  841. })
  842. //用户端骑手转单订单通知 335
  843. // that.$Request.getT('/app/common/type/335').then(res => {
  844. // if (res.code === 0) {
  845. // that.arr.push(res.data.value)
  846. // }
  847. // });
  848. that.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/logo.png'
  849. that.userId = uni.getStorageSync('userId')
  850. if (that.userId) {
  851. console.log(that.userId, '用户id')
  852. uni.getLocation({
  853. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  854. success: function (res) {
  855. console.log('当前位置的经度:' + res.longitude)
  856. console.log('当前位置的纬度:' + res.latitude)
  857. let data = {
  858. lat: res.latitude,
  859. lng: res.longitude
  860. }
  861. that.$Request.getT('/app/Login/selectCity', data).then((res) => {
  862. if (res.code == 0) {
  863. that.province = res.data.province
  864. that.city = res.data.city
  865. that.district = res.data.district
  866. }
  867. })
  868. },
  869. fail(e) {
  870. uni.hideLoading()
  871. uni.showModal({
  872. title: '温馨提示',
  873. content: '您的定位权限未开启,请开启后再来操作吧!',
  874. showCancel: true,
  875. cancelText: '取消',
  876. confirmText: '确认',
  877. success: (res) => {
  878. if (res.confirm) {
  879. // #ifdef MP-WEIXIN
  880. uni.openSetting({
  881. // 打开设置页
  882. success(rea) {
  883. console.log(rea.authSetting)
  884. }
  885. })
  886. // #endif
  887. // #ifdef APP-PLUS
  888. gotoAppPermissionSetting()
  889. // #endif
  890. }
  891. }
  892. })
  893. }
  894. })
  895. that.getUserInfo()
  896. }
  897. // #ifdef MP-WEIXIN
  898. //订阅
  899. if (that.userId) {
  900. if (that.showModal111) {
  901. that.openMsg()
  902. }
  903. }
  904. // #endif
  905. },
  906. methods: {
  907. //扫码取单,订单直接变为配送中
  908. saoma() {
  909. uni.showLoading({
  910. title: '扫码中...',
  911. mask: true // 是否显示透明蒙层,防止触摸穿透
  912. })
  913. var that = this
  914. wx.scanCode({
  915. onlyFromCamera: false, // 只允许从相机扫码
  916. success(res) {
  917. console.log('扫码成功:' + JSON.stringify(res) + res.result)
  918. that.shoudanma = res.result
  919. setTimeout(function () {
  920. that.saomaCha()
  921. }, 700)
  922. }
  923. })
  924. uni.hideLoading()
  925. },
  926. // 扫码查询订单列表
  927. saomaCha() {
  928. uni.showLoading({
  929. title: '加载中',
  930. mask: true // 是否显示透明蒙层,防止触摸穿透
  931. })
  932. var that = this
  933. that.$Request
  934. .getT('/app/tbindent/selectTbIndentPage', {
  935. page: 1,
  936. limit: 10,
  937. acquireCode: that.shoudanma
  938. })
  939. .then((res) => {
  940. console.log(res, 'lk')
  941. uni.hideLoading()
  942. if (res.data) {
  943. if (res.data.list.length > 0) {
  944. for (var i = 0; i < res.data.list.length; i++) {
  945. if (res.data.list[i].distancess > 1000) {
  946. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  947. } else {
  948. if (res.data.list[i].distancess == '0') {
  949. res.data.list[i].distancess = '0m'
  950. } else {
  951. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  952. }
  953. }
  954. if (res.data.list[i].distancessd > 1000) {
  955. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  956. } else {
  957. if (res.data.list[i].distancessd == '0') {
  958. res.data.list[i].distancessd = '0m'
  959. } else {
  960. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(1) + 'm'
  961. }
  962. }
  963. }
  964. }
  965. var saomajie = []
  966. saomajie = res.data.list
  967. this.list2 = res.data.list
  968. console.log(saomajie, '列表')
  969. if (saomajie[0].indentState == '2' || saomajie[0].indentState == '3') {
  970. //收单
  971. that.bindorder()
  972. } else if (saomajie[0].indentState == '4') {
  973. that.saomaPeisong = true
  974. } else {
  975. that.jiedanNo = true
  976. that.shoudanma = ''
  977. }
  978. } else if (res.msg == '当前订单无法接单') {
  979. that.jiedanNo = true
  980. that.shoudanma = ''
  981. }
  982. that.$forceUpdate()
  983. uni.stopPullDownRefresh()
  984. // 加载提示关闭
  985. uni.hideLoading()
  986. })
  987. },
  988. //返回上一页
  989. fanhuiShang() {
  990. uni.navigateTo({
  991. url: '/pages/index/index'
  992. })
  993. },
  994. //获取搜索框数据
  995. onInput(event) {
  996. this.shoudanma = event.target.value
  997. // if(this.shoudanma.length>=4){
  998. // this.sousuoList()
  999. // }
  1000. },
  1001. //搜索框回车
  1002. shouhuiche() {
  1003. this.sousuoList()
  1004. },
  1005. //搜索结果
  1006. sousuoList() {
  1007. uni.showLoading({
  1008. title: '加载中',
  1009. mask: true // 是否显示透明蒙层,防止触摸穿透
  1010. })
  1011. var that = this
  1012. var data = {
  1013. page: that.page2,
  1014. limit: 10,
  1015. acquireCode: that.shoudanma
  1016. }
  1017. console.log(data, 'data')
  1018. that.$Request
  1019. .getT('/app/tbindent/selectTbIndentPage', {
  1020. page: that.page2,
  1021. limit: 10,
  1022. acquireCode: that.shoudanma
  1023. })
  1024. .then((res) => {
  1025. console.log(res, 'lk')
  1026. uni.hideLoading()
  1027. if (res.data) {
  1028. if (res.data.list.length > 0) {
  1029. for (var i = 0; i < res.data.list.length; i++) {
  1030. if (res.data.list[i].distancess > 1000) {
  1031. res.data.list[i].distancess = Number(res.data.list[i].distancess / 1000).toFixed(2) + 'km'
  1032. } else {
  1033. if (res.data.list[i].distancess == '0') {
  1034. res.data.list[i].distancess = '0m'
  1035. } else {
  1036. res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(1) + 'm'
  1037. }
  1038. }
  1039. if (res.data.list[i].distancessd > 1000) {
  1040. res.data.list[i].distancessd = Number(res.data.list[i].distancessd / 1000).toFixed(2) + 'km'
  1041. } else {
  1042. if (res.data.list[i].distancessd == '0') {
  1043. res.data.list[i].distancessd = '0m'
  1044. } else {
  1045. res.data.list[i].distancessd = Number(res.data.list[i].distancessd).toFixed(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
  1132. .postT('/app/userinfo/updateCoordinate', {
  1133. lng: lng,
  1134. lat: lat
  1135. })
  1136. .then((res) => {
  1137. console.log('位置信息更新', res)
  1138. // that.taskData()
  1139. // that.taskData()
  1140. })
  1141. // }, 600000)
  1142. },
  1143. // 跳转订单详情
  1144. binddetails(id, types) {
  1145. // #ifdef MP-WEIXIN
  1146. if (uni.getStorageSync('sendMsg')) {
  1147. uni.requestSubscribeMessage({
  1148. tmplIds: this.arr,
  1149. success(re) {
  1150. // console.log(re,'**********')
  1151. var datas = JSON.stringify(re)
  1152. if (datas.indexOf('accept') != -1) {
  1153. console.log(re)
  1154. }
  1155. },
  1156. fail: (res) => {
  1157. console.log(res)
  1158. }
  1159. })
  1160. }
  1161. // #endif
  1162. console.log('```', id, types)
  1163. if (types == 1 || types == 2 || types == 3 || types == 5) {
  1164. uni.navigateTo({
  1165. url: '/pages/index/buyOrder/buyOrder?id=' + id
  1166. })
  1167. } else {
  1168. uni.navigateTo({
  1169. url: '/pages/index/cityOrder/cityOrder?id=' + id
  1170. })
  1171. }
  1172. },
  1173. // 接单
  1174. bindorder(item) {
  1175. let that = this
  1176. if (!that.userId) {
  1177. uni.showModal({
  1178. title: '提示',
  1179. content: '请先登录后再接单',
  1180. success: function (res) {
  1181. if (res.confirm) {
  1182. console.log('用户点击确定')
  1183. uni.navigateTo({
  1184. url: '/pages/login/login'
  1185. })
  1186. } else if (res.cancel) {
  1187. console.log('用户点击取消')
  1188. }
  1189. }
  1190. })
  1191. return
  1192. }
  1193. // #ifdef MP-WEIXIN
  1194. if (uni.getStorageSync('sendMsg')) {
  1195. uni.requestSubscribeMessage({
  1196. tmplIds: this.arr,
  1197. success(re) {
  1198. // console.log(re,'**********')
  1199. var datas = JSON.stringify(re)
  1200. if (datas.indexOf('accept') != -1) {
  1201. console.log(re)
  1202. }
  1203. },
  1204. fail: (res) => {
  1205. console.log(res)
  1206. }
  1207. })
  1208. }
  1209. // #endif
  1210. if (that.checkCertification == null) {
  1211. uni.showModal({
  1212. title: '提示',
  1213. content: '请先实名认证后再接单',
  1214. success: function (res) {
  1215. if (res.confirm) {
  1216. console.log('用户点击确定')
  1217. uni.navigateTo({
  1218. url: '/pages/riderMy/approve/approve'
  1219. })
  1220. } else if (res.cancel) {
  1221. console.log('用户点击取消')
  1222. }
  1223. }
  1224. })
  1225. return
  1226. }
  1227. if (that.checkCertification == 0) {
  1228. uni.showToast({
  1229. title: '实名认证审核中,无法接单',
  1230. icon: 'none'
  1231. })
  1232. return
  1233. }
  1234. if (that.checkCertification == 2) {
  1235. uni.showToast({
  1236. title: '实名认证未通过,无法接单',
  1237. icon: 'none'
  1238. })
  1239. return
  1240. }
  1241. uni.showLoading({
  1242. title: '加载中',
  1243. mask: true // 是否显示透明蒙层,防止触摸穿透
  1244. })
  1245. console.log('用户点击确定')
  1246. that.$Request
  1247. .postT('/app/tbindent/orderIndentReceiving', {
  1248. acquireCode: that.shoudanma
  1249. })
  1250. .then((res) => {
  1251. console.log(res, 'ppp')
  1252. if (res.code == 0) {
  1253. uni.showToast({
  1254. title: '收单成功',
  1255. icon: 'none'
  1256. })
  1257. // 在toast显示2000毫秒(2秒)后执行操作
  1258. setTimeout(function () {
  1259. that.sousuoList()
  1260. }, 1200)
  1261. } else {
  1262. console.log('失败:', res.data)
  1263. uni.showToast({
  1264. title: res.msg,
  1265. icon: 'none'
  1266. })
  1267. // that.taskData()
  1268. }
  1269. // 加载提示关闭
  1270. uni.hideLoading()
  1271. })
  1272. },
  1273. // 未登录接单
  1274. bindorder1() {
  1275. uni.showToast({
  1276. title: '上线后方可收单',
  1277. icon: 'none'
  1278. })
  1279. },
  1280. bindridermy() {
  1281. // #ifdef MP-WEIXIN
  1282. if (uni.getStorageSync('sendMsg')) {
  1283. uni.requestSubscribeMessage({
  1284. tmplIds: this.arr,
  1285. success(re) {
  1286. // console.log(re,'**********')
  1287. var datas = JSON.stringify(re)
  1288. if (datas.indexOf('accept') != -1) {
  1289. console.log(re)
  1290. }
  1291. },
  1292. fail: (res) => {
  1293. console.log(res)
  1294. }
  1295. })
  1296. }
  1297. // #endif
  1298. uni.navigateTo({
  1299. url: '/pages/riderMy/riderMy'
  1300. })
  1301. },
  1302. // // 获取新任务数据
  1303. // taskData() {
  1304. // uni.showLoading({
  1305. // title: '加载中',
  1306. // mask: true, // 是否显示透明蒙层,防止触摸穿透
  1307. // });
  1308. // this.$Request.postJson('/app/tbindent/find-new-indent', {
  1309. // buyTpye:"",// 购买类型 0:骑手就近购买;1:用户指定地址购买"
  1310. // page: this.page2,
  1311. // limit: 10,
  1312. // receivingPattern: this.receivingPettern,
  1313. // indentType: this.indentType,
  1314. // shopId: this.shopId,
  1315. // riderLat: this.latitude,
  1316. // riderLng: this.longitude
  1317. // }).then(res => {
  1318. // uni.hideLoading()
  1319. // if (res.data) {
  1320. // if (res.data.list.length > 0) {
  1321. // for (var i = 0; i < res.data.list.length; i++) {
  1322. // if (res.data.list[i].distancess > 1000) {
  1323. // res.data.list[i].distancess = Number((res.data.list[i].distancess / 1000))
  1324. // .toFixed(
  1325. // 2) + "km"
  1326. // } else {
  1327. // if (res.data.list[i].distancess == '0') {
  1328. // res.data.list[i].distancess = "0m";
  1329. // } else {
  1330. // res.data.list[i].distancess = Number(res.data.list[i].distancess).toFixed(
  1331. // 1) +
  1332. // "m";
  1333. // }
  1334. // }
  1335. // // if (res.data.list[i].distance > 1000) {
  1336. // // res.data.list[i].distance = Number((res.data.list[i].distance / 1000)).toFixed(2) + "km"
  1337. // // } else {
  1338. // // if (res.data.list[i].distance == 0) {
  1339. // // res.data.list[i].distance = "0m";
  1340. // // } else {
  1341. // // res.data.list[i].distance = Number(res.data.list[i].distance).toFixed(1) + "m";
  1342. // // }
  1343. // // }
  1344. // if (res.data.list[i].distancessd > 1000) {
  1345. // res.data.list[i].distancessd = Number((res.data.list[i].distancessd / 1000))
  1346. // .toFixed(2) + "km"
  1347. // } else {
  1348. // if (res.data.list[i].distancessd == '0') {
  1349. // res.data.list[i].distancessd = "0m";
  1350. // } else {
  1351. // res.data.list[i].distancessd = Number(res.data.list[i].distancessd)
  1352. // .toFixed(
  1353. // 1) + "m";
  1354. // }
  1355. // }
  1356. // }
  1357. // }
  1358. // this.totalCount2 = res.data.totalCount
  1359. // if (this.page2 == 1) {
  1360. // this.list_box = res.data.list
  1361. // } else {
  1362. // this.list_box = this.list_box.concat(res.data.list)
  1363. // }
  1364. // console.log('list_box', this.list_box)
  1365. // }
  1366. // this.$forceUpdate()
  1367. // uni.stopPullDownRefresh();
  1368. // // 加载提示关闭
  1369. // uni.hideLoading()
  1370. // });
  1371. // },
  1372. // 获取待取货和配送中订单
  1373. // taskDataJ() {
  1374. // uni.showLoading({
  1375. // title: '加载中',
  1376. // mask: true, // 是否显示透明蒙层,防止触摸穿透
  1377. // });
  1378. // this.$Request.getT('/app/tbindent/findRiderIndent', {
  1379. // page: this.page3,
  1380. // limit: 10,
  1381. // indentState: this.indentState
  1382. // // ol: this.longitude,
  1383. // // od: this.latitude
  1384. // }).then(res => {
  1385. // this.totalCount3 = res.data.totalCount
  1386. // if (this.page3 == 1) {
  1387. // this.lists = res.data.list
  1388. // } else {
  1389. // this.lists = this.lists.concat(res.data.list)
  1390. // }
  1391. // for (var i in this.lists) {
  1392. // if (this.lists[i].distanceInitial > 1000) {
  1393. // this.lists[i].distanceInitials = (Number(this.lists[i].distanceInitial) / 1000)
  1394. // .toFixed(2)
  1395. // }
  1396. // if (this.lists[i].distance > 1000) {
  1397. // this.lists[i].distances = (Number(this.lists[i].distance) / 1000).toFixed(2)
  1398. // }
  1399. // }
  1400. // console.log('lists', this.lists)
  1401. // uni.stopPullDownRefresh();
  1402. // // 加载提示关闭
  1403. // uni.hideLoading()
  1404. // });
  1405. // },
  1406. // 订单详情
  1407. bindorderDetail(indentNumber, orderId) {
  1408. // #ifdef MP-WEIXIN
  1409. if (uni.getStorageSync('sendMsg')) {
  1410. uni.requestSubscribeMessage({
  1411. tmplIds: this.arr,
  1412. success(re) {
  1413. // console.log(re,'**********')
  1414. var datas = JSON.stringify(re)
  1415. if (datas.indexOf('accept') != -1) {
  1416. console.log(re)
  1417. }
  1418. },
  1419. fail: (res) => {
  1420. console.log(res)
  1421. }
  1422. })
  1423. }
  1424. // #endif
  1425. console.log(indentNumber, orderId)
  1426. uni.navigateTo({
  1427. url: '/pages/index/orderdetail/orderdetail?orderId=' + orderId + '&id=' + indentNumber
  1428. })
  1429. },
  1430. //转单
  1431. zhuanOrder(indentId) {
  1432. this.phone = ''
  1433. this.zhuanName = ''
  1434. this.indentId = indentId
  1435. this.showOrder = true
  1436. },
  1437. zhuandan() {
  1438. this.$Request
  1439. .postT('/app/tbindent/transferByOrderId', {
  1440. acquireCode: this.shoudanma,
  1441. phone: this.phone,
  1442. realName: this.zhuanName
  1443. })
  1444. .then((res) => {
  1445. if (res.code == 0) {
  1446. this.phone = ''
  1447. uni.showToast({
  1448. title: '转单成功',
  1449. icon: 'none'
  1450. })
  1451. setTimeout((d) => {
  1452. this.showOrder = false
  1453. this.sousuoList()
  1454. }, 1000)
  1455. } else {
  1456. uni.showToast({
  1457. title: res.msg,
  1458. icon: 'none'
  1459. })
  1460. }
  1461. })
  1462. },
  1463. // 取消订单
  1464. quxiao(indentNumber) {
  1465. // #ifdef MP-WEIXIN
  1466. if (uni.getStorageSync('sendMsg')) {
  1467. uni.requestSubscribeMessage({
  1468. tmplIds: this.arr,
  1469. success(re) {
  1470. // console.log(re,'**********')
  1471. var datas = JSON.stringify(re)
  1472. if (datas.indexOf('accept') != -1) {
  1473. console.log(re)
  1474. }
  1475. },
  1476. fail: (res) => {
  1477. console.log(res)
  1478. }
  1479. })
  1480. }
  1481. // #endif
  1482. let that = this
  1483. uni.showModal({
  1484. title: '提示',
  1485. content: '取消订单将会被扣保证金',
  1486. success: function (res) {
  1487. if (res.confirm) {
  1488. uni.showLoading({
  1489. title: '加载中',
  1490. mask: true // 是否显示透明蒙层,防止触摸穿透
  1491. })
  1492. console.log('用户点击确定')
  1493. that.$Request
  1494. .postT('/app/tbindent/riderCancleIndent', {
  1495. indentNumber: indentNumber
  1496. })
  1497. .then((res) => {
  1498. console.log(res)
  1499. if (res.code == 0) {
  1500. uni.showToast({
  1501. title: '订单已取消',
  1502. icon: 'none'
  1503. })
  1504. // 在toast显示2000毫秒(2秒)后执行操作
  1505. setTimeout(function () {
  1506. that.sousuoList()
  1507. }, 1200)
  1508. // that.taskDataJ()
  1509. } else {
  1510. uni.showToast({
  1511. title: res.msg,
  1512. icon: 'none'
  1513. })
  1514. // that.taskDataJ()
  1515. }
  1516. // 加载提示关闭
  1517. uni.hideLoading()
  1518. })
  1519. } else if (res.cancel) {
  1520. console.log('用户点击取消')
  1521. }
  1522. }
  1523. })
  1524. },
  1525. // quhuo(indentId,index) {
  1526. // let that = this
  1527. // // #ifdef MP-WEIXIN
  1528. // if (uni.getStorageSync('sendMsg')) {
  1529. // uni.requestSubscribeMessage({
  1530. // tmplIds: this.arr,
  1531. // success(re) {
  1532. // // console.log(re,'**********')
  1533. // var datas = JSON.stringify(re);
  1534. // if (datas.indexOf("accept") != -1) {
  1535. // console.log(re)
  1536. // }
  1537. // },
  1538. // fail: (res) => {
  1539. // console.log(res)
  1540. // }
  1541. // })
  1542. // }
  1543. // // #endif
  1544. // uni.showModal({
  1545. // title: '提示',
  1546. // content: '确认到取货吗',
  1547. // success: function(res) {
  1548. // if (res.confirm) {
  1549. // uni.showLoading({
  1550. // title: '加载中',
  1551. // mask: true, // 是否显示透明蒙层,防止触摸穿透
  1552. // });
  1553. // that.$Request.postJson('/app/tbindent/riderBuyGoods', {
  1554. // indentId: indentId,
  1555. // indentState: '4'
  1556. // }).then(res => {
  1557. // console.log(res)
  1558. // if (res.code == 0) {
  1559. // uni.showToast({
  1560. // title: '确认取货成功',
  1561. // icon: "none"
  1562. // });
  1563. // // that.indentState = 4
  1564. // setTimeout(function() {
  1565. // //刷新当前列,不返回分页的第一条
  1566. // that.lists.splice(index,1);
  1567. // // that.taskDataJ()
  1568. // // that.current = 2
  1569. // }, 1000)
  1570. // } else {
  1571. // uni.showToast({
  1572. // title: res.msg,
  1573. // icon: "none"
  1574. // });
  1575. // setTimeout(function() {
  1576. // // that.taskDataJ()
  1577. // // that.current = 2
  1578. // }, 1000)
  1579. // }
  1580. // // 加载提示关闭
  1581. // uni.hideLoading()
  1582. // });
  1583. // } else {
  1584. // }
  1585. // },
  1586. // })
  1587. // },
  1588. //拍照
  1589. paiOrder(e) {
  1590. this.indentNumber = e.indentNumber
  1591. this.orderId = e.orderId
  1592. this.alertPhone = true
  1593. },
  1594. shouhuo(e) {
  1595. this.indentNumber = e.indentNumber
  1596. this.saomaPeisong = false
  1597. // if(e.indentType==5){
  1598. // this.querenSh()
  1599. // }
  1600. if (e.itemCodeFlag == 0 && e.indentType != 5) {
  1601. this.shows = true
  1602. } else {
  1603. this.orderId = e.orderId
  1604. this.querenduanxinList()
  1605. //需拍照的弹出框
  1606. this.alertduan = true
  1607. // this.querenSh()
  1608. }
  1609. },
  1610. // 图片上传
  1611. addImages(e) {
  1612. uni.showLoading({
  1613. title: '加载中',
  1614. mask: true // 是否显示透明蒙层,防止触摸穿透
  1615. })
  1616. if (e == 1) {
  1617. var num = this.goodsPicture.length
  1618. this.count = 2 - num
  1619. }
  1620. let that = this
  1621. uni.chooseImage({
  1622. count: this.count,
  1623. sourceType: ['camera', 'album'],
  1624. success: (res) => {
  1625. for (let i = 0; i < res.tempFiles.length; i++) {
  1626. //这里的id和页面中写的html代码的canvas的id要一致
  1627. let canvasId = 'zipCanvas'
  1628. //原图的路径
  1629. let imagePath = res.tempFiles[i].path
  1630. //大小限制
  1631. let limitSize = 1024 * 2
  1632. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  1633. let drawWidth = uni.getSystemInfoSync().windowWidth
  1634. let that = this
  1635. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
  1636. uni.showLoading({
  1637. title: '上传中'
  1638. })
  1639. uni.uploadFile({
  1640. url: that.config('APIHOST1') + '/alioss/upload',
  1641. filePath: resPath,
  1642. name: 'file',
  1643. success: (uploadFileRes) => {
  1644. if (e == 1) {
  1645. if (that.goodsPicture.length < 2) {
  1646. that.goodsPicture.push(JSON.parse(uploadFileRes.data).data)
  1647. }
  1648. }
  1649. uni.hideLoading()
  1650. },
  1651. fail: () => {
  1652. uni.showToast({
  1653. title: '上传失败',
  1654. icon: 'error'
  1655. })
  1656. }
  1657. })
  1658. })
  1659. }
  1660. }
  1661. })
  1662. },
  1663. // 图片删除
  1664. removeImg(index, texts) {
  1665. if (texts == 'lb') {
  1666. this.goodsPicture.splice(index, 1)
  1667. }
  1668. },
  1669. config: function (name) {
  1670. var info = null
  1671. if (name) {
  1672. var name2 = name.split('.') //字符分割
  1673. if (name2.length > 1) {
  1674. info = configdata[name2[0]][name2[1]] || null
  1675. } else {
  1676. info = configdata[name] || null
  1677. }
  1678. if (info == null) {
  1679. let web_config = cache.get('web_config')
  1680. if (web_config) {
  1681. if (name2.length > 1) {
  1682. info = web_config[name2[0]][name2[1]] || null
  1683. } else {
  1684. info = web_config[name] || null
  1685. }
  1686. }
  1687. }
  1688. }
  1689. return info
  1690. },
  1691. // 监听拍照框关闭
  1692. onclose() {
  1693. this.alertPhone = false
  1694. this.alertduan = false
  1695. this.goodsPicture = []
  1696. },
  1697. //确认上传图片
  1698. querenduanxin() {
  1699. uni.showLoading({
  1700. title: '加载中',
  1701. mask: true // 是否显示透明蒙层,防止触摸穿透
  1702. })
  1703. var tupian = this.goodsPicture.toString()
  1704. var indentNumber = this.indentNumber
  1705. this.$Request
  1706. .putT(`/app/tbindent/delivery-img/${indentNumber}`, {
  1707. userId: uni.getStorageSync('userId'),
  1708. // indentNumber:this.indentNumber,
  1709. imgs: tupian
  1710. })
  1711. .then((res) => {
  1712. console.log(res, 'img')
  1713. if (res.code == 0) {
  1714. this.alertPhone = false
  1715. uni.showToast({
  1716. title: '图片上传完成',
  1717. icon: 'none'
  1718. })
  1719. } else {
  1720. uni.showToast({
  1721. title: res.msg,
  1722. icon: 'none'
  1723. })
  1724. }
  1725. // 加载提示关闭
  1726. uni.hideLoading()
  1727. })
  1728. },
  1729. // 获取确认送达短信模板
  1730. querenduanxinList() {
  1731. uni.showLoading({
  1732. title: '加载中',
  1733. mask: true // 是否显示透明蒙层,防止触摸穿透
  1734. })
  1735. // this.$Request.postT('/app/tb-indent-sms/template', {
  1736. this.$Request
  1737. .getT('/app/tb-indent-sms/template', {
  1738. // indentNumber: this.indentNumber,
  1739. // itemCode: this.shouhuoma
  1740. })
  1741. .then((res) => {
  1742. console.log(res)
  1743. this.duanxin = res.data.list
  1744. if (res.code == 0) {
  1745. this.page2 = 1
  1746. this.page3 = 1
  1747. // this.alertPhone = false
  1748. this.alertduan = true
  1749. } else {
  1750. uni.showToast({
  1751. title: res.msg,
  1752. icon: 'none'
  1753. })
  1754. }
  1755. // 加载提示关闭
  1756. uni.hideLoading()
  1757. })
  1758. },
  1759. querenSh() {
  1760. // #ifdef MP-WEIXIN
  1761. if (uni.getStorageSync('sendMsg')) {
  1762. uni.requestSubscribeMessage({
  1763. tmplIds: this.arr,
  1764. success(re) {
  1765. // console.log(re,'**********')
  1766. var datas = JSON.stringify(re)
  1767. if (datas.indexOf('accept') != -1) {
  1768. console.log(re)
  1769. }
  1770. },
  1771. fail: (res) => {
  1772. console.log(res)
  1773. }
  1774. })
  1775. }
  1776. // #endif
  1777. let that = this
  1778. // var date = new Date();
  1779. // var year = date.getFullYear();
  1780. // let Rcode = year + that.shouhuoma
  1781. // that.$Request.postT('/app/tbindent/riderDelivery', {
  1782. uni.showLoading({
  1783. title: '加载中',
  1784. mask: true // 是否显示透明蒙层,防止触摸穿透
  1785. })
  1786. this.$Request
  1787. .postJson('/app/tbindent/orderRiderDelivery', {
  1788. smsTemplateId: that.duanxin[0].id,
  1789. // indentNumber: that.indentNumber,
  1790. acquireCode: that.shoudanma
  1791. // imgs:'',
  1792. // itemCode: Rcode
  1793. // itemCode: that.shouhuoma
  1794. })
  1795. .then((res) => {
  1796. console.log(res)
  1797. that.shouhuoma = ''
  1798. if (res.code == 0) {
  1799. uni.showToast({
  1800. title: '订单完成',
  1801. icon: 'none'
  1802. })
  1803. // 在toast显示2000毫秒(2秒)后执行操作
  1804. setTimeout(function () {
  1805. that.alertduan = false
  1806. that.shows = false
  1807. that.list_box = []
  1808. that.sousuoList()
  1809. }, 1200)
  1810. } else {
  1811. uni.showToast({
  1812. title: res.msg,
  1813. icon: 'none'
  1814. })
  1815. // 在toast显示2000毫秒(2秒)后执行操作
  1816. setTimeout(function () {
  1817. that.sousuoList()
  1818. }, 1200)
  1819. }
  1820. // 加载提示关闭
  1821. uni.hideLoading()
  1822. })
  1823. },
  1824. // 开启订阅消息
  1825. openMsg() {
  1826. console.log('订阅消息')
  1827. var that = this
  1828. uni.getSetting({
  1829. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1830. success(ret) {
  1831. console.log(ret.subscriptionsSetting, '------------------')
  1832. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1833. if (ret.subscriptionsSetting.itemSettings) {
  1834. uni.setStorageSync('sendMsg', true)
  1835. uni.openSetting({
  1836. // 打开设置页
  1837. success(rea) {
  1838. console.log(rea.authSetting)
  1839. }
  1840. })
  1841. } else {
  1842. // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1843. uni.setStorageSync('sendMsg', false)
  1844. uni.showModal({
  1845. title: '提示',
  1846. content: '为了更好的体验,请绑定消息推送',
  1847. confirmText: '确定',
  1848. cancelText: '取消',
  1849. success: function (res) {
  1850. if (res.confirm) {
  1851. wx.requestSubscribeMessage({
  1852. tmplIds: that.arr,
  1853. success(re) {
  1854. var datas = JSON.stringify(re)
  1855. if (datas.indexOf('accept') != -1) {
  1856. console.log(re)
  1857. // uni.setStorageSync('sendMsg', true)
  1858. }
  1859. },
  1860. fail: (res) => {
  1861. console.log(res)
  1862. }
  1863. })
  1864. // uni.setStorageSync('sendMsg', true)
  1865. that.showModal111 = false
  1866. } else if (res.cancel) {
  1867. console.log('取消')
  1868. // uni.setStorageSync('sendMsg', false)
  1869. that.showModal111 = true
  1870. }
  1871. }
  1872. })
  1873. }
  1874. }
  1875. })
  1876. }
  1877. },
  1878. // 上拉加载
  1879. onReachBottom: function () {
  1880. if (this.list_box.length < this.totalCount2) {
  1881. this.page2 = this.page2 + 1
  1882. // this.indentState = 4
  1883. this.sousuoList()
  1884. } else {
  1885. uni.showToast({
  1886. title: '已经最后一页啦',
  1887. icon: 'none'
  1888. })
  1889. }
  1890. },
  1891. onPullDownRefresh: function () {
  1892. this.page2 = 1
  1893. this.sousuoList()
  1894. }
  1895. }
  1896. </script>
  1897. <style>
  1898. body {
  1899. background: #f5f5f5;
  1900. }
  1901. .privacy {
  1902. position: fixed;
  1903. top: 0;
  1904. right: 0;
  1905. bottom: 0;
  1906. left: 0;
  1907. background: rgba(0, 0, 0, 0.5);
  1908. z-index: 9999999;
  1909. display: flex;
  1910. align-items: center;
  1911. justify-content: center;
  1912. }
  1913. .contentview {
  1914. width: 632rpx;
  1915. padding: 48rpx;
  1916. box-sizing: border-box;
  1917. background: #fff;
  1918. border-radius: 16rpx;
  1919. }
  1920. .contentview .title {
  1921. text-align: center;
  1922. color: #333;
  1923. font-weight: bold;
  1924. font-size: 32rpx;
  1925. }
  1926. .contentview .des {
  1927. font-size: 26rpx;
  1928. color: #666;
  1929. margin-top: 40rpx;
  1930. text-align: justify;
  1931. line-height: 1.6;
  1932. }
  1933. .contentview .des .link {
  1934. color: #07c160;
  1935. text-decoration: underline;
  1936. }
  1937. button::after {
  1938. border: none;
  1939. }
  1940. .btns {
  1941. margin-top: 48rpx;
  1942. display: flex;
  1943. }
  1944. .btns .item {
  1945. justify-content: space-between;
  1946. width: 244rpx;
  1947. height: 80rpx;
  1948. display: flex;
  1949. align-items: center;
  1950. justify-content: center;
  1951. border-radius: 16rpx;
  1952. box-sizing: border-box;
  1953. border: none;
  1954. }
  1955. .btns .reject {
  1956. background: #f4f4f5;
  1957. color: #909399;
  1958. }
  1959. .btns .agree {
  1960. background: #07c160;
  1961. color: #fff;
  1962. }
  1963. .impute {
  1964. text-align: center;
  1965. margin-left: 4%;
  1966. margin-top: 20rpx;
  1967. width: 690rpx;
  1968. height: 100rpx;
  1969. opacity: 1;
  1970. border-radius: 190rpx;
  1971. background: rgba(245, 245, 245, 1);
  1972. border: 1rpx solid rgba(241, 135, 49, 1);
  1973. }
  1974. /* 返回 */
  1975. .box_btn5 {
  1976. margin-top: 10rpx;
  1977. width: 16%;
  1978. margin-left: 40rpx;
  1979. background: #ff7f00;
  1980. height: 60rpx;
  1981. color: white;
  1982. text-align: center;
  1983. line-height: 60rpx;
  1984. font-size: 31rpx;
  1985. letter-spacing: 2rpx;
  1986. border-radius: 8rpx;
  1987. }
  1988. .content {
  1989. margin-top: 50rpx;
  1990. min-height: 100vh; /* 设置最小高度为视口高度 */
  1991. }
  1992. .slot-wrap {
  1993. display: flex;
  1994. justify-content: center;
  1995. align-items: center;
  1996. /* 如果您想让slot内容占满整个导航栏的宽度 */
  1997. /* flex: 1; */
  1998. /* 如果您想让slot内容与导航栏左右有空隙 */
  1999. /* padding: 0 30rpx; */
  2000. }
  2001. .u-title {
  2002. color: #000000 !important;
  2003. font-size: 31rpx !important;
  2004. font-weight: bold !important;
  2005. }
  2006. .solt {
  2007. position: relative;
  2008. }
  2009. .slot_left {
  2010. width: 60rpx;
  2011. height: 60rpx;
  2012. position: absolute;
  2013. top: 15rpx;
  2014. left: 20rpx;
  2015. }
  2016. .slot_left image {
  2017. width: 60rpx;
  2018. height: 60rpx;
  2019. }
  2020. .slot_content {
  2021. width: 35rpx;
  2022. height: 35rpx;
  2023. position: absolute;
  2024. top: 26rpx;
  2025. left: 280rpx;
  2026. }
  2027. .slot_content image {
  2028. width: 35rpx;
  2029. height: 35rpx;
  2030. }
  2031. /* tabs */
  2032. .u-tab-item {
  2033. color: #333333 !important;
  2034. /* font-size: 26rpx !important; */
  2035. letter-spacing: 2rpx;
  2036. }
  2037. .u-tab-bar {
  2038. width: 65rpx !important;
  2039. height: 8rpx !important;
  2040. background-color: #ff7f00 !important;
  2041. border-radius: 0rpx !important;
  2042. position: absolute !important;
  2043. bottom: 0rpx !important;
  2044. left: -14rpx !important;
  2045. }
  2046. .tabs_box {
  2047. display: none;
  2048. padding-bottom: 120rpx;
  2049. }
  2050. .dis {
  2051. display: block;
  2052. width: 100%;
  2053. margin-bottom: 190rpx;
  2054. }
  2055. .list_box1 {
  2056. width: 90%;
  2057. margin: 0 auto;
  2058. height: auto;
  2059. background: #ffffff;
  2060. border-radius: 23rpx;
  2061. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  2062. margin-top: 20rpx;
  2063. padding-bottom: 20rpx;
  2064. }
  2065. .list_box {
  2066. width: 90%;
  2067. margin: 0 auto;
  2068. height: auto;
  2069. background: #ffffff;
  2070. border-radius: 23rpx;
  2071. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(0, 0, 0, 0.25);
  2072. margin-top: 20rpx;
  2073. padding-bottom: 20rpx;
  2074. }
  2075. .list_box2 {
  2076. width: 90%;
  2077. margin: 0 auto;
  2078. height: auto;
  2079. background: #ffffff;
  2080. border-radius: 23rpx;
  2081. box-shadow: 0rpx 5rpx 5rpx 0rpx rgba(198, 186, 181, 0.2);
  2082. margin-top: 20rpx;
  2083. }
  2084. .order_title {
  2085. width: 90%;
  2086. margin: 0 auto;
  2087. border-radius: 14px 14px, 0px, 0px;
  2088. background: rgba(255, 239, 222, 1);
  2089. height: 40upx;
  2090. color: rgba(255, 141, 26, 1);
  2091. font-size: 24upx;
  2092. line-height: 40upx;
  2093. text-align: center;
  2094. }
  2095. .part1 {
  2096. width: 90%;
  2097. margin: 0 auto;
  2098. justify-content: left;
  2099. align-items: center;
  2100. display: flex;
  2101. height: 100rpx;
  2102. position: relative;
  2103. }
  2104. .box_one {
  2105. background: #c4e2ff;
  2106. color: #359cff;
  2107. /* width: 60px;
  2108. height: 45rpx; */
  2109. padding: 0px 10px;
  2110. font-size: 26rpx;
  2111. text-align: center;
  2112. line-height: 45rpx;
  2113. border-radius: 5rpx;
  2114. }
  2115. .box_four {
  2116. color: #666666;
  2117. border: 1rpx solid #666666;
  2118. font-size: 22rpx;
  2119. width: 95px;
  2120. height: 40rpx;
  2121. text-align: center;
  2122. line-height: 40rpx;
  2123. border-radius: 5rpx;
  2124. margin-left: 20rpx;
  2125. }
  2126. .box_two {
  2127. color: #666666;
  2128. border: 1rpx solid #666666;
  2129. font-size: 22rpx;
  2130. /* width: 60px; */
  2131. height: 40rpx;
  2132. text-align: center;
  2133. line-height: 40rpx;
  2134. border-radius: 5rpx;
  2135. margin-left: 20rpx;
  2136. padding: 0 10rpx;
  2137. }
  2138. .box_two1 {
  2139. width: auto;
  2140. padding: 0 10rpx;
  2141. }
  2142. .box_three {
  2143. color: #666666;
  2144. border: 1rpx solid #666666;
  2145. font-size: 22rpx;
  2146. width: 75px;
  2147. height: 40rpx;
  2148. text-align: center;
  2149. line-height: 40rpx;
  2150. border-radius: 5rpx;
  2151. margin-left: 20rpx;
  2152. }
  2153. .part2 {
  2154. width: 90%;
  2155. margin: 0 auto;
  2156. }
  2157. /* 下线 */
  2158. .address_name {
  2159. font-size: 28rpx;
  2160. font-weight: bold;
  2161. letter-spacing: 2rpx;
  2162. /* line-height: 60rpx; */
  2163. display: -webkit-box;
  2164. -webkit-box-orient: vertical;
  2165. -webkit-line-clamp: 1;
  2166. overflow: hidden;
  2167. }
  2168. .name {
  2169. color: #999999;
  2170. font-size: 21rpx;
  2171. }
  2172. .name text {
  2173. /* margin-left: 10rpx; */
  2174. }
  2175. /* 上线 */
  2176. .box_add {
  2177. display: flex;
  2178. }
  2179. .distance {
  2180. flex: 1;
  2181. /* text-align: center; */
  2182. font-size: 28rpx;
  2183. display: flex;
  2184. justify-content: left;
  2185. align-items: center;
  2186. }
  2187. .a {
  2188. font-size: 16rpx;
  2189. }
  2190. .add_name {
  2191. /* display: flex; */
  2192. flex: 4;
  2193. }
  2194. .sh_name {
  2195. font-size: 28rpx;
  2196. font-weight: bold;
  2197. letter-spacing: 2rpx;
  2198. }
  2199. .sh_name1 {
  2200. font-size: 28rpx;
  2201. font-weight: bold;
  2202. letter-spacing: 2rpx;
  2203. color: #999999;
  2204. }
  2205. .xs_add {
  2206. color: #999999;
  2207. font-size: 21rpx;
  2208. margin-top: 10rpx;
  2209. }
  2210. .jiantou {
  2211. margin-left: 43rpx;
  2212. display: flex;
  2213. /* justify-content: space-between; */
  2214. align-items: center;
  2215. height: 40px;
  2216. line-height: 40px;
  2217. }
  2218. .jiantou image {
  2219. width: 20rpx;
  2220. height: 40rpx;
  2221. }
  2222. .jiantou > view {
  2223. margin-left: 10rpx;
  2224. }
  2225. .part3 {
  2226. width: 90%;
  2227. margin: 0 auto;
  2228. display: flex;
  2229. }
  2230. .three_left {
  2231. flex: 1;
  2232. height: 100rpx;
  2233. display: flex;
  2234. justify-content: left;
  2235. align-items: center;
  2236. }
  2237. .three_left image {
  2238. width: 20px;
  2239. height: 20px;
  2240. }
  2241. .three_left text {
  2242. color: #ff7f00;
  2243. font-size: 25rpx;
  2244. margin-left: 10rpx;
  2245. }
  2246. .three_right {
  2247. /* flex: 1; */
  2248. height: 100rpx;
  2249. display: flex;
  2250. justify-content: flex-end;
  2251. align-items: center;
  2252. color: #ff7f00;
  2253. font-size: 32rpx;
  2254. font-weight: bold;
  2255. }
  2256. .part4 {
  2257. width: 90%;
  2258. margin: 0 auto;
  2259. }
  2260. .box_btn {
  2261. width: 100%;
  2262. background: #cccccc;
  2263. height: 70rpx;
  2264. color: white;
  2265. text-align: center;
  2266. line-height: 70rpx;
  2267. font-size: 26rpx;
  2268. letter-spacing: 2rpx;
  2269. border-radius: 8rpx;
  2270. }
  2271. .box_btn1 {
  2272. width: 100%;
  2273. background: #ff7f00;
  2274. height: 80rpx;
  2275. color: white;
  2276. text-align: center;
  2277. line-height: 80rpx;
  2278. font-size: 31rpx;
  2279. letter-spacing: 2rpx;
  2280. border-radius: 8rpx;
  2281. }
  2282. .part_six {
  2283. width: 90%;
  2284. margin: 0 auto;
  2285. display: flex;
  2286. }
  2287. .phone {
  2288. flex: 1;
  2289. }
  2290. .phone image {
  2291. width: 29rpx;
  2292. height: 33rpx;
  2293. margin-left: 30rpx;
  2294. }
  2295. .conmm {
  2296. font-size: 19rpx;
  2297. text-align: center;
  2298. letter-spacing: 5rpx;
  2299. }
  2300. .box_btn2 {
  2301. flex: 5;
  2302. width: 100%;
  2303. background: #ff7f00;
  2304. height: 70rpx;
  2305. color: white;
  2306. text-align: center;
  2307. line-height: 70rpx;
  2308. font-size: 26rpx;
  2309. letter-spacing: 2rpx;
  2310. border-radius: 6rpx;
  2311. }
  2312. /* tabbar */
  2313. .tabbar {
  2314. position: fixed;
  2315. bottom: 0rpx;
  2316. left: 0rpx;
  2317. right: 0rpx;
  2318. width: 100%;
  2319. height: 100rpx;
  2320. background: #ffffff;
  2321. display: flex;
  2322. }
  2323. .tabbar_type {
  2324. flex: 1;
  2325. text-align: center;
  2326. font-size: 22rpx;
  2327. margin-top: 10rpx;
  2328. }
  2329. .type_image {
  2330. width: 100%;
  2331. display: flex;
  2332. justify-content: center;
  2333. align-items: center;
  2334. }
  2335. .type_image image {
  2336. width: 47rpx;
  2337. height: 47rpx;
  2338. }
  2339. .tabbar_btn {
  2340. flex: 4;
  2341. display: flex;
  2342. justify-content: center;
  2343. align-items: center;
  2344. }
  2345. .btn {
  2346. width: 90%;
  2347. height: 80rpx;
  2348. background: #ff7f00;
  2349. color: white;
  2350. text-align: center;
  2351. line-height: 80rpx;
  2352. font-size: 26rpx;
  2353. letter-spacing: 2rpx;
  2354. border-radius: 8rpx;
  2355. }
  2356. .btn3 {
  2357. width: 90%;
  2358. height: 80rpx;
  2359. background: #cccccc;
  2360. color: white;
  2361. text-align: center;
  2362. line-height: 80rpx;
  2363. font-size: 26rpx;
  2364. letter-spacing: 2rpx;
  2365. border-radius: 8rpx;
  2366. }
  2367. /* 接单设置弹框 */
  2368. .u-drawer-bottom {
  2369. background-color: #f5f5f5 !important;
  2370. }
  2371. .popup_box {
  2372. width: 90%;
  2373. margin: 0 auto;
  2374. margin-top: 35rpx;
  2375. }
  2376. .title {
  2377. font-size: 29rpx;
  2378. font-weight: bold;
  2379. letter-spacing: 2rpx;
  2380. }
  2381. .part_one {
  2382. width: 100%;
  2383. background: #ffffff;
  2384. margin-top: 18rpx;
  2385. border-radius: 20rpx;
  2386. display: flex;
  2387. height: 120rpx;
  2388. }
  2389. .left {
  2390. flex: 3;
  2391. line-height: 40rpx;
  2392. margin-left: 20rpx;
  2393. margin-top: 20rpx;
  2394. }
  2395. .gotype {
  2396. font-size: 26rpx;
  2397. font-weight: bold;
  2398. letter-spacing: 2rpx;
  2399. }
  2400. .tit {
  2401. color: #999999;
  2402. font-size: 22rpx;
  2403. letter-spacing: 2rpx;
  2404. }
  2405. .right {
  2406. flex: 1;
  2407. display: flex;
  2408. justify-content: flex-end;
  2409. align-items: center;
  2410. margin-right: 30rpx;
  2411. }
  2412. .part_two {
  2413. width: 100%;
  2414. margin: 0 auto;
  2415. background: #ffffff;
  2416. border-radius: 20rpx;
  2417. margin-top: 20rpx;
  2418. height: 130rpx;
  2419. display: flex;
  2420. }
  2421. .two_left {
  2422. flex: 1;
  2423. display: flex;
  2424. justify-content: left;
  2425. align-items: center;
  2426. margin-left: 30rpx;
  2427. font-size: 29rpx;
  2428. font-weight: bold;
  2429. letter-spacing: 2rpx;
  2430. }
  2431. .two_right {
  2432. flex: 1;
  2433. display: flex;
  2434. justify-content: flex-end;
  2435. align-items: center;
  2436. margin-right: 30rpx;
  2437. color: #999999;
  2438. font-size: 25rpx;
  2439. letter-spacing: 2rpx;
  2440. }
  2441. .slot-content {
  2442. padding: 30rpx;
  2443. }
  2444. /* */
  2445. .tabs_box {
  2446. display: none;
  2447. }
  2448. .dis {
  2449. display: block;
  2450. width: 100%;
  2451. }
  2452. .u-tab-item {
  2453. /* font-size: 26upx !important; */
  2454. /* color: #666666 !important; */
  2455. }
  2456. .success_box {
  2457. width: 100%;
  2458. }
  2459. .order_box {
  2460. width: 90%;
  2461. margin: 0 auto;
  2462. /* height: 420rpx; */
  2463. background: #ffffff;
  2464. margin-top: 20rpx;
  2465. border-radius: 16px;
  2466. }
  2467. .order_success {
  2468. width: 90%;
  2469. margin: 0 auto;
  2470. display: flex;
  2471. height: 80upx;
  2472. }
  2473. .order_name {
  2474. flex: 1;
  2475. display: flex;
  2476. justify-content: left;
  2477. align-items: center;
  2478. font-weight: bold;
  2479. font-size: 29rpx;
  2480. letter-spacing: 1upx;
  2481. }
  2482. .order_data {
  2483. flex: 1;
  2484. color: #999999;
  2485. display: flex;
  2486. justify-content: flex-end;
  2487. align-items: center;
  2488. font-size: 26rpx;
  2489. }
  2490. .city_type {
  2491. width: 90%;
  2492. margin: 0 auto;
  2493. height: 60upx;
  2494. line-height: 60upx;
  2495. display: flex;
  2496. justify-content: left;
  2497. align-items: center;
  2498. }
  2499. .type_name {
  2500. font-size: 27rpx;
  2501. }
  2502. .city_text {
  2503. width: 70rpx;
  2504. line-height: 36rpx;
  2505. color: #49a5ff;
  2506. background: #c4e2ff;
  2507. text-align: center;
  2508. font-size: 19rpx;
  2509. margin-left: 20rpx;
  2510. }
  2511. .city_address {
  2512. width: 92%;
  2513. margin: 0 auto;
  2514. margin-top: -10rpx;
  2515. }
  2516. /* 发货地址 */
  2517. .fh_box {
  2518. display: flex;
  2519. /* height: 80upx; */
  2520. margin-top: 20upx;
  2521. }
  2522. .fh_image {
  2523. flex: 1;
  2524. display: flex;
  2525. /* justify-content: left;
  2526. align-items: center; */
  2527. }
  2528. .box {
  2529. flex: 9;
  2530. }
  2531. .fh_name {
  2532. font-size: 26rpx;
  2533. font-weight: 600;
  2534. letter-spacing: 2upx;
  2535. }
  2536. .fh_type {
  2537. color: #999999;
  2538. font-size: 22upx;
  2539. }
  2540. .fh_type text {
  2541. margin-left: 20upx;
  2542. }
  2543. /* 送货地址 */
  2544. .sh_box {
  2545. display: flex;
  2546. margin-bottom: 14upx;
  2547. margin-top: 14rpx;
  2548. }
  2549. .sh_image {
  2550. flex: 1;
  2551. display: flex;
  2552. /* justify-content: left;
  2553. align-items: center; */
  2554. }
  2555. .sh_name {
  2556. font-size: 28rpx;
  2557. font-weight: 600;
  2558. letter-spacing: 2upx;
  2559. }
  2560. .sh_type {
  2561. color: #999999;
  2562. font-size: 22upx;
  2563. }
  2564. .sh_type text {
  2565. margin-left: 20upx;
  2566. }
  2567. .fh_image image {
  2568. width: 40rpx;
  2569. height: 40rpx;
  2570. }
  2571. .sh_image image {
  2572. width: 40rpx;
  2573. height: 40rpx;
  2574. }
  2575. .order_btn {
  2576. display: flex;
  2577. justify-content: flex-end;
  2578. align-items: center;
  2579. height: 100upx;
  2580. line-height: 100upx;
  2581. /* margin-top: 8upx; */
  2582. }
  2583. .btn1 {
  2584. width: 170upx;
  2585. font-size: 28rpx;
  2586. line-height: 60upx;
  2587. text-align: center;
  2588. border: 1upx solid #9c9c9c;
  2589. border-radius: 20upx;
  2590. color: #9c9c9c;
  2591. margin-right: 30upx;
  2592. }
  2593. /* 拍照 */
  2594. .btn_pai {
  2595. width: 150rpx;
  2596. height: 60rpx;
  2597. line-height: 60rpx;
  2598. text-align: center;
  2599. background: rgba(255, 201, 189, 1);
  2600. font-size: 28rpx;
  2601. border: 2rpx solid rgba(255, 201, 189, 1);
  2602. color: #333333;
  2603. border-radius: 20upx;
  2604. font-weight: 700;
  2605. margin-left: 15rpx;
  2606. }
  2607. .btn2 {
  2608. width: 170upx;
  2609. line-height: 60upx;
  2610. color: white;
  2611. background: #ff6a04;
  2612. font-size: 28rpx;
  2613. text-align: center;
  2614. margin-right: 30upx;
  2615. border-radius: 20upx;
  2616. }
  2617. /* 收货码弹框 */
  2618. .receipt_code {
  2619. width: 90%;
  2620. margin: 0 auto;
  2621. }
  2622. .code_title {
  2623. width: 100%;
  2624. line-height: 100rpx;
  2625. font-size: 31rpx;
  2626. font-weight: bold;
  2627. text-align: center;
  2628. letter-spacing: 2rpx;
  2629. margin-top: 21rpx;
  2630. margin-bottom: 25rpx;
  2631. }
  2632. .u-input--border {
  2633. border: 1px solid #f2f2f2 !important;
  2634. background: #f2f2f2 !important;
  2635. color: #999999 !important;
  2636. font-weight: 500 !important;
  2637. letter-spacing: 2rpx !important;
  2638. }
  2639. .u-input__input {
  2640. font-size: 30rpx;
  2641. font-weight: bold;
  2642. flex: 1;
  2643. color: #999999 !important;
  2644. min-height: 85rpx !important;
  2645. margin-top: 7rpx;
  2646. }
  2647. .sure {
  2648. width: 100%;
  2649. height: 80rpx;
  2650. background: #ff7f00;
  2651. color: white;
  2652. border-radius: 46rpx;
  2653. text-align: center;
  2654. line-height: 80rpx;
  2655. margin-top: 30rpx;
  2656. letter-spacing: 2rpx;
  2657. }
  2658. /* 确认送达拍照框 */
  2659. .phone_title {
  2660. margin-top: 10px;
  2661. width: 100%;
  2662. height: 40px;
  2663. /* background-color: #FF7F00; */
  2664. text-align: center;
  2665. line-height: 40px;
  2666. /* color:#FFFFFF; */
  2667. }
  2668. .phone_title2 {
  2669. margin-top: 10px;
  2670. text-align: center;
  2671. color: #9d9d9d;
  2672. }
  2673. .code_title2 {
  2674. width: 100%;
  2675. line-height: 50rpx;
  2676. text-align: center;
  2677. letter-spacing: 2rpx;
  2678. margin-top: 21rpx;
  2679. margin-bottom: 25rpx;
  2680. }
  2681. </style>