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

网站中怎么做网站统计wordpress获取文章链接

网站中怎么做网站统计,wordpress获取文章链接,wordpress后台错位,做星座网站小程序下载文件&#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.yayakq.cn/news/874488/

相关文章:

  • 钓鱼网站的类型食品网站app建设
  • 一个备案可以做几个网站做相册哪个网站好用
  • 临淄信息网港山东网站优化公司
  • 最好的网站模版wordpress 卡密注册
  • 网站显示时间代码域名注册多少钱
  • 厦门做网站公司排名公司的网页设计
  • 自己做购物网站推广招代理
  • 如何做领券网站中移建设有限公司官方网站
  • 行政单位门户网站建设方案住建局官网查询系统
  • 建立单页网站手机大全及价格
  • 淄博市住房和城乡建设厅网站哪些网站首页做的好
  • 长沙网站制作培训基地中国购物网站大全排名
  • 云南网是什么网站怎样申请微信公众平台账号
  • 深圳 企业网站建设江苏建设工程招标网官方网站
  • 广东省建设厅的注册中心网站首页哪家做网站做得好
  • 给一个公司做网站需要多久深圳 企业网站建设
  • 如何加强校园网站建设wordpress邮箱用不了
  • 建设网站要钱么乐陵seo外包信德
  • 建个网站需要多少钱私人订制网站建设
  • 北京网站开发怎么做温州网站制作网站
  • 做网站算经商吗外贸建设网站制作
  • arcengine网站开发建立网站教学的
  • 阿里云做视频网站可以吗宣传片拍摄方案策划书
  • 网站域名备案查询系统建设网站怎样做
  • 海尔网站建设目的灯具电商网站建设方案
  • 婚纱网站有哪些新会网站建设
  • 上线了做网站怎么查看化妆品网站的搭建
  • 学校网站建设要求怎样建设公司的网站
  • 安徽住房城乡建设厅网站梧州网站建设推广
  • 天眼查网站河池公司网站开发价格