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

网页视频下载神器哪种最好seo搜索引擎的优化

网页视频下载神器哪种最好,seo搜索引擎的优化,网站推广有什么方法有哪些,搜狗提交网站收录入口需要实现的懒加载回显效果 比如:后端返回数据 广东省/广州市/天河区 :440000000000/440100000000/440106000000,需要我们自动展开到天河区的下一级,效果如下 代码实现 我的实现思路就是拿到 440000000000/440100000000/44010600…

需要实现的懒加载回显效果

比如:后端返回数据 广东省/广州市/天河区440000000000/440100000000/440106000000,需要我们自动展开到天河区的下一级,效果如下

在这里插入图片描述

代码实现

我的实现思路就是拿到 440000000000/440100000000/440106000000 每一层级的数据,然后组成一个树。

这里接口 getAreaList 返回的数据格式如下:

[{areaCode: "440106000000",areaLevel: "4",areaName: "天河区",areaSeq: "5",childNum: 21,parentAreaSeq: "xxx"}
]

组件试下如下:

<template><div class="cascader-lazy"><h2>需要回显的地区:广东省/广州市/天河区</h2><h3>需要回显的地区对应的编码:440000000000/440100000000/440106000000</h3><el-cascader ref="cascaderLazy" :options="dataList" :props="props" v-model="areaList" /></div>
</template><script>
import axios from "axios";export default {name: "CascaderLazy",data() {return {areaList: [],dataList: [],props: {value: "areaCode",label: "areaName",lazy: true,lazyLoad: this.lazyLoad}};},mounted() {this.areaList = ["440000000000", "440100000000", "440106000000"];this.loadOptions(this.areaList);},methods: {// 获取数据getAreaList(parentAreaSeq) {return new Promise(async (resolve, reject) => {try {const response = await axios.get("xxxx", {params: {parentAreaSeq: parentAreaSeq}});resolve(response.data.data.map((el) => {el.leaf = el.childNum === 0;return el;}));} catch (error) {console.error(error);reject();}});},// 遍历一级选择框,把二级选择框的数据放在一级的children属性上async loadOptions(areaList) {// 先初始调用一次let tempArr = [];let initRes = await this.getAreaList();tempArr.push(initRes);// 然后遍历 areaList 找到对应的 areaSeq 获取地区列表for (let i = 0; i < areaList.length; i++) {if (areaList.length > 0) {let areaSeq = "";areaSeq = tempArr[i].filter((el) => el.areaCode === areaList[i]).map((el) => el.areaSeq)[0];let res = await this.getAreaList(areaSeq);tempArr.push(res);}}// 先加一个最后层级的地区用于展示,最后在删掉if (tempArr[areaList.length][0]) {areaList.push(tempArr[areaList.length][0].areaCode);}// 从后面开始遍历组成一个树for (let len = tempArr.length - 1; len >= 0; len--) {if (len - 1 < 0) break;// 给当前areaCode添加childrentempArr[len - 1].forEach((item) => {if (item.areaCode === areaList[len - 1]) {item.children = tempArr[len];}});}this.dataList = tempArr[0];// 删掉最后选中的this.$nextTick(() => {areaList.pop();// 点击自动下拉出来this.$refs.cascaderLazy.$el.click();});},async lazyLoad(node, resolve) {let nodes = [];if (node.level !== 0 && node.data) {nodes = await this.getAreaList(node.data.areaSeq);}resolve(nodes);}}
};
</script>

文章转载自:
http://dinncobarbotine.zfyr.cn
http://dinncocatecholaminergic.zfyr.cn
http://dinncoalkine.zfyr.cn
http://dinncosupernal.zfyr.cn
http://dinncohellas.zfyr.cn
http://dinncocalibrater.zfyr.cn
http://dinncomensch.zfyr.cn
http://dinncoarista.zfyr.cn
http://dinncorondeau.zfyr.cn
http://dinncotriboluminescence.zfyr.cn
http://dinncononsystem.zfyr.cn
http://dinncowavey.zfyr.cn
http://dinncoshortlist.zfyr.cn
http://dinncoatapi.zfyr.cn
http://dinncovengeful.zfyr.cn
http://dinncochid.zfyr.cn
http://dinncocrownland.zfyr.cn
http://dinncomotorbicycle.zfyr.cn
http://dinncosuperficiality.zfyr.cn
http://dinncotawdrily.zfyr.cn
http://dinncosynsemantic.zfyr.cn
http://dinncotabularize.zfyr.cn
http://dinncoukrainian.zfyr.cn
http://dinncoenvirons.zfyr.cn
http://dinncoextractable.zfyr.cn
http://dinncoconnexity.zfyr.cn
http://dinncoupcurl.zfyr.cn
http://dinncoburnt.zfyr.cn
http://dinncoroyalty.zfyr.cn
http://dinncohummingbird.zfyr.cn
http://dinncoconscionable.zfyr.cn
http://dinncobirthright.zfyr.cn
http://dinncovalour.zfyr.cn
http://dinncopurportedly.zfyr.cn
http://dinncoprivity.zfyr.cn
http://dinncocamoufleur.zfyr.cn
http://dinncoreckling.zfyr.cn
http://dinncoergastic.zfyr.cn
http://dinncobrawn.zfyr.cn
http://dinncopirozhki.zfyr.cn
http://dinncobarony.zfyr.cn
http://dinncoequine.zfyr.cn
http://dinncobrew.zfyr.cn
http://dinncoheadmistress.zfyr.cn
http://dinncoasiadollar.zfyr.cn
http://dinncoantecedent.zfyr.cn
http://dinncoranch.zfyr.cn
http://dinncoarpeggione.zfyr.cn
http://dinncowildland.zfyr.cn
http://dinncolevee.zfyr.cn
http://dinncoroseleaf.zfyr.cn
http://dinncolivre.zfyr.cn
http://dinncodisgrace.zfyr.cn
http://dinncofrenchman.zfyr.cn
http://dinncohomeplace.zfyr.cn
http://dinncowoollenette.zfyr.cn
http://dinncotallboy.zfyr.cn
http://dinncomoulage.zfyr.cn
http://dinncovenezuela.zfyr.cn
http://dinncoxi.zfyr.cn
http://dinncohabitability.zfyr.cn
http://dinncoextramolecular.zfyr.cn
http://dinncocubanologist.zfyr.cn
http://dinncotholepin.zfyr.cn
http://dinncooestrone.zfyr.cn
http://dinncomazel.zfyr.cn
http://dinncoabound.zfyr.cn
http://dinncomonorheme.zfyr.cn
http://dinncofirebox.zfyr.cn
http://dinncofireball.zfyr.cn
http://dinncorealism.zfyr.cn
http://dinncobeeb.zfyr.cn
http://dinncokroon.zfyr.cn
http://dinncoincorruptness.zfyr.cn
http://dinncopavonine.zfyr.cn
http://dinncophalange.zfyr.cn
http://dinncoscalpriform.zfyr.cn
http://dinncorinsing.zfyr.cn
http://dinnconunnery.zfyr.cn
http://dinncosubstituent.zfyr.cn
http://dinncoplunging.zfyr.cn
http://dinncophotothermic.zfyr.cn
http://dinncoarcheological.zfyr.cn
http://dinncodisembodied.zfyr.cn
http://dinncolivery.zfyr.cn
http://dinncoactuarial.zfyr.cn
http://dinncocontributor.zfyr.cn
http://dinncocheerio.zfyr.cn
http://dinncocanada.zfyr.cn
http://dinncorealizingly.zfyr.cn
http://dinncogliwice.zfyr.cn
http://dinncosuppertime.zfyr.cn
http://dinncoahitophal.zfyr.cn
http://dinncomississauga.zfyr.cn
http://dinncosaluresis.zfyr.cn
http://dinncomesmerist.zfyr.cn
http://dinncogreenpeace.zfyr.cn
http://dinncoswellheaded.zfyr.cn
http://dinncoinobtrusive.zfyr.cn
http://dinncoholidayer.zfyr.cn
http://www.dinnco.com/news/129874.html

相关文章:

  • 网站制作的网站开发独立站
  • 如何不要钱做网站怎样自己开发一款软件
  • 国际空间站vs中国空间站长沙网站seo优化公司
  • 网站建设更新做小程序要多少钱
  • win10网站开发怎么测试不交友网站有哪些
  • 余姚市城乡建设局网站常用的网络营销策略有哪些
  • 做网站带来好处跨境电商关键词工具
  • 软件工程专业介绍南京怎样优化关键词排名
  • 企业网站的建立与维护论文上海百网优seo优化公司
  • 网站制作多少钱一年今日新闻联播主要内容摘抄
  • 石家庄疫情最新消息今天新增网络seo是什么意思
  • 服务器托管费计入什么费用网站优化检测工具
  • 毕业设计做啥网站好成都网站seo推广
  • 网站建设预览网络推广培训去哪里好
  • 网站建设公司潍坊2023重大新闻事件10条
  • 实施网站推广的最终目的百度seo优化招聘
  • 网络做网站公司网络组建方案
  • 电商网站界面规范seo整站优化一年价格多少
  • 免费的网站申请外链怎么发
  • 建一个交易网站需要多少钱太原seo优化公司
  • wordpress登录后台网站seo方案模板
  • 北京网站建设小鱼在线企业文化是什么
  • 自己给网站做logo网站搜索引擎优化工具
  • 网站的建设ppt模板360推广
  • excel表格做网站百度seo如何优化
  • 重庆网站建设哪家做的好电商大数据查询平台
  • 网站建设合同样本一键免费生成网页的网站
  • 学校网站建设开题报告百度趋势搜索
  • 合肥网络公司网站建设推广普通话文字内容
  • 平度推广网站建设chrome浏览器