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

网站开发公司整站优化是什么意思

网站开发公司,整站优化是什么意思,网站对公司的作用是什么意思,合肥品牌网站建设小程序下载文件&#xff0c;可以先预览文件内容&#xff0c;然后在手机上打开文件的工具中选择保存。 简单示例&#xff1a;&#xff08;复制到HBuilder直接食用即可&#xff09; <template><view class"container-detail"><view class"example…

小程序下载文件,可以先预览文件内容,然后在手机上打开文件的工具中选择保存。

简单示例:(复制到HBuilder直接食用即可)

<template><view class="container-detail"><view class="example-body" @click="openFile(item.url)" v-for="(item, index) in fileList" :key="index"><image class="images" src="/common/images/files.png" mode="aspectFit"></image><view class="name">{{item.name}}</view></view></view>
</template><script setup>let fileList = ref([{"name":"file1.jpg","extname":"jpg","url":"https://images.dog.ceo/breeds/retriever-curly/n02099429_817.jpg",},{"name":"file2.jpg","extname":"jpg","url":"https://images.dog.ceo/breeds/doberman/n02107142_16400.jpg",},{"name":"somefile.pdf","extname":"pdf","url":"https://example.com/somefile.pdf",}])function openFile(url) {const isImgType = ['jpg', 'png', 'bmp', 'jpeg', 'webp']uni.showLoading({ title: '加载中...' })uni.downloadFile({url,success: (res) => {const fileType = res.tempFilePath.split('.').pop()if (isImgType.includes(fileType)) {uni.previewImage({ // 调用微信api预览图片showmenu: true, // 开启时右上角会有三点,点击可以保存urls: [res.tempFilePath],current: res.tempFilePath,success: (res) => {uni.hideLoading()console.log('打开图片成功')},fail: (res) => {uni.hideLoading()console.log(res)console.log('打开图片失败')},})} else {uni.openDocument({filePath: res.tempFilePath,showMenu: true, // 开启时右上角会有三点,点击可以保存success: (res) => {uni.hideLoading()console.log('打开文档成功')},fail: (res) => {uni.hideLoading()console.log(res)console.log('打开文档失败')},})}},fail: (e) => {uni.hideLoading()console.log(e)},})}</script><style lang="scss" scoped>
.container-detail {padding: 30rpx;.example-body {padding: 10rpx 0;display: flex;justify-content: space-between;align-items: center;margin-bottom: 32rpx;.images {width: 40rpx;height: 40rpx;image {width: 100%;height: 100%;}}.name {flex: 1;font-size: 28rpx;font-family: PingFang HK, PingFang HK-400;font-weight: 400;text-align: LEFT;color: royalblue;margin-left: 22rpx;}}
}
</style>

http://www.dtcms.com/wzjs/31592.html

相关文章:

  • 祁阳网页定制关于seo的行业岗位有哪些
  • 做外汇看的网站免费搜索引擎推广方法有哪些
  • 光明新区做网站做谷歌推广比较好的公司
  • 哈尔滨建站费用外贸网站推广服务
  • 网站建设优化之优化关键字网推怎么做
  • 个人网站需不需要搭建服务器公司网站制作模板
  • wordpress媒体库制作文件夹网站优化排名软件
  • 武汉公司注册地址可以是住宅吗郑州网站优化外包顾问
  • 海尔电子商务网站建设预算营销和销售的区别在哪里
  • 南京网站定制seo外链建设的方法
  • 深圳有哪些网站建设公司网站seo快速优化
  • 网络培训学习心得网站seo源码
  • 在家做网站建设常德今日头条新闻
  • 杭州市住房与城乡建设委员会网站app推广接单平台
  • 什么网站可以做软件有哪些内容吗网站关键词排名seo
  • 可信网站图标 费流量品牌推广营销平台
  • 多语言网站建设 技术宁波seo优化公司排名
  • wordpress xml rss南宁seo主管
  • 做全网营销型网站建设seo内部优化方式包括
  • 建设部建造师强制注销网站新媒体运营岗位职责
  • 网站开始怎么做的电脑办公软件培训班
  • 网站建设公司内部情况网站流量指标有哪些
  • 品牌企业seo咨询优化关键词排名公司
  • 上海有名的做网站的公司如何制作网页
  • 南宁培训网站建设人民日报最新头条10条
  • 贵阳手机网站开发汕头企业网络推广
  • 加强统战门户网站建设适合seo优化的网站
  • 怎么自己学着做网站2021年搜索引擎排名
  • 免费建设网站的好么磁力在线搜索引擎
  • 都江堰旅游门户网站怎么在网络上推广