orderDetail.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <template>
  2. <view class="orderDetail">
  3. <!-- 标题栏 -->
  4. <view class="nav">
  5. <text class="orderStatus">待收货</text>
  6. </view>
  7. <view class="midBox">
  8. <!-- 物流信息 -->
  9. <view class="logistics" v-if="true">
  10. <view class="logisticsTitle">物流信息</view>
  11. <view class="logisticsMsg"><text>快递公司</text><text style="margin-left: 26rpx;">京东快递</text></view>
  12. <view class="logisticsMsg"><text>快递单号</text><text style="margin-left: 26rpx;">JD39084237234</text>
  13. </view>
  14. <view class="copy" @click="copyOrder">复制</view>
  15. </view>
  16. <!-- 配送信息 -->
  17. <view class="delivery">
  18. <view class="deliveryTitle">
  19. <text>配送信息</text>
  20. </view>
  21. <view class="deliveryMsg" >
  22. <image class="bgimg" src="http://t9.9026.com/imgs/ordermap.png"></image>
  23. <!-- 联系信息 -->
  24. <view class="deliveryicon">
  25. <image src="/static/icon/phone.png"></image>
  26. <text>联系信息</text>
  27. </view>
  28. <view class="deliverytext">
  29. <text>刘奕伶</text>
  30. <text style="margin-left: 24rpx;">400-123-4567</text>
  31. </view>
  32. <!-- 发货方式 -->
  33. <view class="deliveryicon">
  34. <image src="/static/icon/delivery.png"></image>
  35. <text>发货方式</text>
  36. </view>
  37. <view class="deliverytext">
  38. <text>快递发货</text>
  39. </view>
  40. <!-- 收货地址 -->
  41. <view class="deliveryicon" v-if="true">
  42. <image src="/static/icon/position.png"></image>
  43. <text>收货地址</text>
  44. </view>
  45. <view class="deliverytext" v-if="true">
  46. <text>四川省 成都市 高新区 XXX小区 XXX号</text>
  47. </view>
  48. <!-- 门店地址 -->
  49. <view class="deliveryicon" v-if="false">
  50. <image src="/static/icon/position.png"></image>
  51. <text>门店地址</text>
  52. </view>
  53. <view class="deliverytext" v-if="false" style="position:relative;">
  54. <text>四川省 成都市 高新区 XXX小区 XXX号</text>
  55. <image src="/static/icon/navigation.png"
  56. style="width: 50rpx;height: 48rpx; position: absolute; top: 0rpx;right: 30rpx;"></image>
  57. </view>
  58. <!-- 门店联系方式 -->
  59. <view class="deliveryicon" v-if="false">
  60. <image src="/static/icon/phone.png"></image>
  61. <text>门店联系方式</text>
  62. </view>
  63. <view class="deliverytext" v-if="false">
  64. <text>400-123-4567</text>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 订单信息 -->
  69. <view class="myorder">
  70. <view class="orderTitle">订单信息</view>
  71. <view class="orderMsg"><text>订单编号</text><text style="margin-left: 26rpx;">62aae0eb9c6fd622</text></view>
  72. <view class="orderMsg"><text>下单时间</text><text style="margin-left: 26rpx;">2022-08-20 12:32:12</text>
  73. </view>
  74. <view class="copyorder" @click="copyOrder">复制</view>
  75. </view>
  76. </view>
  77. <!-- 产品信息 -->
  78. <view class="shopMsg">
  79. <view class="title">
  80. <text>产品信息</text>
  81. </view>
  82. <view class="shopCard">
  83. <image src="/static/icon/Kudosbg.png"></image>
  84. <view style="margin-left: 24rpx;">
  85. <text class="name">端午佳节五香肉粽子,仅限前</text>
  86. <text class="tag">礼盒装 2000积分</text>
  87. </view>
  88. </view>
  89. <view class="shopNumber">
  90. <text>件数</text>
  91. <text>1件</text>
  92. </view>
  93. <view class="shopNumber">
  94. <text>积分</text>
  95. <text>2000积分</text>
  96. </view>
  97. <view style="width: 694rpx;height: 4rpx;border: 2rpx solid #F2F2F2;margin-top: 38rpx;"></view>
  98. <view class="shopNumber">
  99. <text>合计</text>
  100. <text>2000积分</text>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. data() {
  108. return {
  109. }
  110. },
  111. methods: {
  112. // 复制订单号
  113. copyOrder(){
  114. uni.setClipboardData({
  115. data: 'hello',
  116. success: function () {
  117. uni.showToast({
  118. title:'复制成功!'
  119. })
  120. }
  121. });
  122. }
  123. },
  124. computed: {
  125. }
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. $pageColor:#F9F9F9;
  130. $bgColor:#FFFFFF;
  131. // flex布局居中对齐
  132. @mixin flexlayout {
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. }
  137. .orderDetail {
  138. height: 100%;
  139. background: $pageColor;
  140. }
  141. .nav {
  142. width: 750rpx;
  143. height: 108rpx;
  144. background: $bgColor;
  145. border-radius: 0px 0px 16rpx 16rpx;
  146. padding: 32rpx 0 0 28rpx;
  147. box-sizing: border-box;
  148. .orderStatus {
  149. font-size: 40rpx;
  150. font-family: PingFang-SC-Bold, PingFang-SC;
  151. font-weight: bold;
  152. color: #FF6200;
  153. }
  154. }
  155. .midBox {
  156. margin-top: 24rpx;
  157. width: 750rpx;
  158. background: $bgColor;
  159. border-radius: 16rpx;
  160. position: relative;
  161. padding: 40rpx 28rpx;
  162. box-sizing: border-box;
  163. .logistics {
  164. position: relative;
  165. .logisticsTitle {
  166. margin-bottom: 25rpx;
  167. font-size: 30rpx;
  168. font-family: PingFang-SC-Bold, PingFang-SC;
  169. font-weight: bold;
  170. color: #080F18;
  171. }
  172. .logisticsMsg {
  173. margin-bottom: 25rpx;
  174. text {
  175. font-size: 28rpx;
  176. font-family: PingFang-SC-Medium, PingFang-SC;
  177. font-weight: 500;
  178. color: #666666;
  179. }
  180. }
  181. .copy {
  182. position: absolute;
  183. right: 30rpx;
  184. top: 68rpx;
  185. font-size: 28rpx;
  186. font-family: PingFang-SC-Medium, PingFang-SC;
  187. font-weight: 500;
  188. color: #FF6200;
  189. }
  190. }
  191. .myorder {
  192. position: relative;
  193. .orderTitle {
  194. margin-bottom: 25rpx;
  195. font-size: 30rpx;
  196. font-family: PingFang-SC-Bold, PingFang-SC;
  197. font-weight: bold;
  198. color: #080F18;
  199. }
  200. .orderMsg {
  201. margin-bottom: 25rpx;
  202. text {
  203. font-size: 28rpx;
  204. font-family: PingFang-SC-Medium, PingFang-SC;
  205. font-weight: 500;
  206. color: #666666;
  207. }
  208. }
  209. .copyorder {
  210. position: absolute;
  211. right: 30rpx;
  212. bottom: 72rpx;
  213. font-size: 28rpx;
  214. font-family: PingFang-SC-Medium, PingFang-SC;
  215. font-weight: 500;
  216. color: #FF6200;
  217. }
  218. }
  219. .delivery {
  220. margin-bottom: 20rpx;
  221. .deliveryTitle {
  222. margin-bottom: 24rpx;
  223. text {
  224. font-size: 32rpx;
  225. font-family: PingFang-SC-Bold, PingFang-SC;
  226. font-weight: bold;
  227. color: #080F18;
  228. }
  229. }
  230. .deliveryMsg {
  231. width: 694rpx;
  232. display: flex;
  233. flex-direction: column;
  234. justify-content: center;
  235. padding-top: 24rpx;
  236. position: relative;
  237. .bgimg{
  238. width: 100%;
  239. height: 100%;
  240. position: absolute;
  241. top:0rpx;
  242. }
  243. .deliveryicon {
  244. margin-bottom: 15rpx;
  245. display: flex;
  246. align-items: center;
  247. z-index: 999;
  248. image {
  249. width: 26rpx;
  250. height: 26rpx;
  251. margin-right: 5rpx;
  252. }
  253. text {
  254. font-size: 28rpx;
  255. font-family: PingFang-SC-Medium, PingFang-SC;
  256. font-weight: 500;
  257. color: #333333;
  258. }
  259. }
  260. .deliverytext {
  261. margin-bottom: 20rpx;
  262. z-index: 999;
  263. text {
  264. font-size: 28rpx;
  265. font-family: PingFangSC-Medium, PingFang SC;
  266. font-weight: 500;
  267. color: #080F18;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. .shopMsg {
  274. margin-top: 24rpx;
  275. width: 750rpx;
  276. height: 534rpx;
  277. background: $bgColor;
  278. border-radius: 12rpx 12rpx 0px 0px;
  279. padding: 32rpx 30rpx;
  280. box-sizing: border-box;
  281. .title {
  282. margin-bottom: 24rpx;
  283. text {
  284. font-size: 32rpx;
  285. font-family: PingFang-SC-Bold, PingFang-SC;
  286. font-weight: bold;
  287. color: #080F18;
  288. }
  289. }
  290. .shopCard {
  291. margin-top: 28rpx;
  292. width: 694rpx;
  293. height: 164rpx;
  294. background: #F4F5F6;
  295. border-radius: 10rpx;
  296. display: flex;
  297. align-items: center;
  298. image {
  299. width: 132rpx;
  300. height: 132rpx;
  301. margin-left: 16rpx;
  302. display: inline-block;
  303. border-radius: 10rpx;
  304. }
  305. .name {
  306. font-size: 28rpx;
  307. font-family: PingFangSC-Medium, PingFang SC;
  308. font-weight: 500;
  309. color: #080F18;
  310. display: block;
  311. }
  312. .tag {
  313. font-size: 24rpx;
  314. font-family: PingFang-SC-Medium, PingFang-SC;
  315. font-weight: 500;
  316. color: #666666;
  317. }
  318. }
  319. .shopNumber {
  320. display: flex;
  321. justify-content: space-between;
  322. align-items: center;
  323. margin-top: 25rpx;
  324. text {
  325. font-size: 26rpx;
  326. font-family: PingFang-SC-Medium, PingFang-SC;
  327. font-weight: 500;
  328. color: #000000;
  329. }
  330. }
  331. }
  332. </style>