上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 在App.vue中添加如下代码: <script> export default { onLaunch: function(options) { var self = this // 获取小程序更新机制兼容 if (wx.canIUse('getUpdateManager')) { const up 阅读全文
posted @ 2020-09-30 17:24 星宝攸宁 阅读(5950) 评论(0) 推荐(0)
摘要: 在项目中需要获取小程序的版本号,但是版本号只能在正式环境中获取,开发版和体验版是不能获取到的,以下是我写的代码,仅供大家参考,互相讨论。 在相关页面的onLoad中添加代码 onLoad() { uni.getSystemInfo({ success: function (res) { consol 阅读全文
posted @ 2020-09-30 17:15 星宝攸宁 阅读(6880) 评论(3) 推荐(0)
摘要: <el-table-column :show-overflow-tooltip="true"> </el-table-column> 阅读全文
posted @ 2020-09-30 14:23 星宝攸宁 阅读(309) 评论(0) 推荐(0)
摘要: 在vue项目中使用水波球的时候报错: Component series.liquidFill not exists. Load it first. 解决办法:安装 echarts-liquidfill import echarts from "echarts/lib/echarts" import 阅读全文
posted @ 2020-09-30 14:22 星宝攸宁 阅读(2081) 评论(0) 推荐(0)
摘要: <el-table-column type="index" label="序号" width="100px"> <template slot-scope="scope"> <span>{{(page - 1) * pageSize + scope.$index + 1}}</span> </temp 阅读全文
posted @ 2020-09-30 14:17 星宝攸宁 阅读(118) 评论(0) 推荐(0)
摘要: 实现效果: .linear{ width:100%; height:2px; background: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(35,198,200,0.3) 20%, rgba(35,1 阅读全文
posted @ 2020-09-30 14:08 星宝攸宁 阅读(422) 评论(0) 推荐(0)
摘要: 点击 导出Excel 调用导出接口成功了:但是后台返回的数据流是一堆乱码: 接下来要处理这堆乱码,因为用到的地方多,所以在main.js文件里封装了一个公共方法并抛出: 虽然vue里有封装好的请求接口的方法,但这里要单独用axios,所以先在util.js里引入axios import axios 阅读全文
posted @ 2020-09-30 14:01 星宝攸宁 阅读(1143) 评论(0) 推荐(0)
摘要: 首先 需要 下载echarts 在main 中 需要引入 import echarts from 'echarts/dist/echarts.min.js' import china from 'echarts/map/json/china.json' echarts.registerMap('ch 阅读全文
posted @ 2020-09-30 13:42 星宝攸宁 阅读(4241) 评论(1) 推荐(0)
摘要: 1.使用slice方法 /** * slice(start,end) * start 要截取的字符串的起始下标 如果为负数从后面开始算起 -1指的是字符串的最后一位 * end 要截取的字符串的结尾下标 如果为负数从后面开始算起 -1指的是字符串的最后一位 * start 和 end 都是下标 */ 阅读全文
posted @ 2020-09-30 11:28 星宝攸宁 阅读(5981) 评论(0) 推荐(0)
摘要: v-bind:class="index==searchIndex ? 'typeselect' : ''" 阅读全文
posted @ 2020-09-30 11:15 星宝攸宁 阅读(1920) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页