luma.vue 76 KB

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