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

418 lines
9.1 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 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="../../static/image/address/selectIcon.png" style="width: 100%;height: 100%;"/>
  10. </view>
  11. <view class="server-info">
  12. <view class="server-title">
  13. {{ $t('components.aluminumProducts') }}
  14. </view>
  15. <view class="current-price">
  16. <text class="unit">{{ $t('components.productSpecification') }}</text>
  17. <text class="text">铝锭al>96%</text>
  18. </view>
  19. <view class="sales-volume" style="margin-top: 5px;">
  20. <view class="desc"> {{ $t('components.pickupDate') }}2021-08-10</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="">张三&nbsp;&nbsp;&nbsp; 13812345678</view>
  38. <view class="">
  39. 北京市海淀区西二旗a座101北京市海淀区西二旗a座101北京市海淀区西二旗a座101北京市海淀区西二旗a座101
  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. SF20210810001
  56. </view>
  57. </view>
  58. <view class="min_tips">
  59. <view class="">
  60. {{ $t('components.orderTime') }}
  61. </view>
  62. <view class="">
  63. 2021-08-10 10:00:00
  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. this.orderId = options.id
  102. },
  103. data() {
  104. return {
  105. orderId: null,
  106. }
  107. },
  108. methods: {
  109. // 撤单
  110. backOrder() {
  111. console.log("撤单")
  112. uni.navigateTo({
  113. url: `/pages_order/order/backOrder?id=1`
  114. })
  115. },
  116. },
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .page {
  121. .info {
  122. margin: 10px;
  123. padding: 20rpx;
  124. background-color: #fff;
  125. width: calc(100% - 40px);
  126. border-radius: 10px;
  127. .head-title {
  128. font-family: PingFang SC, PingFang SC-Bold;
  129. color: #2f2e2e;
  130. line-height: 30rpx;
  131. margin-left: 10rpx;
  132. }
  133. .server-item {
  134. display: flex;
  135. flex-wrap: wrap;
  136. align-items: center;
  137. justify-content: space-between;
  138. background: white;
  139. border-radius: 15rpx;
  140. box-sizing: border-box;
  141. margin: 20rpx 0rpx;
  142. width: 100%;
  143. .img-box {
  144. width: 150rpx;
  145. height: 150rpx;
  146. border-radius: 10rpx;
  147. overflow: hidden;
  148. image {
  149. width: 100%;
  150. height: 100%;
  151. }
  152. }
  153. .server-info {
  154. display: flex;
  155. flex-direction: column;
  156. justify-content: space-around;
  157. width: calc(100% - 180rpx);
  158. box-sizing: border-box;
  159. padding: 10rpx 15rpx;
  160. .server-title {
  161. display: flex;
  162. margin-bottom: 10rpx;
  163. }
  164. .coupon {
  165. display: flex;
  166. justify-content: center;
  167. align-items: center;
  168. background: #F29E45;
  169. color: white;
  170. width: 120rpx;
  171. height: 40rpx;
  172. border-radius: 10rpx;
  173. margin-left: 10rpx;
  174. font-size: 22rpx;
  175. }
  176. .time-coupon,
  177. .price {
  178. display: flex;
  179. flex-wrap: wrap;
  180. align-items: center;
  181. }
  182. .time-coupon {
  183. margin: 10rpx 0rpx;
  184. font-size: 26rpx;
  185. justify-content: space-between;
  186. width: 100%;
  187. .flex {
  188. justify-content: center;
  189. align-items: center;
  190. }
  191. image {
  192. width: 25rpx;
  193. height: 25rpx;
  194. }
  195. .time {
  196. color: #B8B8B8;
  197. margin-left: 6rpx;
  198. }
  199. }
  200. .sales-volume {
  201. display: flex;
  202. align-items: center;
  203. color: #B8B8B8;
  204. font-size: 24rpx;
  205. image {
  206. width: 25rpx;
  207. height: 25rpx;
  208. }
  209. }
  210. }
  211. }
  212. .address {
  213. .address-top {
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. image {
  218. width: 30rpx;
  219. height: 30rpx;
  220. }
  221. }
  222. .addressDetail {
  223. color: #777;
  224. font-size: 26rpx;
  225. padding: 5px 0;
  226. }
  227. text {
  228. background-color: #F29E45;
  229. padding: 8rpx 10rpx;
  230. color: #fff;
  231. font-size: 20rpx;
  232. margin-left: 10px;
  233. border-radius: 5px;
  234. }
  235. }
  236. .min_tips {
  237. font-size: 22rpx;
  238. color: #777;
  239. display: flex;
  240. justify-content: space-between;
  241. padding: 5px 0;
  242. align-items: center;
  243. }
  244. .btns {
  245. display: flex;
  246. justify-content: center;
  247. align-items: center;
  248. gap: 40rpx;
  249. .oneBtn {
  250. display: flex;
  251. align-items: center;
  252. justify-content: center;
  253. width: 40%;
  254. height: 70rpx;
  255. padding: 10rpx;
  256. border-radius: 40rpx;
  257. color: white;
  258. font-size: 28rpx;
  259. margin: 20rpx 10rpx 0 0;
  260. background: #293143;
  261. //margin-top: 20rpx;
  262. border-radius: 40rpx;
  263. }
  264. .twoBtn {
  265. display: flex;
  266. align-items: center;
  267. justify-content: center;
  268. width: 40%;
  269. height: 70rpx;
  270. padding: 10rpx;
  271. border-radius: 40rpx;
  272. color: #000000;
  273. font-size: 28rpx;
  274. margin: 20rpx 10rpx 0 0;
  275. background: #f2f2f2;
  276. //margin-top: 20rpx;
  277. border-radius: 40rpx;
  278. }
  279. }
  280. .xdxz {
  281. font-size: 24rpx;
  282. color: #777;
  283. line-height: 30rpx;
  284. }
  285. .current-price {
  286. font-size: 24rpx;
  287. color: #8c8888;
  288. .unit {
  289. }
  290. .text {
  291. }
  292. }
  293. .line {
  294. border-top: 2px dotted #00000011;
  295. padding: 20rpx 0;
  296. .t {
  297. padding: 5px 0;
  298. color: #000;
  299. font-size: 26rpx;
  300. }
  301. }
  302. .head-div {
  303. .nickname {
  304. font-size: 30rpx;
  305. font-weight: 600;
  306. text-align: left;
  307. line-height: 42rpx;
  308. display: flex;
  309. align-items: center;
  310. .tag {
  311. position: relative;
  312. display: flex;
  313. align-items: center;
  314. image {
  315. height: 45rpx;
  316. width: 90rpx;
  317. vertical-align: middle;
  318. }
  319. .auth {
  320. position: absolute;
  321. white-space: nowrap;
  322. color: $uni-color;
  323. left: 23rpx;
  324. font-size: 17rpx;
  325. }
  326. }
  327. }
  328. .days {
  329. font-size: 20rpx;
  330. font-weight: 400;
  331. text-align: left;
  332. line-height: 56rpx;
  333. display: flex;
  334. align-items: center;
  335. view {
  336. padding-left: 5px;
  337. }
  338. }
  339. }
  340. .btn-x {
  341. color: $uni-color;
  342. border: 1px solid $uni-color;
  343. padding: 10rpx 20rpx;
  344. border-radius: 30rpx;
  345. }
  346. .btns {
  347. display: flex;
  348. justify-content: center;
  349. .btn {
  350. color: $uni-color;
  351. border: 1px solid $uni-color;
  352. padding: 10rpx 20rpx;
  353. border-radius: 30rpx;
  354. }
  355. }
  356. }
  357. }
  358. </style>