distribution.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="">
  3. <u-navbar
  4. title="物流详情"
  5. :autoBack="true"
  6. :safeAreaInsetTop="true"
  7. >
  8. </u-navbar>
  9. <view class="map-wrap">
  10. <map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
  11. </view>
  12. <view class="base-info page-wrap">
  13. <view class="company base-item u-flex">
  14. <u--image :showLoading="false" :src="companylogo" width="60rpx" height="60rpx"></u--image>
  15. <text>顺丰快递:34535664987</text>
  16. </view>
  17. <view class="orderNo base-item">订单号:6754364543553545</view>
  18. <view class="addr base-item">收货地址:广东省广州市越秀区顶峰路334号腾讯大厦32楼3002号</view>
  19. </view>
  20. <view class="distribution page-wrap">
  21. <u-steps current="0" activeColor="#00A447" dot direction="column">
  22. <u-steps-item title="已下单" desc="10:30">
  23. </u-steps-item>
  24. <u-steps-item title="已出库" desc="10:35">
  25. </u-steps-item>
  26. <u-steps-item title="运输中" desc="11:40"></u-steps-item>
  27. </u-steps>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default{
  33. data(){
  34. return {
  35. staticUrl:this.$commonConfig.staticUrl,
  36. latitude: 30.659462,
  37. longitude: 104.065735,
  38. covers: [], //存放标记点数组
  39. companylogo:'',
  40. }
  41. },
  42. onLoad(page) {
  43. this.setCovers(this.latitude, this.longitude)
  44. },
  45. methods:{
  46. //设置点位
  47. setCovers(latitude, longitude) {
  48. let location = {
  49. id: 0,
  50. latitude: Number(latitude),
  51. longitude: Number(longitude),
  52. width: uni.upx2px(50),
  53. height: uni.upx2px(55),
  54. iconPath:this.$commonConfig.staticUrl+ '/img/index-nav-2.png'
  55. // iconPath: './../../static/location.png'
  56. }
  57. this.covers = [location]
  58. },
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .base-info{
  64. background-color: #fff;
  65. font-size: 32rpx;
  66. font-weight: 400;
  67. color: #333333;
  68. line-height: 45rpx;
  69. .base-item{
  70. padding: 20rpx;
  71. border-bottom: 0.5px solid #eee;
  72. }
  73. .company{
  74. font-weight: 600;
  75. color: #00A447;
  76. }
  77. .orderNo{
  78. }
  79. }
  80. .distribution{
  81. /deep/.u-steps{
  82. font-weight: 400;
  83. .u-text__value{
  84. font-size: 32rpx;
  85. color: #999999;
  86. line-height: 45rpx;
  87. }
  88. .u-text__value--main{
  89. color: #00A447;
  90. }
  91. .u-text__value--tips{
  92. font-size: 24rpx;
  93. line-height: 33rpx;
  94. }
  95. }
  96. }
  97. </style>