123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <template>
- <view style="position: relative;">
- <!-- 胶囊 -->
- <mvBar :mysNavConfig="mysNavConfig"></mvBar>
- <view :style="{marginTop:navH}"></view>
- <view v-if="projectForm == 1">
- <view class="address">
- <view class="address_icon">
- <image style="width: 50rpx;height: 50rpx;" :src="picture.icon_loc" mode="">
- </image>
- </view>
- <view style="width: 70%;">
- <view style="display: flex;">
- <p class='ipon' style="padding-right: 100rpx;">{{address.receiver_name}}</p>
- <p class='ipon'>{{address.phone_number}}</p>
- </view>
- <p class='ipon'>{{address.full_detail_addr}}</p>
- </view>
- <!-- <view class="address_edit" @click="editAddress()">
- <image :src="picture.icon_edit" mode="">
- </image>
- </view> -->
- </view>
- <view class="logistics1" style="margin: 0 27%;">
- <p style="margin-bottom: 10rpx;">物流公司:{{logistics.company_name}}</p>
- <span style="display: flex;align-items: center;">
- <p>物流单号:{{logistics.logistics_number}}</p>
- <image :src="icon_copy" mode="" style="width: 40rpx;height: 40rpx;"
- @click="handleCopy(logistics.logistics_number)" />
- </span>
- </view>
- </view>
- <view v-if="projectForm == 2" style="margin: 0 27%;">
- <span style="display: flex;align-items: center;">
- <p>券码信息:{{logistics.coupon_code_information}}</p>
- <image :src="icon_copy" mode="" style="width: 40rpx;height: 40rpx;"
- @click="handleCopy(logistics.coupon_code_information)" />
- </span>
- </view>
- <view v-if="projectForm == 3" style="margin: 0 10%;">
- <p style="margin-bottom: 30rpx;">探店时间</p>
- <p>{{logistics.explorestore_starttime}} 至 {{logistics.explorestore_endtime}}</p>
- </view>
- </view>
- </template>
- <script>
- import mvBar from "@/components/mys_navBar/mysNavBar";
- export default {
- components: {
- mvBar,
- },
- data() {
- return {
- icon_copy: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-copy.png',
- navH: getApp().globalData.navHeight,
- address: {},
- taskId: "",
- projectForm: "",
- logistics: {
- company_name: "",
- logistics_number: "",
- coupon_code_information: "",
- explorestore_starttime: "",
- explorestore_endtime: ""
- },
- picture: {
- togoimg: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task16.png',
- icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png',
- icon_loc: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png',
- icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
- home8: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png',
- home10: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png',
- home11: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png',
- },
- mysNavConfig: {
- /* 开启单页显示首页图标 */
- isHome: true,
- /* 固定导航 */
- navFixed: true,
- /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
- navTitle: {
- text: "物流信息",
- color: "",
- fontSize: "32rpx", // px upx rpx
- fontWeight: "normal", // 100 - 700
- },
- btnType: "type2",
- onLeftClick: '',
- /* type2 按钮 */
- type2Config: {
- // 左图标
- leftPath: "/static/img/png2.png",
- // 右图标
- rightPath: "/static/img/png4.png",
- // 圆角
- radius: "40rpx",
- },
- },
- }
- },
- onLoad(options) {
- let data = options.textObj.replace(/""/g, "");
- data = JSON.parse(decodeURIComponent(data))
- this.address = data.address
- this.taskId = data.taskId
- this.projectForm = data.projectForm
- uni.showLoading({
- title: '加载中'
- });
- this.getLogisticsInfo()
- },
- methods: {
- handleCopy(content) {
- wx.setClipboardData({
- data: content,
- success: function(res) {
- console.log("复制成功");
- }
- });
- },
- getLogisticsInfo() {
- this.$https.get('/youngee/c/t/g/get-task-logistics-info' +
- "?" +
- "task_id" +
- "=" +
- this.taskId
- ).then(res => {
- this.logistics = res.data.data
- this.logistics.explorestore_starttime = this.logistics.explorestore_starttime.slice(0, 16)
- this.logistics.explorestore_endtime = this.logistics.explorestore_endtime.slice(0, 16)
- this.loading = false;
- uni.hideLoading();
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- p {
- font-size: 30rpx;
- }
- .address {
- display: flex;
- margin: 20rpx 0;
- // padding: 20rpx 20rpx;
- background-color: #FFFFFF;
- justify-content: space-around;
- align-items: center;
- .address_icon {
- width: 15%;
- vertical-align: middle;
- display: flex;
- justify-content: center;
- }
- .address_edit {
- width: 15%;
- }
- .address_edit image {
- vertical-align: middle;
- width: 50rpx;
- height: 50rpx;
- display: inline-block;
- padding-right: 14rpx;
- }
- .ipon {
- color: #333333;
- font-size: 30rpx;
- font-weight: 500;
- margin-bottom: 10rpx;
- }
- }
- .logistics1 {
- margin-left: 15%;
- margin-top: 50rpx;
- }
- </style>
|