deliveryInformation.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view style="margin-top: 160rpx;"></view>
  6. <view v-if="projectForm == 1">
  7. <view class="address">
  8. <view class="address_icon">
  9. <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_loc" mode="">
  10. </image>
  11. </view>
  12. <view style="width: 70%;">
  13. <view style="display: flex;">
  14. <p class='ipon' style="padding-right: 100rpx;">{{address.receiver_name}}</p>
  15. <p class='ipon'>{{address.phone_number}}</p>
  16. </view>
  17. <p class='ipon'>{{address.detail_addr}}</p>
  18. </view>
  19. <view class="address_edit" @click="editAddress()">
  20. <image :src="picture.icon_edit" mode="">
  21. </image>
  22. </view>
  23. </view>
  24. <view class="logistics1">
  25. <p style="margin-bottom: 10rpx;">物流公司:{{logistics.company_name}}</p>
  26. <p>物流单号:{{logistics.logistics_number}}</p>
  27. </view>
  28. </view>
  29. <view v-if="projectForm == 2" style="margin: 0 10%;">
  30. <p>券码信息:{{logistics.coupon_code_information}}</p>
  31. </view>
  32. <view v-if="projectForm == 3" style="margin: 0 10%;">
  33. <p style="margin-bottom: 30rpx;">探店时间</p>
  34. <p>{{logistics.explorestore_starttime}} &nbsp;&nbsp;至&nbsp;&nbsp;{{logistics.explorestore_endtime}}</p>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import mvBar from "@/components/mys_navBar/mysNavBar";
  40. export default {
  41. components: {
  42. mvBar,
  43. },
  44. data() {
  45. return {
  46. address: {},
  47. taskId: "",
  48. projectForm: "",
  49. logistics: {},
  50. picture: {
  51. togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
  52. icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png',
  53. icon_loc: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png',
  54. icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
  55. home8: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png',
  56. home10: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png',
  57. home11: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png',
  58. },
  59. mysNavConfig: {
  60. /* 开启单页显示首页图标 */
  61. isHome: true,
  62. /* 固定导航 */
  63. navFixed: true,
  64. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  65. navTitle: {
  66. text: "物流信息",
  67. color: "",
  68. fontSize: "32rpx", // px upx rpx
  69. fontWeight: "normal", // 100 - 700
  70. },
  71. btnType: "type2",
  72. onLeftClick: '',
  73. /* type2 按钮 */
  74. type2Config: {
  75. // 左图标
  76. leftPath: "/static/img/png2.png",
  77. // 右图标
  78. rightPath: "/static/img/png4.png",
  79. // 圆角
  80. radius: "40rpx",
  81. },
  82. },
  83. }
  84. },
  85. onLoad(options) {
  86. let data = options.textObj.replace(/""/g, "");
  87. data = JSON.parse(decodeURIComponent(data))
  88. this.address = data.address
  89. this.taskId = data.taskId
  90. this.projectForm = data.projectForm
  91. uni.showLoading({
  92. title: '加载中'
  93. });
  94. this.getTaskInfo()
  95. },
  96. methods: {
  97. getTaskInfo() {
  98. this.$https.get('/youngee/c/t/g/get-task-logistics-info' +
  99. "?" +
  100. "task_id" +
  101. "=" +
  102. this.taskId
  103. ).then(res => {
  104. this.logistics = res.data.data
  105. this.logistics.explorestore_starttime = this.logistics.explorestore_starttime.slice(0, 16)
  106. this.logistics.explorestore_endtime = this.logistics.explorestore_endtime.slice(0, 16)
  107. this.loading = false;
  108. uni.hideLoading();
  109. })
  110. },
  111. }
  112. }
  113. </script>
  114. <style lang="scss" scoped>
  115. p {
  116. font-size: 30rpx;
  117. }
  118. .address {
  119. display: flex;
  120. margin: 20rpx 0;
  121. // padding: 20rpx 20rpx;
  122. background-color: #FFFFFF;
  123. justify-content: space-around;
  124. align-items: center;
  125. .address_icon {
  126. width: 15%;
  127. vertical-align: middle;
  128. display: flex;
  129. justify-content: center;
  130. }
  131. .address_edit {
  132. width: 15%;
  133. }
  134. .address_edit image {
  135. vertical-align: middle;
  136. width: 50rpx;
  137. height: 50rpx;
  138. display: inline-block;
  139. padding-right: 14rpx;
  140. }
  141. .ipon {
  142. color: #333333;
  143. font-size: 30rpx;
  144. font-weight: 500;
  145. margin-bottom: 10rpx;
  146. }
  147. }
  148. .logistics1 {
  149. margin-left: 15%;
  150. margin-top: 50rpx;
  151. }
  152. </style>