摘要: 保存图片 方法一:wx.downloadFile + wx.canvasToTempFilePath +wx.saveImageToPhotosAlbum;方法二:wx.getImageInfo +wx.canvasToTempFilePath + wx.saveImageToPhotosAlbum 阅读全文
posted @ 2021-05-20 16:44 小灬壊 阅读(1005) 评论(0) 推荐(1) 编辑
摘要: mounted(){ this.loadlist() this.userlist() this.browserRedirect() window.addEventListener("scroll",this.handleFun) }, destroyed(){ window.removeEventL 阅读全文
posted @ 2021-05-20 15:43 小灬壊 阅读(4028) 评论(0) 推荐(0) 编辑
摘要: 第一种方式(通过可视高度和滚动条高度来判断) mounted() { this.getParmas() let that = this; window.onscroll = function () { var scrollTop = document.documentElement.scrollTo 阅读全文
posted @ 2021-05-12 11:52 小灬壊 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 解决方案一 1.首先将 package.json 中的 html2canvas 版本降低为【1.0.0-rc.4】版本降低方法首先移除 html2canvas 【npm uninstall html2canvas】然后安装指定版本 【npm install --save html2canvas@1. 阅读全文
posted @ 2021-04-25 13:36 小灬壊 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: 引入 import html2canvas from 'html2canvas' 使用 //获取详情 getinfo(hid,sign){ this.loading=true this.$apiRequest('details', { "hid":Number(hid), "sign":sign } 阅读全文
posted @ 2021-04-21 15:01 小灬壊 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 第一种 // 路由定义 { path: '/helping/:id', name: 'helping', component: helping } // 页面传参 <div class="submit" @click="$router.push('/helping/${id}')">查看助力进度</ 阅读全文
posted @ 2021-04-20 15:25 小灬壊 阅读(56) 评论(0) 推荐(0) 编辑
摘要: <template> <span style="color: #ff5454;">{{time}}</span> </template> <script> export default{ data () { return { time : '', flag : false } }, mounted 阅读全文
posted @ 2021-04-19 17:43 小灬壊 阅读(27) 评论(0) 推荐(0) 编辑
摘要: function isWxBrowser(){ var ua = navigator.userAgent.toLowerCase(); let isWx = ua.match(/MicroMessenger/i) == "micromessenger"; if(!isWx){ return fals 阅读全文
posted @ 2021-04-09 10:52 小灬壊 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: computed: { hasNum() { return this.orderList.reduce((res, cur) => { res += (cur.amount||0)/100 return this.formatNum(res,2) }, 0) } }, formatNum(f, di 阅读全文
posted @ 2021-04-08 14:47 小灬壊 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <el-input v-model="search_name" @keyup.enter.native="getuser" placeholder="搜索"></el-input> 只需要加.native就行了 阅读全文
posted @ 2021-03-15 14:25 小灬壊 阅读(380) 评论(0) 推荐(0) 编辑