deliveryInformation.vue 4.8 KB

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