铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

496 lines
9.6 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <navbar :title="$t('other.OrderInfo')" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="info">
  5. <view class="flex">
  6. <!--订单基本信息-->
  7. <view class="server-item">
  8. <view class="img-box">
  9. <img :src="orderInfo.pic" style="width: 100%;height: 100%;" />
  10. </view>
  11. <view class="server-info">
  12. <view class="server-title">
  13. {{ $t('other.aluminumProducts') }}
  14. </view>
  15. <view class="current-price">
  16. <text class="unit">{{ $t('components.productSpecification') }}</text>
  17. <text class="text"> {{ $t('other.specification') }}</text>
  18. </view>
  19. <view class="sales-volume" style="margin-top: 5px;">
  20. <view class="desc"> {{ $t('other.pickupDate') }}{{ orderInfo.takeTime }}</view>
  21. </view>
  22. </view>
  23. </view>
  24. <!--收货地址-->
  25. <view class="line address">
  26. <view class="address-top">
  27. <view class="">
  28. <!-- {{ $t('components.shippingAddress') }} -->
  29. 提货地址
  30. </view>
  31. <view class="copy">
  32. <img src="../static/order/copy.png" style="width:40rpx;height:40rpx;"
  33. @click="$utils.copyText(orderInfo.address)">
  34. </view>
  35. </view>
  36. <view class="addressDetail">
  37. <!-- <view class="">联系电话{{ orderInfo.phone }}</view> -->
  38. <view class="">
  39. {{ orderInfo.address }}
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 开户信息 -->
  44. <view class="line">
  45. <view class="t min_tips">
  46. <view class="">
  47. 供应商
  48. </view>
  49. </view>
  50. <view class="min_tips">
  51. <view class="">
  52. 公司名称
  53. </view>
  54. <view class="">
  55. {{ orderInfo.companyName }}
  56. </view>
  57. </view>
  58. <view class="min_tips">
  59. <view class="">
  60. 联系电话
  61. </view>
  62. <view class="">
  63. {{ orderInfo.phone }}
  64. </view>
  65. </view>
  66. <view class="min_tips">
  67. <view class="">
  68. 开户行
  69. </view>
  70. <view class="">
  71. {{ orderInfo.bankName }}
  72. </view>
  73. </view>
  74. <view class="min_tips">
  75. <view class="">
  76. 银行卡号
  77. </view>
  78. <view class="">
  79. {{ orderInfo.bankAccount }}
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 采购商 -->
  84. <view class="line">
  85. <view class="t min_tips">
  86. <view class="">
  87. 采购商
  88. </view>
  89. </view>
  90. <view class="min_tips">
  91. <view class="">
  92. 公司名称
  93. </view>
  94. <view class="">
  95. {{ orderInfo.userName }}
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 订单信息 -->
  100. <view class="line">
  101. <view class="t min_tips">
  102. <view class="">
  103. {{ $t('components.orderInfo') }}
  104. </view>
  105. </view>
  106. <view class="min_tips">
  107. <view class="">
  108. {{ $t('components.orderNumber') }}
  109. </view>
  110. <view class="">
  111. {{ orderInfo.id }}
  112. </view>
  113. </view>
  114. <view class="min_tips">
  115. <view class="">
  116. {{ $t('components.orderTime') }}
  117. </view>
  118. <view class="">
  119. {{ orderInfo.createTime }}
  120. </view>
  121. </view>
  122. <view class="min_tips">
  123. <view class="">
  124. 数量
  125. </view>
  126. <view class="">
  127. {{ orderInfo.num }}
  128. </view>
  129. </view>
  130. <view class="min_tips">
  131. <view class="">
  132. 单价
  133. </view>
  134. <view class="">
  135. {{ orderInfo.price }}
  136. </view>
  137. </view>
  138. <view class="min_tips">
  139. <view class="">
  140. 保证金
  141. </view>
  142. <view class="">
  143. {{ orderInfo.deposit }}
  144. </view>
  145. </view>
  146. </view>
  147. <!--&lt;!&ndash; 下单须知 &ndash;&gt;-->
  148. <!--<view class="line">-->
  149. <!-- <view class="t min_tips">-->
  150. <!-- <view class="">-->
  151. <!-- {{ $t('components.orderNotice') }}-->
  152. <!-- </view>-->
  153. <!-- </view>-->
  154. <!-- <view class="xdxz" style="line-height: 40rpx;">-->
  155. <!-- &lt;!&ndash;<uv-parse :content="content"></uv-parse>&ndash;&gt;-->
  156. <!-- <view>1. 请您在收货时间前15分钟内到货否则将视为放弃挂单</view>-->
  157. <!-- <view>2. 请您在收货地址提供的手机号码收到货物</view>-->
  158. <!-- </view>-->
  159. <!--</view>-->
  160. </view>
  161. </view>
  162. <!-- 联系客服弹框 -->
  163. <customerServicePopup ref="customerServicePopup" />
  164. </view>
  165. </template>
  166. <script>
  167. import customerServicePopup from "@/components/config/customerServicePopup.vue";
  168. export default {
  169. name: "orderDetail2",
  170. components: {
  171. customerServicePopup
  172. },
  173. onLoad(options) {
  174. if (options.orderInfo) {
  175. this.orderInfo = JSON.parse(decodeURIComponent(options.orderInfo));
  176. console.log(this.orderInfo, "解析后的订单数据"); // 解析后的订单数据
  177. }
  178. },
  179. data() {
  180. return {
  181. orderInfo: {},
  182. }
  183. },
  184. onShow() {
  185. // this.queryOrderInfo()
  186. },
  187. methods: {
  188. // 采购商根据订单id查询订单信息
  189. queryOrderInfo() {
  190. this.$api('getMyOrderInfo', this.orderId, res => {
  191. console.log(res, "订单信息")
  192. this.orderInfo = res.result
  193. })
  194. },
  195. },
  196. }
  197. </script>
  198. <style lang="scss" scoped>
  199. .page {
  200. .info {
  201. margin: 10px;
  202. padding: 20rpx;
  203. background-color: #fff;
  204. width: calc(100% - 40px);
  205. border-radius: 10px;
  206. .head-title {
  207. font-family: PingFang SC, PingFang SC-Bold;
  208. color: #2f2e2e;
  209. line-height: 30rpx;
  210. margin-left: 10rpx;
  211. }
  212. .server-item {
  213. display: flex;
  214. flex-wrap: wrap;
  215. align-items: center;
  216. justify-content: space-between;
  217. background: white;
  218. border-radius: 15rpx;
  219. box-sizing: border-box;
  220. margin: 20rpx 0rpx;
  221. width: 100%;
  222. .img-box {
  223. width: 150rpx;
  224. height: 150rpx;
  225. border-radius: 10rpx;
  226. overflow: hidden;
  227. image {
  228. width: 100%;
  229. height: 100%;
  230. }
  231. }
  232. .server-info {
  233. display: flex;
  234. flex-direction: column;
  235. justify-content: space-around;
  236. width: calc(100% - 180rpx);
  237. box-sizing: border-box;
  238. padding: 10rpx 15rpx;
  239. .server-title {
  240. display: flex;
  241. margin-bottom: 10rpx;
  242. }
  243. .coupon {
  244. display: flex;
  245. justify-content: center;
  246. align-items: center;
  247. background: #F29E45;
  248. color: white;
  249. width: 120rpx;
  250. height: 40rpx;
  251. border-radius: 10rpx;
  252. margin-left: 10rpx;
  253. font-size: 22rpx;
  254. }
  255. .time-coupon,
  256. .price {
  257. display: flex;
  258. flex-wrap: wrap;
  259. align-items: center;
  260. }
  261. .time-coupon {
  262. margin: 10rpx 0rpx;
  263. font-size: 26rpx;
  264. justify-content: space-between;
  265. width: 100%;
  266. .flex {
  267. justify-content: center;
  268. align-items: center;
  269. }
  270. image {
  271. width: 25rpx;
  272. height: 25rpx;
  273. }
  274. .time {
  275. color: #B8B8B8;
  276. margin-left: 6rpx;
  277. }
  278. }
  279. .sales-volume {
  280. display: flex;
  281. align-items: center;
  282. color: #B8B8B8;
  283. font-size: 24rpx;
  284. image {
  285. width: 25rpx;
  286. height: 25rpx;
  287. }
  288. }
  289. }
  290. }
  291. .address {
  292. .address-top {
  293. display: flex;
  294. justify-content: space-between;
  295. align-items: center;
  296. image {
  297. width: 30rpx;
  298. height: 30rpx;
  299. }
  300. }
  301. .addressDetail {
  302. color: #777;
  303. font-size: 26rpx;
  304. padding: 5px 0;
  305. }
  306. text {
  307. background-color: #F29E45;
  308. padding: 8rpx 10rpx;
  309. color: #fff;
  310. font-size: 20rpx;
  311. margin-left: 10px;
  312. border-radius: 5px;
  313. }
  314. }
  315. .min_tips {
  316. font-size: 22rpx;
  317. color: #777;
  318. display: flex;
  319. justify-content: space-between;
  320. padding: 5px 0;
  321. align-items: center;
  322. }
  323. .btns {
  324. display: flex;
  325. justify-content: center;
  326. align-items: center;
  327. gap: 40rpx;
  328. .oneBtn {
  329. display: flex;
  330. align-items: center;
  331. justify-content: center;
  332. width: 40%;
  333. height: 70rpx;
  334. padding: 10rpx;
  335. border-radius: 40rpx;
  336. color: white;
  337. font-size: 28rpx;
  338. margin: 20rpx 10rpx 0 0;
  339. background: #293143;
  340. //margin-top: 20rpx;
  341. border-radius: 40rpx;
  342. }
  343. .twoBtn {
  344. display: flex;
  345. align-items: center;
  346. justify-content: center;
  347. width: 40%;
  348. height: 70rpx;
  349. padding: 10rpx;
  350. border-radius: 40rpx;
  351. color: #000000;
  352. font-size: 28rpx;
  353. margin: 20rpx 10rpx 0 0;
  354. background: #f2f2f2;
  355. //margin-top: 20rpx;
  356. border-radius: 40rpx;
  357. }
  358. }
  359. .xdxz {
  360. font-size: 24rpx;
  361. color: #777;
  362. line-height: 30rpx;
  363. }
  364. .current-price {
  365. font-size: 24rpx;
  366. color: #8c8888;
  367. .unit {}
  368. .text {}
  369. }
  370. .line {
  371. border-top: 2px dotted #00000011;
  372. padding: 20rpx 0;
  373. .t {
  374. padding: 5px 0;
  375. color: #000;
  376. font-size: 26rpx;
  377. }
  378. }
  379. .head-div {
  380. .nickname {
  381. font-size: 30rpx;
  382. font-weight: 600;
  383. text-align: left;
  384. line-height: 42rpx;
  385. display: flex;
  386. align-items: center;
  387. .tag {
  388. position: relative;
  389. display: flex;
  390. align-items: center;
  391. image {
  392. height: 45rpx;
  393. width: 90rpx;
  394. vertical-align: middle;
  395. }
  396. .auth {
  397. position: absolute;
  398. white-space: nowrap;
  399. color: $uni-color;
  400. left: 23rpx;
  401. font-size: 17rpx;
  402. }
  403. }
  404. }
  405. .days {
  406. font-size: 20rpx;
  407. font-weight: 400;
  408. text-align: left;
  409. line-height: 56rpx;
  410. display: flex;
  411. align-items: center;
  412. view {
  413. padding-left: 5px;
  414. }
  415. }
  416. }
  417. .btn-x {
  418. color: $uni-color;
  419. border: 1px solid $uni-color;
  420. padding: 10rpx 20rpx;
  421. border-radius: 30rpx;
  422. }
  423. .btns {
  424. display: flex;
  425. justify-content: center;
  426. .btn {
  427. color: $uni-color;
  428. border: 1px solid $uni-color;
  429. padding: 10rpx 20rpx;
  430. border-radius: 30rpx;
  431. }
  432. }
  433. }
  434. }
  435. </style>