pay.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  1. <template>
  2. <view class="order_details">
  3. <!-- 待支付 -->
  4. <view class="part_one">
  5. <view>
  6. <!-- 订单状态 -->
  7. <view class="rider_order" v-if="orderDetails.indentState == 0">待付款</view>
  8. <view class="rider_order"
  9. v-if="orderDetails.indentState == 1||orderDetails.indentState ==8||orderDetails.indentState ==9||orderDetails.indentState ==10">
  10. 已取消</view>
  11. <view class="rider_order" v-if="orderDetails.indentState == 2">待接单</view>
  12. <view class="rider_order" v-if="orderDetails.indentState == 3||orderDetails.indentState ==4">派送中</view>
  13. <view class="rider_order"
  14. v-if="orderDetails.indentState ==5||orderDetails.indentState ==6||orderDetails.indentState ==7">已完成
  15. </view>
  16. <!-- 订单提示状态 -->
  17. <view class="rider_tit" v-if="orderDetails.indentState == 2">请耐心等待骑手接单...</view>
  18. <view class="rider_tit" v-if="orderDetails.indentState == 0">请及时支付订单,否则将自动取消</view>
  19. <view class="rider_tit"
  20. v-if="orderDetails.indentState ==5||orderDetails.indentState ==6||orderDetails.indentState ==7">
  21. 写下您的评价感受吧!</view>
  22. <view class="rider_tit"
  23. v-if="orderDetails.indentState == 1||orderDetails.indentState ==8||orderDetails.indentState ==9||orderDetails.indentState ==10">
  24. 订单已被您取消</view>
  25. <view class="rider_tit" v-if="orderDetails.indentState == 3||orderDetails.indentState ==4">骑手已接单,尽快为您派送
  26. </view>
  27. <!-- 订单按钮状态 -->
  28. <!-- <view style="display: flex;justify-content: flex-end;margin-top: 30rpx;margin-right: 20rpx;">
  29. <view class="btn1" @tap.stop="bindcomment(item)"
  30. v-if="orderDetails.indentState == 5||orderDetails.indentState ==7">
  31. 去评论
  32. </view>
  33. <view class="btn1" v-if="orderDetails.indentState == 0||orderDetails.indentState == 2"
  34. @tap.stop="bindorderOff(orderDetails.indentNumber)">取消订单</view>
  35. <view class="btn1" @tap.stop="bindconfirm(item)" v-if="orderDetails.indentState == 6">确认订单</view>
  36. <view class="btn2" @tap.stop="bindorder(item)" v-if="orderDetails.indentState == 1||orderDetails.indentState == 3||orderDetails.indentState == 5||orderDetails.indentState ==8||
  37. orderDetails.indentState ==9||orderDetails.indentState ==10||orderDetails.indentState == 4">再来一单</view>
  38. <view class="btn2" v-if="orderDetails.indentState == 0" @tap.stop="bindorder(item)">立即付款</view>
  39. </view> -->
  40. </view>
  41. </view>
  42. <!-- 购买时间 -->
  43. <view class="five_box" style="padding: 30rpx 30rpx;">
  44. <text>预约时间</text>
  45. <text style="font-weight: bold;">{{orderDetails.sendOutTime}}</text>
  46. </view>
  47. <!-- 同城购买-->
  48. <view class="part_three" v-if="orderDetails.indentType == 3">
  49. <view class="city_pay">
  50. <view class="city_box">同城购买</view>
  51. <text v-if="orderDetails.buyType == 0">就近购买</text>
  52. <text v-else>指定购买</text>
  53. </view>
  54. <view class="pay_tit">{{orderDetails.productDetails}}</view>
  55. </view>
  56. <!-- 同城服务-->
  57. <view class="part_three" v-if="orderDetails.indentType == 4">
  58. <view class="city_pay">
  59. <view class="city_box">同城服务</view>
  60. <text>{{orderDetails.serviceType}}</text>
  61. </view>
  62. <view class="pay_tit">{{orderDetails.serviceDetails}}</view>
  63. </view>
  64. <!-- 骑手商家地址 -->
  65. <view class="part_four">
  66. <view class="city_pay" v-if="orderDetails.indentType !=3&&orderDetails.indentType !=4">
  67. <view class="city_box" v-if="orderDetails.indentType == 1">帮我送</view>
  68. <view class="city_box" v-if="orderDetails.indentType == 2">帮我取</view>
  69. <text>{{orderDetails.itemType}}</text>
  70. </view>
  71. <view v-if="orderDetails.indentType !=3&&orderDetails.indentType != 4">
  72. <u-line color="#F2F2F2" />
  73. </view>
  74. <!-- 发货地址 -->
  75. <view class="one_box" v-if="orderDetails.indentType != 4" style="margin-top: 30rpx;">
  76. <view class="box_dian">
  77. <image src="../../static/icon_f.png"></image>
  78. </view>
  79. <view class="box_addres">
  80. <view class="add">{{orderDetails.shopAddressDetail}}</view>
  81. <view class="num">
  82. <view class="name" v-if="orderDetails.indentType !=3">
  83. {{orderDetails.shopName}} <text>{{orderDetails.shopPhone}}</text>
  84. </view>
  85. <view class="name" v-else>暂无信息</view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 收获地址 -->
  90. <view class="one_box" style="margin-top: 20rpx;margin-bottom: 30rpx;">
  91. <view class="box_dian">
  92. <image src="../../static/icon_s.png"></image>
  93. </view>
  94. <view class="box_addres">
  95. <view class="add">{{orderDetails.userAddressDetail}}</view>
  96. <view class="num">
  97. <view class="name">
  98. {{orderDetails.userName}}<text>{{orderDetails.userPhone}}</text>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <u-line color="#F2F2F2" />
  104. <view class="address_pay">
  105. <view class="runing_pay">
  106. 预估跑腿费
  107. </view>
  108. <view class="runing_distance">
  109. <!-- <text v-if="orderDetails.distance">{{orderDetails.distance/1000}}公里</text> -->
  110. <text>¥{{orderDetails.indentBasicsMoney}}</text>
  111. </view>
  112. </view>
  113. </view>
  114. <!-- 收货码 -->
  115. <!-- <view class="five_box"> -->
  116. <view class="part_five" v-if="orderDetails.itemCode">
  117. <text>收货码</text>
  118. <text>{{orderDetails.itemCode}}</text>
  119. </view>
  120. <!-- 备注 -->
  121. <view class="part_five" v-if="orderDetails.remarks">
  122. <text>备注</text>
  123. <text>{{orderDetails.remarks}}</text>
  124. </view>
  125. <!-- </view> -->
  126. <!-- 订单信息 -->
  127. <view class="part_six">
  128. <view class="order_info">
  129. 订单信息
  130. </view>
  131. <view class="order_list">
  132. <view class="order_name">订单号码</view>
  133. <view class="order_nums">{{orderDetails.indentNumber}}</view>
  134. </view>
  135. <view class="order_list">
  136. <view class="order_name">下单时间</view>
  137. <view class="order_nums">{{orderDetails.createTime}}</view>
  138. </view>
  139. <view class="order_list">
  140. <view class="order_name">支付方式</view>
  141. <view class="order_nums">在线支付</view>
  142. </view>
  143. </view>
  144. <!-- 订单下单详情 -->
  145. <view class="part_seven">
  146. <view class="order_info">
  147. 费用明细
  148. </view>
  149. <view class="order_list">
  150. <view class="order_name">预估跑腿费</view>
  151. <view class="order_nums">¥{{orderDetails.indentBasicsMoney}}</view>
  152. </view>
  153. <view class="order_list" v-if="orderDetails.tip">
  154. <view class="order_name">小费</view>
  155. <view class="order_nums">¥{{orderDetails.tip}}</view>
  156. </view>
  157. <view class="order_list" v-if="orderDetails.redPacketAmount">
  158. <view class="order_name">红包</view>
  159. <view class="order_nums">-¥{{orderDetails.redPacketAmount}}</view>
  160. </view>
  161. <view class="order_list" v-if="orderDetails.prepayMoney">
  162. <view class="order_name">预付价格</view>
  163. <view class="order_nums">¥{{orderDetails.prepayMoney}}</view>
  164. </view>
  165. <view class="order_list" v-if="orderDetails.cargoInsurance">
  166. <view class="order_name">物品保价</view>
  167. <view class="order_nums">¥{{orderDetails.cargoInsurance}}</view>
  168. </view>
  169. <view class="order_list">
  170. <view class="order_name" style="color: black;font-size: 28rpx;">合计</view>
  171. <view class="order_nums" style="color: red;font-size: 28rpx;">{{orderDetails.indentMoney}}</view>
  172. </view>
  173. </view>
  174. <!-- <view class="pay_bt">
  175. <view style="font-size: 32rpx;">价格:¥<text>{{orderDetails.}}</text></view>
  176. <view class="btn2" @click="pay()">支付</view>
  177. </view> -->
  178. <view class="tabbar">
  179. <view class="tabbar_price">支付:
  180. <text>¥{{orderDetails.indentMoney}}</text>
  181. </view>
  182. <view class="tabbar_btn">
  183. <view class="but" @click="submit()">提交并支付</view>
  184. </view>
  185. </view>
  186. <u-popup v-model="showpay" mode="bottom" close-icon="close-circle" close-icon-pos="top-right"
  187. close-icon-color="#8f9298" close-icon-size="50">
  188. <view class="popup_pay">
  189. <view class="bg margin-top padding-lr radius">
  190. <view style="padding: 0 20upx;margin-top: 36rpx;">
  191. <view
  192. style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;justify-content: center;"
  193. v-for="(item,index) in openLists" :key='index'>
  194. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;">
  195. </image>
  196. <view style="font-size: 30upx;margin-left: 20upx;width: 70%;">
  197. {{item.text}}
  198. </view>
  199. <radio-group name="openWay" style="margin-left: 45rpx;" @tap='selectWay(item)'>
  200. <label class="tui-radio">
  201. <radio color="#FF7F00" :checked="openWay === item.id ? true : false" />
  202. </label>
  203. </radio-group>
  204. </view>
  205. </view>
  206. </view>
  207. <view class="pay_btns" @click="pay()">确认支付</view>
  208. </view>
  209. </u-popup>
  210. </view>
  211. </template>
  212. <script>
  213. export default {
  214. data() {
  215. return {
  216. orderDetails: '',
  217. openLists: [],
  218. showpay: false,
  219. openWay: 0,
  220. openLists: [],
  221. }
  222. },
  223. onLoad(data) {
  224. // #ifdef H5
  225. let ua = navigator.userAgent.toLowerCase();
  226. if (ua.indexOf('micromessenger') !== -1) {
  227. this.openLists = [{
  228. image: '../../static/icon_weixin.png',
  229. text: '微信',
  230. id: 2
  231. }];
  232. this.openWay = 2;
  233. } else {
  234. this.openLists = [{
  235. image: '../../static/zhifubao.png',
  236. text: '支付宝',
  237. id: 1
  238. }];
  239. this.openWay = 2;
  240. }
  241. // #endif
  242. // #ifdef APP-PLUS
  243. this.openLists = [{
  244. image: '../../static/zhifubao.png',
  245. text: '支付宝',
  246. id: 1
  247. }, {
  248. image: '../../static/icon_weixin.png',
  249. text: '微信',
  250. id: 2
  251. }];
  252. this.openWay = 2;
  253. // #endif
  254. // #ifdef MP-WEIXIN
  255. this.openLists = [{
  256. image: '../../static/icon_weixin.png',
  257. text: '微信',
  258. id: 2
  259. }];
  260. this.openWay = 2;
  261. // #endif
  262. console.log(data)
  263. this.indentNumber = data.indentNumber
  264. if (!data) {
  265. this.orderDetails = JSON.stringify(data.data)
  266. }
  267. // console.log(this.orderDetails)
  268. this.userList()
  269. },
  270. methods: {
  271. userList() {
  272. this.$Request.postT('/app/tbindent/userIndentMessage?indentNumber=' + this.indentNumber).then(res => {
  273. console.log(res)
  274. if (res.code == 0) {
  275. this.orderDetails = res.data
  276. }
  277. });
  278. },
  279. submit() {
  280. // #ifdef MP-WEIXIN
  281. this.openWay= 2
  282. this.pay()
  283. // #endif
  284. // #ifndef MP-WEIXIN
  285. this.showpay = true
  286. // #endif
  287. },
  288. selectWay: function(item) {
  289. this.openWay = item.id;
  290. },
  291. pay() {
  292. // let indentNumber = this.indentNumber
  293. // console.log(data)
  294. if (this.openWay == 0) {
  295. this.$queue.showToast('请选择支付方式!')
  296. return;
  297. }
  298. if (this.openWay == 2) {
  299. // #ifdef MP-WEIXIN
  300. // 微信小程序支付
  301. this.$Request.postJson("/app/wxErrPay/wxPayJsApiOrder?indentNumber=" + this.indentNumber).then(res => {
  302. console.log(res, '********')
  303. uni.showLoading({
  304. title: '支付中...'
  305. });
  306. if (res.code == 0) {
  307. console.log(this.openWay, '支付')
  308. uni.requestPayment({
  309. provider: 'wxpay',
  310. timeStamp: res.data.timestamp,
  311. nonceStr: res.data.noncestr,
  312. package: res.data.package,
  313. signType: res.data.signType,
  314. paySign: res.data.sign,
  315. success: function(suc) {
  316. console.log('success:' + JSON.stringify(suc));
  317. uni.showToast({
  318. title: '支付成功',
  319. icon: 'success'
  320. })
  321. uni.setStorageSync('current', 0)
  322. setTimeout(function() {
  323. uni.navigateBack()
  324. }, 10)
  325. // uni.navigateTo({
  326. // url: '/pages/order/orderDetail/detail?indentNumber=' +indentNumber
  327. // })
  328. },
  329. fail: function(err) {
  330. console.log('fail:' + JSON.stringify(err));
  331. uni.showToast({
  332. title: '支付失败',
  333. icon: 'none'
  334. })
  335. uni.switchTab({
  336. url: '/pages/order/order'
  337. })
  338. }
  339. });
  340. }
  341. })
  342. // #endif
  343. // #ifdef H5
  344. let ua = navigator.userAgent.toLowerCase();
  345. if (ua.indexOf('micromessenger') !== -1) { //微信里打开
  346. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  347. .then(res => {
  348. console.log(res)
  349. if (res.code == 0) {
  350. console.log()
  351. this.callPay(res.data);
  352. } else {
  353. uni.showToast({
  354. icon: 'none',
  355. title: '支付失败!'
  356. });
  357. }
  358. });
  359. } else { //不是微信打开
  360. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  361. .then(
  362. res => {
  363. if (res.code == 0) {
  364. console.log('....11111111.....', res.data)
  365. const div = document.createElement('div')
  366. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  367. console.log('....2.....', res.data)
  368. document.body.appendChild(div)
  369. console.log('....33333.....', document.forms[0])
  370. document.forms[0].submit()
  371. } else {
  372. uni.showToast({
  373. icon: 'none',
  374. title: '支付失败!'
  375. });
  376. }
  377. });
  378. }
  379. // #endif
  380. // #ifdef APP-PLUS
  381. // 微信APP支付 根据订单id获取支付信息
  382. console.log(this.indentNumber)
  383. this.$Request.postT("/app/wxPay/payAppOrder", {
  384. indentNumber: this.indentNumber
  385. }).then(ret => {
  386. console.log(JSON.stringify(ret),'支付信息')
  387. this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
  388. });
  389. // #endif
  390. } else {
  391. // APP支付宝支付
  392. this.$Request.postJson("/app/aliPay/payAppOrder?indentNumber=" + this.indentNumber).then(ret => {
  393. console.log(ret)
  394. this.isCheckPay(ret.code, 'alipay', ret.data);
  395. });
  396. }
  397. },
  398. callPay: function(response) {
  399. if (typeof WeixinJSBridge === "undefined") {
  400. if (document.addEventListener) {
  401. document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  402. } else if (document.attachEvent) {
  403. document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  404. document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  405. }
  406. } else {
  407. this.onBridgeReady(response);
  408. }
  409. },
  410. onBridgeReady: function(response) {
  411. let that = this;
  412. if (!response.package) {
  413. return;
  414. }
  415. WeixinJSBridge.invoke(
  416. 'getBrandWCPayRequest', {
  417. "appId": response.appid, //公众号名称,由商户传入
  418. "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  419. "nonceStr": response.noncestr, //随机串
  420. "package": response.package,
  421. "signType": response.signType, //微信签名方式:
  422. "paySign": response.sign //微信签名
  423. },
  424. function(res) {
  425. console.log(res, '/*-/*-/*-')
  426. if (res.err_msg === "get_brand_wcpay_request:ok") {
  427. // 使用以上方式判断前端返回,微信团队郑重提示:
  428. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  429. uni.showLoading({
  430. title: '支付成功'
  431. });
  432. setTimeout(function() {
  433. uni.hideLoading();
  434. uni.navigateBack()
  435. }, 1000);
  436. } else {
  437. uni.hideLoading();
  438. }
  439. WeixinJSBridge.log(response.err_msg);
  440. }
  441. );
  442. },
  443. isCheckPay(status, name, order) {
  444. if (status == 0) {
  445. this.setPayment(name, order);
  446. } else {
  447. uni.hideLoading();
  448. uni.showToast({
  449. title: '支付信息有误',
  450. icon: 'none'
  451. });
  452. }
  453. },
  454. setPayment(name, order) {
  455. console.log(name,'*-*-*',order)
  456. uni.requestPayment({
  457. provider: name,
  458. orderInfo: order, //微信、支付宝订单数据
  459. success: function(res) {
  460. console.log(res)
  461. uni.hideLoading();
  462. uni.showLoading({
  463. title: '支付成功'
  464. });
  465. setTimeout(function() {
  466. uni.navigateBack()
  467. }, 1000);
  468. },
  469. fail: function(err) {
  470. console.log(err)
  471. uni.hideLoading();
  472. },
  473. complete() {
  474. uni.hideLoading();
  475. }
  476. });
  477. },
  478. }
  479. }
  480. </script>
  481. <style>
  482. body {
  483. background: #F5F5F5;
  484. }
  485. /* #ifndef MP-WEIXIN */
  486. page {
  487. background: #F2EDED;
  488. }
  489. /* #endif */
  490. .order_details {
  491. width: 100%;
  492. }
  493. /* 待支付 */
  494. .part_one {
  495. width: 95%;
  496. margin: 0 auto;
  497. background: #ffffff;
  498. border-radius: 25rpx;
  499. margin-top: 30rpx;
  500. padding-bottom: 24rpx;
  501. }
  502. .city_box {
  503. width: 110rpx;
  504. line-height: 42rpx;
  505. background: #c4e2ff;
  506. color: #49A5FF;
  507. text-align: center;
  508. font-size: 24rpx;
  509. height: 42rpx;
  510. }
  511. .city_pay {
  512. width: 90%;
  513. margin: 0 auto;
  514. display: flex;
  515. height: 80rpx;
  516. justify-content: left;
  517. align-items: center;
  518. }
  519. .city_pay text {
  520. font-size: 24rpx;
  521. letter-spacing: 2rpx;
  522. margin-left: 15rpx;
  523. }
  524. .rider_order {
  525. width: 90%;
  526. margin: 0 auto;
  527. font-size: 34rpx;
  528. font-weight: bold;
  529. padding-top: 20rpx;
  530. letter-spacing: 2rpx;
  531. }
  532. .rider_tit {
  533. width: 90%;
  534. margin: 0 auto;
  535. color: #999999;
  536. font-size: 31rpx;
  537. margin-top: 10rpx;
  538. letter-spacing: 2rpx;
  539. }
  540. .order_btn {
  541. display: flex;
  542. margin-top: 30rpx;
  543. }
  544. .close_order {
  545. flex: 1;
  546. display: flex;
  547. justify-content: center;
  548. align-items: center;
  549. }
  550. .close_btn {
  551. border: 1rpx solid #CCCCCC;
  552. width: 245rpx;
  553. height: 70rpx;
  554. line-height: 70rpx;
  555. text-align: center;
  556. border-radius: 75rpx;
  557. font-size: 31rpx;
  558. color: #999999;
  559. letter-spacing: 2rpx;
  560. }
  561. .tip_order {
  562. flex: 1;
  563. display: flex;
  564. justify-content: center;
  565. align-items: center;
  566. }
  567. .close_tip {
  568. width: 245rpx;
  569. height: 70rpx;
  570. line-height: 70rpx;
  571. text-align: center;
  572. border-radius: 75rpx;
  573. font-size: 31rpx;
  574. color: white;
  575. letter-spacing: 2rpx;
  576. background: #FF7F00;
  577. }
  578. /* 骑手商家地址 */
  579. .part_four {
  580. width: 95%;
  581. margin: 0 auto;
  582. margin-top: 20rpx;
  583. background: #FFFFFF;
  584. /* height: 390rpx; */
  585. border-radius: 25rpx;
  586. padding-top: 10rpx;
  587. }
  588. .u-line {
  589. border-bottom-width: 6rpx !important;
  590. }
  591. .one_box {
  592. width: 100%;
  593. /* height: 100rpx; */
  594. /* background: #F5F5F5; */
  595. margin: 0 auto;
  596. border-radius: 12upx;
  597. display: flex;
  598. }
  599. .box_dian {
  600. flex: 1;
  601. display: flex;
  602. justify-content: center;
  603. align-items: center;
  604. }
  605. .box_dian image {
  606. width: 45rpx;
  607. height: 45rpx;
  608. }
  609. .box_name {
  610. flex: 5;
  611. display: flex;
  612. justify-content: left;
  613. align-items: center;
  614. color: #333333;
  615. font-weight: 700;
  616. }
  617. .box_addres {
  618. flex: 5;
  619. }
  620. .add {
  621. color: #333333;
  622. font-size: 31rpx;
  623. letter-spacing: 2upx;
  624. font-weight: bold;
  625. margin-top: 20upx;
  626. }
  627. .name {
  628. display: inline;
  629. font-size: 22upx;
  630. color: #999999;
  631. }
  632. .name text {
  633. color: #999999;
  634. font-size: 22upx;
  635. margin-left: 30upx;
  636. }
  637. .address_pay {
  638. display: flex;
  639. justify-content: space-between;
  640. width: 90%;
  641. margin: 0 auto;
  642. height: 80rpx;
  643. line-height: 80rpx
  644. }
  645. .runing_pay {
  646. /* flex: 1; */
  647. color: #999999;
  648. font-size: 24rpx;
  649. letter-spacing: 1rpx;
  650. }
  651. .runing_distance {
  652. /* flex: 1; */
  653. color: #999999;
  654. font-size: 24rpx;
  655. letter-spacing: 1rpx;
  656. text-indent: 110rpx;
  657. }
  658. .runing_distance text {
  659. font-size: 31rpx;
  660. color: black;
  661. margin-left: 35rpx;
  662. }
  663. /* 收货码 */
  664. .five_box {
  665. width: 95%;
  666. margin: 0 auto;
  667. background: #ffffff;
  668. margin-top: 20rpx;
  669. border-radius: 15rpx;
  670. display: flex;
  671. justify-content: space-between;
  672. font-size: 35rpx;
  673. }
  674. .part_five {
  675. display: flex;
  676. justify-content: space-between;
  677. padding: 20rpx 20rpx;
  678. width: 95%;
  679. margin: 0 auto;
  680. background: #ffffff;
  681. margin-top: 20rpx;
  682. border-radius: 10rpx;
  683. font-size: 35rpx;
  684. }
  685. .take_number {
  686. flex: 1;
  687. display: flex;
  688. justify-content: left;
  689. align-items: center;
  690. text-indent: 30rpx;
  691. }
  692. .numbers {
  693. flex: 1;
  694. display: flex;
  695. justify-content: flex-end;
  696. align-items: center;
  697. margin-right: 30rpx;
  698. }
  699. /* 订单信息 */
  700. .part_six {
  701. width: 95%;
  702. margin: 0 auto;
  703. height: 275rpx;
  704. background: #ffffff;
  705. margin-top: 20rpx;
  706. border-radius: 25rpx;
  707. /* margin-bottom: 100rpx; */
  708. }
  709. .part_seven {
  710. width: 95%;
  711. margin: 0 auto;
  712. /* height: 275rpx; */
  713. background: #ffffff;
  714. margin-top: 20rpx;
  715. border-radius: 25rpx;
  716. margin-bottom: 130rpx;
  717. }
  718. .order_info {
  719. width: 95%;
  720. margin: 0 auto;
  721. height: 80rpx;
  722. line-height: 80rpx;
  723. font-size: 31rpx;
  724. font-weight: bold;
  725. letter-spacing: 3rpx;
  726. }
  727. .order_list {
  728. width: 90%;
  729. margin: 0 auto;
  730. display: flex;
  731. height: 60rpx;
  732. }
  733. .order_name {
  734. flex: 1;
  735. color: #999999;
  736. font-size: 29rpx;
  737. letter-spacing: 2rpx;
  738. display: flex;
  739. justify-content: left;
  740. align-items: center;
  741. }
  742. .order_nums {
  743. flex: 2;
  744. color: #999999;
  745. font-size: 28rpx;
  746. letter-spacing: 2rpx;
  747. display: flex;
  748. justify-content: flex-end;
  749. align-items: center;
  750. }
  751. /* 同城服务 */
  752. .part_three {
  753. width: 95%;
  754. margin: 0 auto;
  755. margin-top: 20rpx;
  756. /* height: 250rpx; */
  757. /* min-height:200rpx; */
  758. background: #FFFFFF;
  759. border-radius: 25rpx;
  760. padding-bottom: 30rpx;
  761. }
  762. .city_pay {
  763. width: 90%;
  764. margin: 0 auto;
  765. display: flex;
  766. /* height: 90rpx; */
  767. justify-content: left;
  768. align-items: center;
  769. }
  770. .city_pay text {
  771. font-size: 28rpx;
  772. letter-spacing: 2rpx;
  773. margin-left: 30rpx;
  774. }
  775. .city_box {
  776. width: 110rpx;
  777. line-height: 42rpx;
  778. background: #c4e2ff;
  779. color: #49A5FF;
  780. text-align: center;
  781. font-size: 28rpx;
  782. height: 42rpx;
  783. }
  784. .pay_tit {
  785. width: 90%;
  786. margin: 0 auto;
  787. font-size: 27rpx;
  788. }
  789. .btn1 {
  790. width: 170upx;
  791. font-size: 22upx;
  792. line-height: 60upx;
  793. text-align: center;
  794. border: 1upx solid #9C9C9C;
  795. border-radius: 20upx;
  796. color: #9C9C9C;
  797. margin-right: 30upx;
  798. }
  799. .btn2 {
  800. width: 195rpx;
  801. line-height: 70rpx;
  802. color: white;
  803. background: #FF6A04;
  804. font-size: 34rpx;
  805. text-align: center;
  806. margin-right: 30rpx;
  807. border-radius: 20rpx;
  808. }
  809. .pay_bt {
  810. position: fixed;
  811. bottom: 0;
  812. left: 0;
  813. right: 0;
  814. background: #ffffff;
  815. height: 110rpx;
  816. display: flex;
  817. align-items: center;
  818. justify-content: space-between;
  819. padding: 0rpx 40rpx;
  820. }
  821. .tabbar {
  822. width: 100%;
  823. height: 100upx;
  824. background: #ffffff;
  825. position: fixed;
  826. bottom: 0upx;
  827. left: 0upx;
  828. right: 0upx;
  829. display: flex;
  830. }
  831. .tabbar_price {
  832. flex: 1;
  833. display: flex;
  834. justify-content: left;
  835. align-items: center;
  836. font-size: 28upx;
  837. font-weight: bold;
  838. margin-left: 40upx;
  839. }
  840. .tabbar_price text {
  841. color: #FF3333;
  842. font-size: 36upx;
  843. font-weight: 500;
  844. }
  845. .tabbar_btn {
  846. flex: 1;
  847. display: flex;
  848. justify-content: center;
  849. align-items: center;
  850. }
  851. .but {
  852. background: #FF7F00;
  853. width: 200rpx;
  854. height: 70rpx;
  855. text-align: center;
  856. line-height: 70rpx;
  857. border-radius: 60rpx;
  858. color: white;
  859. font-size: 24rpx;
  860. }
  861. /* 支付弹框 */
  862. .popup_pay {
  863. width: 100%;
  864. }
  865. .pay_btns {
  866. width: 90%;
  867. margin: 0 auto 40rpx;
  868. text-align: center;
  869. background: #FF7F00;
  870. height: 80rpx;
  871. border-radius: 16rpx;
  872. color: #ffffff;
  873. line-height: 80rpx;
  874. margin-top: 20rpx;
  875. }
  876. </style>