pay.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  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. mask: true, // 是否显示透明蒙层,防止触摸穿透
  306. });
  307. if (res.code == 0) {
  308. console.log(this.openWay, '支付')
  309. uni.requestPayment({
  310. provider: 'wxpay',
  311. timeStamp: res.data.timestamp,
  312. nonceStr: res.data.noncestr,
  313. package: res.data.package,
  314. signType: res.data.signType,
  315. paySign: res.data.sign,
  316. success: function(suc) {
  317. console.log('success:' + JSON.stringify(suc));
  318. uni.showToast({
  319. title: '支付成功',
  320. icon: 'success'
  321. })
  322. uni.setStorageSync('current', 0)
  323. setTimeout(function() {
  324. uni.navigateBack()
  325. }, 10)
  326. // uni.navigateTo({
  327. // url: '/pages/order/orderDetail/detail?indentNumber=' +indentNumber
  328. // })
  329. },
  330. fail: function(err) {
  331. console.log('fail:' + JSON.stringify(err));
  332. uni.showToast({
  333. title: '支付失败',
  334. icon: 'none'
  335. })
  336. uni.switchTab({
  337. url: '/pages/order/order'
  338. })
  339. }
  340. });
  341. }
  342. })
  343. // #endif
  344. // #ifdef H5
  345. let ua = navigator.userAgent.toLowerCase();
  346. if (ua.indexOf('micromessenger') !== -1) { //微信里打开
  347. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  348. .then(res => {
  349. console.log(res)
  350. if (res.code == 0) {
  351. console.log()
  352. this.callPay(res.data);
  353. } else {
  354. uni.showToast({
  355. icon: 'none',
  356. title: '支付失败!'
  357. });
  358. }
  359. });
  360. } else { //不是微信打开
  361. this.$Request.postJson('/app/wxPay/wxPayMpOrder?indentNumber=' + this.indentNumber)
  362. .then(
  363. res => {
  364. if (res.code == 0) {
  365. console.log('....11111111.....', res.data)
  366. const div = document.createElement('div')
  367. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  368. console.log('....2.....', res.data)
  369. document.body.appendChild(div)
  370. console.log('....33333.....', document.forms[0])
  371. document.forms[0].submit()
  372. } else {
  373. uni.showToast({
  374. icon: 'none',
  375. title: '支付失败!'
  376. });
  377. }
  378. });
  379. }
  380. // #endif
  381. // #ifdef APP-PLUS
  382. // 微信APP支付 根据订单id获取支付信息
  383. console.log(this.indentNumber)
  384. this.$Request.postT("/app/wxPay/payAppOrder", {
  385. indentNumber: this.indentNumber
  386. }).then(ret => {
  387. console.log(JSON.stringify(ret),'支付信息')
  388. this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
  389. });
  390. // #endif
  391. } else {
  392. // APP支付宝支付
  393. this.$Request.postJson("/app/aliPay/payAppOrder?indentNumber=" + this.indentNumber).then(ret => {
  394. console.log(ret)
  395. this.isCheckPay(ret.code, 'alipay', ret.data);
  396. });
  397. }
  398. },
  399. callPay: function(response) {
  400. if (typeof WeixinJSBridge === "undefined") {
  401. if (document.addEventListener) {
  402. document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  403. } else if (document.attachEvent) {
  404. document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  405. document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  406. }
  407. } else {
  408. this.onBridgeReady(response);
  409. }
  410. },
  411. onBridgeReady: function(response) {
  412. let that = this;
  413. if (!response.package) {
  414. return;
  415. }
  416. WeixinJSBridge.invoke(
  417. 'getBrandWCPayRequest', {
  418. "appId": response.appid, //公众号名称,由商户传入
  419. "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  420. "nonceStr": response.noncestr, //随机串
  421. "package": response.package,
  422. "signType": response.signType, //微信签名方式:
  423. "paySign": response.sign //微信签名
  424. },
  425. function(res) {
  426. console.log(res, '/*-/*-/*-')
  427. if (res.err_msg === "get_brand_wcpay_request:ok") {
  428. // 使用以上方式判断前端返回,微信团队郑重提示:
  429. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  430. uni.showLoading({
  431. title: '支付成功'
  432. });
  433. setTimeout(function() {
  434. uni.hideLoading();
  435. uni.navigateBack()
  436. }, 1000);
  437. } else {
  438. uni.hideLoading();
  439. }
  440. WeixinJSBridge.log(response.err_msg);
  441. }
  442. );
  443. },
  444. isCheckPay(status, name, order) {
  445. if (status == 0) {
  446. this.setPayment(name, order);
  447. } else {
  448. uni.hideLoading();
  449. uni.showToast({
  450. title: '支付信息有误',
  451. icon: 'none'
  452. });
  453. }
  454. },
  455. setPayment(name, order) {
  456. console.log(name,'*-*-*',order)
  457. uni.requestPayment({
  458. provider: name,
  459. orderInfo: order, //微信、支付宝订单数据
  460. success: function(res) {
  461. console.log(res)
  462. uni.hideLoading();
  463. uni.showLoading({
  464. title: '支付成功'
  465. });
  466. setTimeout(function() {
  467. uni.navigateBack()
  468. }, 1000);
  469. },
  470. fail: function(err) {
  471. console.log(err)
  472. uni.hideLoading();
  473. },
  474. complete() {
  475. uni.hideLoading();
  476. }
  477. });
  478. },
  479. }
  480. }
  481. </script>
  482. <style>
  483. body {
  484. background: #F5F5F5;
  485. }
  486. /* #ifndef MP-WEIXIN */
  487. page {
  488. background: #F2EDED;
  489. }
  490. /* #endif */
  491. .order_details {
  492. width: 100%;
  493. }
  494. /* 待支付 */
  495. .part_one {
  496. width: 95%;
  497. margin: 0 auto;
  498. background: #ffffff;
  499. border-radius: 25rpx;
  500. margin-top: 30rpx;
  501. padding-bottom: 24rpx;
  502. }
  503. .city_box {
  504. width: 110rpx;
  505. line-height: 42rpx;
  506. background: #c4e2ff;
  507. color: #49A5FF;
  508. text-align: center;
  509. font-size: 24rpx;
  510. height: 42rpx;
  511. }
  512. .city_pay {
  513. width: 90%;
  514. margin: 0 auto;
  515. display: flex;
  516. height: 80rpx;
  517. justify-content: left;
  518. align-items: center;
  519. }
  520. .city_pay text {
  521. font-size: 24rpx;
  522. letter-spacing: 2rpx;
  523. margin-left: 15rpx;
  524. }
  525. .rider_order {
  526. width: 90%;
  527. margin: 0 auto;
  528. font-size: 34rpx;
  529. font-weight: bold;
  530. padding-top: 20rpx;
  531. letter-spacing: 2rpx;
  532. }
  533. .rider_tit {
  534. width: 90%;
  535. margin: 0 auto;
  536. color: #999999;
  537. font-size: 31rpx;
  538. margin-top: 10rpx;
  539. letter-spacing: 2rpx;
  540. }
  541. .order_btn {
  542. display: flex;
  543. margin-top: 30rpx;
  544. }
  545. .close_order {
  546. flex: 1;
  547. display: flex;
  548. justify-content: center;
  549. align-items: center;
  550. }
  551. .close_btn {
  552. border: 1rpx solid #CCCCCC;
  553. width: 245rpx;
  554. height: 70rpx;
  555. line-height: 70rpx;
  556. text-align: center;
  557. border-radius: 75rpx;
  558. font-size: 31rpx;
  559. color: #999999;
  560. letter-spacing: 2rpx;
  561. }
  562. .tip_order {
  563. flex: 1;
  564. display: flex;
  565. justify-content: center;
  566. align-items: center;
  567. }
  568. .close_tip {
  569. width: 245rpx;
  570. height: 70rpx;
  571. line-height: 70rpx;
  572. text-align: center;
  573. border-radius: 75rpx;
  574. font-size: 31rpx;
  575. color: white;
  576. letter-spacing: 2rpx;
  577. background: #FF7F00;
  578. }
  579. /* 骑手商家地址 */
  580. .part_four {
  581. width: 95%;
  582. margin: 0 auto;
  583. margin-top: 20rpx;
  584. background: #FFFFFF;
  585. /* height: 390rpx; */
  586. border-radius: 25rpx;
  587. padding-top: 10rpx;
  588. }
  589. .u-line {
  590. border-bottom-width: 6rpx !important;
  591. }
  592. .one_box {
  593. width: 100%;
  594. /* height: 100rpx; */
  595. /* background: #F5F5F5; */
  596. margin: 0 auto;
  597. border-radius: 12upx;
  598. display: flex;
  599. }
  600. .box_dian {
  601. flex: 1;
  602. display: flex;
  603. justify-content: center;
  604. align-items: center;
  605. }
  606. .box_dian image {
  607. width: 45rpx;
  608. height: 45rpx;
  609. }
  610. .box_name {
  611. flex: 5;
  612. display: flex;
  613. justify-content: left;
  614. align-items: center;
  615. color: #333333;
  616. font-weight: 700;
  617. }
  618. .box_addres {
  619. flex: 5;
  620. }
  621. .add {
  622. color: #333333;
  623. font-size: 31rpx;
  624. letter-spacing: 2upx;
  625. font-weight: bold;
  626. margin-top: 20upx;
  627. }
  628. .name {
  629. display: inline;
  630. font-size: 22upx;
  631. color: #999999;
  632. }
  633. .name text {
  634. color: #999999;
  635. font-size: 22upx;
  636. margin-left: 30upx;
  637. }
  638. .address_pay {
  639. display: flex;
  640. justify-content: space-between;
  641. width: 90%;
  642. margin: 0 auto;
  643. height: 80rpx;
  644. line-height: 80rpx
  645. }
  646. .runing_pay {
  647. /* flex: 1; */
  648. color: #999999;
  649. font-size: 24rpx;
  650. letter-spacing: 1rpx;
  651. }
  652. .runing_distance {
  653. /* flex: 1; */
  654. color: #999999;
  655. font-size: 24rpx;
  656. letter-spacing: 1rpx;
  657. text-indent: 110rpx;
  658. }
  659. .runing_distance text {
  660. font-size: 31rpx;
  661. color: black;
  662. margin-left: 35rpx;
  663. }
  664. /* 收货码 */
  665. .five_box {
  666. width: 95%;
  667. margin: 0 auto;
  668. background: #ffffff;
  669. margin-top: 20rpx;
  670. border-radius: 15rpx;
  671. display: flex;
  672. justify-content: space-between;
  673. font-size: 35rpx;
  674. }
  675. .part_five {
  676. display: flex;
  677. justify-content: space-between;
  678. padding: 20rpx 20rpx;
  679. width: 95%;
  680. margin: 0 auto;
  681. background: #ffffff;
  682. margin-top: 20rpx;
  683. border-radius: 10rpx;
  684. font-size: 35rpx;
  685. }
  686. .take_number {
  687. flex: 1;
  688. display: flex;
  689. justify-content: left;
  690. align-items: center;
  691. text-indent: 30rpx;
  692. }
  693. .numbers {
  694. flex: 1;
  695. display: flex;
  696. justify-content: flex-end;
  697. align-items: center;
  698. margin-right: 30rpx;
  699. }
  700. /* 订单信息 */
  701. .part_six {
  702. width: 95%;
  703. margin: 0 auto;
  704. height: 275rpx;
  705. background: #ffffff;
  706. margin-top: 20rpx;
  707. border-radius: 25rpx;
  708. /* margin-bottom: 100rpx; */
  709. }
  710. .part_seven {
  711. width: 95%;
  712. margin: 0 auto;
  713. /* height: 275rpx; */
  714. background: #ffffff;
  715. margin-top: 20rpx;
  716. border-radius: 25rpx;
  717. margin-bottom: 130rpx;
  718. }
  719. .order_info {
  720. width: 95%;
  721. margin: 0 auto;
  722. height: 80rpx;
  723. line-height: 80rpx;
  724. font-size: 31rpx;
  725. font-weight: bold;
  726. letter-spacing: 3rpx;
  727. }
  728. .order_list {
  729. width: 90%;
  730. margin: 0 auto;
  731. display: flex;
  732. height: 60rpx;
  733. }
  734. .order_name {
  735. flex: 1;
  736. color: #999999;
  737. font-size: 29rpx;
  738. letter-spacing: 2rpx;
  739. display: flex;
  740. justify-content: left;
  741. align-items: center;
  742. }
  743. .order_nums {
  744. flex: 2;
  745. color: #999999;
  746. font-size: 28rpx;
  747. letter-spacing: 2rpx;
  748. display: flex;
  749. justify-content: flex-end;
  750. align-items: center;
  751. }
  752. /* 同城服务 */
  753. .part_three {
  754. width: 95%;
  755. margin: 0 auto;
  756. margin-top: 20rpx;
  757. /* height: 250rpx; */
  758. /* min-height:200rpx; */
  759. background: #FFFFFF;
  760. border-radius: 25rpx;
  761. padding-bottom: 30rpx;
  762. }
  763. .city_pay {
  764. width: 90%;
  765. margin: 0 auto;
  766. display: flex;
  767. /* height: 90rpx; */
  768. justify-content: left;
  769. align-items: center;
  770. }
  771. .city_pay text {
  772. font-size: 28rpx;
  773. letter-spacing: 2rpx;
  774. margin-left: 30rpx;
  775. }
  776. .city_box {
  777. width: 110rpx;
  778. line-height: 42rpx;
  779. background: #c4e2ff;
  780. color: #49A5FF;
  781. text-align: center;
  782. font-size: 28rpx;
  783. height: 42rpx;
  784. }
  785. .pay_tit {
  786. width: 90%;
  787. margin: 0 auto;
  788. font-size: 27rpx;
  789. }
  790. .btn1 {
  791. width: 170upx;
  792. font-size: 22upx;
  793. line-height: 60upx;
  794. text-align: center;
  795. border: 1upx solid #9C9C9C;
  796. border-radius: 20upx;
  797. color: #9C9C9C;
  798. margin-right: 30upx;
  799. }
  800. .btn2 {
  801. width: 195rpx;
  802. line-height: 70rpx;
  803. color: white;
  804. background: #FF6A04;
  805. font-size: 34rpx;
  806. text-align: center;
  807. margin-right: 30rpx;
  808. border-radius: 20rpx;
  809. }
  810. .pay_bt {
  811. position: fixed;
  812. bottom: 0;
  813. left: 0;
  814. right: 0;
  815. background: #ffffff;
  816. height: 110rpx;
  817. display: flex;
  818. align-items: center;
  819. justify-content: space-between;
  820. padding: 0rpx 40rpx;
  821. }
  822. .tabbar {
  823. width: 100%;
  824. height: 100upx;
  825. background: #ffffff;
  826. position: fixed;
  827. bottom: 0upx;
  828. left: 0upx;
  829. right: 0upx;
  830. display: flex;
  831. }
  832. .tabbar_price {
  833. flex: 1;
  834. display: flex;
  835. justify-content: left;
  836. align-items: center;
  837. font-size: 28upx;
  838. font-weight: bold;
  839. margin-left: 40upx;
  840. }
  841. .tabbar_price text {
  842. color: #FF3333;
  843. font-size: 36upx;
  844. font-weight: 500;
  845. }
  846. .tabbar_btn {
  847. flex: 1;
  848. display: flex;
  849. justify-content: center;
  850. align-items: center;
  851. }
  852. .but {
  853. background: #FF7F00;
  854. width: 200rpx;
  855. height: 70rpx;
  856. text-align: center;
  857. line-height: 70rpx;
  858. border-radius: 60rpx;
  859. color: white;
  860. font-size: 24rpx;
  861. }
  862. /* 支付弹框 */
  863. .popup_pay {
  864. width: 100%;
  865. }
  866. .pay_btns {
  867. width: 90%;
  868. margin: 0 auto 40rpx;
  869. text-align: center;
  870. background: #FF7F00;
  871. height: 80rpx;
  872. border-radius: 16rpx;
  873. color: #ffffff;
  874. line-height: 80rpx;
  875. margin-top: 20rpx;
  876. }
  877. </style>