pay.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. <template>
  2. <view style="padding-bottom: 120rpx;">
  3. <!-- <view class="top_view">
  4. <view class="top_title" v-if="order.status==3">待抵达乘客上车点...</view>
  5. <view class="top_title" v-if="order.status==1">等待用户支付...</view>
  6. <view class="top_title" v-if="order.status==2">等待附近司机接单...</view>
  7. <view class="top_title" v-if="order.status==6">订单已取消</view>
  8. <view class="top_title" v-if="order.status==4">订单进行中</view>
  9. <view class="top_title" v-if="order.status==5">已到达终点</view>
  10. </view> -->
  11. <view class="padding">
  12. <map class="orderMap" id="orderMap" scale="12" :latitude="latitude" :longitude="longitude"
  13. :markers="covers" :polyline="polyline">
  14. </map>
  15. </view>
  16. <view class="top_box">
  17. <view>
  18. <view>
  19. <view class="top_title" v-if="order.status==3">待抵达乘客上车点...</view>
  20. <view class="top_title" v-if="order.status==1">等待用户支付...</view>
  21. <view class="top_title" v-if="order.status==2">等待附近司机接单...</view>
  22. <view class="top_title" v-if="order.status==6">订单已取消</view>
  23. <view class="top_title" v-if="order.status==4">订单进行中</view>
  24. <view class="top_title" v-if="order.status==5">已到达终点</view>
  25. </view>
  26. <view class="topbox_addview justify-between" style="margin-top: 20rpx;">
  27. <view class="flex align-center" style="margin-bottom: 20rpx;">
  28. <image v-if="globalImages" :src="globalImages + 'imgs/mididi.png'" style="width: 56rpx;height: 56rpx;" mode=""></image>
  29. <view style="margin-left: 20rpx;">
  30. <view style="color: #999;">
  31. 出发地
  32. </view>
  33. <view>
  34. {{order.shipAddress}}
  35. </view>
  36. </view>
  37. </view>
  38. <!-- <image src="/static/upload/up.png"></image> -->
  39. <view class="flex align-center">
  40. <image v-if="globalImages" :src="globalImages + 'imgs/mididi (2).png'" style="width: 56rpx;height: 56rpx;" mode=""></image>
  41. <view style="margin-left: 20rpx;">
  42. <view style="color: #999;">
  43. 出发地
  44. </view>
  45. <view>
  46. {{order.deliveryAddress}}
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- <map class="orderMap" id="orderMap" scale="12" :latitude="latitude" :longitude="longitude"
  52. :markers="covers" :polyline="polyline">
  53. </map> -->
  54. <!-- <view class="flex justify-between margin-tb-sm">
  55. <view class="topbox_title">{{order.appointmentNum}}人乘车
  56. </view>
  57. <view class="topbox_title">{{order.appointmentStartTime}}-{{order.appointmentEndTime}}</view>
  58. </view> -->
  59. </view>
  60. <!-- <u-line color="#E6E6E6" />
  61. <view class="flex align-center" :class="order.kmDistance?'justify-between':'justify-end'"
  62. style="padding-top: 16rpx;padding-bottom: 30rpx;">
  63. <view v-if="order.kmDistance">共{{order.kmDistance}}公里</view>
  64. <view style="color: #FF2020;font-size: 42rpx;font-weight: bold;"><text
  65. style="font-size: 32rpx;">¥</text> {{order.driveMoney}}</view>
  66. </view> -->
  67. </view>
  68. <view class="boxa box">
  69. <view class="titls">乘客信息</view>
  70. <view class="flex align-center justify-between" style="margin-top: 20rpx;">
  71. <view class="flex align-center">
  72. <image v-if="globalImages" :src="globalImages + 'imgs/static/image/shifuAvatar.png'" style="width: 90rpx;height: 90rpx;border-radius: 50rpx;">
  73. </image>
  74. <view class="margin-left-sm">
  75. <view class="flex align-center">
  76. <view>{{order.shipUserName}}</view>
  77. <image :src="globalImages + 'imgs/static/upload/msg.png'" v-if="zxMsg === '是' && globalImages" @click="goMsg()"
  78. style="width: 32rpx;height: 40rpx;margin-left: 20rpx;"></image>
  79. </view>
  80. <view class="margin-top-xs">{{order.shipUserPhones}}</view>
  81. </view>
  82. </view>
  83. <view class="flex" v-if="order.status != 5 && order.status != 6">
  84. <image v-if="globalImages" :src="globalImages + 'imgs/static/image/ladd.png'"
  85. @click="openMap(order.shipAddressLatitude,order.shipAddressLongitude,order.shipAddress)"
  86. style="width: 36rpx;height: 41rpx;"></image>
  87. <image src="../static/phone.png" @click="bindPhone(order.shipUserPhone)"
  88. style="width: 32rpx;height: 40rpx;margin-left: 50rpx;"></image>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="box " style="color: #999999;">
  93. <view class="titls">订单信息</view>
  94. <view>
  95. <view class="flex align-center justify-between margin-tb">
  96. <view>订单号码</view>
  97. <view @click.stop="copyClick(order.ordersNo)">{{order.ordersNo}}
  98. <image src="../static/copy.png" style="width:28rpx;height: 28rpx;"></image>
  99. </view>
  100. </view>
  101. <view class="flex align-center justify-between margin-tb">
  102. <view>预约时间</view>
  103. <view>暂无</view>
  104. </view>
  105. <view class="flex align-center justify-between margin-tb">
  106. <view>乘车人数</view>
  107. <view>{{order.appointmentNum}}</view>
  108. </view>
  109. <view class="flex align-center justify-between margin-tb">
  110. <view>订单金额</view>
  111. <view>{{order.driveMoney}}</view>
  112. </view>
  113. <view class="flex align-center justify-between margin-tb">
  114. <view>接单时间</view>
  115. <view>{{order.takingTime}}</view>
  116. </view>
  117. <view class="flex align-center justify-between margin-tb">
  118. <view>支付方式</view>
  119. <view v-if="order.payWay == 1">微信小程序支付</view>
  120. <view v-if="order.payWay == 2">微信公众号支付</view>
  121. <view v-if="order.payWay == 3">微信APP支付</view>
  122. <view v-if="order.payWay == 4">支付宝支付</view>
  123. <view v-if="order.payWay == 5">零钱支付</view>
  124. <view v-if="order.payWay == 6">线下支付</view>
  125. </view>
  126. <view class="margin-tb" v-if="order.remark">
  127. <view>备注</view>
  128. <view class="margin-top-xs">{{order.remark}}</view>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="tabber">
  133. <view class="btn" v-if="order.status == 3" @click.stop="qxOrder()">取消订单</view>
  134. <view class="btn2" v-if="order.status == 3" @click.stop="shows = true">开始服务</view>
  135. <view class="btn1" v-if="order.status==4" @click.stop="wcOrder()">抵达终点</view>
  136. </view>
  137. <!-- 验证码 -->
  138. <u-popup v-model="shows" mode="center" border-radius="18" width="580rpx" height="400rpx">
  139. <view class="receipt_code">
  140. <view class="code_title">验证码</view>
  141. <u-input v-model="codeMsg" type="number" maxlength="4" placeholder="请输入乘客手机号码后四位" :border="true"
  142. :clearable="false" />
  143. <view class="sure" @click="daodaOrder()">确定</view>
  144. </view>
  145. </u-popup>
  146. <view class="sos" @click="goJinji()">
  147. <image v-if="globalImages" :src="globalImages + 'imgs/static/my/jjqz.png'" mode=""></image>
  148. </view>
  149. </view>
  150. </template>
  151. <script>
  152. import QQMapWX from '@/components/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js'
  153. import { waitForGlobalImages } from '@/utils/globalImageLoader'
  154. export default {
  155. data() {
  156. return {
  157. showTime: false,
  158. indentNumber: '',
  159. order: [],
  160. indentId: '',
  161. show: false,
  162. qrcode: '',
  163. time: '',
  164. creditScore: 0,
  165. AllcreditScore: 0,
  166. shows: false,
  167. phone: '',
  168. codeMsg: '',
  169. timeList: [],
  170. timeId: '',
  171. timeIdName: '',
  172. zxMsg: '是',
  173. qqmapsdk: {}, // 腾讯地图小程序的SDK
  174. latitude: '',
  175. longitude: '',
  176. covers: [], // 地图上面的标记点
  177. to: { // 目的地坐标
  178. latitude: '',
  179. longitude: '',
  180. },
  181. polyline: [], //路线
  182. polylines: '',
  183. sfPhone: '',
  184. globalImages: ''
  185. }
  186. },
  187. onLoad(option) {
  188. waitForGlobalImages().then((path) => {
  189. console.log('✅ 全局图片路径:', path)
  190. this.globalImages = path
  191. })
  192. this.getInitMap()
  193. this.getMyDetail()
  194. this.indentId = option.indentId
  195. if (option.indentNumber) {
  196. this.indentNumber = option.indentNumber
  197. this.getorderDet()
  198. }
  199. this.zxMsg = this.$queue.getData('zxMsg');
  200. var that = this
  201. that.$Request.getT('/app/common/type/364').then(res => { // 每次取消扣除的信用分数量 364
  202. if (res.code == 0) {
  203. if (res.data && res.data.value) {
  204. that.creditScore = res.data.value
  205. }
  206. }
  207. })
  208. that.$Request.getT('/app/common/type/365').then(res => { // 低于多少不能接单和下单 365
  209. if (res.code == 0) {
  210. if (res.data && res.data.value) {
  211. that.AllcreditScore = res.data.value
  212. }
  213. }
  214. })
  215. },
  216. onShow() {
  217. },
  218. methods: {
  219. goMsg(){
  220. let userId = this.$queue.getData('userId');
  221. let data = {
  222. userId: userId,
  223. focusedUserId: this.order.userId,
  224. ordersId: this.indentNumber,
  225. userType: 1
  226. }
  227. this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
  228. if (res.code == 0) {
  229. let id = userId == res.data.userId ? res.data.focusedUserId : res.data.userId
  230. uni.navigateTo({
  231. url: '/my/kefu/im?chatConversationId=' + res.data.chatConversationId +
  232. '&byUserId=' + id + '&ordersId=' + res.data.ordersId
  233. })
  234. }
  235. })
  236. },
  237. getMyDetail() {
  238. let userId = this.$queue.getData('userId');
  239. this.$Request.getT('/app/user/selectUserDetails?userId=' + userId).then(res => {
  240. if (res.code == 0 && res.data) {
  241. this.sfPhone = res.data.phone;
  242. }
  243. });
  244. },
  245. //初始化地图
  246. getInitMap() {
  247. this.$Request.getT('/app/common/type/282').then(res => { //师傅端腾讯地图key
  248. if (res.code === 0) {
  249. this.qqmapsdk = new QQMapWX({
  250. key: res.data.value // 自己申请的key值
  251. })
  252. }
  253. });
  254. },
  255. goJinji() {
  256. uni.navigateTo({
  257. url: '/my/setting/jinji'
  258. })
  259. },
  260. cancelTime() {
  261. this.timeId = ''
  262. this.timeIdName = ''
  263. this.showTime = false
  264. },
  265. confirmTime(e) {
  266. this.timeId = e[0].value
  267. this.timeIdName = e[0].label
  268. let that = this
  269. uni.showModal({
  270. title: '提示',
  271. content: '确认加时' + this.timeIdName + '吗?',
  272. complete(ret) {
  273. if (ret.confirm) {
  274. let data = {
  275. indentId: that.order.indentId,
  276. timeId: that.timeId
  277. }
  278. that.$Request.postT('/app/indentTimeRecord/indentAddTime', data).then(res => {
  279. if (res.code == 0) {
  280. uni.showToast({
  281. title: '加时成功'
  282. })
  283. that.getorderDet()
  284. } else {
  285. uni.showToast({
  286. title: res.msg,
  287. icon: 'none'
  288. })
  289. }
  290. })
  291. console.log(data, '222222222222')
  292. }
  293. }
  294. })
  295. console.log(e[0], '444444444444')
  296. },
  297. //加时
  298. addTime() {
  299. this.$Request.get('/app/packageTime/getPackageTimeList').then(res => {
  300. if (res.code == 0) {
  301. res.data.records.map(item => {
  302. item.timeNum = item.timeNum + '小时'
  303. })
  304. this.timeList = res.data.records
  305. if (this.timeList.length > 0) {
  306. this.showTime = true
  307. } else {
  308. uni.showToast({
  309. title: '暂无可加时长'
  310. })
  311. }
  312. }
  313. })
  314. },
  315. zhundan() {
  316. if (!this.phone) {
  317. uni.showToast({
  318. title: '请输入手机号',
  319. icon: 'none'
  320. })
  321. return
  322. }
  323. this.$Request.postT('/app/indent/transferOfOrder', {
  324. indentId: this.indentId,
  325. phone: this.phone
  326. }).then(res => {
  327. this.shows = false
  328. this.phone = ''
  329. if (res.code == 0) {
  330. uni.showToast({
  331. title: '转单成功',
  332. icon: 'none',
  333. duration: 3000
  334. })
  335. this.getorderDet()
  336. setTimeout(function() {
  337. uni.navigateBack()
  338. }, 1000)
  339. } else {
  340. uni.showToast({
  341. title: res.msg,
  342. icon: 'none'
  343. })
  344. }
  345. });
  346. },
  347. openZd() {
  348. this.phone = ''
  349. this.shows = true
  350. },
  351. orderpay() {
  352. let data = {
  353. indentId: this.indentId
  354. }
  355. this.$Request.postT('/app/wxPay/generateNative', data).then(res => {
  356. if (res.code === 0 && res.data) {
  357. this.qrcode = res.data
  358. this.show = true
  359. let that = this
  360. that.time = setInterval(function() {
  361. that.getorderDet()
  362. }, 3000)
  363. } else {
  364. uni.showToast({
  365. title: res.msg,
  366. icon: 'none'
  367. })
  368. }
  369. });
  370. },
  371. copyClick(copy) {
  372. uni.setClipboardData({
  373. data: copy,
  374. success: function(res) {
  375. uni.getClipboardData({
  376. success: function(res) {
  377. uni.showToast({
  378. title: "复制成功",
  379. icon: 'none',
  380. });
  381. },
  382. });
  383. },
  384. });
  385. },
  386. // 一键导航
  387. openMap(latitude, longitude, name) {
  388. uni.openLocation({
  389. latitude: latitude - 0, //要去的纬度-地址
  390. longitude: longitude - 0, //要去的经度-地址
  391. name: name, //地址名称
  392. address: name, //详细地址名称
  393. success: function() {
  394. console.log('导航成功');
  395. },
  396. fail: function(error) {
  397. console.log(error)
  398. }
  399. });
  400. },
  401. bindPhone(phone) {
  402. let ysPhone = this.$queue.getData('ysPhone');
  403. if (ysPhone === '是') {
  404. this.$Request.getT('/app/user/insertVirtualPhone?phoneA=' + this.sfPhone + '&phoneB=' + phone).then(
  405. res => {
  406. if (res.code == 0) {
  407. if (res.data) {
  408. uni.makePhoneCall({
  409. phoneNumber: res.data //仅为示例
  410. });
  411. } else {
  412. this.$queue.showToast('手机号获取失败!');
  413. }
  414. } else {
  415. this.$queue.showToast(res.msg);
  416. }
  417. });
  418. } else {
  419. uni.makePhoneCall({
  420. phoneNumber: phone //仅为示例
  421. });
  422. }
  423. },
  424. getorderDet() {
  425. let userId = this.$queue.getData('userId');
  426. let data = {
  427. ordersId: this.indentNumber,
  428. driverUserId: userId
  429. }
  430. this.$Request.getT('/app/orders/selectOrdersDetails', data).then(res => {
  431. if (res.code === 0) {
  432. this.order = res.data
  433. this.latitude = this.order.shipAddressLatitude
  434. this.longitude = this.order.shipAddressLongitude
  435. this.to.latitude = this.order.deliveryAddressLatitude
  436. this.to.longitude = this.order.deliveryAddressLongitude
  437. this.covers = [{
  438. id: 1,
  439. latitude: this.order.shipAddressLatitude,
  440. longitude: this.order.shipAddressLongitude,
  441. iconPath: this.globalImages ? this.globalImages + 'imgs/static/image/qi.png' : '',
  442. width: 32,
  443. height: 44,
  444. callout: { //自定义标记点上方的气泡窗口 点击有效
  445. content: this.order.shipAddress, //文本
  446. color: '#333333', //文字颜色
  447. fontSize: 10, //文本大小
  448. padding: 10, //附近留白
  449. borderRadius: 6, //边框圆角
  450. bgColor: '#FFFFFF', //背景颜色
  451. display: 'ALWAYS', //常显
  452. },
  453. }, {
  454. id: 2,
  455. latitude: this.order.deliveryAddressLatitude,
  456. longitude: this.order.deliveryAddressLongitude,
  457. iconPath: this.globalImages ? this.globalImages + 'imgs/static/image/zd.png' : '',
  458. width: 32,
  459. height: 44,
  460. callout: { //自定义标记点上方的气泡窗口 点击有效
  461. content: this.order.deliveryAddress, //文本
  462. color: '#333333', //文字颜色
  463. fontSize: 10, //文本大小
  464. padding: 10, //附近留白
  465. borderRadius: 6, //边框圆角
  466. bgColor: '#FFFFFF', //背景颜色
  467. display: 'ALWAYS', //常显
  468. },
  469. }]
  470. this.polylines = this.order.polyline
  471. this.routePlanning()
  472. if (this.order.shipUserPhone) {
  473. let mobile = this.order.shipUserPhone
  474. this.order.shipUserPhones = mobile.substring(0, 3) + "********"
  475. }
  476. }
  477. });
  478. },
  479. //规划路线
  480. routePlanning() {
  481. let that = this
  482. that.qqmapsdk.direction({
  483. mode: 'driving', // 驾车
  484. from: { // 起始位置(当前位置)坐标
  485. latitude: that.latitude,
  486. longitude: that.longitude
  487. },
  488. to: that.to, // 目的地位置坐标
  489. success(res) {
  490. console.log(res, '=======')
  491. // var coors = JSON.parse(that.polylines)
  492. // console.log(coors,'11111111111111')
  493. var coors = res.result.routes[0].polyline
  494. // console.log(coors2,'11111111111111')
  495. var pl = [] // 点串数组
  496. // 坐标解压(返回的点串坐标,通过前向差分进行压缩)
  497. var kr = 1000000
  498. for (var i = 2; i < coors.length; i++) {
  499. coors[i] = Number(coors[i - 2]) + Number(coors[i]) / kr
  500. }
  501. // 将解压后的坐标放入点串数组pl中
  502. for (var i = 0; i < coors.length; i += 2) {
  503. pl.push({
  504. latitude: coors[i],
  505. longitude: coors[i + 1]
  506. })
  507. }
  508. // 设置polyline属性,将路线显示出来,将解压坐标第一个数据作为起点
  509. that.polyline = [{
  510. points: pl,
  511. color: '#346EF6',
  512. width: 4
  513. }]
  514. }
  515. })
  516. },
  517. // 取消订单
  518. qxOrder() {
  519. let that = this
  520. uni.showModal({
  521. title: '提示',
  522. content: '取消订单将会被扣保证金以及信用分' + that.creditScore + '分,信用分低于' + that.AllcreditScore + '分无法接单',
  523. cancelText: '取消',
  524. confirmText: '确认',
  525. complete: function(ret) {
  526. if (ret.confirm) {
  527. that.$Request.postT('/app/orders/cancelOrders', {
  528. ordersId: that.order.ordersId,
  529. isDriver: 1,
  530. }).then(res => {
  531. if (res.code == 0) {
  532. uni.showToast({
  533. title: '订单已取消',
  534. icon: "none"
  535. });
  536. that.getorderDet()
  537. setTimeout(function() {
  538. uni.navigateBack()
  539. }, 1000)
  540. } else {
  541. uni.showToast({
  542. title: res.msg,
  543. icon: "none"
  544. });
  545. }
  546. });
  547. }
  548. }
  549. })
  550. },
  551. startAddress(indentId) {
  552. let that = this
  553. uni.showModal({
  554. title: '提示',
  555. content: '确认已抵达起点,开始等待吗?',
  556. complete(ret) {
  557. if (ret.confirm) {
  558. that.$Request.getT('/app/indent/riderWaitDrive?indentId=' + that.order.indentId).then(
  559. res => {
  560. if (res.code == 0) {
  561. uni.showToast({
  562. title: '已开始等待'
  563. })
  564. that.getorderDet()
  565. } else {
  566. uni.showToast({
  567. title: res.msg,
  568. icon: 'none'
  569. })
  570. }
  571. })
  572. }
  573. }
  574. })
  575. },
  576. daodaOrder() { //抵达起点 开始服务
  577. let that = this
  578. that.shows = false
  579. if (that.codeMsg === '') {
  580. this.$queue.showToast('请输入乘客尾号后四位!');
  581. return;
  582. }
  583. uni.showModal({
  584. title: '提示',
  585. content: '确认开始服务吗?',
  586. success: function(res) {
  587. if (res.confirm) {
  588. that.$Request.postT('/app/orders/proceedOrders', {
  589. ordersId: that.order.ordersId,
  590. code: that.codeMsg
  591. }).then(res => {
  592. if (res.code == 0) {
  593. that.getorderDet()
  594. uni.showToast({
  595. title: '服务已开始',
  596. icon: "none"
  597. });
  598. setTimeout(function() {
  599. uni.navigateBack()
  600. }, 1000)
  601. } else {
  602. that.codeMsg = ''
  603. uni.showToast({
  604. title: res.msg,
  605. icon: "none"
  606. });
  607. }
  608. });
  609. }
  610. }
  611. })
  612. },
  613. wcOrder() { //抵达终点
  614. let that = this
  615. uni.showModal({
  616. title: '提示',
  617. content: '确认已抵达终点,完成服务吗?',
  618. success: function(res) {
  619. if (res.confirm) {
  620. that.$Request.postT('/app/orders/completeOrders', {
  621. ordersId: that.order.ordersId
  622. }).then(res => {
  623. if (res.code == 0) {
  624. that.getorderDet()
  625. uni.showToast({
  626. title: '已到达终点',
  627. icon: "none"
  628. });
  629. setTimeout(function() {
  630. uni.navigateBack()
  631. }, 1000)
  632. } else {
  633. uni.showToast({
  634. title: res.msg,
  635. icon: "none"
  636. });
  637. }
  638. });
  639. }
  640. }
  641. })
  642. },
  643. }
  644. }
  645. </script>
  646. <style lang="less">
  647. page {
  648. background: #F5F5F5;
  649. }
  650. .orderMap {
  651. width: 100%;
  652. height: 400rpx;
  653. border-radius: 14rpx;
  654. margin-top: 20rpx;
  655. }
  656. .sos {
  657. width: 70rpx;
  658. height: 70rpx;
  659. position: fixed;
  660. bottom: 290rpx;
  661. left: 32rpx;
  662. z-index: 99999;
  663. image {
  664. width: 70rpx;
  665. height: 70rpx;
  666. }
  667. }
  668. .top_box {
  669. width: 686rpx;
  670. // height: 390rpx;
  671. background: #FFFFFF;
  672. border-radius: 24rpx;
  673. margin: 30rpx;
  674. padding: 30rpx;
  675. // position: absolute;
  676. // top: 80rpx;
  677. position: relative;
  678. // margin-top: -200rpx;
  679. z-index: 99;
  680. .cph_item {
  681. width: 624rpx;
  682. height: 220rpx;
  683. margin: 0 auto;
  684. display: flex;
  685. justify-content: space-between;
  686. // align-items: center;
  687. image {
  688. width: 250rpx;
  689. height: 110rpx;
  690. margin-top: 30rpx;
  691. }
  692. .cphitem_name {
  693. font-family: PingFang SC;
  694. font-weight: 800;
  695. font-size: 38rpx;
  696. color: #1A1A1A;
  697. }
  698. .blackdian {
  699. width: 6rpx;
  700. height: 6rpx;
  701. background: #333333;
  702. border-radius: 50%;
  703. margin-right: 10rpx;
  704. margin-left: 10rpx;
  705. }
  706. .sj_sg {
  707. width: 1rpx;
  708. height: 20rpx;
  709. border: 1rpx solid #A0A0A0;
  710. margin: 0rpx 20rpx;
  711. }
  712. }
  713. .topbox_addview {
  714. width: 624rpx;
  715. min-height: 100rpx;
  716. // background: #EFF4FF;
  717. // border-radius: 16rpx;
  718. border-top: 1px solid #ccc;
  719. margin: 0 auto;
  720. // display: flex;
  721. align-items: center;
  722. padding: 30rpx 0;
  723. image {
  724. width: 6rpx;
  725. height: 24rpx;
  726. margin-left: 6rpx;
  727. }
  728. .topbox_title {
  729. font-family: PingFang SC;
  730. font-weight: 500;
  731. font-size: 28rpx;
  732. color: #151515;
  733. }
  734. }
  735. }
  736. .topbox_addName {
  737. font-family: PingFang SC;
  738. font-weight: 800;
  739. font-size: 28rpx;
  740. color: #1A1A1A;
  741. width: 520rpx;
  742. white-space: nowrap;
  743. text-overflow: ellipsis;
  744. overflow: hidden;
  745. }
  746. .top_view {
  747. width: 750rpx;
  748. height: 325rpx;
  749. background: linear-gradient(to bottom, #346EF6 0%, #8EB0FF 70%, #F5F5F5 90%);
  750. padding: 40rpx;
  751. position: relative;
  752. .top_title {
  753. font-family: PingFang SC;
  754. font-weight: bold;
  755. font-size: 38rpx;
  756. color: #FFFFFF;
  757. }
  758. }
  759. .boxa {
  760. background: #FFFFFF;
  761. border-radius: 24rpx;
  762. margin: 30rpx;
  763. padding: 30rpx 0;
  764. }
  765. .box {
  766. background: #FFFFFF;
  767. border-radius: 24rpx;
  768. padding: 30rpx;
  769. margin: 30rpx;
  770. }
  771. .titls {
  772. font-size: 32rpx;
  773. font-family: PingFang SC;
  774. // font-weight: bold;
  775. color: #333333;
  776. }
  777. .bb {
  778. width: 110rpx;
  779. height: 38rpx;
  780. // background: #49A5FF;
  781. // opacity: 0.32;
  782. background-color: rgba(73, 165, 255, 0.3);
  783. border-radius: 4rpx;
  784. font-size: 24rpx;
  785. font-family: PingFang SC;
  786. font-weight: 500;
  787. color: #359CFF;
  788. display: flex;
  789. align-items: center;
  790. justify-content: center;
  791. margin-left: 10rpx;
  792. }
  793. .addbox {
  794. display: flex;
  795. align-items: center;
  796. justify-content: space-between;
  797. padding: 0 30rpx;
  798. height: 110rpx;
  799. border-radius: 16rpx;
  800. }
  801. .add_cont {
  802. display: flex;
  803. align-items: center;
  804. }
  805. .add_tit {
  806. font-size: 30rpx;
  807. font-family: PingFang SC;
  808. font-weight: bold;
  809. color: #333333;
  810. }
  811. .bg {
  812. background: #F5F5F5;
  813. }
  814. .bgs {
  815. background: #F5F8FF;
  816. }
  817. .green {
  818. width: 16rpx;
  819. height: 16rpx;
  820. background: #1FC657;
  821. border-radius: 50%;
  822. margin-right: 20rpx;
  823. }
  824. .orgin {
  825. width: 16rpx;
  826. height: 16rpx;
  827. background: #FBAC04;
  828. border-radius: 50%;
  829. margin-right: 20rpx;
  830. }
  831. .tabber {
  832. width: 686rpx;
  833. display: flex;
  834. align-items: center;
  835. padding: 10rpx 0rpx;
  836. margin: 50rpx 0rpx;
  837. margin: 0 auto;
  838. .btn {
  839. width: 330rpx;
  840. height: 100rpx;
  841. line-height: 100rpx;
  842. border: 1px solid #A0A0A0;
  843. border-radius: 16rpx;
  844. font-size: 28rpx;
  845. font-family: PingFang SC;
  846. font-weight: bold;
  847. color: #9C9C9C;
  848. display: flex;
  849. align-items: center;
  850. justify-content: center;
  851. }
  852. .btn1 {
  853. width: 660rpx;
  854. height: 100rpx;
  855. line-height: 100rpx;
  856. background: #00c18a;
  857. border-radius: 16rpx;
  858. font-size: 28rpx;
  859. font-family: PingFang SC;
  860. font-weight: bold;
  861. color: #FFFFFF;
  862. display: flex;
  863. align-items: center;
  864. justify-content: center;
  865. margin-left: 20rpx;
  866. }
  867. .btn2 {
  868. width: 330rpx;
  869. height: 100rpx;
  870. line-height: 100rpx;
  871. background: #00c18a;
  872. border-radius: 16rpx;
  873. font-size: 28rpx;
  874. font-family: PingFang SC;
  875. font-weight: bold;
  876. color: #FFFFFF;
  877. display: flex;
  878. align-items: center;
  879. justify-content: center;
  880. margin-left: 20rpx;
  881. }
  882. }
  883. /* 收货码弹框 */
  884. .receipt_code {
  885. width: 90%;
  886. margin: 0 auto;
  887. }
  888. .code_title {
  889. width: 100%;
  890. line-height: 100rpx;
  891. font-size: 31rpx;
  892. font-weight: bold;
  893. text-align: center;
  894. letter-spacing: 2rpx;
  895. margin-top: 21rpx;
  896. margin-bottom: 10rpx;
  897. }
  898. ::v-deep .u-input--border {
  899. border: 1px solid #F2F2F2 !important;
  900. background: #F2F2F2 !important;
  901. color: #999999 !important;
  902. font-weight: 500 !important;
  903. letter-spacing: 2rpx !important;
  904. }
  905. ::v-deep .u-input__input {
  906. font-size: 30rpx;
  907. font-weight: bold;
  908. flex: 1;
  909. color: #999999 !important;
  910. min-height: 85rpx !important;
  911. margin-top: 7rpx;
  912. }
  913. .sure {
  914. width: 100%;
  915. height: 80rpx;
  916. background: linear-gradient(87deg, #346EF6 0%, #7BA2FF 100%);
  917. color: white;
  918. border-radius: 46rpx;
  919. text-align: center;
  920. line-height: 80rpx;
  921. margin-top: 40rpx;
  922. letter-spacing: 2rpx;
  923. }
  924. </style>