![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uniapp
「已注销」
这个作者很懒,什么都没留下…
展开
-
uni APP端 和 H5端 复制
APP 端 复制:<!-- #ifdef APP-PLUS --> <button type="default" @click="copy">复制链接</button><!-- #endif --><script> export default { data() { return { } }, ...原创 2020-05-12 14:03:57 · 674 阅读 · 0 评论 -
uni 公共方法 之 时间戳转换成标准时间 标准转年月日
接上篇 公共方法common.js 就是时间戳转换标准时间的 js 方法function timestampToTime(timestamp) { var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + '-'; var M = (...原创 2020-05-12 14:02:48 · 599 阅读 · 0 评论 -
uni 公共方法
在根目录下新建一个 放公共方法的文件 commonFun然后建 js 文件function code(code) { if(code==-2){ uni.showToast({ title:'请重新登录', icon:'none', mask:true }) setTimeout(()=>{ uni.reLaunch({ url:...原创 2020-05-12 14:03:24 · 682 阅读 · 0 评论 -
uniapp 背景动画 执行一次
接着前两篇博客,做出来背景动画以后,客户要求进 app 时执行一次动画,到退出app 之前,都不再执行动画。因为这个动画是在首页加的,所以就是刚进app 时在首页执行动画,跳转其他页面回来动画也不执行。首页的 template: 在template 里 稍加改动 加了一个 v-if 用来控制动画图片的显示隐藏<view v-if="haveimg"...原创 2019-12-23 13:22:57 · 2050 阅读 · 0 评论