提交 202ea58a 编写于 作者: DCloud_JSON's avatar DCloud_JSON

清理多余文件

上级 88348717
...@@ -14,9 +14,8 @@ ...@@ -14,9 +14,8 @@
//checkIsAgree(); APP端暂时先用原生默认生成的。目前,自定义方式启动vue界面时,原生层已经请求了部分权限这并不符合国家的法规 //checkIsAgree(); APP端暂时先用原生默认生成的。目前,自定义方式启动vue界面时,原生层已经请求了部分权限这并不符合国家的法规
// #endif // #endif
// #ifdef H5 // #ifdef H5
checkIsAgree(); // checkIsAgree(); // 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要
// 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
......
## 1.0.46(2021-08-05) ## 1.0.46(2021-08-05)
删除多余文件 清理多余文件
## 1.0.45(2021-08-05) ## 1.0.45(2021-08-05)
默认首页为nvue页面+fast 默认首页为nvue页面+fast
## 1.0.44(2021-08-05) ## 1.0.44(2021-08-05)
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
}, },
fail: (err) => { fail: (err) => {
uni.hideLoading() uni.hideLoading()
console.error(err); console.log(err);
if (type == 'univerify') { if (type == 'univerify') {
if (err.metadata && err.metadata.error_data) { if (err.metadata && err.metadata.error_data) {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
}, },
"Vue": { "Vue": {
"vue2": "y", "vue2": "y",
"vue3": "u" "vue3": "y"
} }
} }
} }
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
}, },
onLoad(event) { onLoad(event) {
console.log(event); console.log(event);
event = {"id":"60783c5cb781700001375672","title":"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务","excerpt":"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务","avatar":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-aliyun-gacrhzeynhss7c6d04/249516a0-3941-11eb-899d-733ae62bed2f.jpg"} // event = {"id":"60783c5cb781700001375672","title":"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务","excerpt":"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务","avatar":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-aliyun-gacrhzeynhss7c6d04/249516a0-3941-11eb-899d-733ae62bed2f.jpg"}
//获取真实新闻id,通常 id 来自上一个页面 //获取真实新闻id,通常 id 来自上一个页面
if (event.id) { if (event.id) {
this.id = event.id this.id = event.id
......
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
<statusBar></statusBar> <statusBar></statusBar>
<!-- #endif --> <!-- #endif -->
<!-- 搜索功能 --> <!-- 搜索功能 -->
<view @click.capture="searchClick">
<uni-search-bar class="uni-search-box" v-model="keyword" ref="searchBar" radius="100" <uni-search-bar @click="searchClick" class="uni-search-box" v-model="keyword" ref="searchBar" radius="100"
cancelButton="none" /> cancelButton="none" disabled />
</view> <view class="cover-search-bar" @click="searchClick"></view>
<unicloud-db ref='udb' v-slot:default="{data,pagination,hasMore, loading, error, options}" @error="onqueryerror" <unicloud-db ref='udb' v-slot:default="{data,pagination,hasMore, loading, error, options}" @error="onqueryerror"
:where="where" collection="opendb-news-articles,uni-id-users" :page-size="10" :where="where" collection="opendb-news-articles,uni-id-users" :page-size="10"
field="avatar,title,last_modify_date,user_id.username"> field="avatar,title,last_modify_date,user_id.username">
...@@ -223,5 +225,14 @@ ...@@ -223,5 +225,14 @@
.f1 { .f1 {
flex: 1; flex: 1;
}
.cover-search-bar{
height: 50px;
position: relative;
top: -50px;
margin-bottom: -50px;
/* #ifndef APP-NVUE */
z-index:999;
/* #endif */
} }
</style> </style>
\ No newline at end of file
此差异已折叠。
<template>
<uni-sign-in ref="signIn"></uni-sign-in>
<template>
<script>
export default {
methods: {
signIn() { //签到
this.$refs.signIn.open()
}
}
}
<script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册