feat: 一键分享按钮展示调整
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
<template>
|
||||
<s-pages title="列表记录" navPreset="light">
|
||||
<template #navRight>
|
||||
<view class="share-btn" @tap="onShare">一键分享</view>
|
||||
</template>
|
||||
<view class="list-record-page">
|
||||
<view class="share-btn" :style="{ top: shareTop }" @tap="onShare">
|
||||
一键分享
|
||||
</view>
|
||||
|
||||
<view class="hero">
|
||||
<image class="hero-img" :src="cover || '/static/home/bc.png'" mode="aspectFill" />
|
||||
</view>
|
||||
@@ -13,7 +12,7 @@
|
||||
<view class="record-card" v-for="(item, i) in recordList" :key="item.id || i">
|
||||
<view class="record-head flex-between">
|
||||
<view class="record-title lineOne">{{ item.title }}</view>
|
||||
<view class="record-status">{{ item.statusText }}</view>
|
||||
<!-- <view class="record-status">{{ item.statusText }}</view> -->
|
||||
</view>
|
||||
|
||||
<view class="record-progress">
|
||||
@@ -47,9 +46,6 @@
|
||||
import { getAiShopPage } from '@/sheep/api/ai';
|
||||
import { formatOrderStatus } from '@/sheep/hooks/useGoods';
|
||||
|
||||
const statusBarHeight = uni.getSystemInfoSync()?.statusBarHeight || 0;
|
||||
const shareTop = `${statusBarHeight + 8}px`;
|
||||
|
||||
const skuId = ref('');
|
||||
const cover = ref('');
|
||||
|
||||
@@ -161,9 +157,6 @@
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
position: fixed;
|
||||
right: 24rpx;
|
||||
z-index: 99;
|
||||
height: 56rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 18rpx;
|
||||
@@ -173,6 +166,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2rpx;
|
||||
}
|
||||
|
||||
.hero {
|
||||
|
||||
Reference in New Issue
Block a user