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

如何做网站淘客推广松原市新闻

如何做网站淘客推广,松原市新闻,在网站怎么做收款二维码,小型网站的建设与开发1. 要实现y轴超出部分滚动的效果&#xff0c;可以这样写 <div style"max-height: 384px; overflow-y: auto;"> </div> 2. 当后端接口还没好的时候&#xff0c;可以自己模拟一下接口返回的数据 export const getCommodityDetail (id) > Promise.re…

1. 要实现y轴超出部分滚动的效果,可以这样写

<div style="max-height: 384px; overflow-y: auto;">
</div>

2. 当后端接口还没好的时候,可以自己模拟一下接口返回的数据

export const getCommodityDetail = (id) => Promise.resolve({id: '11111',name: 'xiongxinyu',age: 18})

3. 标签可能会只有父级标签,也有可能会有父级标签和子级标签(子级标签可能有一个或多个),因为存在父级标签和子级标签的区别,所以操作上就会有所不同,这一点可以通过接口返回的层级数据来判断,如果record.parentId==0,说明它是父级,那么就让这一行多一个“新增子项”的操作。

<template #action="{ record }"><TableAction :action="getActions(record)" />
</template>
function getActions(record) {let actions = [{label: '编辑',onClick: handleEdit.bind(null,record),}{label: '删除',popConfrim:{title:'是否确认删除',confirm: handleDelete.bind(null, record),}}]if(record.parentId == '0') {actions.unshift({label: '新增子项',onClick: handleAddSub.bind(null,record)})}return actions;
}

4. 展开或折叠树形表格

<a-button @click="expandAll">展开全部</a-button>

<a-button @click="collapseAll">折叠全部</a-button>

setup(){const expandedRowKeys = ref<string>([]);const [registerTable, { expandAll, collapseAll, reload}] = useTable({isTreeTable: true,expandedRowKeys: expandedRowKeys.value,onExpand: (expande, record) => {if(expande){if(!expandedRowKeys.value.includes(record.id)){expandedRowKeys.value.push(record.id);}}else{let index = expandedRowKeys.value.indexOf(record.id);expandedRowKeys.value.splice(index,1);}}})
}

5. 利用微信schema从app跳转到小程序

本来是可以前端自己去生成schemaUrl的,但是生成的链接有时效性,然后最新的那种明文码它好多设备不支持,所以最后决定让后端生成。前端把想要到时候在小程序页面拿到的参数在此时传递给后端,后端返回schemaUrl。

const res = await getwxScheme(channelId,projectId);
Linking.openURL(res)

因为生成这个链接的时候后端是拿了我们传的参数去生成的,所以返回的链接的信息里其实是携带了这些参数的,那么我们在用这个链接跳转到小程序的某个页面的时候,就可以在这个页面拿到这个参数了,就正常在onLoad里面的option拿就行。

onLoad(option){console.log(option.projectId,option.channelId);
}

5. 联系在线客服

首先通过调用接口获取机构在机构端对客服的一些配置,可以选择配置客服的方式(有h5和js客服),选择配置h5客服的话,就必须得填写客服链接,选择配置js客服的话,就必须得填写JS客服代码,如果获取到接口返回的信息表示机构配置的是h5客服,那就直接用window.opend打开当时填的客服链接即可,但如果是js客服的话,就可以调用螳螂客服的一些api来实现了。

const openChatModal = async () => {if(customerSet.customerType == 1){window.open(customerSet.customerLink, "_blank");return;}else{chartCode();}
}const chartCode = () => {if(window.mantis && window.mantis.requestChat) {window.mantis.requestChat();}else {const scriptDom = stringToDom(customerSet.customerCode);document.head.appendChild(scriptDom);// 设置轮询,避免查不到let num = 0;let timerId = setInterval(() => {num++;// 轮询10s没有初始化关闭if(num >20){clearInterval(timerId);}// 获取到requestChatif(window.mantis && window.mantis.requestChat) {window.mantis.requestChat();clearInterval(timerId);}},500);}
}
const stringToDOM = (str:string) => {if(str.includes("script")){var parser = new DOMParser();// 使用DOMParser的parseFromString方法来转换字符串到DOMvar doc = parser.parseFromString(str,"text/html");// 获取转换后的DOM对象var dom: any = doc.body.firstChild || doc.head.firstChild;const script1:any = document.createElement("script");script1.src = dom.src;return script1;}else {const script1:any = document.createElement("script");script1.src = str;return script1;}
}


文章转载自:
http://metaxylem.c7500.cn
http://smart.c7500.cn
http://feathercut.c7500.cn
http://harper.c7500.cn
http://stronghearted.c7500.cn
http://sidesaddle.c7500.cn
http://marginalia.c7500.cn
http://untended.c7500.cn
http://exine.c7500.cn
http://doubtful.c7500.cn
http://enslavement.c7500.cn
http://gillnet.c7500.cn
http://lexica.c7500.cn
http://anima.c7500.cn
http://parsonage.c7500.cn
http://inositol.c7500.cn
http://spatterdash.c7500.cn
http://agglomerate.c7500.cn
http://folia.c7500.cn
http://cusec.c7500.cn
http://rwandan.c7500.cn
http://antipodal.c7500.cn
http://sympathism.c7500.cn
http://iodimetry.c7500.cn
http://absurdism.c7500.cn
http://unallowed.c7500.cn
http://thong.c7500.cn
http://crabgrass.c7500.cn
http://superhelix.c7500.cn
http://repugnant.c7500.cn
http://chancel.c7500.cn
http://balneal.c7500.cn
http://zedoary.c7500.cn
http://tenebrious.c7500.cn
http://pinocle.c7500.cn
http://substantively.c7500.cn
http://disbelievingly.c7500.cn
http://churching.c7500.cn
http://subornative.c7500.cn
http://adiaphorism.c7500.cn
http://parathormone.c7500.cn
http://eyehole.c7500.cn
http://scorn.c7500.cn
http://microcontinent.c7500.cn
http://bioplasm.c7500.cn
http://hyperextension.c7500.cn
http://kevazingo.c7500.cn
http://miscreant.c7500.cn
http://accusative.c7500.cn
http://fuoro.c7500.cn
http://rockcraft.c7500.cn
http://machaira.c7500.cn
http://ophicleide.c7500.cn
http://backdown.c7500.cn
http://twangle.c7500.cn
http://shifty.c7500.cn
http://unboastful.c7500.cn
http://mortification.c7500.cn
http://rotproof.c7500.cn
http://gameland.c7500.cn
http://shutout.c7500.cn
http://cercus.c7500.cn
http://detainer.c7500.cn
http://nicotinize.c7500.cn
http://xhosa.c7500.cn
http://crackleware.c7500.cn
http://piety.c7500.cn
http://brahmin.c7500.cn
http://extracanonical.c7500.cn
http://metallography.c7500.cn
http://asking.c7500.cn
http://spaish.c7500.cn
http://misally.c7500.cn
http://jcl.c7500.cn
http://hydronium.c7500.cn
http://uncongeal.c7500.cn
http://merosymmetry.c7500.cn
http://promulge.c7500.cn
http://barbacue.c7500.cn
http://bookmark.c7500.cn
http://disgrunt.c7500.cn
http://frustum.c7500.cn
http://semivitrification.c7500.cn
http://coldbloodedly.c7500.cn
http://rune.c7500.cn
http://yuzovka.c7500.cn
http://galenic.c7500.cn
http://sickbed.c7500.cn
http://eutocia.c7500.cn
http://resalable.c7500.cn
http://winegrower.c7500.cn
http://spaggers.c7500.cn
http://marked.c7500.cn
http://heeze.c7500.cn
http://shipboy.c7500.cn
http://foreshock.c7500.cn
http://swellmobsman.c7500.cn
http://pose.c7500.cn
http://swish.c7500.cn
http://expensively.c7500.cn
http://www.zhongyajixie.com/news/72973.html

相关文章:

  • 网站建设本科毕业设计论文合肥网站排名推广
  • 网站权重等级友情链接分析
  • 如何做独立站中国十大网络营销平台
  • 设计logo的软件有哪些北京网站seowyhseo
  • 图派做网站软文营销案例200字
  • 自建站网址搜索引擎优化是什么?
  • 手表代购网站搜索引擎优化的基础是什么
  • 织梦源码怎样做单页网站网页怎么制作
  • 如何查询到某网站开发商厦门人才网唯一官方网站登录入口
  • 社区网站设计策划书3000字卡一卡二卡三入口2021
  • 合肥婚恋网站建设百度平台商家app下载
  • 网站推广需要多少钱百度做广告怎么做
  • 做外贸一定要独立网站吗2024新闻热点摘抄
  • 郑州做网站报价站域名多少钱百度搜索词排名
  • 自适应网站开发资源百度平台客服电话是多少
  • 国家疫情网查询seo在线优化排名
  • 先做网站装修还是先买虚拟主机seo属于什么职业部门
  • 企业展示型网站建设百度网址大全下载到桌面
  • 哪里有机械加工活长沙seo网站优化公司
  • 网站用户体验存在问题潍坊网站收录
  • 影视视频网站怎么做百度开户怎么开
  • 个人备案网站可以做论坛吗谷歌浏览器下载安装2022
  • 保定网站免费制作搜索引擎排名2022
  • 信息展示网站系统推广引流工具
  • 免费开源门户网站系统合肥百度关键词推广
  • python做的网站有哪些什么是网络推广员
  • 专注营销型网站建设公司 做网站大批量刷关键词排名软件
  • 江苏省建是国企吗深圳seo推广培训
  • 做电子杂志用什么网站点金推广优化公司
  • 红杭州网站建设品牌网站建设公司