deliveryInformation.vue 4.4 KB

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