提交 b7e82e68 编写于 作者: Anne_LXM's avatar Anne_LXM

鸿蒙不支持app-plus:titleNView,恢复条件编译APP-PLUS

上级 faeca785
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema
--> -->
<view class="article"> <view class="article">
<!-- #ifdef APP --> <!-- #ifdef APP-PLUS -->
<uni-nav-bar :statusBar="true" :border="false"></uni-nav-bar> <uni-nav-bar :statusBar="true" :border="false"></uni-nav-bar>
<!-- #endif --> <!-- #endif -->
<view class="article-title">{{ title }}</view> <view class="article-title">{{ title }}</view>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</template> </template>
<script> <script>
// #ifdef APP // #ifdef APP-PLUS
import UniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js'; import UniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js';
import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'; import uniNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue';
const uniShare = new UniShare() const uniShare = new UniShare()
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
const db = uniCloud.database(); const db = uniCloud.database();
const readNewsLog = db.collection('read-news-log') const readNewsLog = db.collection('read-news-log')
export default { export default {
// #ifdef APP // #ifdef APP-PLUS
components:{ components:{
"uni-nav-bar":uniNavBar "uni-nav-bar":uniNavBar
}, },
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
return `_id =="${this.id}"` return `_id =="${this.id}"`
} }
}, },
onLoad(event) { onLoad(event) {
//获取真实新闻id,通常 id 来自上一个页面 //获取真实新闻id,通常 id 来自上一个页面
if (event.id) { if (event.id) {
this.id = event.id this.id = event.id
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
/** /**
* 分享该文章 * 分享该文章
*/ */
// #ifdef APP // #ifdef APP-PLUS
shareClick() { shareClick() {
let { let {
_id, _id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册