摘要:// 微信内置浏览器支付 onBridgeReady(data){ // #ifdef H5 WeixinJSBridge.invoke('getBrandWCPayRequest', { appId:data.appid, timeStamp: String(data.timestamp), no
阅读全文
摘要:// App.vu中设置全局样式 <style lang="scss"> page{ -webkit-tap-highlight-color:rgba(0,0,0,0) } </style>
阅读全文
摘要:export function getDateTime(value) { var b = new Date(value); var year = b.getFullYear()+'-'; var month = (b.getMonth()+1); var date = b.getDate(); if
阅读全文
摘要:export function compare(arr, key, type = "asc") { return arr.sort((value1, value2) => { const val1 = value1[key]; const val2 = value2[key]; // return
阅读全文
摘要:// #ifdef APP-PLUS uni.showLoading({title:"加载中..."}) const res = await Api.toPay(this.gd.appId,this.contractId,"h5"); uni.hideLoading(); if(res.errcod
阅读全文
摘要:// 动态添加js export function addJs(url) { return new Promise((resolve, reject) => { const script = document.createElement('script') script.src = url scri
阅读全文