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

做自己的网站挣钱怎么推广软件让别人下载

做自己的网站挣钱,怎么推广软件让别人下载,wordpress翻译,美橙做过网站案例vue elementui的select组件实现滑到底部分页请求后端接口 1.实现效果2.实现原理 1.实现效果 老规矩&#xff0c;直接上最后的实现效果 2.实现原理 直接上代码 <el-form-item class"diagmosisItem" label"诊断" v-scroll"handleScroll">…

vue elementui的select组件实现滑到底部分页请求后端接口

  • 1.实现效果
  • 2.实现原理

1.实现效果

老规矩,直接上最后的实现效果
在这里插入图片描述

2.实现原理

直接上代码

   <el-form-item class="diagmosisItem" label="诊断" v-scroll="handleScroll"><el-selectsize="small"remotefilterableclearable:loading="getAllDiagnosisLoading"v-model="queryObj.diagnosisDesc":remote-method="handleRemoteDisease"@clear="handleClearDisease"><el-optionv-for="item in allDiagnosisList":key="item.valueId":label="item.valueNo +' '+ item.valueDesc":value="item.valueDesc"></el-option></el-select></el-form-item>
//js
//mothodshandleScroll() {if(!this.scrollStop) {this.diagnosisQuery.pageNo++this.getAllDiagnosis(this.diagnosisQueryText, 'join')}},// 远程搜索诊断async handleRemoteDisease(keyword = '') {this.diagnosisQueryText = keywordthis.getAllDiagnosis(keyword)},// 清除选中诊断handleClearDisease() {this.getAllDiagnosis('', 'clear')},//诊断列表async getAllDiagnosis(val = '', type = 'search') {try {this.getAllDiagnosisLoading = truethis.scrollStop = falselet res = nullif(this.isHaveDiagnoseFlag) {if(type =='search') {this.diagnosisQuery ={pageNo:0,pageSize:100}res = await this.reqGetAllDiagnosis({keyword:val,pageNo:0,pageSize:100})}else if(type == 'join') {res = await this.reqGetAllDiagnosis({keyword:val,...this.diagnosisQuery})}else{this.allDiagnosisList = this.allDiagnosisListthis.getAllDiagnosisLoading = false}}if (res && res.success) {if(type =='search') {this.allDiagnosisList = res.data}else{if(res.data.length == 0) {this.scrollStop = true}this.allDiagnosisList = [...res.data, ...this.allDiagnosisList]}this.getAllDiagnosisLoading = false}} catch (error) {this.getAllDiagnosisLoading = false}},
//主要看这里directives:{scroll:{bind(el, binding) {const SELECTNRAP_DON = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')SELECTNRAP_DON.addEventListener( 'scroll', function() {console.log(this.scrollHeight - this.scrollTop, this.clientHeight)const CONDITION = this.scrollHeight - this.scrollTop <= this.clientHeightif(CONDITION) {binding.value()}})}}},

scrollStop主要是用来诊断select移到底部不再请求数据,默认为false。思路反正就是到底了触发函数处理,pageNo++请求后端接口

http://www.hkea.cn/news/783043/

相关文章:

  • 上海最大的贸易公司seo网络推广机构
  • jsp 网站开发广告发布平台
  • b2c网站综合对比评价站长统计幸福宝
  • 网站建设意见做推广app赚钱的项目
  • 哈尔滨营销网站制作做外贸推广
  • 深圳网站建设外贸公司排名搜索热词排名
  • 网络科技公司招聘可靠吗seo多久可以学会
  • 企业网站建设的方案ppt网络营销的特点主要包括什么
  • 如何自行建设网站推广关键词优化
  • 建设学院网站百度收录关键词查询
  • 有关外贸的网站有哪些内容武汉抖音seo搜索
  • 娄底网站建设的话术深圳网站关键词排名优化
  • 福田大型商城网站建设seo营销方法
  • 网站开发专业就业指导企业网站设计与实现论文
  • 网络营销方式的思维导图seo关键词优化系统
  • wordpress访客ip记录福清市百度seo
  • 网站下载速度慢互联网广告推广公司
  • 电影网站空间配置网络营销的工具和方法有哪些
  • 包装设计网站免费百度seo搜索引擎优化厂家
  • 免费做公司网站sem对seo的影响有哪些
  • 网站空间购买费用关键词优化计划
  • 网站制作可以卖多少钱陕西网站建设制作
  • 深圳中小企业网站制作谷歌海外广告投放
  • 做游戏网站的需求分析创建app平台
  • 青岛胶南做网站的有多少seo商学院
  • 二月网站建设南宁百度个人中心登录
  • 如何在相关网站免费做宣传广告免费建立个人网站官网
  • 做搜狗网站优化首自己建立网站步骤
  • 企业资质查询官方网站最好的小说网站排名
  • 乐平网站设计北京互联网公司