shjz-applet/pages/gps/gps.vue

83 lines
1.8 KiB
Vue
Raw Normal View History

2022-08-12 10:25:42 +00:00
<template>
<view>
2022-08-26 08:02:17 +00:00
<!-- 头部 -->
2022-09-13 08:30:35 +00:00
<status-nav :ifReturn="false" navBarTitle="GPS" :marginBottom="0"></status-nav>
<!-- 背景 -->
<view class="gps-content-bg border-box" :style="{height:screenHeight-statusHeight-50+'px'}">
<image src="/static/public/gps-bg.jpg" mode="heightFix"></image>
</view>
2022-08-26 08:02:17 +00:00
<!-- 二维码 -->
<view class="gps-code">
2022-09-13 08:30:35 +00:00
<view class="tips font30">
<text>
查询物流实时状态
请常按识别下方二维码
</text>
</view>
2022-08-26 08:02:17 +00:00
<image :show-menu-by-longpress="true" src="/static/public/gps-code.jpg" mode="widthFix" @click="previewImage"></image>
</view>
2022-08-12 10:25:42 +00:00
<!-- 尾部 -->
<foot-tab :current="2"></foot-tab>
</view>
</template>
<script>
2022-08-26 08:02:17 +00:00
export default {
data() {
return {
screenHeight:uni.getSystemInfoSync().screenHeight,
statusHeight:uni.getSystemInfoSync().statusBarHeight,
}
},
2022-09-13 08:30:35 +00:00
onLoad(op) {
2022-08-26 08:02:17 +00:00
},
methods: {
2022-09-01 05:28:28 +00:00
previewImage() {
2022-08-26 08:02:17 +00:00
uni.previewImage({
// 需要预览的图片链接列表
urls: [],
// 为当前显示图片的链接/索引值
current: '/static/public/gps-code.jpg',
// 图片指示器样式
indicator:'default',
// 是否可循环预览
loop:false,
// 长按图片显示操作菜单,如不填默认为保存相册
success: res => {
console.log('res', res);
},
fail: err => {
2022-09-01 05:28:28 +00:00
console.log('err', err);
2022-08-26 08:02:17 +00:00
}
});
}
}
}
2022-08-12 10:25:42 +00:00
</script>
2022-09-13 08:30:35 +00:00
<style scoped>
.gps-content-bg{
width: 100%;
padding-bottom: 98rpx;
}
.gps-content-bg>image{
min-width: 100%;
min-height: 100%;
}
2022-08-26 08:02:17 +00:00
.gps-code{
2022-09-13 08:30:35 +00:00
width: 500rpx;
2022-08-26 08:02:17 +00:00
position: fixed;
left: 50%;
top: 50%;
2022-09-13 08:30:35 +00:00
transform: translate(-50%,-55%);
2022-08-26 08:02:17 +00:00
}
2022-09-13 08:30:35 +00:00
.gps-code .tips{
line-height: 1.6;
color: #ffffff;
2022-08-26 08:02:17 +00:00
text-align: center;
2022-09-13 08:30:35 +00:00
margin-bottom: 60rpx;
2022-08-26 08:02:17 +00:00
}
.gps-code>image{
2022-09-13 08:30:35 +00:00
width: 100%;
border-radius: .02rem;
2022-08-26 08:02:17 +00:00
}
2022-08-12 10:25:42 +00:00
</style>