deliveryInformation.vue 5.2 KB

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