uniapp开发时,有的页面需要是富文本字体,比如用户协议页面,但是又要求是特殊字体的怎么设置呢。
<u-parse :content="user" :tagStyle="style"></u-parse>
dat...
yekong
3年前 (2021-12-03)
喜欢
uniapp开发时,需要实现一些特殊的导航效果,自己手写又会有很多bug,这是可以结合一些现成的ui组件来实现我们想要的效果。
<template>
<u-navbar title=" " bgColor="rgba(0,...
yekong
3年前 (2021-12-03)
喜欢
可以获取到当前网页宽度和当前网页高度
mounted() {
window.addEventListener('resize', this.getHeight)
},
methods: {
getHeight(e) {
con...
yekong
3年前 (2021-12-03)
喜欢
let token = uni.getStorageSync('token');
uni.downloadFile({
url: 'downurl,
filePath:...
yekong
3年前 (2021-12-03)
喜欢
echarts大屏项目有时候为了效果需要让pie进行颜色渐变。
getecharts() {
window.addEventListener("resize", function () {
myChar...
yekong
3年前 (2021-12-03)
喜欢
使用对象的形式,传给headers 就可以了。
:headers="{Authorization: ''}"
<el-upload
action=""
...
yekong
3年前 (2021-12-03)
喜欢
uniapp开发时,常常需要进行底部监听,用来加载分页数据 使用onReachBottom判断页面是否触底,用来进行新数据加载
onReachBottom() {
this.getmore();
},
getmore() ...
yekong
3年前 (2021-12-03)
喜欢
获取当前月份
moment().daysInMonth();
获取指定年月
console.log(moment("2022-01", "YYYY-MM").daysInMonth()) //31
console.log(moment(&...
yekong
3年前 (2021-12-03)
喜欢
drawLine() {
var that = this
window.addEventListener('resize', this.drawLine)
let myChart = this.$echarts.init(th...
yekong
3年前 (2021-12-02)
喜欢
是因为解压工具破坏了应用里面可执行文件的权限造成的。
最简单的办法 可以换一个解压工具进行解压。
...
yekong
3年前 (2021-12-02)
喜欢