提交 f9931b89 authored 作者: caodi\cd's avatar caodi\cd

fix:按钮

上级 f28a4200
<template> <template>
<view class="container"> <view class="container">
<uni-nav-bar <uni-nav-bar
v-if="!selectedCount"
:fixed="true" :fixed="true"
background-color="rgba(214, 240, 255, 0.0)" background-color="rgba(214, 240, 255, 0.0)"
status-bar status-bar
rightWidth="300" rightWidth="300"
> >
<block slot="left"> <block slot="left">
<view class="uni-nav-bar-text" @click="back"> <view @click="back">
<text class="iconfont icon-fanhui"></text> <text class="iconfont icon-fanhui"></text>
</view> </view>
</block> </block>
<block slot="right" class="nav-right"> <block slot="right" class="nav-right">
<view class="header-buttons"> <view class="header-buttons">
<button class="button">操作说明</button> <text class="iconfont icon-shuoming"></text>
</view>
</block>
</uni-nav-bar>
<uni-nav-bar
v-else
:fixed="true"
background-color="#FFF"
status-bar
leftWidth="300"
rightWidth="300"
>
<block slot="left">
<view class="header-left" @click="headerClose">
<text class="close">X</text
><view class="selected-count"> 已选择{{ selectedCount }}张图片</view>
</view>
</block>
<block slot="right" class="nav-right">
<view class="header-right">
<text class="iconfont icon-quanxuan"></text>
<text class="iconfont icon-shanchu"></text>
</view> </view>
</block> </block>
</uni-nav-bar> </uni-nav-bar>
<!-- 第二个模块:选中条数显示 --> <!-- 第二个模块:选中条数显示 -->
<view class="selected-count"> 已选择{{ selectedCount }}张图片</view>
<!-- 第三个模块:照片显示模块 --> <!-- 第三个模块:照片显示模块 -->
<view class="photo-box"> <view class="photo-box">
<view class="photo-list"> <view class="photo-list">
...@@ -332,33 +352,53 @@ export default { ...@@ -332,33 +352,53 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
.iconfont { .iconfont {
font-size: 16px; font-size: 16px;
line-height: 28.8px; line-height: 28.8px;
} }
} }
.header-left {
display: flex;
justify-content: flex-start;
.close {
font-size: 20px;
}
.selected-count {
font-size: 14.4px;
line-height: 27px;
color: #000000;
font-weight: 500;
margin-left: 6.4px;
}
}
.nav-right { .nav-right {
width: 192px; width: 192px;
} }
::v-deep .uni-navbar__header-btns-left{
width: 300px!important;
}
.header-buttons { .header-buttons {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: auto; margin-left: auto;
width: 28.8px;
.button { height: 28.8px;
width: 89.6px; border-radius: 50%;
height: 28.8px; background: #fff;
background: #ffffff; .iconfont {
border-radius: 14.4px; margin: 0 auto;
margin-left: 12.8px; &.icon-shuoming {
font-family: PingFangSC-Regular; }
font-size: 12.8px; }
color: #000000; }
line-height: 28.8px; .header-right {
font-weight: 400;
.iconfont {
margin: 0 auto;
&.icon-quanxuan {
margin-right: 19.2px;
}
} }
} }
...@@ -397,18 +437,6 @@ export default { ...@@ -397,18 +437,6 @@ export default {
} }
} }
.selected-count {
background-color: #fff;
padding: 6.4px;
font-size: 14.4px;
color: #000000;
line-height: 20.8px;
font-weight: 500;
border-radius: 6.4px;
margin-bottom: 12.8px;
padding-left: 25.6px;
}
.photo-box { .photo-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论