铝交易,微信公众号
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.

494 lines
9.5 KiB

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