朱丽叶

导航

2022年9月20日 #

uni-app 中使用ucharts(折线图)

摘要: 首先导入插件 // 2. 直接在vue文件中使用、 <!-- opts:图表样式配置 chartData为:图标数据 --> <qiun-data-charts type="line" :opts="opts" :chartData="option"/> // ucharts 配置 opts:{ x 阅读全文

posted @ 2022-09-20 11:00 朱丽叶 阅读(3326) 评论(0) 推荐(0)

2022年9月15日 #

Vue + Ts + Vite中使用svg

摘要: 在项目目录的src下新建icons文件夹,svg目录下存放svg图片 编写index.ts文件 // 2.1 首先安装用到的插件 npm install svg-sprite-loader --save-dev npm install fs // 2.2 index.ts文件如下 import { 阅读全文

posted @ 2022-09-15 23:55 朱丽叶 阅读(359) 评论(0) 推荐(0)

2022年9月14日 #

uni-app web-view不占满全屏·

摘要: // web-view <web-view :src="pdfUrl"></web-view> // 在onLoad中调用 // #ifdef APP-PLUS this.setWebviewHeight() // #endif // methods方法 setWebviewHeight() { / 阅读全文

posted @ 2022-09-14 10:10 朱丽叶 阅读(1794) 评论(1) 推荐(0)

2022年9月13日 #

element-plus消息提示的封装

摘要: import { ElMessage } from "element-plus"; import type { EpPropMergeType } from "element-plus/es/utils/vue/props/types"; /** * * @param msg 提示的内容 * @pa 阅读全文

posted @ 2022-09-13 22:38 朱丽叶 阅读(1787) 评论(0) 推荐(0)

2022年8月18日 #

uni-app微信内置浏览器支付

摘要: // 微信内置浏览器支付 onBridgeReady(data){ // #ifdef H5 WeixinJSBridge.invoke('getBrandWCPayRequest', { appId:data.appid, timeStamp: String(data.timestamp), no 阅读全文

posted @ 2022-08-18 09:24 朱丽叶 阅读(497) 评论(0) 推荐(0)

2022年8月16日 #

uni-app 点击事件有背景

摘要: // App.vu中设置全局样式 <style lang="scss"> page{ -webkit-tap-highlight-color:rgba(0,0,0,0) } </style> 阅读全文

posted @ 2022-08-16 09:06 朱丽叶 阅读(130) 评论(0) 推荐(0)

2022年8月14日 #

根据时间戳格格式化字符转(dddd-mm-dd )

摘要: export function getDateTime(value) { var b = new Date(value); var year = b.getFullYear()+'-'; var month = (b.getMonth()+1); var date = b.getDate(); if 阅读全文

posted @ 2022-08-14 19:40 朱丽叶 阅读(54) 评论(0) 推荐(0)

数组根据时间戳排序

摘要: export function compare(arr, key, type = "asc") { return arr.sort((value1, value2) => { const val1 = value1[key]; const val2 = value2[key]; // return 阅读全文

posted @ 2022-08-14 19:33 朱丽叶 阅读(139) 评论(0) 推荐(0)

2022年8月12日 #

uni-app App端拉起微信H5支付

摘要: // #ifdef APP-PLUS uni.showLoading({title:"加载中..."}) const res = await Api.toPay(this.gd.appId,this.contractId,"h5"); uni.hideLoading(); if(res.errcod 阅读全文

posted @ 2022-08-12 16:56 朱丽叶 阅读(1019) 评论(0) 推荐(0)

2022年8月3日 #

vue动态添加js

摘要: // 动态添加js export function addJs(url) { return new Promise((resolve, reject) => { const script = document.createElement('script') script.src = url scri 阅读全文

posted @ 2022-08-03 22:59 朱丽叶 阅读(1973) 评论(0) 推荐(0)