deliveryInformation.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></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.full_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. navH: getApp().globalData.navHeight,
  47. address: {},
  48. taskId: "",
  49. projectForm: "",
  50. logistics: {
  51. company_name:"",
  52. logistics_number:"",
  53. coupon_code_information:"",
  54. explorestore_starttime:"",
  55. explorestore_endtime:""
  56. },
  57. picture: {
  58. togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
  59. icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png',
  60. icon_loc: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png',
  61. icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
  62. home8: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png',
  63. home10: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png',
  64. home11: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png',
  65. },
  66. mysNavConfig: {
  67. /* 开启单页显示首页图标 */
  68. isHome: true,
  69. /* 固定导航 */
  70. navFixed: true,
  71. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  72. navTitle: {
  73. text: "物流信息",
  74. color: "",
  75. fontSize: "32rpx", // px upx rpx
  76. fontWeight: "normal", // 100 - 700
  77. },
  78. btnType: "type2",
  79. onLeftClick: '',
  80. /* type2 按钮 */
  81. type2Config: {
  82. // 左图标
  83. leftPath: "/static/img/png2.png",
  84. // 右图标
  85. rightPath: "/static/img/png4.png",
  86. // 圆角
  87. radius: "40rpx",
  88. },
  89. },
  90. }
  91. },
  92. onLoad(options) {
  93. let data = options.textObj.replace(/""/g, "");
  94. data = JSON.parse(decodeURIComponent(data))
  95. this.address = data.address
  96. this.taskId = data.taskId
  97. this.projectForm = data.projectForm
  98. uni.showLoading({
  99. title: '加载中'
  100. });
  101. this.getLogisticsInfo()
  102. },
  103. methods: {
  104. getLogisticsInfo() {
  105. this.$https.get('/youngee/c/t/g/get-task-logistics-info' +
  106. "?" +
  107. "task_id" +
  108. "=" +
  109. this.taskId
  110. ).then(res => {
  111. this.logistics = res.data.data
  112. this.logistics.explorestore_starttime = this.logistics.explorestore_starttime.slice(0, 16)
  113. this.logistics.explorestore_endtime = this.logistics.explorestore_endtime.slice(0, 16)
  114. this.loading = false;
  115. uni.hideLoading();
  116. })
  117. },
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. p {
  123. font-size: 30rpx;
  124. }
  125. .address {
  126. display: flex;
  127. margin: 20rpx 0;
  128. // padding: 20rpx 20rpx;
  129. background-color: #FFFFFF;
  130. justify-content: space-around;
  131. align-items: center;
  132. .address_icon {
  133. width: 15%;
  134. vertical-align: middle;
  135. display: flex;
  136. justify-content: center;
  137. }
  138. .address_edit {
  139. width: 15%;
  140. }
  141. .address_edit image {
  142. vertical-align: middle;
  143. width: 50rpx;
  144. height: 50rpx;
  145. display: inline-block;
  146. padding-right: 14rpx;
  147. }
  148. .ipon {
  149. color: #333333;
  150. font-size: 30rpx;
  151. font-weight: 500;
  152. margin-bottom: 10rpx;
  153. }
  154. }
  155. .logistics1 {
  156. margin-left: 15%;
  157. margin-top: 50rpx;
  158. }
  159. </style>