deliveryInformation.vue 5.0 KB

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