orderInformation.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <template>
  2. <view class="page">
  3. <view class="top">
  4. <view class="title">
  5. {{orderTitle}}
  6. </view>
  7. <view class="prompt">
  8. {{orderDetail}}
  9. </view>
  10. </view>
  11. <view class="packaging" v-if="orderStauts == 4">
  12. <view class="packaging-top">
  13. <view class="">
  14. {{"普通包裹"+"&nbsp;"+"|"+"&nbsp"+"海运散货"}}
  15. </view>
  16. <view style="color:#f83224;">
  17. 拼包中
  18. </view>
  19. </view>
  20. <view class="packaging-center">
  21. <view class="packaging-left">
  22. <view class="left-top">
  23. 东莞仓库
  24. </view>
  25. <view class="left-bottom">
  26. 始发地
  27. </view>
  28. </view>
  29. <image class="jiantou" src="../../static/mine/339.png" mode=""></image>
  30. <view class="packaging-left">
  31. <view class="left-top">
  32. 澳大利亚
  33. </view>
  34. <view class="left-bottom">
  35. 目的地
  36. </view>
  37. </view>
  38. </view>
  39. <view class="packaging-time">
  40. <view class="time">
  41. <text>开始时间:</text>
  42. <text>{{"2024-5-25" + "&emsp;"}}</text>
  43. </view>
  44. <view class="time">
  45. <text>开始时间:</text>
  46. <text>2024-5-25</text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="photo" v-if="orderStauts == 1">
  51. <view class="_weight"> <text>称重重量</text> <text>168kg</text> </view>
  52. <view class="_weight"> <text>称重图片</text>
  53. <view class="_image">
  54. </view>
  55. </view>
  56. <view class="photo-bottom">
  57. <text class="_text-1">需付款</text>
  58. <view class="price">
  59. <text style="font-size: 20rpx;">¥</text>
  60. <text>133</text>.
  61. <text style="font-size: 20rpx;">22</text>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="address">
  66. <view class="name-phone">
  67. <view class="send">
  68. </view>
  69. <view class="name">
  70. 张三
  71. </view>
  72. <view class="phone">
  73. 181****1111
  74. </view>
  75. </view>
  76. <view class="address-detail">
  77. 上海市上海市浦东新区商城路1177弄5号楼201
  78. </view>
  79. <view class="name-phone">
  80. <view class="send">
  81. </view>
  82. <view class="name">
  83. Curtis Morris
  84. </view>
  85. <view class="phone">
  86. 181****1111
  87. </view>
  88. </view>
  89. <view class="address-detail _bottom">
  90. 2A Mugga Way, Red Hill ACT 2603
  91. </view>
  92. <image style="height: 4rpx;margin-bottom: 40rpx;" src="../../static/mine/338.png" mode=""></image>
  93. <view class="_label-list">
  94. <view class="information">
  95. <text class="_label">物品信息:</text>
  96. <text class="_value">日用品</text>
  97. </view>
  98. <view class="information">
  99. <text class="_label">件数:</text>
  100. <text class="_value">20</text>
  101. </view>
  102. <view class="information">
  103. <text class="_label">重量:</text>
  104. <text class="_value">200kg</text>
  105. </view>
  106. <view class="information">
  107. <text class="_label">类型:</text>
  108. <text class="_value">特殊商品</text>
  109. </view>
  110. <view>
  111. <text class="_label">跨境物流:</text>
  112. <text class="_value">海运散货 | 1号海运柜</text>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="num-information">
  117. <view class="order" style="">
  118. <text class="_label-1">订单编号</text>
  119. <view class="num">
  120. <text>ZT83829300113344</text>{{ "&nbsp;"+"|"+"&nbsp;" }}<text
  121. @click="cope('ZT83829300113344')">复制</text>
  122. </view>
  123. </view>
  124. <view class="order">
  125. <text class="_label-1">下单时间</text>
  126. <view class="num">
  127. 2023-11-24 22:31
  128. </view>
  129. </view>
  130. <view class="order" v-show="orderStauts == 2">
  131. <text class="_label-1">付款时间</text>
  132. <view class="num">
  133. 2023-11-24 22:31
  134. </view>
  135. </view>
  136. </view>
  137. <view class="pay">
  138. <text>已付</text>
  139. <text style="color: #f83224; font-weight: 600;">123.1</text>
  140. </view>
  141. <view class="footer" v-if="orderStauts != 2 ">
  142. <button class="btn-1" @click="toLogistics">查看物流</button>
  143. <button class="btn-2" @click="toPay" v-if="orderStauts == 1">立即付款</button>
  144. </view>
  145. </view>
  146. </template>
  147. <script>
  148. export default {
  149. data() {
  150. return {
  151. orderStauts: 0,
  152. orderTitle: "",
  153. orderDetail: ""
  154. };
  155. },
  156. computed: {
  157. },
  158. onLoad(options) {
  159. console.log(options)
  160. this.orderStauts = options.orderStatus
  161. if (this.orderStauts == 0) {
  162. //设置顶部标题栏颜色
  163. uni.setNavigationBarColor({
  164. frontColor: '#000000',
  165. backgroundColor: '#f4f4f4'
  166. })
  167. this.orderDetail = "商品已寄往平台,正在运输中"
  168. this.orderTitle = "待平台收货"
  169. } else if (this.orderStauts == 1) {
  170. //设置顶部标题栏颜色
  171. uni.setNavigationBarColor({
  172. frontColor: '#000000',
  173. backgroundColor: '#f4f4f4'
  174. })
  175. this.orderDetail = "商品已打包称重,等待用户付款"
  176. this.orderTitle = "待付款"
  177. } else if (this.orderStauts == 2) {
  178. //设置顶部标题栏颜色
  179. uni.setNavigationBarColor({
  180. frontColor: '#000000',
  181. backgroundColor: '#f4f4f4'
  182. })
  183. this.orderDetail = "等待平台发货"
  184. this.orderTitle = "待发货"
  185. } else if (this.orderStauts == 3) {
  186. //设置顶部标题栏颜色
  187. uni.setNavigationBarColor({
  188. frontColor: '#000000',
  189. backgroundColor: '#f4f4f4'
  190. })
  191. this.orderDetail = "商品已发出,很快将发货至您的手中"
  192. this.orderTitle = "已发货"
  193. } else if (this.orderStauts == 4) {
  194. //设置顶部标题栏颜色
  195. uni.setNavigationBarColor({
  196. frontColor: '#000000',
  197. backgroundColor: '#ffffff'
  198. })
  199. uni.setNavigationBarTitle({
  200. title:"拼包详情"
  201. })
  202. }
  203. },
  204. created() {},
  205. methods: {
  206. cope(str) {
  207. uni.setClipboardData({
  208. data: str,
  209. success() {
  210. uni.showToast({
  211. title: "复制成功",
  212. icon: "none"
  213. })
  214. }
  215. })
  216. },
  217. setStatus(num) {
  218. this.orderStauts = num
  219. },
  220. toLogistics() {
  221. uni.navigateTo({
  222. url: "/pageD/logisticsProgress/logisticsProgress"
  223. })
  224. },
  225. toPay() {
  226. uni.navigateTo({
  227. url: "/pageD/paymentOrder/paymentOrder"
  228. })
  229. }
  230. }
  231. }
  232. </script>
  233. <style lang="scss" scoped>
  234. .page {
  235. padding: 20rpx 24rpx;
  236. position: relative;
  237. .title {
  238. font-size: 44rpx;
  239. color: #222;
  240. font-weight: 600;
  241. }
  242. .prompt {
  243. font-size: 24rpx;
  244. color: rgba(34, 34, 34, .5);
  245. margin-top: 12rpx;
  246. }
  247. .packaging{
  248. border-radius: 16rpx;
  249. background-color: #fff;
  250. padding: 30rpx 20rpx;
  251. .packaging-top{
  252. display: flex;
  253. justify-content: space-between;
  254. font-size: 28rpx;
  255. color: #222;
  256. }
  257. .packaging-center{
  258. display: flex;
  259. justify-content: space-around;
  260. align-items: center;
  261. margin-top: 26rpx;
  262. background-color: #F5F5F5;
  263. border-radius: 10rpx;
  264. padding: 20rpx 0;
  265. .jiantou{
  266. width: 130rpx;
  267. height: 10rpx;
  268. }
  269. .packaging-left{
  270. text-align: center;
  271. .left-top{
  272. font-size: 32rpx;
  273. color: #222;
  274. font-weight: 600;
  275. }
  276. .left-bottom{
  277. margin-top: 10rpx;
  278. font-size: 24rpx;
  279. color: rgba(34, 34, 34, .5);
  280. }
  281. }
  282. }
  283. .packaging-time{
  284. font-size: 28rpx;
  285. display: flex;
  286. align-items: center;
  287. margin-top: 28rpx;
  288. }
  289. }
  290. .photo {
  291. background-color: #fff;
  292. border-radius: 16rpx;
  293. padding: 20rpx 20rpx;
  294. margin-top: 20rpx;
  295. ._weight {
  296. display: flex;
  297. justify-content: space-between;
  298. font-size: 26rpx;
  299. color: rgba(34, 34, 34, .8);
  300. margin-bottom: 32rpx;
  301. ._image {
  302. width: 160rpx;
  303. height: 90rpx;
  304. background-color: #D8D8D8;
  305. border-radius: 4rpx;
  306. }
  307. }
  308. .photo-bottom {
  309. display: flex;
  310. justify-content: flex-end;
  311. align-items: center;
  312. border-top: 2rpx solid rgba(151, 151, 151, .1);
  313. padding-top: 24rpx;
  314. .price {
  315. color: #f83224;
  316. font-weight: 600;
  317. }
  318. ._text-1 {
  319. font-size: 26rpx;
  320. }
  321. }
  322. }
  323. .address {
  324. padding: 36rpx 34rpx;
  325. background-color: #fff;
  326. border-radius: 10rpx;
  327. margin-top: 32rpx;
  328. .name-phone {
  329. display: flex;
  330. align-items: flex-end;
  331. .send {
  332. width: 40rpx;
  333. height: 40rpx;
  334. background-color: #000;
  335. color: #fff;
  336. border-radius: 50%;
  337. font-size: 22rpx;
  338. text-align: center;
  339. line-height: 40rpx;
  340. }
  341. .name {
  342. font-weight: 600;
  343. font-size: 30rpx;
  344. color: #222;
  345. margin-right: 28rpx;
  346. margin-left: 28rpx;
  347. }
  348. .phone {
  349. font-size: 24rpx;
  350. color: #777;
  351. }
  352. }
  353. .address-detail {
  354. font-size: 26rpx;
  355. color: #555;
  356. margin-top: 16rpx;
  357. margin-left: 60rpx;
  358. padding-bottom: 36rpx;
  359. border-bottom: 2rpx solid rgba(151, 151, 151, .1);
  360. margin-bottom: 34rpx;
  361. }
  362. ._bottom {
  363. border: none;
  364. margin-bottom: 0;
  365. }
  366. ._label-list {
  367. display: flex;
  368. flex-wrap: wrap;
  369. justify-content: space-between;
  370. .information {
  371. width: 49%;
  372. margin-bottom: 28rpx;
  373. font-size: 28rpx;
  374. }
  375. ._label {
  376. color: #666;
  377. font-size: 28rpx;
  378. }
  379. ._value {
  380. font-size: 28rpx;
  381. color: #333;
  382. }
  383. }
  384. }
  385. .num-information {
  386. background-color: #fff;
  387. border-radius: 16rpx;
  388. margin-top: 20rpx;
  389. padding: 28rpx 20rpx 2rpx 28rpx;
  390. .order {
  391. display: flex;
  392. justify-content: space-between;
  393. font-size: 28rpx;
  394. margin-bottom: 28rpx;
  395. ._label-1 {
  396. color: #666;
  397. }
  398. .num {
  399. color: #333;
  400. }
  401. }
  402. }
  403. .pay {
  404. display: flex;
  405. padding: 22rpx 28rpx;
  406. justify-content: space-between;
  407. margin-top: 20rpx;
  408. background-color: #fff;
  409. border-radius: 16rpx;
  410. }
  411. .footer {
  412. display: flex;
  413. justify-content: flex-end;
  414. background-color: #fff;
  415. position: fixed;
  416. bottom: 0;
  417. left: 0;
  418. width: 100%;
  419. height: 146rpx;
  420. padding-top: 20rpx;
  421. .btn-1 {
  422. height: 76rpx;
  423. padding: 0;
  424. margin: 0;
  425. font-size: 28rpx;
  426. color: #222;
  427. min-width: 188rpx;
  428. background-color: #fff;
  429. border-radius: 38rpx;
  430. border: 2rpx solid #979797;
  431. margin-right: 20rpx;
  432. }
  433. .btn-2 {
  434. height: 76rpx;
  435. padding: 0;
  436. margin: 0;
  437. font-size: 28rpx;
  438. color: #fff;
  439. min-width: 188rpx;
  440. background-color: #f83224;
  441. border-radius: 38rpx;
  442. margin-right: 20rpx;
  443. }
  444. }
  445. }
  446. </style>