Unverified 提交 a2d63ace authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #1755 from dataease/pr@dev@fix_mobile_layout

fix: 移动端详情页面布局
...@@ -27,18 +27,8 @@ ...@@ -27,18 +27,8 @@
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"app-plus": { "app-plus": {
"titleNView": { "titleNView": false,
"type": "transparent", "bounce": "none"
"buttons": [{
"type": "share"
}]
}
},
"h5": {
"titleNView": {
"type": "transparent",
"buttons": []
}
} }
} }
}, },
......
<template> <template>
<view class="page dataease-main"> <view class="page dataease-main">
<uni-nav-bar :title="banner.title" > <uni-nav-bar :fixed="false" left-icon="arrowleft" @clickLeft="back" :title="banner.title" >
<view slot="right"> <block slot="right">
<uni-row class="demo-uni-row" > <uni-row class="demo-uni-row" >
<uni-col :span="12" @click="enshrine"> <uni-col :span="12">
<view @click="enshrine">
<uni-icons v-if="hasStar" type="star-filled" size="18" color="#007AFF"></uni-icons> <uni-icons v-if="hasStar" type="star-filled" size="18" color="#007AFF"></uni-icons>
<uni-icons v-else type="star" size="18" color="#999"></uni-icons> <uni-icons v-else type="star" size="18" color="#999"></uni-icons>
</view>
</uni-col> </uni-col>
<uni-col :span="12" @click="refresh" style="margin: 0 10rpx;"> <uni-col :span="12" style="margin: 0 10rpx;">
<uni-icons type="reload" size="18" color="#999"></uni-icons> <view @click="refresh">
<uni-icons type="reload" size="18" color="#999" ></uni-icons>
</view>
</uni-col> </uni-col>
</uni-row> </uni-row>
</view> </block>
</uni-nav-bar> </uni-nav-bar>
<view class="article-content"> <view class="article-content" style="height: 100% !important;">
<view v-if="url"> <view v-if="url">
<web-view <web-view
:webview-styles="webViewStyles" :webview-styles="webViewStyles"
style="height: calc(100vh - 112px);" style="height: 100vh;"
> >
</web-view> </web-view>
</view> </view>
</view> </view>
<!-- #ifdef MP-WEIXIN || MP-QQ -->
<ad v-if="htmlNodes.length > 0" unit-id="adunit-01b7a010bf53d74e"></ad>
<!-- #endif -->
</view> </view>
...@@ -271,7 +274,7 @@ ...@@ -271,7 +274,7 @@
} }
.article-content { .article-content {
height: 100vh;
margin: 5px 0; margin: 5px 0;
background: #ffffff; background: #ffffff;
} }
...@@ -295,6 +298,36 @@ ...@@ -295,6 +298,36 @@
margin-left: 5px; margin-left: 5px;
} }
.input-view {
/* #ifndef APP-PLUS-NVUE */
display: flex;
/* #endif */
flex-direction: row;
// width: 500rpx;
flex: 1;
background-color: #f8f8f8;
height: $nav-height;
border-radius: 15px;
padding: 0 15px;
flex-wrap: nowrap;
margin: 7px 0;
line-height: $nav-height;
}
.input-uni-icon {
line-height: $nav-height;
}
.nav-bar-input {
height: $nav-height;
line-height: $nav-height;
/* #ifdef APP-PLUS-NVUE */
width: 370rpx;
/* #endif */
padding: 0 5px;
font-size: 14px;
background-color: #f8f8f8;
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论