orderDetail.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <template>
  2. <view class="page" >
  3. <!-- 订单状态 -->
  4. <view class="title">
  5. <view>
  6. <view class="payment">
  7. {{title}}
  8. </view>
  9. </view>
  10. </view>
  11. <!-- 订单状态 -->
  12. <!-- 地址信息 -->
  13. <view class="address">
  14. <view class="name-phone">
  15. <u-icon name="map" size="22"></u-icon>
  16. <view style="margin: 0 20rpx;font-size: 32rpx;">陈曦</view>
  17. <text class="phone">17800000000</text>
  18. </view>
  19. <view class="address-detail">
  20. 江苏省淮安市清江浦区北京南路99号(青浦大桥南侧200
  21. 米)淮安恒大名都3号楼一单元1602
  22. </view>
  23. <view class="logistics" v-if="status == 3||status == 4">
  24. <text class="_label">物流单号</text>
  25. <view class="num">
  26. <text>圆通快递</text>
  27. <text >{{"&nbsp;"+"|"+"&nbsp;"}}</text>
  28. <text>123456789</text>
  29. <image class="cope-icon" src="../../static/mine/349.png" mode=""></image>
  30. </view>
  31. </view>
  32. </view>
  33. <commodityDetailVue :status="status" />
  34. <view class="order">
  35. <view class="order-number">
  36. <text>
  37. 订单编号
  38. </text>
  39. <view>
  40. 8998391920137645 | <text decode @click="cope('111')">{{"&nbsp;"+"复制"}}</text>
  41. </view>
  42. </view>
  43. <view class="order-number">
  44. <text>
  45. 支付方式
  46. </text>
  47. <view>
  48. 微信支付
  49. </view>
  50. </view>
  51. <view class="order-number">
  52. <text>
  53. 支付时间
  54. </text>
  55. <view>
  56. 2023-12-08 22:40:03
  57. </view>
  58. </view>
  59. <view class="order-number">
  60. <text>
  61. 创建时间
  62. </text>
  63. <view>
  64. 2023-12-08 22:40:03
  65. </view>
  66. </view>
  67. <view class="order-number">
  68. <text>
  69. 运输方式
  70. </text>
  71. <view>
  72. 海运
  73. </view>
  74. </view>
  75. <view class="order-number">
  76. <text>
  77. 包裹数量
  78. </text>
  79. <view>
  80. 210
  81. </view>
  82. </view>
  83. </view>
  84. <view class="footer" v-if="status != 3">
  85. <button class="status-2" v-if="status == 1">缴纳保证金</button>
  86. <button class="status-1" v-if="status == 2">备注</button>
  87. <button class="status-2" v-if="status == 2">立即发货</button>
  88. <button class="status-1" v-if="status == 4">查看物流</button>
  89. </view>
  90. </view>
  91. </template>
  92. <script>
  93. import commodityDetailVue from './component/commodityDetail.vue'
  94. export default {
  95. components: {
  96. commodityDetailVue
  97. },
  98. data() {
  99. return {
  100. status: 6,
  101. show: false,
  102. title:""
  103. }
  104. },
  105. onLoad(option) {
  106. this.status = option.orderStatus
  107. if(option.orderStatus == 1){
  108. this.title = "待缴纳保证金"
  109. }else if(option.orderStatus == 2){
  110. this.title = "待团长发货"
  111. }else if(option.orderStatus == 3){
  112. this.title = "待总部发货"
  113. }else if(option.orderStatus == 4){
  114. this.title = "总部已发货"
  115. }
  116. },
  117. methods: {
  118. //复制
  119. cope(e) {
  120. uni.setClipboardData({
  121. data: e,
  122. success() {
  123. uni.showToast({
  124. title: "复制成功",
  125. icon: "none"
  126. })
  127. }
  128. })
  129. },
  130. },
  131. created() {
  132. //设置顶部标题栏颜色
  133. uni.setNavigationBarColor({
  134. frontColor: '#000000',
  135. backgroundColor: '#f4f4f4'
  136. })
  137. },
  138. }
  139. </script>
  140. <style scoped lang="scss">
  141. .page {
  142. padding: 20rpx 24rpx 180rpx;
  143. .title {
  144. .payment {
  145. font-size: 44rpx;
  146. font-weight: 600;
  147. margin-bottom: 20rpx;
  148. }
  149. .timer {
  150. font-size: 28rpx;
  151. color: #666;
  152. }
  153. }
  154. .address {
  155. background-color: #fff;
  156. border-radius: 16rpx;
  157. padding: 34rpx 24rpx 28rpx;
  158. margin-top: 24rpx;
  159. .name-phone {
  160. display: flex;
  161. align-items: center;
  162. align-items: flex-end;
  163. .phone {
  164. font-size: 26rpx;
  165. color: #666;
  166. }
  167. }
  168. .address-detail {
  169. margin-top: 20rpx;
  170. font-size: 24rpx;
  171. color: #444;
  172. margin-left: 60rpx;
  173. }
  174. .logistics{
  175. display: flex;
  176. justify-content: space-between;
  177. align-items: center;
  178. font-size: 28rpx;
  179. padding-top: 20rpx;
  180. border-top: 2rpx solid #F4F4F4;
  181. margin-top: 20rpx;
  182. ._label{
  183. color: #222;
  184. }
  185. .num{
  186. color: #555;
  187. display: flex;
  188. align-items: center;
  189. }
  190. .cope-icon{
  191. width: 28rpx;
  192. height: 28rpx;
  193. margin-left: 6rpx;
  194. }
  195. }
  196. }
  197. .order {
  198. background-color: #fff;
  199. border-radius: 16rpx;
  200. color: rgba(54, 54, 54, .7);
  201. font-size: 28rpx;
  202. margin-top: 20rpx;
  203. padding: 20rpx 20rpx;
  204. .order-number {
  205. display: flex;
  206. justify-content: space-between;
  207. margin-bottom: 32rpx;
  208. }
  209. }
  210. .contact {
  211. padding: 20rpx 0;
  212. background-color: #fff;
  213. display: flex;
  214. justify-content: center;
  215. align-items: center;
  216. border-radius: 16rpx;
  217. margin-top: 20rpx;
  218. margin-bottom: 160rpx;
  219. }
  220. .footer {
  221. position: fixed;
  222. bottom: 0;
  223. left: 0;
  224. background-color: #fff;
  225. display: flex;
  226. justify-content: flex-end;
  227. align-items: center;
  228. padding-top: 20rpx;
  229. padding-bottom: 80rpx;
  230. height: 66rpx;
  231. width: 100%;
  232. .status-1 {
  233. background-color: #fff;
  234. border-radius: 34rpx;
  235. margin: 0;
  236. padding: 0;
  237. font-size: 28rpx;
  238. color: #222;
  239. width: 168rpx;
  240. height: 68rpx;
  241. margin-right: 20rpx;
  242. border: 2rpx solid #979797;
  243. }
  244. .status-2 {
  245. background-color: #ffffff;
  246. border-radius: 34rpx;
  247. margin: 0;
  248. padding: 0;
  249. font-size: 28rpx;
  250. color: #f83224;
  251. height: 68rpx;
  252. border: 2rpx solid #f83224;
  253. margin-right: 24rpx;
  254. line-height: 68rpx;
  255. padding: 0 34rpx;
  256. }
  257. }
  258. .transition {
  259. width: 164rpx;
  260. height: 88rpx;
  261. background: #FFFFFF;
  262. box-shadow: 0rpx 0rpx 20rpx -6rpx rgba(0, 0, 0, 0.3);
  263. position: fixed;
  264. bottom: 160rpx;
  265. text-align: center;
  266. line-height: 88rpx;
  267. font-size: 26rpx;
  268. color: #222;
  269. }
  270. }
  271. </style>