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

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

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