#7 feat: 页面调整;

Merged
Fox merged 1 commits from fox into master 1 week ago
  1. +15
    -15
      pages_order/mine/service.vue

+ 15
- 15
pages_order/mine/service.vue View File

@ -1,9 +1,12 @@
<template> <template>
<view class="page" :style="bgStyle">
<navbar title="客服" leftClick @leftClick="$utils.navigateBack" />
<image class="qr" :src="configList.index_huodong" :show-menu-by-longpress="true"></image>
<view class="page">
<view class="content" :style="bgStyle">
<navbar title="客服" leftClick @leftClick="$utils.navigateBack" />
<image class="qr" :src="configList.index_huodong" :show-menu-by-longpress="true"></image>
</view>
</view> </view>
</template> </template>
@ -18,7 +21,7 @@
computed: { computed: {
...mapState(['configList']), ...mapState(['configList']),
bgStyle() { bgStyle() {
return `background-image: url(${ this.configList.codeImg}); background-size: contain;`
return `background-image: url(${ this.configList.codeImg}); background-size: 100% auto;`
} }
}, },
onLoad() { onLoad() {
@ -30,24 +33,21 @@
.page { .page {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
position: relative;
overflow: hidden; overflow: hidden;
} }
.bg {
.content {
position: relative;
width: 100vw; width: 100vw;
height: calc(100vh - #{$navbar-height} - var(--status-bar-height) - 20rpx);
height: calc((1624 / 750) * 100vw);
} }
.qr { .qr {
position: absolute; position: absolute;
top: 854rpx;
left: 50%;
transform: translateX(-50%);
bottom: calc((454 / 750) * 100vw);
left: calc((214 / 750) * 100vw);
width: 316rpx;
height: 316rpx;
width: calc((316 / 750) * 100vw);
height: calc((316 / 750) * 100vw);
} }
</style> </style>

Loading…
Cancel
Save