在主页面中添加事件
onReachBottom() {
uni.$emit('onReachBottom');
},
在子组件中添加监听触底事件
mounted() {
var that=this;
...
yekong
4年前 (2020-12-17)
喜欢
pages.json配置
{
// 话题页面
"path": "pages/huati/index",
"style": {
...
yekong
4年前 (2020-12-10)
喜欢
uni.setNavigationBarTitle({
title:'新标题'
})
...
yekong
4年前 (2020-12-10)
喜欢
mp.weixin.qq.com 登录微信小程序开发后台
找到开发菜单
...
yekong
4年前 (2020-12-08)
喜欢
rich-text不自动换行,排查了一下 发现接口返回的内容带有pre标签。将pre标签过滤后就可以了。应该是特殊标签导致的不换行。
formatRichText(html) {
//控制小程序中图片大小
let ...
yekong
4年前 (2020-12-08)
喜欢
div
<div class="topback" v-if="isshow">
<div class="back"><uni-icons color...
yekong
4年前 (2020-12-07)
喜欢
html
<div class="daohang" :class="{ flex: topx < top }">
<v-tabs
bgColo...
yekong
4年前 (2020-12-07)
喜欢
onPageScroll(res) {
this.top = res.scrollTop;
},
...
yekong
4年前 (2020-12-07)
喜欢
css 代码
.blur {
-webkit-filter: blur(10px); /* Chrome, Opera */
-moz-filter: blur(10px);
-ms-filter: blur(10px);
...
yekong
4年前 (2020-12-06)
喜欢
<input ref="huifu" v-model="context" @blur="focusState2" :focus="focusState" type="text&quo...
yekong
4年前 (2020-12-05)
喜欢