当前位置: 首页 > news >正文

河南网站制作价格百度收录怎么查询

河南网站制作价格,百度收录怎么查询,垂直网站建设的关键因素,怎么运营自己的网站效果图 在app或者小程序中向下滑动 会出现刷新数据 ,而上拉到底 需要更新数据 功能实现 主要俩种方式 依赖生命周期 在page.json中开启 page.json style : {navigationBarTitleText : 小小练习,backgroundTextStyle: style : {navigationBarTitleText : 小小练习,backgroundTextStyle: dark,enablePullDownRefresh: true}开启后页面监听onPullDownRefresh()顶部下拉事件,onReachBottom触底事件 templateview classcontentview v-for(item, index) in cats :keyindeximage :style{ width: item.width/2 rpx, height: item.height/2 rpx } :srcitem.url/image/view/viewview classfloatview classitem顶部/viewview classitem刷新/view/view /templatescript setup import { reactive, onMounted } from vue;const cats reactive([]); onPullDownRefresh(() {console.log(触发下拉刷新了);// 进行下拉刷新的操作比如重新加载数据等refresh(); // 这里调用你封装的刷新数据的方法uni.stopPullDownRefresh(); }); onReachBottom((){console.log(触底时间)PullDownRefresh() })const PullDownRefresh ((){uni.showLoading({title:加载中,duration:1000})console.log(触发滑动区域刷新了)// 停止当前页面下拉刷新refresh()}) const addrefresh(){console.log(滑动到进行更新)uni.request({url: https://api.thecatapi.com/v1/images/search?limit2,success(res) {console.log(获取接口成功, res);// cats.length 0; // 不清空清空数组res.data.forEach(item {cats.push(item); // 将接口数据逐个添加到cats数组中});},fail: (e) {console.log(获取接口失败);}});} const refresh(){uni.request({url: https://api.thecatapi.com/v1/images/search?limit2,success(res) {console.log(获取接口成功, res);cats.length 0; // 不清空清空数组res.data.forEach(item {cats.push(item); // 将接口数据逐个添加到cats数组中});},fail: (e) {console.log(获取接口失败);}}); } onMounted(() { refresh() }); /scriptstyle langscss scoped /* 样式 */ .float{position: absolute;right: 30rpx;bottom: 100rpx;.item{width: 90rpx;height: 90rpx;background: rgba(165, 213, 255, 0.0);border-radius: 50%;align-items: center;justify-content: center;padding-bottom: env(safe-area-inset-bottom);display: flex;border: 1px solid rebeccapurple;margin-bottom: 15rpx;} } /style 依赖滚动视图组件 主要依赖这俩个事件 templatescroll-view scrolltoupperPullDownRefresh scroll-ytrue styleheight: 1080rpx; classscroll-Y scrolltoloweraddrefreshview v-for(item, index) in cats :keyindeximage :style{ width: item.width/2 rpx, height: item.height/2 rpx } :srcitem.url/image/view/scroll-viewview classfloatview classitem顶部/viewview classitem刷新/view/view /templatescript setup import { reactive, onMounted } from vue;const cats reactive([]);const PullDownRefresh ((){uni.showLoading({title:加载中,duration:1000})console.log(触发滑动区域刷新了)// 停止当前页面下拉刷新refresh()}) const addrefresh(){console.log(滑动到进行更新)uni.request({url: https://api.thecatapi.com/v1/images/search?limit2,success(res) {console.log(获取接口成功, res);// cats.length 0; // 不清空清空数组res.data.forEach(item {cats.push(item); // 将接口数据逐个添加到cats数组中});},fail: (e) {console.log(获取接口失败);}});} const refresh(){uni.request({url: https://api.thecatapi.com/v1/images/search?limit2,success(res) {console.log(获取接口成功, res);cats.length 0; // 不清空清空数组res.data.forEach(item {cats.push(item); // 将接口数据逐个添加到cats数组中});},fail: (e) {console.log(获取接口失败);}}); } onMounted(() { refresh() }); /script这种方式没有自带的动画 并且需要设置滑动区域的高度,不然可能滑倒底部没数据了但是由于没有到组件底部无法触发事件 当上拉更新数据过多时,想要在滑动顶部进行更新数据时候,就需要滑动很长事件,所以可以使用uni.pageScrollTo(OBJECT) 快速到达页面指定位置
http://www.pierceye.com/news/723745/

相关文章:

  • 广州网站开发学校wordpress优秀站点
  • wordpress 当前文章所属分类seo网站推广怎么做
  • 做网站要求电脑配置wordpress页眉描述
  • 做网站感想室内设计联盟邀请码怎么弄
  • 上海高端网站制作公司互联网黄页是什么
  • 网站服务器在阿里云专有网络做网站
  • 泰坦科技网站建设js代码 嵌入网站
  • 首都之窗门户网站首页中山做百度网站的公司吗
  • 网站 关键字 标签dede关闭网站
  • 甘肃路桥建设集团公司网站网页搭建模板
  • 山西省住房和城乡建设厅官网长沙seo关键词
  • 红酒 网站 模板网页qq登录保护在哪里
  • 目前哪些企业需要做网站建设的呢官方网站建设最重要的是
  • 电影题材网页设计欣赏长春seo关键词排名
  • 深圳网站建设索q.479185700如何修改网站后台的用户名和密码
  • 长春网站推广专门做二手书网站或app
  • 北京智能网站建设制作什么叫优化
  • 免费移动网站建站wordpress加skype
  • 企业推广建站网页开发教程
  • 外贸网站定制开发网站虚拟主机过期
  • 学习网站建设要报班吗中国建设银行晋中分行网站
  • 学校网站建设经验介绍西安建设网站公司
  • 江西营销网站建设公司的企业诚信建设分析
  • 生活家装饰官方网站动画设计考研
  • 网站内部的信息安全建设怎么才能在百度上做引流呢
  • 男男做的视频网站wordpress 系统
  • 网站建设合同 附件上海网站制作费用
  • 知名的环保行业网站开发开发一个app难吗
  • 律师网站建设方案网站企业制作
  • 基础建设期刊在哪个网站可以查做网站咨询