emis-sapp/pages/post/locus.vue

217 lines
5.2 KiB
Vue
Raw Normal View History

2023-12-13 17:06:13 +00:00
<template>
2023-12-16 17:34:29 +00:00
<tpx-layout>
<template v-slot:header></template>
<template v-slot:body>
<div style="min-height: 100%;display: flex;flex-direction: column;">
<view style="position: relative;">
<map :markers="map.markers" :latitude="map.latitude" :longitude="map.longitude"
style="width: 750rpx;height: 600rpx;"
></map>
<view class="mp-address-mask">
<u-row justify="between">
<u-row @click="setClipboardData(`T7080304038`)">
<view>
<u-text :text="'运单号:'+ 'T7080304038'" size="26"></u-text>
</view>
<view class="pl-10">
<u-icon name="file-text" size="32" custom-style=""></u-icon>
</view>
</u-row>
<view @click="goto(`post/detail?id={${22}}`)" class="com-tag-grey">
运单信息
</view>
</u-row>
<u-row @click="handleDealItem(orItem, { type: 1 })" custom-style="margin-top: 30rpx;" justify="center">
<u-col span="4">
<u-text :text="'中国上海'" size="30" :bold="true" align="center"></u-text>
<u-text :text="'张三'" size="26" color="#999" margin="20rpx 0 0 0"
align="center"></u-text>
</u-col>
<u-col span="4" justify="center" align="center" custom-style="text-align: center;">
<image style="width: 70rpx;height: 14rpx;" :src="getCdnUrl('search/toline.png')">
</image>
<!-- getCdnUrl('search/toline-grey.png') -->
<u-text :text="'待付款'" align="center" size="22" margin="10rpx 0 0 0"></u-text>
</u-col>
<u-col span="4">
<u-text :text="'越南'" size="30" :bold="true" align="center"></u-text>
<u-text :text="'李四'" size="26" color="#999" margin="20rpx 0 0 0"
align="center"></u-text>
</u-col>
</u-row>
<u-text :text="'下单时间:' + '2022-04-30 15:25'" color="#999" size="24"
margin="30rpx 0 0 0"></u-text>
2023-12-13 17:06:13 +00:00
</view>
2023-12-16 17:34:29 +00:00
<view class="mp-kuadiyuan-mask" @click="handleCallTel">
<u-row justify="between">
<u-row>
<tpx-image :src="getCdnUrl('post/run.png')" width="30" height="30"></tpx-image>
<view class="ml-20">探路小哥 - 黎明</view>
</u-row>
<tpx-image :src="getCdnUrl('post/call.png')" width="60" height="60"></tpx-image>
</u-row>
2023-12-13 17:06:13 +00:00
</view>
</view>
2023-12-16 17:34:29 +00:00
<view class="dt-block">
<view class="dt-item">
<buns-locus-pos :list="[{},{},{},{},{}]"></buns-locus-pos>
2023-12-13 17:06:13 +00:00
</view>
</view>
2023-12-16 17:34:29 +00:00
</div>
</template>
<template v-slot:footer>
<view class="blcok-white-noradius" style="margin-top: 0;">
<u-row justify="space-around">
<u-button @click="goBack()" :plain="true" size="large" shape="circle"
custom-style="margin: 0 10rpx;height:80rpx;font-size: 30rpx;">
返回
</u-button>
<u-button @click="goto(`post/post?id=${222}`)" type="primary" size="large" shape="circle"
custom-style="margin: 0 10rpx;height:80rpx;font-size: 30rpx;">再来一单
</u-button>
</u-row>
2023-12-13 17:06:13 +00:00
</view>
2023-12-16 17:34:29 +00:00
</template>
</tpx-layout>
2023-12-13 17:06:13 +00:00
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
2023-12-16 17:34:29 +00:00
import {
goto,
goBack,
setClipboardData,
confirmModal,
makePhoneCall,
showLoading
} from "@/common/untool"
2023-12-13 17:06:13 +00:00
export default {
props: {
// hasLeftWin: {
// type: Boolean
// }
},
2023-12-16 17:34:29 +00:00
computed: {},
2023-12-13 17:06:13 +00:00
data() {
return {
2023-12-16 17:34:29 +00:00
map: {
latitude: 23.106574, //纬度
longitude: 113.324587, //经度
scale: 13, //缩放级别
markers: [{
latitude: 23.106574, //纬度
longitude: 113.324587, //经度
title: '出发地',
iconPath: getCdnUrl('mine/tousu.png'),
width: 50,
height: 50,
label: {
content: '发货地址',
color: '#fff',
borderRadius: '10',
bgColor: '#B12D29',
padding: '10'
}
}]
}
2023-12-13 17:06:13 +00:00
}
},
onShareAppMessage() {
return {
// title: '',
// path: 'TODO'
}
},
onLoad(queryOption) {
this.queryOption = queryOption
this.initData();
},
2023-12-16 17:34:29 +00:00
onUnload() {},
2023-12-13 17:06:13 +00:00
methods: {
2023-12-16 17:34:29 +00:00
setClipboardData,
goBack,
goto,
2023-12-13 17:06:13 +00:00
getCdnUrl,
2023-12-16 17:34:29 +00:00
initData() {
2023-12-13 17:06:13 +00:00
// showLoading()
},
2023-12-16 17:34:29 +00:00
handleCallTel() {
makePhoneCall("114")
}
2023-12-13 17:06:13 +00:00
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
2023-12-16 17:34:29 +00:00
2023-12-13 17:06:13 +00:00
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
2023-12-16 17:34:29 +00:00
.mp-address-mask, .mp-kuadiyuan-mask{
z-index: 1000;
position: absolute;
left: 30rpx;
right: 30rpx;
}
.mp-address-mask{
padding: 20rpx 30rpx;
top: 30rpx;
background: #FFFFFF;
border-radius: 20rpx;
2023-12-13 17:06:13 +00:00
}
2023-12-16 17:34:29 +00:00
.mp-kuadiyuan-mask{
padding: 12rpx 10rpx 12rpx 30rpx;
bottom: 20rpx;
color: #fff;
&::after{
border-radius: 36rpx;
content: ' ';
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: #0E0708;
opacity: 0.5;
z-index: -1;
}
}
.dt-block {
flex: 1;
border-radius: 30rpx 30rpx 0rpx 0rpx;
2023-12-13 17:06:13 +00:00
padding: 30rpx;
background-color: #FFF;
position: relative;
}
2023-12-16 17:34:29 +00:00
.dt-tle {
2023-12-13 17:06:13 +00:00
display: flex;
flex-direction: row;
2023-12-16 17:34:29 +00:00
justify-content: space-between;
.t1 {
font-size: 30rpx;
font-weight: 600;
2023-12-13 17:06:13 +00:00
}
2023-12-16 17:34:29 +00:00
.t2 {
font-size: 30rpx;
2023-12-13 17:06:13 +00:00
}
}
2023-12-16 17:34:29 +00:00
.dt-item {
2023-12-13 17:06:13 +00:00
display: flex;
flex-direction: row;
2023-12-16 17:34:29 +00:00
margin-bottom: 20rpx;
2023-12-13 17:06:13 +00:00
justify-content: space-between;
}
</style>