diff --git a/node_modules/image-tools/.vscode/settings.json b/node_modules/image-tools/.vscode/settings.json new file mode 100644 index 0000000..fdf50be --- /dev/null +++ b/node_modules/image-tools/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": true +} \ No newline at end of file diff --git a/node_modules/image-tools/README.md b/node_modules/image-tools/README.md new file mode 100644 index 0000000..1f24012 --- /dev/null +++ b/node_modules/image-tools/README.md @@ -0,0 +1,76 @@ +# image-tools +图像转换工具,可用于如下环境:uni-app、微信小程序、5+APP、浏览器(需允许跨域) + +## 使用方式 + +### NPM + +``` +npm i image-tools --save +``` + +```js +import { pathToBase64, base64ToPath } from 'image-tools' +``` + +### 直接下载 + +```js +// 以下路径需根据项目实际情况填写 +import { pathToBase64, base64ToPath } from '../../js/image-tools/index.js' +``` + +## API + +### pathToBase64 + +从图像路径转换为base64,uni-app、微信小程序和5+APP使用的路径不支持网络路径,如果是网络路径需要先使用下载API下载下来。 + +```js +pathToBase64(path) + .then(base64 => { + console.log(base64) + }) + .catch(error => { + console.error(error) + }) +``` + +### base64ToPath + +将图像base64保存为文件,返回文件路径。 + +```js +base64ToPath(base64) + .then(path => { + console.log(path) + }) + .catch(error => { + console.error(error) + }) +``` + +## 提示 + +可以利用promise来串行和并行的执行多个任务 + +```js +// 并行 +Promise.all(paths.map(path => pathToBase64(path))) + .then(res => { + console.log(res) + // [base64, base64...] + }) + .catch(error => { + console.error(error) + }) +// 串行 +paths.reduce((promise, path) => promise.then(res => pathToBase64(path).then(base64 => (res.push(base64), res))), Promise.resolve([])) + .then(res => { + console.log(res) + // [base64, base64...] + }) + .catch(error => { + console.error(error) + }) +``` \ No newline at end of file diff --git a/node_modules/image-tools/index.js b/node_modules/image-tools/index.js new file mode 100644 index 0000000..acf40bc --- /dev/null +++ b/node_modules/image-tools/index.js @@ -0,0 +1,196 @@ +function getLocalFilePath(path) { + if (path.indexOf('_www') === 0 || path.indexOf('_doc') === 0 || path.indexOf('_documents') === 0 || path.indexOf('_downloads') === 0) { + return path + } + if (path.indexOf('file://') === 0) { + return path + } + if (path.indexOf('/storage/emulated/0/') === 0) { + return path + } + if (path.indexOf('/') === 0) { + var localFilePath = plus.io.convertAbsoluteFileSystem(path) + if (localFilePath !== path) { + return localFilePath + } else { + path = path.substr(1) + } + } + return '_www/' + path +} + +function dataUrlToBase64(str) { + var array = str.split(',') + return array[array.length - 1] +} + +var index = 0 +function getNewFileId() { + return Date.now() + String(index++) +} + +function biggerThan(v1, v2) { + var v1Array = v1.split('.') + var v2Array = v2.split('.') + var update = false + for (var index = 0; index < v2Array.length; index++) { + var diff = v1Array[index] - v2Array[index] + if (diff !== 0) { + update = diff > 0 + break + } + } + return update +} + +export function pathToBase64(path) { + return new Promise(function(resolve, reject) { + if (typeof window === 'object' && 'document' in window) { + if (typeof FileReader === 'function') { + var xhr = new XMLHttpRequest() + xhr.open('GET', path, true) + xhr.responseType = 'blob' + xhr.onload = function() { + if (this.status === 200) { + let fileReader = new FileReader() + fileReader.onload = function(e) { + resolve(e.target.result) + } + fileReader.onerror = reject + fileReader.readAsDataURL(this.response) + } + } + xhr.onerror = reject + xhr.send() + return + } + var canvas = document.createElement('canvas') + var c2x = canvas.getContext('2d') + var img = new Image + img.onload = function() { + canvas.width = img.width + canvas.height = img.height + c2x.drawImage(img, 0, 0) + resolve(canvas.toDataURL()) + canvas.height = canvas.width = 0 + } + img.onerror = reject + img.src = path + return + } + if (typeof plus === 'object') { + plus.io.resolveLocalFileSystemURL(getLocalFilePath(path), function(entry) { + entry.file(function(file) { + var fileReader = new plus.io.FileReader() + fileReader.onload = function(data) { + resolve(data.target.result) + } + fileReader.onerror = function(error) { + reject(error) + } + fileReader.readAsDataURL(file) + }, function(error) { + reject(error) + }) + }, function(error) { + reject(error) + }) + return + } + if (typeof wx === 'object' && wx.canIUse('getFileSystemManager')) { + wx.getFileSystemManager().readFile({ + filePath: path, + encoding: 'base64', + success: function(res) { + resolve('data:image/png;base64,' + res.data) + }, + fail: function(error) { + reject(error) + } + }) + return + } + reject(new Error('not support')) + }) +} + +export function base64ToPath(base64) { + return new Promise(function(resolve, reject) { + if (typeof window === 'object' && 'document' in window) { + base64 = base64.split(',') + var type = base64[0].match(/:(.*?);/)[1] + var str = atob(base64[1]) + var n = str.length + var array = new Uint8Array(n) + while (n--) { + array[n] = str.charCodeAt(n) + } + return resolve((window.URL || window.webkitURL).createObjectURL(new Blob([array], { type: type }))) + } + var extName = base64.split(',')[0].match(/data\:\S+\/(\S+);/) + if (extName) { + extName = extName[1] + } else { + reject(new Error('base64 error')) + } + var fileName = getNewFileId() + '.' + extName + if (typeof plus === 'object') { + var basePath = '_doc' + var dirPath = 'uniapp_temp' + var filePath = basePath + '/' + dirPath + '/' + fileName + if (!biggerThan(plus.os.name === 'Android' ? '1.9.9.80627' : '1.9.9.80472', plus.runtime.innerVersion)) { + plus.io.resolveLocalFileSystemURL(basePath, function(entry) { + entry.getDirectory(dirPath, { + create: true, + exclusive: false, + }, function(entry) { + entry.getFile(fileName, { + create: true, + exclusive: false, + }, function(entry) { + entry.createWriter(function(writer) { + writer.onwrite = function() { + resolve(filePath) + } + writer.onerror = reject + writer.seek(0) + writer.writeAsBinary(dataUrlToBase64(base64)) + }, reject) + }, reject) + }, reject) + }, reject) + return + } + var bitmap = new plus.nativeObj.Bitmap(fileName) + bitmap.loadBase64Data(base64, function() { + bitmap.save(filePath, {}, function() { + bitmap.clear() + resolve(filePath) + }, function(error) { + bitmap.clear() + reject(error) + }) + }, function(error) { + bitmap.clear() + reject(error) + }) + return + } + if (typeof wx === 'object' && wx.canIUse('getFileSystemManager')) { + var filePath = wx.env.USER_DATA_PATH + '/' + fileName + wx.getFileSystemManager().writeFile({ + filePath: filePath, + data: dataUrlToBase64(base64), + encoding: 'base64', + success: function() { + resolve(filePath) + }, + fail: function(error) { + reject(error) + } + }) + return + } + reject(new Error('not support')) + }) +} \ No newline at end of file diff --git a/node_modules/image-tools/package.json b/node_modules/image-tools/package.json new file mode 100644 index 0000000..f9cfa49 --- /dev/null +++ b/node_modules/image-tools/package.json @@ -0,0 +1,53 @@ +{ + "_from": "image-tools", + "_id": "image-tools@1.4.0", + "_inBundle": false, + "_integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ==", + "_location": "/image-tools", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "image-tools", + "name": "image-tools", + "escapedName": "image-tools", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/image-tools/-/image-tools-1.4.0.tgz", + "_shasum": "66aacbafad677af7f3fd7f32f8fa1e0881b83783", + "_spec": "image-tools", + "_where": "/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd-vistor-wx", + "author": { + "name": "Shengqiang Guo" + }, + "bugs": { + "url": "https://github.com/zhetengbiji/image-tools/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "图像转换工具,可用于如下环境:uni-app、微信小程序、5+APP、浏览器", + "devDependencies": { + "@types/html5plus": "^1.0.0" + }, + "homepage": "https://github.com/zhetengbiji/image-tools#readme", + "keywords": [ + "base64" + ], + "license": "ISC", + "main": "index.js", + "name": "image-tools", + "repository": { + "type": "git", + "url": "git+https://github.com/zhetengbiji/image-tools.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "1.4.0" +} diff --git a/node_modules/moment/package.json b/node_modules/moment/package.json index a50473d..8780ddf 100644 --- a/node_modules/moment/package.json +++ b/node_modules/moment/package.json @@ -1,112 +1,163 @@ { + "_args": [ + [ + "moment@2.29.3", + "/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd-vistor-wx" + ] + ], + "_from": "moment@2.29.3", + "_id": "moment@2.29.3", + "_inBundle": false, + "_integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==", + "_location": "/moment", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "moment@2.29.3", "name": "moment", - "version": "2.29.3", - "description": "Parse, validate, manipulate, and display dates", - "homepage": "https://momentjs.com", - "author": "Iskren Ivov Chernev (https://github.com/ichernev)", - "contributors": [ - "Tim Wood (http://timwoodcreates.com/)", - "Rocky Meza (http://rockymeza.com)", - "Matt Johnson (http://codeofmatt.com)", - "Isaac Cambron (http://isaaccambron.com)", - "Andre Polykanine (https://github.com/oire)" - ], - "keywords": [ - "moment", - "date", - "time", - "parse", - "format", - "validate", - "i18n", - "l10n", - "ender" - ], - "main": "./moment.js", - "jsnext:main": "./dist/moment.js", - "typings": "./moment.d.ts", - "typesVersions": { - ">=3.1": { - "*": [ - "ts3.1-typings/*" - ] - } - }, - "engines": { - "node": "*" - }, - "repository": { - "type": "git", - "url": "https://github.com/moment/moment.git" + "escapedName": "moment", + "rawSpec": "2.29.3", + "saveSpec": null, + "fetchSpec": "2.29.3" + }, + "_requiredBy": [ + "/" + ], + "_resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz", + "_spec": "2.29.3", + "_where": "/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd-vistor-wx", + "author": { + "name": "Iskren Ivov Chernev", + "email": "iskren.chernev@gmail.com", + "url": "https://github.com/ichernev" + }, + "bugs": { + "url": "https://github.com/moment/moment/issues" + }, + "contributors": [ + { + "name": "Tim Wood", + "email": "washwithcare@gmail.com", + "url": "http://timwoodcreates.com/" }, - "bugs": { - "url": "https://github.com/moment/moment/issues" + { + "name": "Rocky Meza", + "url": "http://rockymeza.com" }, - "license": "MIT", - "devDependencies": { - "benchmark": "latest", - "coveralls": "latest", - "cross-env": "^6.0.3", - "es6-promise": "latest", - "eslint": "~6", - "grunt": "latest", - "grunt-benchmark": "latest", - "grunt-cli": "latest", - "grunt-contrib-clean": "latest", - "grunt-contrib-concat": "latest", - "grunt-contrib-copy": "latest", - "grunt-contrib-uglify": "latest", - "grunt-contrib-watch": "latest", - "grunt-env": "latest", - "grunt-exec": "latest", - "grunt-karma": "latest", - "grunt-nuget": "latest", - "grunt-string-replace": "latest", - "karma": "latest", - "karma-chrome-launcher": "latest", - "karma-firefox-launcher": "latest", - "karma-qunit": "latest", - "karma-sauce-launcher": "4.1.4", - "load-grunt-tasks": "latest", - "lodash": ">=4.17.19", - "node-qunit": "latest", - "nyc": "latest", - "prettier": "latest", - "qunit": "^2.10.0", - "rollup": "2.17.1", - "typescript": "^1.8.10", - "typescript3": "npm:typescript@^3.1.6", - "uglify-js": "latest" + { + "name": "Matt Johnson", + "email": "mj1856@hotmail.com", + "url": "http://codeofmatt.com" }, - "ender": "./ender.js", - "dojoBuild": "package.js", - "jspm": { - "files": [ - "moment.js", - "moment.d.ts", - "locale" - ], - "map": { - "moment": "./moment" - }, - "buildConfig": { - "uglify": true - } + { + "name": "Isaac Cambron", + "email": "isaac@isaaccambron.com", + "url": "http://isaaccambron.com" }, - "scripts": { - "ts3.1-typescript-test": "cross-env node_modules/typescript3/bin/tsc --project ts3.1-typing-tests", - "typescript-test": "cross-env node_modules/typescript/bin/tsc --project typing-tests", - "test": "grunt test", - "eslint": "eslint Gruntfile.js tasks src", - "prettier-check": "prettier --check Gruntfile.js tasks src", - "prettier-fmt": "prettier --write Gruntfile.js tasks src", - "coverage": "nyc npm test && nyc report", - "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" + { + "name": "Andre Polykanine", + "email": "andre@oire.org", + "url": "https://github.com/oire" + } + ], + "description": "Parse, validate, manipulate, and display dates", + "devDependencies": { + "benchmark": "latest", + "coveralls": "latest", + "cross-env": "^6.0.3", + "es6-promise": "latest", + "eslint": "~6", + "grunt": "latest", + "grunt-benchmark": "latest", + "grunt-cli": "latest", + "grunt-contrib-clean": "latest", + "grunt-contrib-concat": "latest", + "grunt-contrib-copy": "latest", + "grunt-contrib-uglify": "latest", + "grunt-contrib-watch": "latest", + "grunt-env": "latest", + "grunt-exec": "latest", + "grunt-karma": "latest", + "grunt-nuget": "latest", + "grunt-string-replace": "latest", + "karma": "latest", + "karma-chrome-launcher": "latest", + "karma-firefox-launcher": "latest", + "karma-qunit": "latest", + "karma-sauce-launcher": "4.1.4", + "load-grunt-tasks": "latest", + "lodash": ">=4.17.19", + "node-qunit": "latest", + "nyc": "latest", + "prettier": "latest", + "qunit": "^2.10.0", + "rollup": "2.17.1", + "typescript": "^1.8.10", + "typescript3": "npm:typescript@^3.1.6", + "uglify-js": "latest" + }, + "dojoBuild": "package.js", + "ender": "./ender.js", + "engines": { + "node": "*" + }, + "homepage": "https://momentjs.com", + "jsnext:main": "./dist/moment.js", + "jspm": { + "files": [ + "moment.js", + "moment.d.ts", + "locale" + ], + "map": { + "moment": "./moment" }, - "spm": { - "main": "moment.js", - "output": [ - "locale/*.js" - ] + "buildConfig": { + "uglify": true + } + }, + "keywords": [ + "moment", + "date", + "time", + "parse", + "format", + "validate", + "i18n", + "l10n", + "ender" + ], + "license": "MIT", + "main": "./moment.js", + "name": "moment", + "repository": { + "type": "git", + "url": "git+https://github.com/moment/moment.git" + }, + "scripts": { + "coverage": "nyc npm test && nyc report", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls", + "eslint": "eslint Gruntfile.js tasks src", + "prettier-check": "prettier --check Gruntfile.js tasks src", + "prettier-fmt": "prettier --write Gruntfile.js tasks src", + "test": "grunt test", + "ts3.1-typescript-test": "cross-env node_modules/typescript3/bin/tsc --project ts3.1-typing-tests", + "typescript-test": "cross-env node_modules/typescript/bin/tsc --project typing-tests" + }, + "spm": { + "main": "moment.js", + "output": [ + "locale/*.js" + ] + }, + "typesVersions": { + ">=3.1": { + "*": [ + "ts3.1-typings/*" + ] } + }, + "typings": "./moment.d.ts", + "version": "2.29.3" } diff --git a/node_modules/uview-ui/components/u-calendar/month.vue b/node_modules/uview-ui/components/u-calendar/month.vue index b168872..c20937f 100644 --- a/node_modules/uview-ui/components/u-calendar/month.vue +++ b/node_modules/uview-ui/components/u-calendar/month.vue @@ -281,7 +281,7 @@ methods: { init() { // 初始化默认选中 - //this.$emit('monthSelected', this.selected) + this.$emit('monthSelected', this.selected) this.$nextTick(() => { // 这里需要另一个延时,因为获取宽度后,会进行月份数据渲染,只有渲染完成之后,才有真正的高度 // 因为nvue下,$nextTick并不是100%可靠的 diff --git a/node_modules/uview-ui/libs/config/config.js b/node_modules/uview-ui/libs/config/config.js index bde7042..ae15921 100644 --- a/node_modules/uview-ui/libs/config/config.js +++ b/node_modules/uview-ui/libs/config/config.js @@ -1,35 +1,34 @@ -// 此版本发布于2022-04-19 -const version = '2.0.31' - -// 开发环境才提示,生产环境不会提示 -if (process.env.NODE_ENV === 'development') { - console.log(`\n %c uView V${version} %c https://www.uviewui.com/ \n\n`, - 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;'); -} - -export default { - v: version, - version, - // 主题名称 - type: [ - 'primary', - 'success', - 'info', - 'error', - 'warning' - ], - // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持 - color: { - 'u-primary': '#2979ff', - 'u-warning': '#ff9900', - 'u-success': '#19be6b', - 'u-error': '#fa3534', - 'u-info': '#909399', - 'u-main-color': '#303133', - 'u-content-color': '#606266', - 'u-tips-color': '#909399', - 'u-light-color': '#c0c4cc' - }, - // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx - unit: 'px' +// 此版本发布于2022-04-19 +const version = '2.0.31' + +// 开发环境才提示,生产环境不会提示 +if (process.env.NODE_ENV === 'development') { + console.log(`\n %c uView V${version} %c https://www.uviewui.com/ \n\n`, 'color: #ffffff; background: #3c9cff; padding:5px 0;', 'color: #3c9cff;background: #ffffff; padding:5px 0;'); +} + +export default { + v: version, + version, + // 主题名称 + type: [ + 'primary', + 'success', + 'info', + 'error', + 'warning' + ], + // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持 + color: { + 'u-primary': '#2979ff', + 'u-warning': '#ff9900', + 'u-success': '#19be6b', + 'u-error': '#fa3534', + 'u-info': '#909399', + 'u-main-color': '#303133', + 'u-content-color': '#606266', + 'u-tips-color': '#909399', + 'u-light-color': '#c0c4cc' + }, + // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx + unit: 'px' } diff --git a/node_modules/uview-ui/package.json b/node_modules/uview-ui/package.json index 3190cab..1f4feb5 100644 --- a/node_modules/uview-ui/package.json +++ b/node_modules/uview-ui/package.json @@ -1,87 +1,122 @@ { - "id": "uview-ui", - "name": "uview-ui", - "displayName": "uView2.0重磅发布,利剑出鞘,一统江湖", - "version": "2.0.31", - "description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水", - "keywords": [ - "uview", - "uview", - "ui", - "ui", - "uni-app", - "uni-app", - "ui" + "_args": [ + [ + "uview-ui@2.0.31", + "/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd-vistor-wx" + ] + ], + "_from": "uview-ui@2.0.31", + "_id": "uview-ui@2.0.31", + "_inBundle": false, + "_integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==", + "_location": "/uview-ui", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "uview-ui@2.0.31", + "name": "uview-ui", + "escapedName": "uview-ui", + "rawSpec": "2.0.31", + "saveSpec": null, + "fetchSpec": "2.0.31" + }, + "_requiredBy": [ + "/" + ], + "_resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz", + "_spec": "2.0.31", + "_where": "/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd-vistor-wx", + "bugs": { + "url": "https://github.com/umicro/uView2.0/issues" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" ], - "repository": "https://github.com/umicro/uView2.0", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "category": [ - "前端组件", - "通用组件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "1416956117" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "https://www.npmjs.com/package/uview-ui" - }, - "uni_modules": { - "dependencies": [], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "n" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "y", - "联盟": "y" - } - } - } - } + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "1416956117" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/uview-ui" + }, + "description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水", + "displayName": "uView2.0重磅发布,利剑出鞘,一统江湖", + "engines": { + "HBuilderX": "^3.1.0" + }, + "homepage": "https://github.com/umicro/uView2.0#readme", + "id": "uview-ui", + "keywords": [ + "uview", + "uview", + "ui", + "ui", + "uni-app", + "uni-app", + "ui" + ], + "name": "uview-ui", + "repository": { + "type": "git", + "url": "git+https://github.com/umicro/uView2.0.git" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "n" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "y", + "联盟": "y" + } + } + } + }, + "version": "2.0.31" } diff --git a/node_modules/uview-ui/theme.scss b/node_modules/uview-ui/theme.scss index 7aba58f..331b30f 100644 --- a/node_modules/uview-ui/theme.scss +++ b/node_modules/uview-ui/theme.scss @@ -10,7 +10,7 @@ $u-border-color: #dadbde; $u-bg-color: #f3f4f6; $u-disabled-color: #c8c9cc; -$u-primary: #044ed7; +$u-primary: #3c9cff; $u-primary-dark: #398ade; $u-primary-disabled: #9acafc; $u-primary-light: #ecf5ff; diff --git a/package-lock.json b/package-lock.json index f6873c2..b1fa164 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,32 +1,12 @@ { - "name": "wx-dangyuanjiaoyujidi", - "lockfileVersion": 2, "requires": true, - "packages": { - "": { - "dependencies": { - "moment": "^2.29.3", - "uview-ui": "^2.0.31" - } - }, - "node_modules/moment": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz", - "integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==", - "engines": { - "node": "*" - } - }, - "node_modules/uview-ui": { - "version": "2.0.31", - "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz", - "integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==", - "engines": { - "HBuilderX": "^3.1.0" - } - } - }, + "lockfileVersion": 1, "dependencies": { + "image-tools": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/image-tools/-/image-tools-1.4.0.tgz", + "integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ==" + }, "moment": { "version": "2.29.3", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz", diff --git a/package.json b/package.json index cfef16a..cd1e969 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "image-tools": "^1.4.0", "moment": "^2.29.3", "uview-ui": "^2.0.31" } diff --git a/pages.json b/pages.json index cfad06e..fb18994 100644 --- a/pages.json +++ b/pages.json @@ -26,6 +26,10 @@ { "path": "pages/bd/bddetail" }, + // 签字 + { + "path": "pages/bd/signpic" + }, // 访问新增 { "path": "pages/visit/addrecord" diff --git a/pages/bd/bddetail.vue b/pages/bd/bddetail.vue index 5566726..11e9a74 100644 --- a/pages/bd/bddetail.vue +++ b/pages/bd/bddetail.vue @@ -36,7 +36,7 @@