luma.vue 76 KB

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