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

444 lines
9.8 KiB

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