uniapp微信小程序开发中使用图表
环形图
代码
html
<qiun-data-charts :opts="opts" type="ring" :chartData="chartData" backgroun...
3年前 (2022-04-07)
喜欢
uniapp开发可能会用到的列表样式 记录方便后期可能复用
<div class="list">
<div class="listItem" v-for="(item,index) in package...
3年前 (2022-04-07)
喜欢
uniapp 微信小程序开发一个微信小程序有四个角色,一个账号可以拥有4个角色,要求角色权重依次是1>2>3>4,有1类型就优先跳转1,有2和3就优先跳2
gopage() {
var that = this;
that.listtype = [...
3年前 (2022-04-06)
喜欢
uniapp开发微信小程序时,经常遇到小程序发布了新版本,但是用户手机的app仍然是旧版本的,需要手动删除重新进入才可以。
解决办法
在App.vue onShow内加入以下代码:
const updateManager = uni.getUpdateManager();
...
3年前 (2022-04-06)
喜欢
vue获取路由参数方法 query
query
获取id this.$route.query
this.$route.query.id
...
3年前 (2022-04-06)
喜欢
单页模板扒手
以前做前端时,经常需要下载一些网页,偶然间找到的一个小工具,很实用,不过随着网页都从http变为了https,这个单页模板扒手反而用不了,不过自己的技术也在随着时间的流逝不断积累,在学python是就想着也做一个类似的小工具。并且行动了。
python-html-...
3年前 (2022-04-05)
喜欢
在用nodejs仿写单页模板扒手的时候,使用axios下载的图片无法正常打开,所以换了一种方式,下载图片需要两种一种http 一种https,用来下载http和https地址下的图片。
import fs from 'fs'
var Stream = require('stre...
3年前 (2022-04-05)
喜欢
设置编码
在用nodejs仿写单页模板扒手的时候,实现下载css文件的时候,css文件是乱码的,排查发现可能是出现了bom头,设置一下写入编码就可以了。{encoding: 'utf8'}
fs.writeFile(filePaths, res.data, {encoding...
3年前 (2022-04-05)
喜欢
const hash256Sync = createFileHash256Sync(filePath)
const hash256Syncafter = createFileHash256Sync(filePath2)
...
3年前 (2022-04-05)
喜欢
在仿写单页模板扒手时,遇到一个需要删除文件的功能,以前也没用过fs,记录一下代码方便以后复用查询。
fs.unlink(filePath2,(err,data)=>{
if (err) {
...
3年前 (2022-04-05)
喜欢