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

415 lines
8.7 KiB

8 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="挂单详情" 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. 铝制品
  14. </view>
  15. <view class="current-price">
  16. <text class="unit">产品规格</text>
  17. <text class="text">铝锭al>96%</text>
  18. </view>
  19. <view class="sales-volume" style="margin-top: 5px;">
  20. <view class="desc">提货日期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. 收货地址
  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. 订单信息
  48. </view>
  49. </view>
  50. <view class="min_tips">
  51. <view class="">
  52. 订单编号
  53. </view>
  54. <view class="">
  55. SF20210810001
  56. </view>
  57. </view>
  58. <view class="min_tips">
  59. <view class="">
  60. 下单时间
  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. 下单须知
  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. 我要撤单
  85. </view>
  86. <view @click="$refs.customerServicePopup.open()" class="twoBtn">
  87. 联系客服
  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: 30%;
  254. height: 70rpx;
  255. border-radius: 40rpx;
  256. color: white;
  257. font-size: 28rpx;
  258. margin: 20rpx 10rpx 0 0;
  259. background: #293143;
  260. //margin-top: 20rpx;
  261. border-radius: 40rpx;
  262. }
  263. .twoBtn {
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. width: 30%;
  268. height: 70rpx;
  269. border-radius: 40rpx;
  270. color: #000000;
  271. font-size: 28rpx;
  272. margin: 20rpx 10rpx 0 0;
  273. background: #f2f2f2;
  274. //margin-top: 20rpx;
  275. border-radius: 40rpx;
  276. }
  277. }
  278. .xdxz {
  279. font-size: 24rpx;
  280. color: #777;
  281. line-height: 30rpx;
  282. }
  283. .current-price {
  284. font-size: 24rpx;
  285. color: #8c8888;
  286. .unit {
  287. }
  288. .text {
  289. }
  290. }
  291. .line {
  292. border-top: 2px dotted #00000011;
  293. padding: 20rpx 0;
  294. .t {
  295. padding: 5px 0;
  296. color: #000;
  297. font-size: 26rpx;
  298. }
  299. }
  300. .head-div {
  301. .nickname {
  302. font-size: 30rpx;
  303. font-weight: 600;
  304. text-align: left;
  305. line-height: 42rpx;
  306. display: flex;
  307. align-items: center;
  308. .tag {
  309. position: relative;
  310. display: flex;
  311. align-items: center;
  312. image {
  313. height: 45rpx;
  314. width: 90rpx;
  315. vertical-align: middle;
  316. }
  317. .auth {
  318. position: absolute;
  319. white-space: nowrap;
  320. color: $uni-color;
  321. left: 23rpx;
  322. font-size: 17rpx;
  323. }
  324. }
  325. }
  326. .days {
  327. font-size: 20rpx;
  328. font-weight: 400;
  329. text-align: left;
  330. line-height: 56rpx;
  331. display: flex;
  332. align-items: center;
  333. view {
  334. padding-left: 5px;
  335. }
  336. }
  337. }
  338. .btn-x {
  339. color: $uni-color;
  340. border: 1px solid $uni-color;
  341. padding: 10rpx 20rpx;
  342. border-radius: 30rpx;
  343. }
  344. .btns {
  345. display: flex;
  346. justify-content: center;
  347. .btn {
  348. color: $uni-color;
  349. border: 1px solid $uni-color;
  350. padding: 10rpx 20rpx;
  351. border-radius: 30rpx;
  352. }
  353. }
  354. }
  355. }
  356. </style>