feat: 一键分享按钮展示调整

This commit is contained in:
2026-06-05 16:16:13 +08:00
parent 07740f7746
commit a1c5dd5514
9 changed files with 55 additions and 20 deletions
+3 -2
View File
@@ -2,10 +2,11 @@
<view class="cardTitle p-x-20 cardBg" :style="[{ height: statusBarHeight + 44 + 'px' }, { backgroundColor: props.bg }]">
<view :style="{ height: statusBarHeight + 'px' }"></view>
<view class="flex-center ju-between h_88">
<view class="cardLeft" v-if="props.showLeftButton">
<view @tap="onClickLeft">
<view class="cardLeft" v-if="props.showLeftButton || $slots.left">
<view v-if="props.showLeftButton" @tap="onClickLeft">
<uni-icons type="left" :color="textColor" />
</view>
<slot name="left" />
</view>
<view class="title size36 flex1 center" :style="[{ color: textColor }]">{{
props.title
+3 -2
View File
@@ -2,10 +2,11 @@
<view class="cardTitle p-x-20" :style="{ background: backgroundColor }">
<view :style="{height: statusBarHeight + 'px'}"></view>
<view class="flex-center ju-between h_88">
<view class="cardLeft" v-if="props.showLeftButton">
<view @tap="onClickLeft">
<view class="cardLeft" v-if="props.showLeftButton || $slots.left">
<view v-if="props.showLeftButton" @tap="onClickLeft">
<uni-icons type="left" :color="textColor" />
</view>
<slot name="left" />
</view>
<view class="title size36 flex1 center" :style="[{ color: textColor }]">{{ props.title }}</view>
<view class="cardRight" :style="{ color: textColor }">
@@ -2,10 +2,11 @@
<view class="cardTitle p-x-20">
<view :style="{height: statusBarHeight + 'px'}"></view>
<view class="flex-center ju-between h_88">
<view class="cardLeft" v-if="props.showLeftButton">
<view @tap="onClickLeft">
<view class="cardLeft" v-if="props.showLeftButton || $slots.left">
<view v-if="props.showLeftButton" @tap="onClickLeft">
<uni-icons type="left" :color="textColor" />
</view>
<slot name="left" />
</view>
<view class="title size36 flex1 center" :style="[{ color: textColor }]">{{ props.title }}</view>
<view class="cardRight" :style="{ color: textColor }">