提交 cebd279f 编写于 作者: 芊里

test

上级 4eae47ab
......@@ -25,7 +25,7 @@
<!-- 页面分类标题 -->
<uni-section style="margin:0;" v-if="searchText" :title="listTitle" type="line"></uni-section>
<unicloud-db ref="udb" v-slot:default="{data, loading, error, options}" :options="formData"
:collection="collection" :field="field" :where="where" @load="load" @error="isLoading = false">
:collection="collection" :field="field" :foreignKey="foreignKey" :where="where" @load="load" @error="isLoading = false">
<text v-if="error" class="list-info">{{error.message}}</text>
<!-- 基于 uni-list 的页面布局 -->
<uni-list :class="{ 'uni-list--waterfall': options.waterfall }">
......@@ -90,8 +90,9 @@
where: '',
// 数据表名
collection: 'opendb-news-articles,uni-id-users',
// 查询字段,多个字段用 , 分割
field: 'author{username, _id}, user_id,_id,avatar,title,excerpt,last_modify_date, comment_count, like_count',
// 查询字段,多个字段用 , 分割
foreignKey: '',
field: 'author{username, _id}, _id,avatar,title,excerpt,last_modify_date, comment_count, like_count',
tipShow: false ,// 是否显示顶部提示框
isLoading:true
};
......
......@@ -143,7 +143,7 @@
associativeList: [],
keyBoardPopup: false,
hotWorld: 'apple', // 搜索热词,如果没有输入即回车,则搜索热词,但是不会加入搜索记录
hotWorld: 'DCloud', // 搜索热词,如果没有输入即回车,则搜索热词,但是不会加入搜索记录
focus: true, // 是否自动聚焦
speechEngine: 'iFly' // 语音识别引擎 iFly 讯飞 baidu 百度
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册