朱丽叶

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

08 2022 档案

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

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

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

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

根据时间戳格格式化字符转(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 朱丽叶 阅读(39) 评论(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 朱丽叶 阅读(129) 评论(0) 推荐(0) 编辑

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 朱丽叶 阅读(972) 评论(0) 推荐(0) 编辑

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 朱丽叶 阅读(1950) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示