摘要:
// 识别二维码 export default function(url){ return new Promise((resolve, reject) => { uni.previewImage({ urls: [url], longPressActions: { itemList: ['保存图片' 阅读全文
摘要:
// 压缩图片 export function compressImage(url,qa) { return new Promise((resolve, reject) => { const filenames = url.split('/') const name = "_doc/upload/" 阅读全文
摘要:
import store from '@/store' import config from '@/config' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' import { t 阅读全文
摘要:
// 日期格式化 export function parseTime(time, pattern) { if (arguments.length 0 || !time) { return null } const format = pattern || '{y}-{m}-{d} {h}:{i}:{s 阅读全文
摘要:
stroage.js import constant from './constant' // 存储变量名 let storageKey = 'storage_data' // 存储节点变量名 let storageNodeKeys = [constant.avatar, constant.name 阅读全文
摘要:
request.js import store from '@/store' import config from '@/config' import { getToken, getImei } from '@/utils/auth' import errorCode from '@/utils/e 阅读全文
摘要:
utils/socket.js import config from '@/config' import store from '@/store' import {updateUrl} from '@/config' class socketIO { constructor() { this.soc 阅读全文
摘要:
// 查看文件 export function showfile(url){ uni.showLoading({ title:'加载中' }) uni.downloadFile({ url: url, success: function (res) { var filePath = res.temp 阅读全文
摘要:
1、https://ext.dcloud.net.cn/plugin?id=2636 原生支付宝扫码插件新建项目获取扫码插件配置信息// 扫二维码 export function scanCode(){ const mpaasScanModule = uni.requireNativePlugin( 阅读全文
摘要:
// 文件下载加查看 export function saveAndShowFile(typeName, val) { const imgFormat = /\.(jpg|jpeg|png|gif)$/; //图片格式匹配 const documentFormatRegex = /\.(doc|do 阅读全文
摘要:
<template> <view> <u--form labelWidth="100" labelPosition="left" :model="energyForm" :rules="rules" ref="energyForm"> <u-form-item :labelWidth='80' la 阅读全文
摘要:
<template> <view> <u-overlay :show="isShow" :close="false"> <view class="selectBox"> <view class="select"> <view class="btnBox"> <view class="flex" st 阅读全文
摘要:
<template> <div> <el-form label-position="left"> <title-tip title="能量隔离"></title-tip> <div v-if="energyListShow" class="tree-border"> <el-row :gutter= 阅读全文