Commit db6d5cd4 authored by Facius's avatar Facius

Merge branch 'dev-photo-v2' of https://git.banshouhui.com/heyinchen/take_order into dev-photo-v2

parents 61257b89 195ef400
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
// this.globalData.screenHeight = a.screenHeight; // this.globalData.screenHeight = a.screenHeight;
this.globalData.navHeight = a.statusBarHeight / a.screenWidth * 750 + 90 this.globalData.navHeight = a.statusBarHeight / a.screenWidth * 750 + 90
this.globalData.rpxScreenHeight = a.screenHeight / a.screenWidth * 750 this.globalData.rpxScreenHeight = a.screenHeight / a.screenWidth * 750
this.globalData.screenHeight = a.screenHeight
} catch (a) {} } catch (a) {}
}, },
//检查更新 //检查更新
......
...@@ -4,23 +4,48 @@ const db = uniCloud.database({ ...@@ -4,23 +4,48 @@ const db = uniCloud.database({
let cloudRulesApiFun = function(vm){ let cloudRulesApiFun = function(vm){
/* 查询所有产品*/ /* 查询所有产品 废弃*/
let getAllProduct = async () => await db.collection("product").get(); let getAllProduct = async () => await db.collection("product").get();
/* 查询产品下的品牌 {product_code:"P0001"}*/ /* 查询产品下的品牌 {product_code:"P0001"} 废弃*/
let getBrand = async (params = {}) => await db.collection("brand").where(params).get(); let getBrand = async (params = {}) => await db.collection("brand").where(params).get();
/* 查询规范项目 {product_code:"P0001"}*/ /* 查询规范项目 {product_code:"P0001"} 废弃*/
let getstandard = async (params = {}) => await db.collection("standard").where(params).get(); let getstandard = async (params = {}) => await db.collection("standard").where(params).get();
/* 查询分组规范项目 */ /* 查询分组规范项目 废弃*/
let getGroupStandard = async (params = {}) => await uniCloud.callFunction({name: 'getGroupStandard', data: params}); let getGroupStandard = async (params = {}) => await uniCloud.callFunction({name: 'getGroupStandard', data: params});
/* 查询类别数据 */
let getClassifyDictionary = async () => await db.collection("dictionary").where({"type":"classify"}).get()
/* 查询有数据的系统 或者 品牌 数据 {"classify_id":"","system_id":"","field":"system_id|brand_id"}*/
let getRelationDictionary = async (params = {}) => await uniCloud.callFunction({name: 'getRelationDictionary', data: params});
/* 查询规范 根据 分类、系统、品牌 {"token":"", "classify_id":"","system_id":"","brand_id":""} */
let getGroupStandardV2 = async (params = {}) => await uniCloud.callFunction({name: 'getGroupStandardV2', data: params});
/* 保存图片 {"token":"", "standardId":"", "url":""} */
let saveImage = async (params = {}) => await uniCloud.callFunction({name: 'saveImage', data: params});
/* 获取用户水印,首次返回默认水印 {"token":"", "systemId":""} */
let getUserWatermark = async (params = {}) => await uniCloud.callFunction({name: 'getUserWatermark', data: params});
/* 保存用户水印配置 {"token":"", "watermark": getUserWatemark返回的数据} */
let saveUserWatermark = async (params = {}) => await uniCloud.callFunction({name: 'saveUserWatermark', data: params});
const rulesApi = { const rulesApi = {
getAllProduct, getAllProduct,
getBrand, getBrand,
getstandard, getstandard,
getGroupStandard, getGroupStandard,
// 新接口
getClassifyDictionary,
getRelationDictionary,
getGroupStandardV2,
saveImage,
getUserWatermark,
saveUserWatermark
} }
return rulesApi return rulesApi
} }
......
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"address": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/address/-/address-1.1.2.tgz",
"integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA=="
},
"agent-base": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
"integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==",
"requires": {
"es6-promisify": "^5.0.0"
}
},
"agentkeepalive": {
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.4.tgz",
"integrity": "sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ==",
"requires": {
"debug": "^4.1.0",
"depd": "^1.1.2",
"humanize-ms": "^1.2.1"
}
},
"any-promise": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
"integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8="
},
"ast-types": {
"version": "0.14.2",
"resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.14.2.tgz",
"integrity": "sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==",
"requires": {
"tslib": "^2.0.1"
}
},
"block-stream2": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/block-stream2/-/block-stream2-2.1.0.tgz",
"integrity": "sha512-suhjmLI57Ewpmq00qaygS8UgEq2ly2PCItenIyhMqVjo4t4pGzqMvfgJuX8iWTeSDdfSSqS6j38fL4ToNL7Pfg==",
"requires": {
"readable-stream": "^3.4.0"
}
},
"bytes": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
},
"co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
"integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
},
"content-type": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
},
"copy-to": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/copy-to/-/copy-to-2.0.1.tgz",
"integrity": "sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU="
},
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"crc32": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz",
"integrity": "sha1-etIg1v/c0Rn5/BJ6d3LKzqOQpLo="
},
"data-uri-to-buffer": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz",
"integrity": "sha512-vKQ9DTQPN1FLYiiEEOQ6IBGFqvjCa5rSK3cWMy/Nespm5d/x3dGFT9UBZnkLxCwua/IXBi2TYnwTEpsOvhC4UQ=="
},
"debug": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
"requires": {
"ms": "2.1.2"
}
},
"deep-is": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
"integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ="
},
"default-user-agent": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/default-user-agent/-/default-user-agent-1.0.0.tgz",
"integrity": "sha1-FsRu/cq6PtxF8k8r1IaLAbfCrcY=",
"requires": {
"os-name": "~1.0.3"
}
},
"degenerator": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/degenerator/-/degenerator-1.0.4.tgz",
"integrity": "sha1-/PSQo37OJmRk2cxDGrmMWBnO0JU=",
"requires": {
"ast-types": "0.x.x",
"escodegen": "1.x.x",
"esprima": "3.x.x"
}
},
"depd": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
},
"destroy": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
},
"digest-header": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/digest-header/-/digest-header-0.0.1.tgz",
"integrity": "sha1-Ecz23uxXZqw3l0TZAcEsuklRS+Y=",
"requires": {
"utility": "0.1.11"
},
"dependencies": {
"utility": {
"version": "0.1.11",
"resolved": "https://registry.npmjs.org/utility/-/utility-0.1.11.tgz",
"integrity": "sha1-/eYM+bTkdRlHoM9dEEzik2ciZxU=",
"requires": {
"address": ">=0.0.1"
}
}
}
},
"ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
},
"encodeurl": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
},
"end-of-stream": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
"requires": {
"once": "^1.4.0"
}
},
"es6-promise": {
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
},
"es6-promisify": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",
"integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=",
"requires": {
"es6-promise": "^4.0.3"
}
},
"escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
},
"escodegen": {
"version": "1.14.3",
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz",
"integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==",
"requires": {
"esprima": "^4.0.1",
"estraverse": "^4.2.0",
"esutils": "^2.0.2",
"optionator": "^0.8.1",
"source-map": "~0.6.1"
},
"dependencies": {
"esprima": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
}
}
},
"esprima": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
"integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM="
},
"estraverse": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
"integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="
},
"esutils": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="
},
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
},
"extend-shallow": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
"integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
"requires": {
"is-extendable": "^0.1.0"
}
},
"fast-levenshtein": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc="
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
},
"formstream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/formstream/-/formstream-1.1.0.tgz",
"integrity": "sha1-UfOXDyYTbrCtRDBN5M67UCB7RHk=",
"requires": {
"destroy": "^1.0.4",
"mime": "^1.3.4",
"pause-stream": "~0.0.11"
},
"dependencies": {
"mime": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
}
}
},
"ftp": {
"version": "0.3.10",
"resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz",
"integrity": "sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0=",
"requires": {
"readable-stream": "1.1.x",
"xregexp": "2.0.0"
},
"dependencies": {
"readable-stream": {
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.1",
"isarray": "0.0.1",
"string_decoder": "~0.10.x"
}
},
"string_decoder": {
"version": "0.10.31",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
}
}
},
"get-uri": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/get-uri/-/get-uri-2.0.4.tgz",
"integrity": "sha512-v7LT/s8kVjs+Tx0ykk1I+H/rbpzkHvuIq87LmeXptcf5sNWm9uQiwjNAt94SJPA1zOlCntmnOlJvVWKmzsxG8Q==",
"requires": {
"data-uri-to-buffer": "1",
"debug": "2",
"extend": "~3.0.2",
"file-uri-to-path": "1",
"ftp": "~0.3.10",
"readable-stream": "2"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": {
"ms": "2.0.0"
}
},
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
},
"readable-stream": {
"version": "2.3.7",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
"isarray": "~1.0.0",
"process-nextick-args": "~2.0.0",
"safe-buffer": "~5.1.1",
"string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1"
}
},
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"requires": {
"safe-buffer": "~5.1.0"
}
}
}
},
"http-errors": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz",
"integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==",
"requires": {
"depd": "~1.1.2",
"inherits": "2.0.4",
"setprototypeof": "1.1.1",
"statuses": ">= 1.5.0 < 2",
"toidentifier": "1.0.0"
}
},
"http-proxy-agent": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz",
"integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==",
"requires": {
"agent-base": "4",
"debug": "3.1.0"
},
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"https-proxy-agent": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz",
"integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==",
"requires": {
"agent-base": "^4.3.0",
"debug": "^3.1.0"
},
"dependencies": {
"debug": {
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
"integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
"requires": {
"ms": "^2.1.1"
}
}
}
},
"humanize-ms": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
"integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=",
"requires": {
"ms": "^2.0.0"
}
},
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
},
"inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"ip": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz",
"integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo="
},
"is-extendable": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
"integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik="
},
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
},
"levn": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
"integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
"requires": {
"prelude-ls": "~1.1.2",
"type-check": "~0.3.2"
}
},
"lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
"integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
"requires": {
"yallist": "^3.0.2"
}
},
"mime": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz",
"integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg=="
},
"minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
},
"mkdirp": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
"requires": {
"minimist": "^1.2.5"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"mz": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
"integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
"requires": {
"any-promise": "^1.0.0",
"object-assign": "^4.0.1",
"thenify-all": "^1.0.0"
}
},
"netmask": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz",
"integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU="
},
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": {
"wrappy": "1"
}
},
"optionator": {
"version": "0.8.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
"integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
"requires": {
"deep-is": "~0.1.3",
"fast-levenshtein": "~2.0.6",
"levn": "~0.3.0",
"prelude-ls": "~1.1.2",
"type-check": "~0.3.2",
"word-wrap": "~1.2.3"
}
},
"os-name": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/os-name/-/os-name-1.0.3.tgz",
"integrity": "sha1-GzefZINa98Wn9JizV8uVIVwVnt8=",
"requires": {
"osx-release": "^1.0.0",
"win-release": "^1.0.0"
}
},
"osx-release": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/osx-release/-/osx-release-1.1.0.tgz",
"integrity": "sha1-8heRGigTaUmvG/kwiyQeJzfTzWw=",
"requires": {
"minimist": "^1.1.0"
}
},
"pac-proxy-agent": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-3.0.1.tgz",
"integrity": "sha512-44DUg21G/liUZ48dJpUSjZnFfZro/0K5JTyFYLBcmh9+T6Ooi4/i4efwUiEy0+4oQusCBqWdhv16XohIj1GqnQ==",
"requires": {
"agent-base": "^4.2.0",
"debug": "^4.1.1",
"get-uri": "^2.0.0",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^3.0.0",
"pac-resolver": "^3.0.0",
"raw-body": "^2.2.0",
"socks-proxy-agent": "^4.0.1"
}
},
"pac-resolver": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-3.0.0.tgz",
"integrity": "sha512-tcc38bsjuE3XZ5+4vP96OfhOugrX+JcnpUbhfuc4LuXBLQhoTthOstZeoQJBDnQUDYzYmdImKsbz0xSl1/9qeA==",
"requires": {
"co": "^4.6.0",
"degenerator": "^1.0.4",
"ip": "^1.1.5",
"netmask": "^1.0.6",
"thunkify": "^2.1.2"
}
},
"pause-stream": {
"version": "0.0.11",
"resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz",
"integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=",
"requires": {
"through": "~2.3"
}
},
"prelude-ls": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ="
},
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
},
"proxy-agent": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-3.1.1.tgz",
"integrity": "sha512-WudaR0eTsDx33O3EJE16PjBRZWcX8GqCEeERw1W3hZJgH/F2a46g7jty6UGty6NeJ4CKQy8ds2CJPMiyeqaTvw==",
"requires": {
"agent-base": "^4.2.0",
"debug": "4",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^3.0.0",
"lru-cache": "^5.1.1",
"pac-proxy-agent": "^3.0.1",
"proxy-from-env": "^1.0.0",
"socks-proxy-agent": "^4.0.1"
}
},
"proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"requires": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
}
},
"qiniu": {
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/qiniu/-/qiniu-7.3.2.tgz",
"integrity": "sha512-rn9I+/DaQKWh7/+9uVdR/kIVRT0yS7tne5LDQQQ2MtGFN5MgIjyoznztxVRuzs4ZWXdy7Qw/bYHYQcW5jB2xJA==",
"requires": {
"agentkeepalive": "^4.0.2",
"block-stream2": "^2.0.0",
"crc32": "^0.2.2",
"destroy": "^1.0.4",
"encodeurl": "^1.0.1",
"formstream": "^1.1.0",
"mime": "^2.4.4",
"tunnel-agent": "^0.6.0",
"urllib": "^2.34.1"
}
},
"qs": {
"version": "6.9.6",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz",
"integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ=="
},
"raw-body": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.1.tgz",
"integrity": "sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==",
"requires": {
"bytes": "3.1.0",
"http-errors": "1.7.3",
"iconv-lite": "0.4.24",
"unpipe": "1.0.0"
}
},
"readable-stream": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
"requires": {
"inherits": "^2.0.3",
"string_decoder": "^1.1.1",
"util-deprecate": "^1.0.1"
}
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
},
"safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"semver": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
},
"setprototypeof": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
},
"smart-buffer": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.1.0.tgz",
"integrity": "sha512-iVICrxOzCynf/SNaBQCw34eM9jROU/s5rzIhpOvzhzuYHfJR/DhZfDkXiZSgKXfgv26HT3Yni3AV/DGw0cGnnw=="
},
"socks": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/socks/-/socks-2.3.3.tgz",
"integrity": "sha512-o5t52PCNtVdiOvzMry7wU4aOqYWL0PeCXRWBEiJow4/i/wr+wpsJQ9awEu1EonLIqsfGd5qSgDdxEOvCdmBEpA==",
"requires": {
"ip": "1.1.5",
"smart-buffer": "^4.1.0"
}
},
"socks-proxy-agent": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-4.0.2.tgz",
"integrity": "sha512-NT6syHhI9LmuEMSK6Kd2V7gNv5KFZoLE7V5udWmn0de+3Mkj3UMA/AJPLyeNUVmElCurSHtUdM3ETpR3z770Wg==",
"requires": {
"agent-base": "~4.2.1",
"socks": "~2.3.2"
},
"dependencies": {
"agent-base": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz",
"integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==",
"requires": {
"es6-promisify": "^5.0.0"
}
}
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"optional": true
},
"statuses": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
},
"string_decoder": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"requires": {
"safe-buffer": "~5.2.0"
}
},
"thenify": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
"integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
"requires": {
"any-promise": "^1.0.0"
}
},
"thenify-all": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
"integrity": "sha1-GhkY1ALY/D+Y+/I02wvMjMEOlyY=",
"requires": {
"thenify": ">= 3.1.0 < 4"
}
},
"through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
"integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
},
"thunkify": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz",
"integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0="
},
"toidentifier": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
},
"tslib": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz",
"integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A=="
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": {
"safe-buffer": "^5.0.1"
}
},
"type-check": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
"integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
"requires": {
"prelude-ls": "~1.1.2"
}
},
"unescape": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/unescape/-/unescape-1.0.1.tgz",
"integrity": "sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==",
"requires": {
"extend-shallow": "^2.0.1"
}
},
"unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
},
"urllib": {
"version": "2.36.1",
"resolved": "https://registry.npmjs.org/urllib/-/urllib-2.36.1.tgz",
"integrity": "sha512-g0Gh7bH5AwfPUzFetxPtJwumGHE6D7KQn0K68MwcJXPgO2K0AliwEIxLAwGMF+TpY75DYAsvz1h9ekagYoq33w==",
"requires": {
"any-promise": "^1.3.0",
"content-type": "^1.0.2",
"debug": "^2.6.9",
"default-user-agent": "^1.0.0",
"digest-header": "^0.0.1",
"ee-first": "~1.1.1",
"formstream": "^1.1.0",
"humanize-ms": "^1.2.0",
"iconv-lite": "^0.4.15",
"ip": "^1.1.5",
"proxy-agent": "^3.1.0",
"pump": "^3.0.0",
"qs": "^6.4.0",
"statuses": "^1.3.1",
"utility": "^1.16.1"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": {
"ms": "2.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"utility": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/utility/-/utility-1.17.0.tgz",
"integrity": "sha512-KdVkF9An/0239BJ4+dqOa7NPrPIOeQE9AGfx0XS16O9DBiHNHRJMoeU5nL6pRGAkgJOqdOu8R4gBRcXnAocJKw==",
"requires": {
"copy-to": "^2.0.1",
"escape-html": "^1.0.3",
"mkdirp": "^0.5.1",
"mz": "^2.7.0",
"unescape": "^1.0.1"
}
},
"win-release": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/win-release/-/win-release-1.1.1.tgz",
"integrity": "sha1-X6VeAr58qTTt/BJmVjLoSbcuUgk=",
"requires": {
"semver": "^5.0.1"
}
},
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ=="
},
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"xregexp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz",
"integrity": "sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM="
},
"yallist": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
}
}
}
...@@ -140,6 +140,14 @@ ...@@ -140,6 +140,14 @@
"navigationBarTextStyle": "#FFFFFF", "navigationBarTextStyle": "#FFFFFF",
"disableScroll": true "disableScroll": true
} }
},{
"path": "pages/photo/standard",
"style": {
"navigationBarTitleText": "拍照规范",
"navigationBarBackgroundColor": "#333333",
"navigationBarTextStyle": "#FFFFFF",
"disableScroll": true
}
}, },
{ {
...@@ -280,7 +288,7 @@ ...@@ -280,7 +288,7 @@
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "拍照小工具", //模式名称 "name": "拍照小工具", //模式名称
"path": "pages/photo/take", //启动页面,必选 "path": "pages/photo/standard", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
},{ },{
"name": "基本信息", //模式名称 "name": "基本信息", //模式名称
......
<template>
<view class="backView">
<view class="firstItemView">
<view class="itemTitleView ">
<text class="itemTitle">保存原图</text>
<text class="itemNotice">拍照后另保存一张无水印的图片</text>
</view>
<switch class="itemSwitch" :checked="isSaveOrigine" @change="saveOrigineChange" color="#007AFF" style="transform:scale(0.8)"/>
</view>
<view class="itemView" v-for="(item,ikey) in itemList":key="ikey">
<view class="itemTitleView" @click="itemClick(item,ikey)">
<text class="itemTitle">{{item.title}}</text>
<text class="itemNotice">{{item.notice}}</text>
</view>
<switch class="itemSwitch" :checked="item.isSelect" @change="itemChange" color="#007AFF" style="transform:scale(0.8)"/>
</view>
<view class="shadowBackView" v-if="isPopShow">
<view class="popCenterView">
<text class="popTitle">设置自定义项</text>
<view class="inputBackView">
<view class="leftInputView">
<input class="leftInput" type="text" value="" placeholder="请输入" @input="leftInput"/>
</view>
:
<view class="rightInputView">
<input class="rightInput" type="text" value="" placeholder="请输入内容" @input="rightInput"/>
</view>
</view>
<text class="popNoticeText u-m-t-40">示例:</text>
<text class="popNoticeText">工程队名称:蓝天工程队</text>
<view class="popBtnView">
<view class="popCancelBtn" @click="popCancelClick()">
<text class="popBtnText">取消</text>
</view>
<view class="popSaveBtn" @click="popSaveClick()">
<text class="popBtnText">保存</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
isSaveOrigine:true,
itemList:[],
isPopShow:false,
icon_close_new:''
}
},
onLoad(e) {
getApp().trackPage('水印设置页')
this.icon_close_new = getApp().globalData.icon_close_new
if(e && e.product_code){
this.product_code = e.product_code
}
this.getItemList()
},
methods: {
getItemList: function () {
this.itemList = [
{
title:'自定义1',
notice:'点击可编辑更改',
isSelect:false
},
{
title:'自定义2',
notice:'点击可编辑更改',
isSelect:true
},
{
title:'自定义3',
notice:'点击可编辑更改',
isSelect:false
},
{
title:'自定义4',
notice:'点击可编辑更改',
isSelect:false
},
{
title:'自定义5',
notice:'点击可编辑更改',
isSelect:false
}
]
},
//保存原图 开关
saveOrigineChange: function(e) {
console.log('保存原图 开关 发生 change 事件,携带值为', e.target.value)
},
//自定义 开关
itemChange: function(e) {
console.log('自定义 开关 发生 change 事件,携带值为', e.target.value)
},
//自定义 点击
itemClick: function (item,ikey) {
console.log('自定义 开关 发生 click 事件,携带值为', item,ikey)
this.isPopShow = true
},
//左侧输入框
leftInput: function (e){
console.log('左侧输入框 发生 input 事件,携带值为', e.detail.value)
},
//右侧输入框
rightInput: function (e){
console.log('右侧输入框 发生 input 事件,携带值为', e.detail.value)
},
//自定义弹窗 关闭
popCancelClick: function () {
this.isPopShow = false
},
//自定义弹窗 保存
popSaveClick: function () {
this.isPopShow = false
}
}
}
</script>
<style>
.backView{
background-color: #FAFAFA;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.firstItemView{
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-top: 80rpx;
padding-bottom: 80rpx;
border-bottom: 2rpx solid #F4F5F7;
}
.itemView{
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-top: 54rpx;
padding-bottom: 54rpx;
}
.itemTitleView{
background-color: #FFFFFF;
width: 80%;
display: flex;
flex-direction: column;
padding-left: 30rpx;
}
.itemTitle{
font-size: 32rpx;
font-weight: bold;
color: #333333;
}
.itemNotice{
font-size: 26rpx;
font-weight: bold;
color: #666666;
margin-top: 4rpx;
}
.itemSwitch{
margin-right: 30rpx;
}
.shadowBackView{
background-color: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.popCenterView{
background-color: #FFFFFF;
width: 690rpx;
height: 600rpx;
margin-top: 300rpx;
border-radius: 12rpx;
display: flex;
flex-direction: column;
}
.popTitle{
font-size: 36rpx;
font-weight: bold;
margin-top: 50rpx;
padding-left: 30rpx;
}
.inputBackView{
margin-top: 52rpx;
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.leftInputView{
width: 220rpx;
height: 72rpx;
border: 2rpx solid #666666;
margin-left: 30rpx;
display: flex;
align-items: center;
justify-content: center;
}
.leftInput{
width: 180rpx;
height: 32rpx;
}
.rightInputView{
width: 360rpx;
height: 72rpx;
border: 2rpx solid #666666;
margin-right: 30rpx;
display: flex;
align-items: center;
justify-content: center;
}
.rightInput{
width: 320rpx;
height: 32rpx;
}
.popNoticeText{
font-size: 26rpx;
color: #666666;
padding-left: 30rpx;
}
.popBtnView{
margin-top: 110rpx;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.popCancelBtn{
background-color: #D1D4D4;
width: 280rpx;
height: 96rpx;
border-radius: 48rpx;
margin-left: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.popSaveBtn{
background-color: #2272FF;
width: 280rpx;
height: 96rpx;
border-radius: 48rpx;
margin-right: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.popBtnText{
font-size: 32rpx;
color: #FFFFFF;
font-weight: 600;
}
</style>
<template>
<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120">
<view id="demo1" class="scroll-view-item_H uni-bg-red">A</view>
<view id="demo2" class="scroll-view-item_H uni-bg-green">B</view>
<view id="demo3" class="scroll-view-item_H uni-bg-blue">C</view>
</scroll-view>
</template>
<script>
export default {
data() {
return {
protocolContent:'',
images:[]
}
},
onLoad(e) {
getApp().trackPage('照片预览页')
console.log(e,'e')
if(e.img){
this.images = [e.img]
}
console.log(this.images,'this.images')
},
methods: {
showPreviewFn(img) {
uni.previewImage({
current: 0,
urls: this.images
});
},
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
.pic{
display: block;
width:100%;
height:auto;
}
</style>
<template>
<template>
<view class="camera-container"> <view class="camera-container">
<cover-view class="header-box" :style="{'height':navHeight + 'rpx'}"> <cover-view class="header-box" :style="{'height':navHeight + 'rpx'}">
<cover-view class="inner"> <cover-view class="inner">
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
<cover-view class="txt u-m-l-20 u-m-t-10">地址:{{waterInfo.address || '正在获取中...'}}</cover-view> <cover-view class="txt u-m-l-20 u-m-t-10">地址:{{waterInfo.address || '正在获取中...'}}</cover-view>
<cover-view class="txt u-m-l-20 u-m-t-10">时间:{{waterInfo.date || '正在获取中...'}}</cover-view> <cover-view class="txt u-m-l-20 u-m-t-10">时间:{{waterInfo.date || '正在获取中...'}}</cover-view>
</cover-view> </cover-view>
<cover-image class="mark-water liveWatermarkNormal" mode="aspectFit" :src="waterInfo.markImage"></cover-image> <cover-image class="mark-water" mode="aspectFit" :src="waterInfo.markImage"></cover-image>
</camera> </camera>
<cover-view class="bottom-box"> <cover-view class="bottom-box">
<cover-image class="icon" :src="icon_arrow_down" mode="" @click="simpleBack"></cover-image> <cover-image class="icon" src='/static/photo/icon-back.png' mode="" @click="goBack"></cover-image>
<cover-image class='icon-take icon' src='/static/photo/icon-take.png' @click="takePhoto"> </cover-image> <cover-image class='icon-take icon' src='/static/photo/icon-take.png' @click="takePhoto"> </cover-image>
<cover-view class="txt">拍照要求</cover-view> <cover-image class='icon' src='/static/photo/icon-standard.png' @click="showStandard"> </cover-image>
</cover-view> </cover-view>
<canvas v-show='showImage' canvas-id="canvas" :style="{'width':750 + 'rpx','height': cameraHeight + 'rpx'}"></canvas> <canvas canvas-id="canvas" class="canvas" :style="{'width':750 + 'rpx','height': cameraHeight + 'rpx'}"></canvas>
</view> </view>
</template> </template>
...@@ -36,59 +36,58 @@ ...@@ -36,59 +36,58 @@
export default { export default {
data() { data() {
return { return {
title: '', // title: '',
ctx: null, // ctx: null,
path: "", // path: "",
image: "", // image: "",
showImage: false, // showImage: false,
canvas: null, // canvas: null,
longitude: '正在获取中...', // longitude: '正在获取中...',
latitude: '正在获取中...', // latitude: '正在获取中...',
address: '正在获取中...', // address: '正在获取中...',
date: '', // date: '',
// icon_location: 'https://qn-static.banshouhui.com/take_order/icon/location.png', // width: '',
// scale: "4_3", // height: '',
// icon_take: 'https://qn-static.banshouhui.com/take.png', // markPath: '',
// icon_switch_white: 'https://qn-static.banshouhui.com/switch_white.png', // canvasWidth: 0,
// icon_light_on_white: 'https://qn-static.banshouhui.com/light_on_white.png', // canvasHeight: 0,
// liveWaterMarkImage: '/static/live_mark.png', // restuleImage: '',
// icon_arrow_down: 'https://qn-static.banshouhui.com/arrow_down.png',
// icon_live_mark: 'https://qn-static.banshouhui.com/live_mark.png',
width: '',
height: '',
markPath: '',
canvasWidth: 0,
canvasHeight: 0,
restuleImage: '',
waterInfo: { waterInfo: {
longitude: '', // 经度 longitude: '', // 经度
latitude: '', // 维度 latitude: '', // 维度
address: '', //地址 address: '', //地址
date: '', //日期 date: '', //日期
markImage:'/static/live_mark.png' markImage: 'https://qn-static.banshouhui.com/live_mark.png'
},
tempImgs:{
'markImage':'', // 拍照水印
'noMarkPhoto':'', // 无水印照片
'markPhoto':'', // 有水印照片
}, },
authSetting: { authSetting: {
camera: false, // 相机授权 camera: false, // 相机授权
location: false, // 位置授权 location: false, // 位置授权
}, },
navHeight: 0, navHeight: 0,
cameraWidth:750,
cameraHeight: 1000, // (4 / 3 * 750) 图片比例4:3 cameraHeight: 1000, // (4 / 3 * 750) 图片比例4:3
ratio:0,
cameraChange: true, cameraChange: true,
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('拍照页') getApp().trackPage('拍照页')
this.ctx = uni.createCameraContext(); // this.ctx = uni.createCameraContext();
this.date = this.getTime() this.waterInfo.date = this.getTime()
this.getLocation() this.getLocation()
this.getMarkPath() this.getMarkPath()
this.getSystemInfo() // this.getSystemInfo()
uni.setNavigationBarColor({ // uni.setNavigationBarColor({
frontColor: '#FFFFFF', // frontColor: '#FFFFFF',
backgroundColor: '#333333', // backgroundColor: '#333333',
}) // })
//this.address = '' //this.address = ''
}, },
compute: {}, compute: {},
...@@ -112,34 +111,40 @@ ...@@ -112,34 +111,40 @@
// }) // })
}, },
methods: { methods: {
goBack(){
uni.redirectTo({
url:'/pages/photo/brand'
})
},
initData() { initData() {
const globalData = getApp().globalData const globalData = getApp().globalData
this.navHeight = globalData.navHeight this.navHeight = globalData.navHeight
this.ratio = globalData.screenHeight / globalData.rpxScreenHeight
// this.cameraHeight = globalData.rpxScreenHeight // this.cameraHeight = globalData.rpxScreenHeight
}, },
baiduLocation() { baiduLocation() {
// 百度sdk解析经纬度 // 百度sdk解析经纬度
let a = this, let waterInfo = this.waterInfo
t = function() { const t = function() {
let t = { let t = {
success: function(res) { success: function(res) {
let e = res.wxMarkerData[0]; let e = res.wxMarkerData[0];
let i = e.address; let i = e.address;
a.address = i waterInfo.address = i
}, },
fail: function(a) { fail: function(err) {
console.log(a, 'a') console.log(err, 'err')
} }
}; };
if (a.latitude && a.longitude) { if (waterInfo.latitude && waterInfo.longitude) {
let e = a.latitude + "," + a.longitude; let e = waterInfo.latitude + "," + waterInfo.longitude;
t.location = e; t.location = e;
} }
h.regeocoding(t); h.regeocoding(t);
}; };
t() t()
}, },
cameraError: function(e) { cameraError(e) {
const { const {
errMsg errMsg
} = e.detail } = e.detail
...@@ -152,17 +157,16 @@ ...@@ -152,17 +157,16 @@
//获取位置 //获取位置
getLocation() { getLocation() {
let that = this let that = this
const waterInfo = this.waterInfo
uni.getLocation({ uni.getLocation({
type: 'gcj02', type: 'gcj02',
success: function(res) { success: function(res) {
console.log(res, 'res') waterInfo.longitude = parseFloat(res.longitude).toFixed(4)
that.longitude = parseFloat(res.longitude).toFixed(4) waterInfo.latitude = parseFloat(res.latitude).toFixed(3)
that.latitude = parseFloat(res.latitude).toFixed(3) console.log(waterInfo.longitude, 'that.longitude', waterInfo.latitude, 'that.latitude')
console.log(that.longitude, 'that.longitude', that.latitude, 'that.latitude')
that.baiduLocation() that.baiduLocation()
}, },
fail(err) { fail(err) {
console.log('err-location', 'err')
that.showSettingModal('location') that.showSettingModal('location')
// that.showLocationAuthModal('') // that.showLocationAuthModal('')
} }
...@@ -207,293 +211,85 @@ ...@@ -207,293 +211,85 @@
success(res) { success(res) {
console.log(res, 'res-setting') console.log(res, 'res-setting')
const authSetting = res.authSetting const authSetting = res.authSetting
self.cameraChange = true
if (authSetting['scope.userLocation']) { if (authSetting['scope.userLocation']) {
// 位置授权成功 // 位置授权成功
self.authSetting.location = true self.authSetting.location = true
self.getLocation() self.getLocation()
} }
console.log(self.cameraChange,'this.cameraChange')
if (res.authSetting['scope.camera']) { if (res.authSetting['scope.camera']) {
this.cameraChange = true
self.authSetting.camera = true self.authSetting.camera = true
} }
if (res.authSetting['scope.writePhotosAlbum']) { if (res.authSetting['scope.writePhotosAlbum']) {
self.authSetting.writePhotosAlbum = true self.authSetting.writePhotosAlbum = true
} }
}
})
},
goBack() {
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
prevPage.$vm.done_count++;
uni.navigateBack({
//delta: 2
});
},
getSystemInfo() {
// 获取设备信息
try {
const res = uni.getSystemInfoSync();
this.canvasWidth = res.windowWidth * 2
this.canvasHeight = res.windowHeight * 2
} catch (e) {
// error
} }
},
//返回 点击
backClick: function() {
uni.navigateBack({
}) })
}, },
//定位 再次授权弹窗
showLocationAuthModal: function() {
let that = this
uni.showModal({
content: '拒绝授权将无法定位当前位置,是否去设置打开?',
confirmText: "确认",
cancelText: '取消',
success(res) {
if (res.confirm) {
that.openLocationSetting()
}
if (res.cancel) {
uni.navigateBack({
})
}
},
fail() {
console.log('')
}
})
},
//定位设置界面
// openLocationSetting() {
// let that = this
// wx.openSetting({
// success(res) {
// console.log(res, 'openSetting.res')
// console.log(res.authSetting, 'openSetting.res.authSetting')
// console.log(res.authSetting['scope.camera'], 'openSetting.res.authSetting.scope.camera')
// console.log(res.authSetting['scope.userLocation'], 'openSetting.res.authSetting.scope.userLocation')
// if( res.authSetting['scope.userLocation'] && res.authSetting['scope.userLocation'] == true){
// console.log('33333location reload page')
// that.getLocation()
// }else{
// that.showLocationAuthModal()
// console.log('444444')
// }
// }
// })
// },
//刷新当前页
reloadPage: function() {
uni.redirectTo({
url: '/pages/photo/try'
});
},
//获取 水印 本地缓存路径 //获取 水印 本地缓存路径
getMarkPath: function() { getMarkPath: function() {
let that = this
uni.downloadFile({ uni.downloadFile({
url: this.icon_live_mark, //仅为示例,并非真实的资源 url: this.waterInfo.markImage, //仅为示例,并非真实的资源
success: (res) => { success: (res) => {
if (res.statusCode === 200) { if (res.statusCode === 200) {
that.markPath = res.tempFilePath this.tempImgs.markImage = res.tempFilePath
} }
}, },
fail() { fail() {
// console.log('水印图片 下载失败') console.log('水印图片 下载失败')
} }
}) })
}, },
callback(res) { /* ---------------------- 拍照流程 ---------------------- */
console.log(res, 'res-callback') // 第一步:拍照
},
//相机设置界面
openCameraSetting() {
let that = this
wx.openSetting({
success(res) {
console.log(res, 'openSetting.res')
console.log(res.authSetting, 'openSetting.res.authSetting')
console.log(res.authSetting['scope.camera'], 'openSetting.res.authSetting.scope.camera')
console.log(res.authSetting['scope.userInfo'], 'openSetting.res.authSetting.scope.userInfo')
if (res.authSetting['scope.camera'] && res.authSetting['scope.camera'] == true) {
that.reloadPage()
} else {
that.showCameraAuthModal()
}
}
})
},
//相机 再次授权弹窗
showCameraAuthModal: function() {
let that = this
uni.showModal({
content: '拒绝授权将无法拍照,是否去设置打开?',
confirmText: "确认",
cancelText: '取消',
success(res) {
if (res.confirm) {
that.openCameraSetting()
}
if (res.cancel) {
uni.navigateBack({
})
}
},
fail() {
console.log('')
}
})
},
//相机拒绝授权
cameraRefuse: function() {
console.log('相机拒绝授权')
this.showCameraAuthModal()
},
//第一步: 拍照
takePhoto() { takePhoto() {
console.log((new Date).getTime(), '开始渲染') wx.createCameraContext().takePhoto({
this.ctx.takePhoto({ quality: "high"
quality: 'high', }).then(res=>{
success: (res) => { this.tempImgs.noMarkPhoto = res.tempImagePath
console.log(res) this.drawCanvas(res.tempImagePath)
//this.imageChange(res)
this.getImageInfo(res.tempImagePath)
//this.saveToLocal(res.tempImagePath)
}
});
},
//第二步: 获取图片信息
getImageInfo(tempImagePath) {
let that = this
uni.getImageInfo({
src: tempImagePath,
success(res) {
that.width = res.width + 'px';
that.height = res.height + 'px';
that.drawCanvas(tempImagePath, res)
}
}) })
}, },
// 第二步:绘制画布
//第三步: 绘制画布 drawCanvas: function(tempPath) {
drawCanvas: function(tempImagePath, res) {
uni.showLoading({ uni.showLoading({
title: '数据处理中...', title: '数据处理中...',
icon: 'loading' icon: 'loading'
}) })
let canvasWidth = this.canvasWidth const ratio = this.ratio
let canvasHeight = this.canvasHeight let canvasWidth = this.cameraWidth * ratio
let canvasHeight = this.cameraHeight* ratio
const waterInfo = this.waterInfo
this.showImage = true this.showImage = true
//将原图画到canvas上面 //将原图画到canvas上面
this.canvas = uni.createCanvasContext("canvas", this) let canvas = uni.createCanvasContext("canvas", this)
this.canvas.rect(0, 0, canvasWidth, canvasHeight) canvas.rect(0, 0, canvasWidth, canvasHeight)
this.canvas.drawImage(tempImagePath, 0, 0, canvasWidth, canvasHeight) canvas.drawImage(tempPath, 0, 0, canvasWidth, canvasHeight)
// this.canvas.draw() // this.canvas.draw()
//加入 水印文字 //加入 水印文字
this.canvas.setFontSize(28) canvas.setFontSize(14)
this.canvas.setFillStyle('#f2f2f2') canvas.setFillStyle('#f2f2f2')
let h = 1 let h = 1
let txtHeight = 36 let txtHeight = 18
canvas.fillText('经度: ' + waterInfo.longitude, 20, canvasHeight - txtHeight * h++);
this.canvas.fillText('经度: ' + this.longitude, 20, canvasHeight - txtHeight * h++); canvas.fillText('维度: ' + waterInfo.latitude, 20, canvasHeight - txtHeight * h++);
this.canvas.fillText('维度: ' + this.latitude, 20, canvasHeight - txtHeight * h++); canvas.fillText('地址: ' + waterInfo.address, 20, canvasHeight - txtHeight * h++);
this.canvas.fillText('地址: ' + this.address, 20, canvasHeight - txtHeight * h++); canvas.fillText('时间: ' + waterInfo.date, 20, canvasHeight - txtHeight * h++);
this.canvas.fillText('时间: ' + this.date, 20, canvasHeight - txtHeight * h++);
//加入 水印图片 //加入 水印图片
this.canvas.drawImage(this.markPath, canvasWidth / 2 - 200, canvasHeight / 2 - 50, 400, 100) canvas.drawImage(this.tempImgs.markImage, canvasWidth / 2 - 100, canvasHeight / 2 - 25, 200, 50)
canvas.draw(false,
this.canvasImage()
// this.canvas.draw()
// uni.showLoading({
// title: '数据处理中...',
// icon: 'loading'
// })
// this.exportCanvasTempFilePath(res.width,res.height)
},
canvasImage() {
let self = this
this.canvas.draw(false,
setTimeout(() => { setTimeout(() => {
console.log((new Date).getTime(), '结束渲染')
uni.canvasToTempFilePath({ uni.canvasToTempFilePath({
// x: 0, width: canvasWidth,
// y: 0, height:canvasHeight,
width: Number(this.canvasWidth),
height: Number(this.canvasHeight),
canvasId: 'canvas', canvasId: 'canvas',
success: (res) => { success: (res) => {
this.tempImgs.markPhoto = res.tempFilePath
self.saveToLocal(res.tempFilePath) this.saveToLocal(res.tempFilePath)
const FileSystemManager = wx.getFileSystemManager()
FileSystemManager.saveFile({
tempFilePath: res.tempFilePath,
success(res) {
console.log(res, 'res-saveFile')
}
})
// this.$emit('canvasImage', res.tempFilePath);
// if (this.showPreview) {
// this.restultImage = res.tempFilePath
// self.showPreviewFn(res.tempFilePath);
// }
}, },
fail: (res) => { fail: (res) => {
console.log(res); console.log(res);
...@@ -502,8 +298,23 @@ ...@@ -502,8 +298,23 @@
uni.hideLoading(); uni.hideLoading();
} }
}, this); }, this);
}, 500)); }, 500))
},
// 第三步:保存到本地
saveToLocal(tempImagePath) {
let that = this
uni.saveImageToPhotosAlbum({
filePath: tempImagePath,
success() {
uni.showToast({
icon: 'none',
title: '已将照片保存到本地相册'
})
}, },
fail() {}
})
},
showPreviewFn(img) { showPreviewFn(img) {
uni.previewImage({ uni.previewImage({
current: 0, current: 0,
...@@ -520,15 +331,12 @@ ...@@ -520,15 +331,12 @@
icon: 'none', icon: 'none',
title: '已将照片保存到本地相册' title: '已将照片保存到本地相册'
}) })
let timer = setTimeout(() => { // let timer = setTimeout(() => {
that.goBack() // that.goBack()
}, 1500) // }, 1500)
}, },
fail() { fail() {
// console.log('保存本地相册 失败')
///*
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '保存本地相册失败' title: '保存本地相册失败'
...@@ -547,118 +355,13 @@ ...@@ -547,118 +355,13 @@
} }
}); });
//*/
/*
let txt = '保存本地相册失败'
uni.getSetting({
success(res) {
let authSetting = res.authSetting
if (!authSetting['scope.writePhotosAlbum']) {
txt = '请打开相册权限'
}
uni.showToast({
icon: 'none',
title: txt
})
}
})
*/
// wx.openSetting({
// success (res) {
// console.log(res.authSetting,'openSetting')
// // res.authSetting = {
// // "scope.userInfo": true,
// // "scope.userLocation": true
// // }
// }
// })
// uni.authorize({
// scope: 'scope.writePhotosAlbum',
// success() {
// console.log('userLocation')
// uni.openSetting({
// success(res) {
// console.log(res,'openSetting')
// }
// });
// }
// })
} }
}) })
}, },
//相册 再次授权弹窗
showAlbumAuthModal: function() {
let that = this
uni.showModal({
content: '拒绝授权照片将无法保存到本地相册,是否去设置打开?',
confirmText: "确认",
cancelText: '取消',
success(res) {
if (res.confirm) {
that.openAlbumSetting()
}
if (res.cancel) {
uni.navigateBack({
})
}
},
fail() {
console.log('')
}
})
},
//相机设置界面
openAlbumSetting() {
let that = this
wx.openSetting({
success(res) {
console.log(res, 'openSetting.res')
console.log(res.authSetting, 'openSetting.res.authSetting')
console.log(res.authSetting['scope.writePhotosAlbum'], 'openSetting.res.authSetting.scope.writePhotosAlbum')
if (res.authSetting['scope.writePhotosAlbum'] && res.authSetting['scope.writePhotosAlbum'] == true) {
console.log('11111camera reload page')
uni.getStorage({
key: 'photo_tempPath',
success: function(res) {
that.saveToLocal(res.data)
}
})
//that.reloadPage()
} else {
that.showAlbumAuthModal()
console.log('222222')
}
}
})
},
//获取当前时间 //获取当前时间
getTime: function() { getTime: function() {
let date = new Date(),
var date = new Date(),
year = date.getFullYear(), year = date.getFullYear(),
month = date.getMonth() + 1, month = date.getMonth() + 1,
day = date.getDate(), day = date.getDate(),
...@@ -695,8 +398,8 @@ ...@@ -695,8 +398,8 @@
.icon { .icon {
margin: 20rpx; margin: 20rpx;
display: block; display: block;
width: 50rpx; width: 44rpx;
height: 50rpx; height: 44rpx;
} }
} }
...@@ -737,7 +440,7 @@ ...@@ -737,7 +440,7 @@
height: 160rpx; height: 160rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 20rpx; padding: 20rpx 78rpx;
align-items: center; align-items: center;
background-color: black; background-color: black;
...@@ -748,106 +451,18 @@ ...@@ -748,106 +451,18 @@
.icon { .icon {
display: block; display: block;
width: 60rpx; width: 92rpx;
height: 60rpx; height: 92rpx;
&.icon-take { &.icon-take {
width: 150rpx; width: 144rpx;
height: 150rpx; height: 144rpx;
} }
} }
} }
.canvas{
// .blackBackColor { position: fixed;
// background-color: #000000; left:-750rpx;
// overflow: hidden; top: 0;
// }
// .bottomView {
// background-color: #333333;
// z-index: 5;
// width: 100%;
// height: 200rpx;
// position: absolute;
// bottom: 0;
// display: flex;
// flex-direction: row;
// align-items: center;
// justify-content: center;
// }
// .switchIcon {
// background-color: #000000;
// width: 50rpx;
// height: 50rpx;
// }
// .takeIcon {
// background-color: #333333;
// width: 150rpx;
// height: 150rpx;
// }
// .flashIcon {
// background-color: #000000;
// width: 50rpx;
// height: 50rpx;
// margin-left: 100rpx;
// }
// .locationView {
// /* z-index: 5;
// width: 300rpx;
// position: absolute;
// left: 0;
// bottom: 200rpx;
// display: flex;
// flex-direction: column;
// padding-bottom: 20rpx;
// padding-right: 20rpx; */
// bottom: 200rpx;
// padding-bottom: 20rpx;
// padding-right: 20rpx;
// z-index: 4;
// position: absolute;
// font-size: 14px;
// line-height: 18px;
// color: #fff;
// }
// .locationText {
// /* font-size: 24rpx;
// color: #999999;
// width: 260rpx; */
// margin: 2px 0;
// }
// .liveWatermarkNormal {
// z-index: 3;
// position: absolute;
// left: 50%;
// top: 50%;
// transform: translate(-50%, -50%);
// width: 360rpx;
// height: 90rpx;
// z-index: 6;
// }
// // .backIcon {
// // background-color: #FFFFFF;
// // width: 54rpx;
// // height: 54rpx;
// // border-radius: 27rpx;
// // position: fixed;
// // left: 60rpx;
// // bottom: 50rpx;
// // border: 2rpx solid #aaa;
// // }
.showCanvas {
background-color: #007AFF;
width: 100%;
height: 100%;
} }
</style> </style>
take-order/static/photo/icon-light.png

1.67 KB | W: | H:

take-order/static/photo/icon-light.png

1.58 KB | W: | H:

take-order/static/photo/icon-light.png
take-order/static/photo/icon-light.png
take-order/static/photo/icon-light.png
take-order/static/photo/icon-light.png
  • 2-up
  • Swipe
  • Onion skin
take-order/static/photo/icon-switch.png

1.77 KB | W: | H:

take-order/static/photo/icon-switch.png

1.46 KB | W: | H:

take-order/static/photo/icon-switch.png
take-order/static/photo/icon-switch.png
take-order/static/photo/icon-switch.png
take-order/static/photo/icon-switch.png
  • 2-up
  • Swipe
  • Onion skin
take-order/static/photo/icon-take.png

8.88 KB | W: | H:

take-order/static/photo/icon-take.png

6.18 KB | W: | H:

take-order/static/photo/icon-take.png
take-order/static/photo/icon-take.png
take-order/static/photo/icon-take.png
take-order/static/photo/icon-take.png
  • 2-up
  • Swipe
  • Onion skin
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{
"passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200,
"tokenExpiresThreshold": 600,
"passwordErrorLimit": 6,
"bindTokenToDevice": true,
"passwordErrorRetryTime": 3600,
"autoSetInviteCode": false,
"forceInviteCode": false,
"app-plus": {
"tokenExpiresIn": 2592000,
"oauth" : {
"weixin" : {
"appid" : "weixin appid",
"appsecret" : "weixin appsecret"
}
}
},
"mp-weixin": {
"oauth" : {
"weixin" : {
"appid" : "weixin appid",
"appsecret" : "weixin appsecret"
}
}
},
"mp-alipay": {
"oauth" : {
"alipay" : {
"appid" : "alipay appid",
"privateKey" : "alipay privateKey"
}
}
},
"service": {
"sms": {
"name": "DCloud",
"codeExpiresIn": 300,
"smsKey": "your sms key",
"smsSecret": "your sms secret"
}
}
}
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("fs")),r=e(require("path")),n=e(require("crypto")),o=e(require("buffer")),i=e(require("stream")),s=e(require("util")),a=e(require("querystring"));class c extends Error{constructor(e){super(e.message),this.errMsg=e.message||"",Object.defineProperties(this,{message:{get(){return`errCode: ${e.code||""} | errMsg: `+this.errMsg},set(e){this.errMsg=e}}})}}const u=Object.prototype.toString,f=Object.prototype.hasOwnProperty;function d(e,t){return f.call(e,t)}function l(e){return"[object Object]"===u.call(e)}function p(e){return"function"==typeof e}function m(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}const h=/_(\w)/g,g=/[A-Z]/g;function y(e){return e.replace(h,(e,t)=>t?t.toUpperCase():"")}function w(e){return e.replace(g,e=>"_"+e.toLowerCase())}function v(e,t){let r,n;switch(t){case"snake2camel":n=y,r=h;break;case"camel2snake":n=w,r=g}for(const o in e)if(d(e,o)&&r.test(o)){const r=n(o);e[r]=e[o],delete e[o],l(e[r])?e[r]=v(e[r],t):Array.isArray(e[r])&&(e[r]=e[r].map(e=>v(e,t)))}return e}function b(e){return v(e,"snake2camel")}function _(e){return v(e,"camel2snake")}function S(e){return function(e,t="-"){e=e||new Date;const r=[];return r.push(e.getFullYear()),r.push(("00"+(e.getMonth()+1)).substr(-2)),r.push(("00"+e.getDate()).substr(-2)),r.join(t)}(e=e||new Date)+" "+function(e,t=":"){e=e||new Date;const r=[];return r.push(("00"+e.getHours()).substr(-2)),r.push(("00"+e.getMinutes()).substr(-2)),r.push(("00"+e.getSeconds()).substr(-2)),r.join(t)}(e)}function E(){"development"===process.env.NODE_ENV&&console.log(...arguments)}function x(e=6){let t="";for(let r=0;r<e;r++)t+=Math.floor(10*Math.random());return t}function j(e){return Array.from(new Set(e))}function R(e={},t){if(!t||!e)return e;const r=["_pre","_purify","_post"];t._pre&&(e=t._pre(e));let n={shouldDelete:new Set([])};if(t._purify){const e=t._purify;for(const t in e)e[t]=new Set(e[t]);n=Object.assign(n,e)}if(l(t))for(const o in t){const i=t[o];p(i)&&-1===r.indexOf(o)?e[o]=i(e):"string"==typeof i&&-1===r.indexOf(o)&&(e[o]=e[i],n.shouldDelete.add(i))}else p(t)&&(e=t(e));if(n.shouldDelete)for(const t of n.shouldDelete)delete e[t];return t._post&&(e=t._post(e)),e}function k(e,t){const r=new e(t);return new Proxy(r,{get:function(e,t){if("function"==typeof e[t]&&0!==t.indexOf("_")&&e._protocols&&e._protocols[t]){const r=e._protocols[t];return async function(n){n=R(n,r.args);let o=await e[t](n);return o=R(o,r.returnValue),o}}return e[t]}})}function I(e){let t,r,n=e-Date.now(),o="后";n<0&&(o="前",n=-n);const i=Math.floor(n/1e3),s=Math.floor(i/60),a=Math.floor(s/60),c=Math.floor(a/24),u=Math.floor(c/30),f=Math.floor(u/12);switch(!0){case f>0:t=f,r="年";break;case u>0:t=u,r="月";break;case c>0:t=c,r="天";break;case a>0:t=a,r="小时";break;case s>0:t=s,r="分钟";break;default:t=i,r="秒"}return`${t}${r}${o}`}function O(e){return async function(){const t=await e(...arguments);return l(t)&&t.msg&&(t.message=t.msg),t}}const T=uniCloud.database(),P=T.collection("uni-id-users"),A=T.collection("opendb-verify-codes"),C=T.collection("uni-id-roles"),D=T.collection("uni-id-permissions");let M={};try{M=JSON.parse(t.readFileSync(r.resolve(__dirname,"config.json")))}catch(e){}function $(e){const t=Object.assign(M,M[e||__ctx__.PLATFORM])||{},r=Object.assign({bindTokenToDevice:!0},t);return["passwordSecret","tokenSecret","tokenExpiresIn","passwordErrorLimit","passwordErrorRetryTime"].forEach(e=>{if(!r||!r[e])throw new Error("请在公用模块uni-id的config.json或init方法中内添加配置项:"+e)}),r}function N(e,{value:t,version:r}={}){if(!t){const e=$(),{passwordSecret:n}=e;if("array"===m(n)){const e=n.sort((e,t)=>e.version-t.version);t=e[e.length-1].value,r=e[e.length-1].version}else t=n}if(!t)throw new Error("passwordSecret不正确");const o=n.createHmac("sha1",t.toString("ascii"));return o.update(e),{passwordHash:o.digest("hex"),version:r}}function B(e,t){if(!t)return{code:1,message:"密码不能为空"};const{password:r,password_secret_version:n}=e,o=$(),{passwordSecret:i}=o,s=m(i);if("string"===s){const{passwordHash:e}=N(t,{value:i});return e===r?{code:0,message:"密码校验通过"}:{code:2,message:"密码不正确"}}if("array"!==s)throw new Error("config内passwordSecret类型错误,只可设置string类型和array类型");const a=i.sort((e,t)=>e.version-t.version);let c;if(c=n?a.find(e=>e.version===n):a[0],!c)return{code:3,message:"secretVersion不正确"};const u=a[a.length-1],{passwordHash:f}=N(t,c);if(f===r){const e={code:0,message:"密码校验通过"};if(c!==u){const{passwordHash:r,version:n}=N(t,u);e.passwordHash=r,e.passwordVersion=n}return e}return{code:4,message:""}}const L=uniCloud.database().command;function V(e=6){const t=["2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"];let r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}async function K({inviteCode:e}){let t,r=10;e?(r=1,t=e):t=V();let n=!1;try{for(;r>0&&!n;){r-=1;if(0===(await P.where({invite_code:t}).count()).total){n=!0;break}t=V()}return n?{code:0,inviteCode:t}:e?{code:80401,msg:"邀请码重复,设置失败"}:{code:80402,msg:"邀请码设置失败稍后再试"}}catch(e){return{code:90001,msg:"数据库读写异常"}}}function q(e,t){return e(t={exports:{}},t.exports),t.exports}var H=q((function(e,t){var r=o.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),i.prototype=Object.create(r.prototype),n(r,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}})),U=(H.Buffer,H.Buffer);function F(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=U.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=U.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,process.nextTick(function(){this.emit("end",e),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}s.inherits(F,i),F.prototype.write=function(e){this.buffer=U.concat([this.buffer,U.from(e)]),this.emit("data",e)},F.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1};var J=F,G=o.Buffer,z=o.SlowBuffer,W=X;function X(e,t){if(!G.isBuffer(e)||!G.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}X.install=function(){G.prototype.equal=z.prototype.equal=function(e){return X(this,e)}};var Z=G.prototype.equal,Y=z.prototype.equal;function Q(e){return(e/8|0)+(e%8==0?0:1)}X.restore=function(){G.prototype.equal=Z,z.prototype.equal=Y};var ee={ES256:Q(256),ES384:Q(384),ES512:Q(521)};var te=function(e){var t=ee[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')},re=H.Buffer;function ne(e){if(re.isBuffer(e))return e;if("string"==typeof e)return re.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function oe(e,t,r){for(var n=0;t+n<r&&0===e[t+n];)++n;return e[t+n]>=128&&--n,n}var ie={derToJose:function(e,t){e=ne(e);var r=te(t),n=r+1,o=e.length,i=0;if(48!==e[i++])throw new Error('Could not find expected "seq"');var s=e[i++];if(129===s&&(s=e[i++]),o-i<s)throw new Error('"seq" specified length of "'+s+'", only "'+(o-i)+'" remaining');if(2!==e[i++])throw new Error('Could not find expected "int" for "r"');var a=e[i++];if(o-i-2<a)throw new Error('"r" specified length of "'+a+'", only "'+(o-i-2)+'" available');if(n<a)throw new Error('"r" specified length of "'+a+'", max of "'+n+'" is acceptable');var c=i;if(i+=a,2!==e[i++])throw new Error('Could not find expected "int" for "s"');var u=e[i++];if(o-i!==u)throw new Error('"s" specified length of "'+u+'", expected "'+(o-i)+'"');if(n<u)throw new Error('"s" specified length of "'+u+'", max of "'+n+'" is acceptable');var f=i;if((i+=u)!==o)throw new Error('Expected to consume entire buffer, but "'+(o-i)+'" bytes remain');var d=r-a,l=r-u,p=re.allocUnsafe(d+a+l+u);for(i=0;i<d;++i)p[i]=0;e.copy(p,i,c+Math.max(-d,0),c+a);for(var m=i=r;i<m+l;++i)p[i]=0;return e.copy(p,i,f+Math.max(-l,0),f+u),p=(p=p.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,t){e=ne(e);var r=te(t),n=e.length;if(n!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+n+'"');var o=oe(e,0,r),i=oe(e,r,e.length),s=r-o,a=r-i,c=2+s+1+1+a,u=c<128,f=re.allocUnsafe((u?2:3)+c),d=0;return f[d++]=48,u?f[d++]=c:(f[d++]=129,f[d++]=255&c),f[d++]=2,f[d++]=s,o<0?(f[d++]=0,d+=e.copy(f,d,0,r)):d+=e.copy(f,d,o,r),f[d++]=2,f[d++]=a,i<0?(f[d++]=0,e.copy(f,d,r)):e.copy(f,d,r+i),f}},se=H.Buffer,ae="secret must be a string or buffer",ce="key must be a string or a buffer",ue="function"==typeof n.createPublicKey;function fe(e){if(!se.isBuffer(e)&&"string"!=typeof e){if(!ue)throw me(ce);if("object"!=typeof e)throw me(ce);if("string"!=typeof e.type)throw me(ce);if("string"!=typeof e.asymmetricKeyType)throw me(ce);if("function"!=typeof e.export)throw me(ce)}}function de(e){if(!se.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw me("key must be a string, a buffer or an object")}function le(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function pe(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function me(e){var t=[].slice.call(arguments,1),r=s.format.bind(s,e).apply(null,t);return new TypeError(r)}function he(e){var t;return t=e,se.isBuffer(t)||"string"==typeof t||(e=JSON.stringify(e)),e}function ge(e){return function(t,r){!function(e){if(!se.isBuffer(e)){if("string"==typeof e)return e;if(!ue)throw me(ae);if("object"!=typeof e)throw me(ae);if("secret"!==e.type)throw me(ae);if("function"!=typeof e.export)throw me(ae)}}(r),t=he(t);var o=n.createHmac("sha"+e,r);return le((o.update(t),o.digest("base64")))}}function ye(e){return function(t,r,n){var o=ge(e)(t,n);return W(se.from(r),se.from(o))}}function we(e){return function(t,r){de(r),t=he(t);var o=n.createSign("RSA-SHA"+e);return le((o.update(t),o.sign(r,"base64")))}}function ve(e){return function(t,r,o){fe(o),t=he(t),r=pe(r);var i=n.createVerify("RSA-SHA"+e);return i.update(t),i.verify(o,r,"base64")}}function be(e){return function(t,r){de(r),t=he(t);var o=n.createSign("RSA-SHA"+e);return le((o.update(t),o.sign({key:r,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function _e(e){return function(t,r,o){fe(o),t=he(t),r=pe(r);var i=n.createVerify("RSA-SHA"+e);return i.update(t),i.verify({key:o,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function Se(e){var t=we(e);return function(){var r=t.apply(null,arguments);return r=ie.derToJose(r,"ES"+e)}}function Ee(e){var t=ve(e);return function(r,n,o){return n=ie.joseToDer(n,"ES"+e).toString("base64"),t(r,n,o)}}function xe(){return function(){return""}}function je(){return function(e,t){return""===t}}ue&&(ce+=" or a KeyObject",ae+="or a KeyObject");var Re=function(e){var t={hs:ge,rs:we,ps:be,es:Se,none:xe},r={hs:ye,rs:ve,ps:_e,es:Ee,none:je},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw me('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',e);var o=(n[1]||n[3]).toLowerCase(),i=n[2];return{sign:t[o](i),verify:r[o](i)}},ke=o.Buffer,Ie=function(e){return"string"==typeof e?e:"number"==typeof e||ke.isBuffer(e)?e.toString():JSON.stringify(e)},Oe=H.Buffer;function Te(e,t){return Oe.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Pe(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,o=e.encoding,i=Re(t.alg),a=function(e,t,r){r=r||"utf8";var n=Te(Ie(e),"binary"),o=Te(Ie(t),r);return s.format("%s.%s",n,o)}(t,r,o),c=i.sign(a,n);return s.format("%s.%s",a,c)}function Ae(e){var t=e.secret||e.privateKey||e.key,r=new J(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new J(e.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}s.inherits(Ae,i),Ae.prototype.sign=function(){try{var e=Pe({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},Ae.sign=Pe;var Ce=Ae,De=H.Buffer,Me=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function $e(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(e){return}}function Ne(e){var t=e.split(".",1)[0];return $e(De.from(t,"base64").toString("binary"))}function Be(e){return e.split(".")[2]}function Le(e){return Me.test(e)&&!!Ne(e)}function Ve(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var o=Be(e=Ie(e)),i=function(e){return e.split(".",2).join(".")}(e);return Re(t).verify(i,o,r)}function Ke(e,t){if(t=t||{},!Le(e=Ie(e)))return null;var r=Ne(e);if(!r)return null;var n=function(e,t){t=t||"utf8";var r=e.split(".")[1];return De.from(r,"base64").toString(t)}(e);return("JWT"===r.typ||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:Be(e)}}function qe(e){var t=(e=e||{}).secret||e.publicKey||e.key,r=new J(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new J(e.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}s.inherits(qe,i),qe.prototype.verify=function(){try{var e=Ve(this.signature.buffer,this.algorithm,this.key.buffer),t=Ke(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},qe.decode=Ke,qe.isValid=Le,qe.verify=Ve;var He=qe,Ue={ALGORITHMS:["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],sign:Ce.sign,verify:He.verify,decode:He.decode,isValid:He.isValid,createSign:function(e){return new Ce(e)},createVerify:function(e){return new He(e)}},Fe=function(e,t){t=t||{};var r=Ue.decode(e,t);if(!r)return null;var n=r.payload;if("string"==typeof n)try{var o=JSON.parse(n);null!==o&&"object"==typeof o&&(n=o)}catch(e){}return!0===t.complete?{header:r.header,payload:n,signature:r.signature}:n},Je=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};(Je.prototype=Object.create(Error.prototype)).constructor=Je;var Ge=Je,ze=function(e,t){Ge.call(this,e),this.name="NotBeforeError",this.date=t};(ze.prototype=Object.create(Ge.prototype)).constructor=ze;var We=ze,Xe=function(e,t){Ge.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};(Xe.prototype=Object.create(Ge.prototype)).constructor=Xe;var Ze=Xe,Ye=1e3,Qe=60*Ye,et=60*Qe,tt=24*et,rt=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*et;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ye;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=tt)return nt(e,t,tt,"day");if(t>=et)return nt(e,t,et,"hour");if(t>=Qe)return nt(e,t,Qe,"minute");if(t>=Ye)return nt(e,t,Ye,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=tt)return Math.round(e/tt)+"d";if(t>=et)return Math.round(e/et)+"h";if(t>=Qe)return Math.round(e/Qe)+"m";if(t>=Ye)return Math.round(e/Ye)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function nt(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}var ot=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var n=rt(e);if(void 0===n)return;return Math.floor(r+n/1e3)}return"number"==typeof e?r+e:void 0},it=q((function(e,t){var r;t=e.exports=J,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],s=0,a=s++;i[a]="0|[1-9]\\d*";var c=s++;i[c]="[0-9]+";var u=s++;i[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var f=s++;i[f]="("+i[a]+")\\.("+i[a]+")\\.("+i[a]+")";var d=s++;i[d]="("+i[c]+")\\.("+i[c]+")\\.("+i[c]+")";var l=s++;i[l]="(?:"+i[a]+"|"+i[u]+")";var p=s++;i[p]="(?:"+i[c]+"|"+i[u]+")";var m=s++;i[m]="(?:-("+i[l]+"(?:\\."+i[l]+")*))";var h=s++;i[h]="(?:-?("+i[p]+"(?:\\."+i[p]+")*))";var g=s++;i[g]="[0-9A-Za-z-]+";var y=s++;i[y]="(?:\\+("+i[g]+"(?:\\."+i[g]+")*))";var w=s++,v="v?"+i[f]+i[m]+"?"+i[y]+"?";i[w]="^"+v+"$";var b="[v=\\s]*"+i[d]+i[h]+"?"+i[y]+"?",_=s++;i[_]="^"+b+"$";var S=s++;i[S]="((?:<|>)?=?)";var E=s++;i[E]=i[c]+"|x|X|\\*";var x=s++;i[x]=i[a]+"|x|X|\\*";var j=s++;i[j]="[v=\\s]*("+i[x]+")(?:\\.("+i[x]+")(?:\\.("+i[x]+")(?:"+i[m]+")?"+i[y]+"?)?)?";var R=s++;i[R]="[v=\\s]*("+i[E]+")(?:\\.("+i[E]+")(?:\\.("+i[E]+")(?:"+i[h]+")?"+i[y]+"?)?)?";var k=s++;i[k]="^"+i[S]+"\\s*"+i[j]+"$";var I=s++;i[I]="^"+i[S]+"\\s*"+i[R]+"$";var O=s++;i[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=s++;i[T]="(?:~>?)";var P=s++;i[P]="(\\s*)"+i[T]+"\\s+",o[P]=new RegExp(i[P],"g");var A=s++;i[A]="^"+i[T]+i[j]+"$";var C=s++;i[C]="^"+i[T]+i[R]+"$";var D=s++;i[D]="(?:\\^)";var M=s++;i[M]="(\\s*)"+i[D]+"\\s+",o[M]=new RegExp(i[M],"g");var $=s++;i[$]="^"+i[D]+i[j]+"$";var N=s++;i[N]="^"+i[D]+i[R]+"$";var B=s++;i[B]="^"+i[S]+"\\s*("+b+")$|^$";var L=s++;i[L]="^"+i[S]+"\\s*("+v+")$|^$";var V=s++;i[V]="(\\s*)"+i[S]+"\\s*("+b+"|"+i[j]+")",o[V]=new RegExp(i[V],"g");var K=s++;i[K]="^\\s*("+i[j]+")\\s+-\\s+("+i[j]+")\\s*$";var q=s++;i[q]="^\\s*("+i[R]+")\\s+-\\s+("+i[R]+")\\s*$";var H=s++;i[H]="(<|>)?=?\\s*\\*";for(var U=0;U<35;U++)r(U,i[U]),o[U]||(o[U]=new RegExp(i[U]));function F(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof J)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[_]:o[w]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof J){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof J))return new J(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[_]:o[w]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=F,t.valid=function(e,t){var r=F(e,t);return r?r.version:null},t.clean=function(e,t){var r=F(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=J,J.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},J.prototype.toString=function(){return this.version},J.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof J||(e=new J(e,this.options)),this.compareMain(e)||this.comparePre(e)},J.prototype.compareMain=function(e){return e instanceof J||(e=new J(e,this.options)),z(this.major,e.major)||z(this.minor,e.minor)||z(this.patch,e.patch)},J.prototype.comparePre=function(e){if(e instanceof J||(e=new J(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return z(n,o)}while(++t)},J.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new J(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Y(e,t))return null;var r=F(e),n=F(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var i="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return o+s;return i},t.compareIdentifiers=z;var G=/^[0-9]+$/;function z(e,t){var r=G.test(e),n=G.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function W(e,t,r){return new J(e,r).compare(new J(t,r))}function X(e,t,r){return W(e,t,r)>0}function Z(e,t,r){return W(e,t,r)<0}function Y(e,t,r){return 0===W(e,t,r)}function Q(e,t,r){return 0!==W(e,t,r)}function ee(e,t,r){return W(e,t,r)>=0}function te(e,t,r){return W(e,t,r)<=0}function re(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return Y(e,r,n);case"!=":return Q(e,r,n);case">":return X(e,r,n);case">=":return ee(e,r,n);case"<":return Z(e,r,n);case"<=":return te(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function ne(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ne){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ne))return new ne(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=W,t.compareLoose=function(e,t){return W(e,t,!0)},t.rcompare=function(e,t,r){return W(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))},t.gt=X,t.lt=Z,t.eq=Y,t.neq=Q,t.gte=ee,t.lte=te,t.cmp=re,t.Comparator=ne;var oe={};function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ie(e.raw,t);if(e instanceof ne)return new ie(e.value,t);if(!(this instanceof ie))return new ie(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,r,n,o,i,s,a,c,u,f,d,l){return((t=se(r)?"":se(n)?">="+r+".0.0":se(o)?">="+r+"."+n+".0":">="+t)+" "+(a=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(f)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+f+"-"+d:"<="+a)).trim()}function ce(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(r(e[o].semver),e[o].semver!==oe&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ue(e,t,r){try{t=new ie(t,r)}catch(e){return!1}return t.test(e)}function fe(e,t,r,n){var o,i,s,a,c;switch(e=new J(e,n),t=new ie(t,n),r){case">":o=X,i=te,s=Z,a=">",c=">=";break;case"<":o=Z,i=ee,s=X,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,n))return!1;for(var u=0;u<t.set.length;++u){var f=t.set[u],d=null,l=null;if(f.forEach((function(e){e.semver===oe&&(e=new ne(">=0.0.0")),d=d||e,l=l||e,o(e.semver,d.semver,n)?d=e:s(e.semver,l.semver,n)&&(l=e)})),d.operator===a||d.operator===c)return!1;if((!l.operator||l.operator===a)&&i(e,l.semver))return!1;if(l.operator===c&&s(e,l.semver))return!1}return!0}ne.prototype.parse=function(e){var t=this.options.loose?o[B]:o[L],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new J(r[2],this.options.loose):this.semver=oe},ne.prototype.toString=function(){return this.value},ne.prototype.test=function(e){return r("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new J(e,this.options)),re(e,this.operator,this.semver,this.options))},ne.prototype.intersects=function(e,t){if(!(e instanceof ne))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return r=new ie(e.value,t),ue(this.value,r,t);if(""===e.operator)return r=new ie(this.value,t),ue(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=ie,ie.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[q]:o[K];e=e.replace(n,ae),r("hyphen replace",e),e=e.replace(o[V],"$1$2$3"),r("comparator trim",e,o[V]),e=(e=(e=e.replace(o[P],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[B]:o[L],s=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?o[N]:o[$];return e.replace(n,(function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),se(n)?a="":se(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":se(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?o[C]:o[A];return e.replace(n,(function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),se(n)?a="":se(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":se(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?o[I]:o[k];return e.replace(n,(function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var c=se(o),u=c||se(i),f=u||se(s);return"="===n&&f&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&f?(u&&(i=0),s=0,">"===n?(n=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":f&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(o[H],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new ne(e,this.options)}),this)},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Range is required");return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new ie(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.options));for(var t=0;t<this.set.length;t++)if(ce(this.set[t],e,this.options))return!0;return!1},t.satisfies=ue,t.maxSatisfying=function(e,t,r){var n=null,o=null;try{var i=new ie(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&-1!==o.compare(e)||(o=new J(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,o=null;try{var i=new ie(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&1!==o.compare(e)||(o=new J(n=e,r)))})),n},t.minVersion=function(e,t){e=new ie(e,t);var r=new J("0.0.0");if(e.test(r))return r;if(r=new J("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n){e.set[n].forEach((function(e){var t=new J(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!X(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r))return r;return null},t.validRange=function(e,t){try{return new ie(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return fe(e,t,"<",r)},t.gtr=function(e,t,r){return fe(e,t,">",r)},t.outside=fe,t.prerelease=function(e,t){var r=F(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new ie(e,r),t=new ie(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof J)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);if(null==t)return null;return F(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),st=(it.SEMVER_SPEC_VERSION,it.re,it.src,it.parse,it.valid,it.clean,it.SemVer,it.inc,it.diff,it.compareIdentifiers,it.rcompareIdentifiers,it.major,it.minor,it.patch,it.compare,it.compareLoose,it.rcompare,it.sort,it.rsort,it.gt,it.lt,it.eq,it.neq,it.gte,it.lte,it.cmp,it.Comparator,it.Range,it.toComparators,it.satisfies,it.maxSatisfying,it.minSatisfying,it.minVersion,it.validRange,it.ltr,it.gtr,it.outside,it.prerelease,it.intersects,it.coerce,it.satisfies(process.version,"^6.12.0 || >=8.0.0")),at=["RS256","RS384","RS512","ES256","ES384","ES512"],ct=["RS256","RS384","RS512"],ut=["HS256","HS384","HS512"];st&&(at.splice(3,0,"PS256","PS384","PS512"),ct.splice(3,0,"PS256","PS384","PS512"));var ft=/^\s+|\s+$/g,dt=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,pt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,ht=parseInt;function gt(e){return e!=e}function yt(e,t){return function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(t,(function(t){return e[t]}))}var wt,vt,bt=Object.prototype,_t=bt.hasOwnProperty,St=bt.toString,Et=bt.propertyIsEnumerable,xt=(wt=Object.keys,vt=Object,function(e){return wt(vt(e))}),jt=Math.max;function Rt(e,t){var r=Ot(e)||function(e){return function(e){return At(e)&&Tt(e)}(e)&&_t.call(e,"callee")&&(!Et.call(e,"callee")||"[object Arguments]"==St.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!_t.call(e,i)||o&&("length"==i||It(i,n))||r.push(i);return r}function kt(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||bt,t!==n)return xt(e);var t,r,n,o=[];for(var i in Object(e))_t.call(e,i)&&"constructor"!=i&&o.push(i);return o}function It(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||mt.test(e))&&e>-1&&e%1==0&&e<t}var Ot=Array.isArray;function Tt(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=Pt(e)?St.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function Pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function At(e){return!!e&&"object"==typeof e}var Ct=function(e,t,r,n){var o;e=Tt(e)?e:(o=e)?yt(o,function(e){return Tt(e)?Rt(e):kt(e)}(o)):[],r=r&&!n?function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||At(e)&&"[object Symbol]"==St.call(e)}(e))return NaN;if(Pt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Pt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ft,"");var r=lt.test(e);return r||pt.test(e)?ht(e.slice(2),r?2:8):dt.test(e)?NaN:+e}(e))===1/0||e===-1/0){return 17976931348623157e292*(e<0?-1:1)}return e==e?e:0}(e),r=t%1;return t==t?r?t-r:t:0}(r):0;var i=e.length;return r<0&&(r=jt(i+r,0)),function(e){return"string"==typeof e||!Ot(e)&&At(e)&&"[object String]"==St.call(e)}(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,gt,r);for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r)>-1},Dt=Object.prototype.toString;var Mt=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==Dt.call(e)},$t=/^\s+|\s+$/g,Nt=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,Lt=/^0o[0-7]+$/i,Vt=parseInt,Kt=Object.prototype.toString;function qt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var Ht=function(e){return"number"==typeof e&&e==function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Kt.call(e)}(e))return NaN;if(qt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($t,"");var r=Bt.test(e);return r||Lt.test(e)?Vt(e.slice(2),r?2:8):Nt.test(e)?NaN:+e}(e))===1/0||e===-1/0){return 17976931348623157e292*(e<0?-1:1)}return e==e?e:0}(e),r=t%1;return t==t?r?t-r:t:0}(e)},Ut=Object.prototype.toString;var Ft=function(e){return"number"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Number]"==Ut.call(e)};var Jt=Function.prototype,Gt=Object.prototype,zt=Jt.toString,Wt=Gt.hasOwnProperty,Xt=zt.call(Object),Zt=Gt.toString,Yt=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var Qt=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=Zt.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=Yt(e);if(null===t)return!0;var r=Wt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&zt.call(r)==Xt},er=Object.prototype.toString,tr=Array.isArray;var rr=function(e){return"string"==typeof e||!tr(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==er.call(e)},nr=/^\s+|\s+$/g,or=/^[-+]0x[0-9a-f]+$/i,ir=/^0b[01]+$/i,sr=/^0o[0-7]+$/i,ar=parseInt,cr=Object.prototype.toString;function ur(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==cr.call(e)}(e))return NaN;if(fr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(nr,"");var r=ir.test(e);return r||sr.test(e)?ar(e.slice(2),r?2:8):or.test(e)?NaN:+e}(e))===1/0||e===-1/0){return 17976931348623157e292*(e<0?-1:1)}return e==e?e:0}(e),r=t%1;return t==t?r?t-r:t:0}(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function fr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var dr=function(e){return ur(2,e)},lr=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];st&&lr.splice(3,0,"PS256","PS384","PS512");var pr={expiresIn:{isValid:function(e){return Ht(e)||rr(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return Ht(e)||rr(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return rr(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:Ct.bind(null,lr),message:'"algorithm" must be a valid string enum value'},header:{isValid:Qt,message:'"header" must be an object'},encoding:{isValid:rr,message:'"encoding" must be a string'},issuer:{isValid:rr,message:'"issuer" must be a string'},subject:{isValid:rr,message:'"subject" must be a string'},jwtid:{isValid:rr,message:'"jwtid" must be a string'},noTimestamp:{isValid:Mt,message:'"noTimestamp" must be a boolean'},keyid:{isValid:rr,message:'"keyid" must be a string'},mutatePayload:{isValid:Mt,message:'"mutatePayload" must be a boolean'}},mr={iat:{isValid:Ft,message:'"iat" should be a number of seconds'},exp:{isValid:Ft,message:'"exp" should be a number of seconds'},nbf:{isValid:Ft,message:'"nbf" should be a number of seconds'}};function hr(e,t,r,n){if(!Qt(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach((function(o){var i=e[o];if(i){if(!i.isValid(r[o]))throw new Error(i.message)}else if(!t)throw new Error('"'+o+'" is not allowed in "'+n+'"')}))}var gr={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},yr=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"],wr=function(e,t,r,n){var o;if("function"!=typeof r||n||(n=r,r={}),r||(r={}),r=Object.assign({},r),o=n||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return o(new Ge("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return o(new Ge("nonce must be a non-empty string"));var i=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return o(new Ge("jwt must be provided"));if("string"!=typeof e)return o(new Ge("jwt must be a string"));var s,a=e.split(".");if(3!==a.length)return o(new Ge("jwt malformed"));try{s=Fe(e,{complete:!0})}catch(e){return o(e)}if(!s)return o(new Ge("invalid token"));var c,u=s.header;if("function"==typeof t){if(!n)return o(new Ge("verify must be called asynchronous if secret or public key is provided as a callback"));c=t}else c=function(e,r){return r(null,t)};return c(u,(function(t,n){if(t)return o(new Ge("error in secret or public key callback: "+t.message));var c,f=""!==a[2].trim();if(!f&&n)return o(new Ge("jwt signature is required"));if(f&&!n)return o(new Ge("secret or public key must be provided"));if(f||r.algorithms||(r.algorithms=["none"]),r.algorithms||(r.algorithms=~n.toString().indexOf("BEGIN CERTIFICATE")||~n.toString().indexOf("BEGIN PUBLIC KEY")?at:~n.toString().indexOf("BEGIN RSA PUBLIC KEY")?ct:ut),!~r.algorithms.indexOf(s.header.alg))return o(new Ge("invalid algorithm"));try{c=Ue.verify(e,s.header.alg,n)}catch(e){return o(e)}if(!c)return o(new Ge("invalid signature"));var d=s.payload;if(void 0!==d.nbf&&!r.ignoreNotBefore){if("number"!=typeof d.nbf)return o(new Ge("invalid nbf value"));if(d.nbf>i+(r.clockTolerance||0))return o(new We("jwt not active",new Date(1e3*d.nbf)))}if(void 0!==d.exp&&!r.ignoreExpiration){if("number"!=typeof d.exp)return o(new Ge("invalid exp value"));if(i>=d.exp+(r.clockTolerance||0))return o(new Ze("jwt expired",new Date(1e3*d.exp)))}if(r.audience){var l=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(d.aud)?d.aud:[d.aud]).some((function(e){return l.some((function(t){return t instanceof RegExp?t.test(e):t===e}))})))return o(new Ge("jwt audience invalid. expected: "+l.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&d.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(d.iss)))return o(new Ge("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&d.sub!==r.subject)return o(new Ge("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&d.jti!==r.jwtid)return o(new Ge("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&d.nonce!==r.nonce)return o(new Ge("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof d.iat)return o(new Ge("iat required when maxAge is specified"));var p=ot(r.maxAge,d.iat);if(void 0===p)return o(new Ge('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(i>=p+(r.clockTolerance||0))return o(new Ze("maxAge exceeded",new Date(1e3*p)))}if(!0===r.complete){var m=s.signature;return o(null,{header:u,payload:d,signature:m})}return o(null,d)}))},vr=function(e,t,r,n){"function"==typeof r?(n=r,r={}):r=r||{};var o="object"==typeof e&&!Buffer.isBuffer(e),i=Object.assign({alg:r.algorithm||"HS256",typ:o?"JWT":void 0,kid:r.keyid},r.header);function s(e){if(n)return n(e);throw e}if(!t&&"none"!==r.algorithm)return s(new Error("secretOrPrivateKey must have a value"));if(void 0===e)return s(new Error("payload is required"));if(o){try{!function(e){hr(mr,!0,e,"payload")}(e)}catch(e){return s(e)}r.mutatePayload||(e=Object.assign({},e))}else{var a=yr.filter((function(e){return void 0!==r[e]}));if(a.length>0)return s(new Error("invalid "+a.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return s(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return s(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(e){hr(pr,!1,e,"options")}(r)}catch(e){return s(e)}var c=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:o&&(e.iat=c),void 0!==r.notBefore){try{e.nbf=ot(r.notBefore,c)}catch(e){return s(e)}if(void 0===e.nbf)return s(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=ot(r.expiresIn,c)}catch(e){return s(e)}if(void 0===e.exp)return s(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(gr).forEach((function(t){var n=gr[t];if(void 0!==r[t]){if(void 0!==e[n])return s(new Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}}));var u=r.encoding||"utf8";if("function"!=typeof n)return Ue.sign({header:i,payload:e,secret:t,encoding:u});n=n&&dr(n),Ue.createSign({header:i,privateKey:t,payload:e,encoding:u}).once("error",n).once("done",(function(e){n(null,e)}))};const br=uniCloud.database().command;function _r(){const e=n.createHash("md5"),t=/MicroMessenger/i.test(__ctx__.CLIENTUA)?__ctx__.CLIENTUA.replace(/(MicroMessenger\S+).*/i,"$1"):__ctx__.CLIENTUA;return e.update(t),e.digest("hex")}function Sr({uid:e,needPermission:t}){const r=$(),n={uid:e};t&&(n.needPermission=t),r.bindTokenToDevice&&(n.clientId=_r());return{token:vr(n,r.tokenSecret,{expiresIn:r.tokenExpiresIn}),tokenExpired:Date.now()+1e3*r.tokenExpiresIn}}async function Er(e){const t=$();try{const r=wr(e,t.tokenSecret);if(t.bindTokenToDevice&&r.clientId!==_r())return{code:30201,msg:"token不合法,请重新登录"};const{uid:n,needPermission:o}=r,i=await P.doc(n).get();if(!i.data||0===i.data.length||!i.data[0].token)return{code:30202,msg:"token不合法,请重新登录"};const s=i.data[0];if(1===s.status)return{code:10001,msg:"账号已禁用"};let a=s.token;if("string"==typeof a&&(a=[a]),-1===a.indexOf(e))return{code:30202,msg:"token不合法,请重新登录"};const c={code:0,msg:"token校验通过",uid:n,role:s.role||[],permission:[],userInfo:s};if(c.role.length>0&&o)if(c.role.includes("admin")){const e=await D.limit(1e4).get();c.permission=e.data.map(e=>e.permission_id)}else{const e=await C.where({role_id:br.in(c.role)}).get(),t=[];e.data.forEach(e=>{Array.prototype.push.apply(t,e.permission)}),c.permission=j(t)}if(t.tokenExpiresThreshold&&r.exp-Date.now()/1e3<t.tokenExpiresThreshold){const e=Sr({uid:n,needPermission:o}),t=xr(a);return a=a.filter(e=>-1===t.indexOf(e)),a.push(e.token),await P.doc(n).update({token:a,last_login_date:Date.now(),last_login_ip:__ctx__.CLIENTIP}),{...c,...e}}return E("checkToken payload",r),c}catch(e){return"TokenExpiredError"===e.name?{code:30203,msg:"token已过期,请重新登录",err:e}:{code:30204,msg:"非法token",err:e}}}function xr(e){const t=$(),r=[];return e.forEach(e=>{try{wr(e,t.tokenSecret)}catch(t){r.push(e)}}),r}async function jr(e,t={}){if(1===e.status)return{code:10001,msg:"账号已禁用"};let r=e.token||[];"string"==typeof r&&(r=[r]);const n=xr(r);r=r.filter(e=>-1===n.indexOf(e));const{token:o,tokenExpired:i}=Sr({uid:e._id,needPermission:t.needPermission});return r.push(o),e.token=r,await P.doc(e._id).update({last_login_date:Date.now(),last_login_ip:__ctx__.CLIENTIP,token:r,...t.extraData}),{code:0,msg:"登录成功",token:o,uid:e._id,username:e.username,type:"login",userInfo:e,tokenExpired:i}}async function Rr({name:e,url:t,data:r,options:n,defaultOptions:o}){let i={};const s=_(Object.assign({},r));s&&s.access_token&&delete s.access_token;try{n=Object.assign({},o,n,{data:s}),i=await uniCloud.httpclient.request(t,n)}catch(t){return function(e,t){throw new c({code:t.code||-2,message:t.message||e+" fail"})}(e,t)}let a=i.data;const u=i.headers["content-type"];if(!Buffer.isBuffer(a)||0!==u.indexOf("text/plain")&&0!==u.indexOf("application/json"))Buffer.isBuffer(a)&&(a={buffer:a,contentType:u});else try{a=JSON.parse(a.toString())}catch(e){a=a.toString()}return b(function(e,t){if(t.errcode)throw new c({code:t.errcode||-2,message:t.errmsg||e+" fail"});return delete t.errcode,delete t.errmsg,{...t,errMsg:e+" ok",errCode:0}}(e,a||{errCode:-2,errMsg:"Request failed"}))}function kr(e,t){let r="";if(t&&t.accessToken){r=`${e.indexOf("?")>-1?"&":"?"}access_token=${t.accessToken}`}return`${e}${r}`}class Ir{constructor(e){this.options=Object.assign({baseUrl:"https://api.weixin.qq.com",timeout:5e3},e)}async _requestWxOpenapi({name:e,url:t,data:r,options:n}){const o={method:"GET",dataType:"json",dataAsQueryString:!0,timeout:this.options.timeout};return await Rr({name:"auth."+e,url:`${this.options.baseUrl}${kr(t,r)}`,data:r,options:n,defaultOptions:o})}async code2Session(e){return await this._requestWxOpenapi({name:"code2Session",url:"/sns/jscode2session",data:{grant_type:"authorization_code",appid:this.options.appId,secret:this.options.secret,js_code:e}})}async getOauthAccessToken(e){return await this._requestWxOpenapi({name:"getOauthAccessToken",url:"/sns/oauth2/access_token",data:{grant_type:"authorization_code",appid:this.options.appId,secret:this.options.secret,code:e}})}}const Or={RSA:"RSA-SHA1",RSA2:"RSA-SHA256"};var Tr={code2Session:{returnValue:{openid:"userId"}}};class Pr extends class{constructor(e={}){if(!e.appId)throw new Error("appId required");if(!e.privateKey)throw new Error("privateKey required");const t={gateway:"https://openapi.alipay.com/gateway.do",timeout:5e3,charset:"utf-8",version:"1.0",signType:"RSA2",timeOffset:-(new Date).getTimezoneOffset()/60,keyType:"PKCS8"};e.sandbox&&(e.gateway="https://openapi.alipaydev.com/gateway.do"),this.options=Object.assign({},t,e);const r="PKCS8"===this.options.keyType?"PRIVATE KEY":"RSA PRIVATE KEY";this.options.privateKey=this._formatKey(this.options.privateKey,r),this.options.alipayPublicKey&&(this.options.alipayPublicKey=this._formatKey(this.options.alipayPublicKey,"PUBLIC KEY"))}_formatKey(e,t){return`-----BEGIN ${t}-----\n${e}\n-----END ${t}-----`}_formatUrl(e,t){let r=e;const n=["app_id","method","format","charset","sign_type","sign","timestamp","version","notify_url","return_url","auth_token","app_auth_token"];for(const e in t)if(n.indexOf(e)>-1){const n=encodeURIComponent(t[e]);r=`${r}${r.includes("?")?"&":"?"}${e}=${n}`,delete t[e]}return{execParams:t,url:r}}_getSign(e,t){const r=t.bizContent||null;delete t.bizContent;const o=Object.assign({method:e,appId:this.options.appId,charset:this.options.charset,version:this.options.version,signType:this.options.signType,timestamp:S((i=this.options.timeOffset,new Date(Date.now()+6e4*((new Date).getTimezoneOffset()+60*(i||0)))))},t);var i;r&&(o.bizContent=JSON.stringify(_(r)));const s=_(o),a=Object.keys(s).sort().map(e=>{let t=s[e];return"[object String]"!==Array.prototype.toString.call(t)&&(t=JSON.stringify(t)),`${e}=${t}`}).join("&"),c=n.createSign(Or[this.options.signType]).update(a,"utf8").sign(this.options.privateKey,"base64");return Object.assign(s,{sign:c})}async _exec(e,t={},r={}){const n=this._getSign(e,t),{url:o,execParams:i}=this._formatUrl(this.options.gateway,n),{status:s,data:a}=await uniCloud.httpclient.request(o,{method:"POST",data:i,dataType:"text",timeout:this.options.timeout});if(200!==s)throw new Error("request fail");const c=JSON.parse(a),u=e.replace(/\./g,"_")+"_response",f=c[u],d=c.error_response;if(f){if(!r.validateSign||this._checkResponseSign(a,u)){if(!f.code||"10000"===f.code){return{errCode:0,errMsg:f.msg||"",...b(f)}}const e=f.sub_code?`${f.sub_code} ${f.sub_msg}`:""+(f.msg||"unkonwn error");throw new Error(e)}throw new Error("返回结果签名错误")}if(d)throw new Error(d.sub_msg||d.msg||"接口返回错误");throw new Error("request fail")}_checkResponseSign(e,t){if(!this.options.alipayPublicKey||""===this.options.alipayPublicKey)return console.warn("options.alipayPublicKey is empty"),!0;if(!e)return!1;const r=this._getSignStr(e,t),o=JSON.parse(e).sign,i=n.createVerify(Or[this.options.signType]);return i.update(r,"utf8"),i.verify(this.options.alipayPublicKey,o,"base64")}_getSignStr(e,t){let r=e.trim();const n=e.indexOf(t+'"'),o=e.lastIndexOf('"sign"');return r=r.substr(n+t.length+1),r=r.substr(0,o),r=r.replace(/^[^{]*{/g,"{"),r=r.replace(/\}([^}]*)$/g,"}"),r}_notifyRSACheck(e,t,r){const o=Object.keys(e).sort().filter(e=>e).map(t=>{let r=e[t];return"[object String]"!==Array.prototype.toString.call(r)&&(r=JSON.stringify(r)),`${t}=${decodeURIComponent(r)}`}).join("&");return n.createVerify(Or[r]).update(o,"utf8").verify(this.options.alipayPublicKey,t,"base64")}_checkNotifySign(e){const t=e.sign;if(!this.options.alipayPublicKey||!t)return!1;const r=e.sign_type||this.options.signType||"RSA2",n={...e};delete n.sign,n.sign_type=r;return!!this._notifyRSACheck(n,t,r)||(delete n.sign_type,this._notifyRSACheck(n,t,r))}_verifyNotify(e){if(!e.headers)throw new Error("通知格式不正确");let t;for(const r in e.headers)"content-type"===r.toLowerCase()&&(t=e.headers[r]);if(!1!==e.isBase64Encoded&&-1===t.indexOf("application/x-www-form-urlencoded"))throw new Error("通知格式不正确");const r=a.parse(e.body);if(this._checkNotifySign(r))return b(r);throw new Error("通知验签未通过")}}{constructor(e){super(e),this._protocols=Tr}async code2Session(e){return await this._exec("alipay.system.oauth.token",{grantType:"authorization_code",code:e})}}var Ar=function(e={}){return e.clientType=e.clientType||__ctx__.PLATFORM,e.appId=e.appid,e.secret=e.appsecret,k(Ir,e)},Cr=function(e={}){return e.clientType=e.clientType||__ctx__.PLATFORM,e.appId=e.appid,k(Pr,e)};function Dr({platform:e}){const t=$(e),r=e||__ctx__.PLATFORM;if(!t.oauth||!t.oauth.alipay)throw new Error(`请在公用模块uni-id的config.json或init方法中添加${r}平台支付宝登录配置项`);["appid","privateKey"].forEach(e=>{if(!t.oauth.alipay[e])throw new Error(`请在公用模块uni-id的config.json或init方法中添加配置项:${r}.oauth.alipay.${e}`)});return Cr(t.oauth.alipay)}async function Mr(e,t={}){const r=(await P.add({...e,register_date:Date.now(),register_ip:__ctx__.CLIENTIP})).id,{token:n,tokenExpired:o}=Sr({uid:r,needPermission:t.needPermission});return await P.doc(r).update({token:[n]}),{token:n,tokenExpired:o,uid:r,type:"register"}}async function $r(e,t={}){let r;const{my_invite_code:n}=e;if(!$().autoSetInviteCode&&!n)return r=await Mr(e,t),{code:0,msg:"注册成功",...r};const o=await K({inviteCode:n});return o.code>0?o:(e.my_invite_code=o.inviteCode,r=await Mr(e,t),{code:0,msg:"注册成功",...r})}const Nr=uniCloud.database();async function Br({mobile:e,email:t,code:r,expiresIn:n,type:o}){if(!e&&!t||e&&t)return{code:50101,msg:"手机号和邮箱必须且只能给定其中一个"};r||(r=x()),n||(n=180);const i=Date.now(),s={mobile:e,email:t,type:o,code:r,state:0,ip:__ctx__.CLIENTIP,created_at:i,expired_at:i+1e3*n};return E("addRes",await A.add(s)),{code:0,mobile:e,email:t}}async function Lr({mobile:e,email:t,code:r,type:n}){if(!e&&!t||e&&t)return{code:50201,msg:"手机号和邮箱必须且只能给定其中一个"};const o=Nr.command,i=Date.now(),s={mobile:e,email:t,type:n,code:r,state:0,expired_at:o.gt(i)},a=await A.where(s).orderBy("created_at","desc").limit(1).get();if(E("verifyRecord:",a),a&&a.data&&a.data.length>0){const e=a.data[0];return E("upRes",await A.doc(e._id).update({state:1})),{code:0,msg:"验证通过"}}return{code:50202,msg:"验证码错误或已失效"}}function Vr({platform:e}){const t=$(e),r=e||__ctx__.PLATFORM;if(!t.oauth||!t.oauth.weixin)throw new Error(`请在公用模块uni-id的config.json或init方法中添加${r}平台微信登录配置项`);["appid","appsecret"].forEach(e=>{if(!t.oauth.weixin[e])throw new Error(`请在公用模块uni-id的config.json或init方法中添加配置项:${r}.oauth.weixin.${e}`)});return Ar(t.oauth.weixin)}const Kr=uniCloud.database();const qr=uniCloud.database();const Hr=uniCloud.database();const Ur=uniCloud.database();const Fr=uniCloud.database().command;const Jr=uniCloud.database();const Gr=uniCloud.database();const zr=uniCloud.database();const Wr=uniCloud.database();const Xr=uniCloud.database();var Zr=Object.freeze({__proto__:null,getUserInfo:async function({uid:e,field:t}){const r={};if(t&&t.length)for(let e=0;e<t.length;e++)r[t[e]]=!0;let n;return n=t&&t.length?await P.doc(e).field(r).get():await P.doc(e).get(),0===n.data.length?{code:80301,msg:"未查询到用户信息"}:{code:0,msg:"获取用户信息成功",userInfo:n.data[0]}},resetPwd:async function({uid:e,password:t}){const{passwordHash:r,version:n}=N(t),o={password:r,token:[]};return n&&(o.password_secret_version=n),E("upRes",await P.doc(e).update(o)),{code:0,msg:"密码重置成功"}},setAvatar:async function(e){return E("setAvatar -> upRes",await P.doc(e.uid).update({avatar:e.avatar})),{code:0,msg:"头像设置成功"}},updatePwd:async function(e){const t=await P.doc(e.uid).get();if(t&&t.data&&t.data.length>0){if(0===B(t.data[0],e.oldPassword).code){const{passwordHash:r,version:n}=N(e.newPassword),o={password:r,token:[]};n&&(o.password_secret_version=n);return E("upRes",await P.doc(t.data[0]._id).update(o)),{code:0,msg:"修改成功"}}return{code:40202,msg:"旧密码错误"}}return{code:40201,msg:"用户不存在"}},updateUser:async function(e){const t=e.uid;return t?(delete e.uid,E("update -> upRes",await P.doc(t).update(e)),{code:0,msg:"修改成功"}):{code:80101,msg:"缺少uid参数"}},acceptInvite:async function({uid:e,inviteCode:t}){const r=await P.where({_id:L.neq(e),inviter_uid:L.not(L.all([e])),my_invite_code:t}).get();if(1!==r.data.length)return{code:80501,msg:"邀请码无效"};const n=[r.data[0]._id].concat(r.data[0].inviter_uid||[]),o=await P.doc(e).field({my_invite_code:!0,inviter_uid:!0}).get();if(0===o.data.length)return{code:80502,msg:"uid错误用户不存在"};if(o.data[0].inviter_uid&&o.data[0].inviter_uid.length>0)return{code:80503,msg:"邀请码不可修改"};const i=Date.now();return await P.doc(e).update({inviter_uid:n,invite_time:i}),await P.where({inviter_uid:e}).update({inviter_uid:L.push(n)}),{code:0,msg:"邀请码填写成功"}},getInvitedUser:async function({uid:e,level:t=1,limit:r=20,offset:n=0,needTotal:o=!1}){const i={code:0,msg:"获取邀请列表成功",invitedUser:(await P.where({["inviter_uid."+(t-1)]:e}).field({_id:!0,username:!0,mobile:!0,invite_time:!0}).orderBy("invite_time","desc").skip(n).limit(r).get()).data};if(o){const r=await P.where({["inviter_uid."+(t-1)]:e}).count();i.total=r.total}return i},setUserInviteCode:async function({uid:e,myInviteCode:t}){const r=await K({inviteCode:t});return r.code>0?r:(await P.doc(e).update({my_invite_code:r.inviteCode}),{code:0,msg:"邀请码设置成功",myInviteCode:r.inviteCode})},loginByAlipay:async function(e){let t=e;"string"==typeof e&&(t={code:e});const r=t.needPermission,n=t.platform||__ctx__.PLATFORM,{openid:o}=await Dr({platform:n}).code2Session(t.code);if(!o)return{code:10501,msg:"获取openid失败"};const i=await P.where({ali_openid:o}).get();if(i&&i.data&&i.data.length>0){const e=i.data[0],t=await jr(e,{needPermission:r});if(0!==t.code)return t;const{userInfo:n}=t;return{...t,openid:o,mobileConfirmed:1===n.mobile_confirmed,emailConfirmed:1===n.email_confirmed}}{const e={ali_openid:o};e.my_invite_code=t.myInviteCode;const n=await $r(e,{needPermission:r});return 0!==n.code?n:{...n,openid:o,mobileConfirmed:!1,emailConfirmed:!1}}},loginByEmail:async function({email:e,code:t,password:r,myInviteCode:n,type:o,needPermission:i}){const s=await Lr({email:e,code:t,type:o||"login"});if(0!==s.code)return s;const a={email:e,email_confirmed:1},c=await P.where(a).get();if(E("userInDB:",c),c&&c.data&&c.data.length>0){if("register"===o)return{code:10301,msg:"此邮箱已注册"};const t=c.data[0],r=await jr(t,{needPermission:i});return 0!==r.code?r:{...r,email:e}}{if("login"===o)return{code:10302,msg:"此邮箱尚未注册"};const t={email:e,email_confirmed:1};if(r){const{passwordHash:e,version:n}=N(r);t.password=e,n&&(t.password_secret_version=n)}t.my_invite_code=n;const s=await $r(t,{needPermission:i});return 0!==s.code?s:{...s,email:e}}},loginBySms:async function({mobile:e,code:t,password:r,inviteCode:n,myInviteCode:o,type:i,needPermission:s}){const a=$();if(a.forceInviteCode&&!i)throw new Error("[loginBySms]强制使用邀请码注册时,需指明type为register还是login");const c=await Lr({mobile:e,code:t,type:i||"login"});if(0!==c.code)return c;const u={mobile:e,mobile_confirmed:1},f=await P.where(u).get();if(f&&f.data&&f.data.length>0){if("register"===i)return{code:10201,msg:"此手机号已注册"};const t=f.data[0],r=await jr(t,{needPermission:s});return 0!==r.code?r:{...r,mobile:e}}{const t=Date.now();if("login"===i)return{code:10203,msg:"此手机号尚未注册"};const c={mobile:e,mobile_confirmed:1,register_ip:__ctx__.CLIENTIP,register_date:t};if(r){const{passwordHash:e,version:t}=N(r);c.password=e,t&&(c.password_secret_version=t)}if(n){const e=await P.where({my_invite_code:n}).get();if(1!==e.data.length)return{code:10202,msg:"邀请码无效"};c.inviter_uid=[e.data[0]._id].concat(e.data[0].inviter_uid||[]),c.invite_time=t}else if(a.forceInviteCode)return{code:10202,msg:"邀请码无效"};c.my_invite_code=o;const u=await $r(c,{needPermission:s});return 0!==u.code?u:{...u,mobile:e}}},loginByWeixin:async function(e){let t=e;"string"==typeof e&&(t={code:e});const r=t.needPermission,n=t.platform||__ctx__.PLATFORM,{openid:o,unionid:i,sessionKey:s}=await Vr({platform:n})["mp-weixin"===n?"code2Session":"getOauthAccessToken"](t.code);if(!o)return{code:10401,msg:"获取openid失败"};const a=Kr.command,c=[{wx_openid:{[n]:o}}];i&&c.push({wx_unionid:i});const u=await P.where(a.or(...c)).get();if(u&&u.data&&u.data.length>0){const e=u.data[0],t={wx_openid:{[n]:o}};i&&(t.wx_unionid=i);const a=await jr(e,{needPermission:r,extraData:t});if(0!==a.code)return a;const{userInfo:c}=a;return{...a,openid:o,unionid:i,sessionKey:s,mobileConfirmed:1===c.mobile_confirmed,emailConfirmed:1===c.email_confirmed}}{const e={wx_openid:{[n]:o},wx_unionid:i},a=t.myInviteCode;e.my_invite_code=a;const c=await $r(e,{needPermission:r});return 0!==c.code?c:{...c,openid:o,unionid:i,sessionKey:s,mobileConfirmed:!1,emailConfirmed:!1}}},login:async function({username:e,password:t,queryField:r=[],needPermission:n}){const o=qr.command,i=[];r&&r.length||(r=["username"]);const s={email:{email_confirmed:1},mobile:{mobile_confirmed:1}};r.forEach(t=>{i.push({[t]:e,...s[t]})});const a=await P.where(o.or(...i)).limit(1).get(),c=__ctx__.CLIENTIP,{passwordErrorLimit:u,passwordErrorRetryTime:f}=$();if(E("userInDB:",a),0===a.data.length)return{code:10101,msg:"用户不存在"};const d=a.data[0];let l=d.login_ip_limit||[];l=l.filter(e=>e.last_error_time>Date.now()-1e3*f);let p=l.find(e=>e.ip===c);if(p&&p.error_times>=u)return{code:10103,msg:`密码错误次数过多,请${I(p.last_error_time+1e3*f)}再试。`};const m=B(d,t);if(0===m.code){const e=l.indexOf(p);e>-1&&l.splice(e,1);const t={login_ip_limit:l},{passwordHash:r,passwordVersion:o}=m;r&&o&&(t.password=r,t.password_secret_version=o);const i=await jr(d,{needPermission:n,extraData:t});return i.code,i}return p?(p.error_times++,p.last_error_time=Date.now()):(p={ip:c,error_times:1,last_error_time:Date.now()},l.push(p)),await P.doc(d._id).update({login_ip_limit:l}),{code:10102,msg:"密码错误"}},register:async function(e){const t=[],r=[{name:"username",desc:"用户名"},{name:"email",desc:"邮箱",extraCond:{email_confirmed:1}},{name:"mobile",desc:"手机号",extraCond:{mobile_confirmed:1}}],n=e.needPermission;if(void 0!==n&&delete e.needPermission,r.forEach(r=>{const n=r.name;e[n]&&e[n].trim()&&t.push({[n]:e[n],...r.extraCond})}),0===t.length)return{code:20101,msg:"用户名、邮箱、手机号不可同时为空"};const{username:o,email:i,mobile:s,myInviteCode:a}=e,c=Hr.command,u=await P.where(c.or(...t)).get();if(u&&u.data.length>0){const t=u.data[0];for(let n=0;n<r.length;n++){const o=r[n];let i=!0;if(o.extraCond&&(i=Object.keys(o.extraCond).every(e=>t[e]===o.extraCond[e])),t[o.name]===e[o.name]&&i)return{code:20102,msg:o.desc+"已存在"}}}const{passwordHash:f,version:d}=N(e.password);e.password=f,d&&(e.password_secret_version=d),e.my_invite_code=a,delete e.myInviteCode;const l=await $r(e,{needPermission:n});return 0!==l.code?l:{...l,username:o,email:i,mobile:s}},logout:async function(e){const t=await Er(e);if(t.code&&t.code>0)return t;const r=Ur.command;return await P.doc(t.uid).update({token:r.pull(e)}),{code:0,msg:"退出成功"}},getRoleByUid:async function({uid:e}){if(!e)return{code:"PARAMETER_ERROR",msg:"用户Id不能为空"};const t=await P.doc(e).get();return 0===t.data.length?{code:"USER_NOT_EXIST",msg:"用户不存在"}:{code:0,msg:"获取角色成功",role:t.data[0].role||[]}},getPermissionByRole:async function({roleID:e}){if(!e)return{code:"PARAMETER_ERROR",msg:"角色ID不能为空"};if("admin"===e){return{code:0,msg:"获取权限成功",permission:(await D.limit(1e4).get()).data.map(e=>e.permission_id)}}const t=await C.where({role_id:e}).get();return 0===t.data.length?{code:"ROLE_NOT_EXIST",msg:"角色不存在"}:{code:0,msg:"获取权限成功",permission:t.data[0].permission||[]}},getPermissionByUid:async function({uid:e}){const t=await P.aggregate().match({_id:e}).project({role:!0}).unwind("$role").lookup({from:"uni-id-roles",localField:"role",foreignField:"role_id",as:"roleDetail"}).unwind("$roleDetail").replaceRoot({newRoot:"$roleDetail"}).end(),r=[];return t.data.forEach(e=>{Array.prototype.push.apply(r,e.permission)}),{code:0,msg:"获取权限成功",permission:j(r)}},bindRole:async function({uid:e,roleList:t,reset:r=!1}){const n={};return"string"==typeof t&&(t=[t]),n.role=r?t:Fr.push(t),await P.doc(e).update(n),{code:0,msg:"角色绑定成功"}},bindPermission:async function({roleID:e,permissionList:t,reset:r=!1}){const n={};return"string"==typeof t&&(t=[t]),n.permission=r?t:Fr.push(t),await C.where({role_id:e}).update(n),{code:0,msg:"权限绑定成功"}},unbindRole:async function({uid:e,roleList:t}){return"string"==typeof t&&(t=[t]),await P.doc(e).update({role:Fr.pull(Fr.in(t))}),{code:0,msg:"角色解绑成功"}},unbindPermission:async function({roleID:e,permissionList:t}){return"string"==typeof t&&(t=[t]),await C.where({role_id:e}).update({permission:Fr.pull(Fr.in(t))}),{code:0,msg:"权限解绑成功"}},addRole:async function({roleID:e,roleName:t,comment:r,permission:n=[]}){return e?"admin"===e?{code:"PARAMETER_ERROR",msg:"不可新增roleID为admin的角色"}:(await C.add({role_id:e,role_name:t,comment:r,permission:n,create_date:Date.now()}),{code:0,msg:"角色新增成功"}):{code:"PARAMETER_ERROR",msg:"roleID不能为空"}},addPermission:async function({permissionID:e,permissionName:t,comment:r}){return e?(await D.add({permission_id:e,permission_name:t,comment:r,create_date:Date.now()}),{code:0,msg:"权限新增成功"}):{code:"PARAMETER_ERROR",msg:"permissionID不能为空"}},getRoleList:async function({limit:e=20,offset:t=0,needTotal:r=!0}){const n={code:0,msg:"获取角色列表成功",roleList:(await C.skip(t).limit(e).get()).data};if(r){const{total:e}=await C.where({_id:Fr.exists(!0)}).count();n.total=e}return n},getRoleInfo:async function(e){const t=await C.where({role_id:e}).get();return 0===t.data.length?{code:"ROLE_ID_NOT_EXISTS",msg:"角色ID不存在"}:{code:0,...t.data[0]}},updateRole:async function({roleID:e,roleName:t,comment:r,permission:n}){return e?(await C.where({role_id:e}).update({role_name:t,comment:r,permission:n}),{code:0,msg:"角色更新成功"}):{code:"PARAMETER_ERROR",msg:"参数错误,roleID不能为空"}},deleteRole:async function({roleID:e}){const t=m(e);if("string"===t)e=[e];else if("array"!==t)throw new Error("roleID只能为字符串或者数组");return await C.where({role_id:Fr.in(e)}).remove(),await P.where({role:Fr.elemMatch(Fr.in(e))}).update({role:Fr.pullAll(e)}),{code:0,msg:"角色删除成功"}},getPermissionList:async function({limit:e=20,offset:t=0,needTotal:r=!0}){const n={code:0,msg:"获取权限列表成功",permissionList:(await D.skip(t).limit(e).get()).data};if(r){const{total:e}=await D.where({_id:Fr.exists(!0)}).count();n.total=e}return n},getPermissionInfo:async function(e){const t=await D.where({permission_id:e}).get();return 0===t.data.length?{code:"PERMISSION_ID_NOT_EXISTS",msg:"权限ID不存在"}:{code:0,...t.data[0]}},updatePermission:async function({permissionID:e,permissionName:t,comment:r}){return e?(await D.where({permission_id:e}).update({permission_name:t,comment:r}),{code:0,msg:"权限更新成功"}):{code:"PARAMETER_ERROR",msg:"参数错误,permissionID不能为空"}},deletePermission:async function({permissionID:e}){const t=m(e);if("string"===t)e=[e];else if("array"!==t)throw new Error("permissionID只能为字符串或者数组");return await D.where({permission_id:Fr.in(e)}).remove(),await C.where({permission:Fr.elemMatch(Fr.in(e))}).update({permission:Fr.pullAll(e)}),{code:0,msg:"权限删除成功"}},bindAlipay:async function({uid:e,code:t,platform:r}){const n=r||__ctx__.PLATFORM,{openid:o}=await Dr({platform:n}).code2Session(t);if(!o)return{code:60401,msg:"获取openid失败"};const i=await P.where({ali_openid:o}).get();return i&&i.data&&i.data.length>0?{code:60402,msg:"支付宝绑定失败,此账号已被绑定"}:(await P.doc(e).update({ali_openid:o}),{code:0,msg:"绑定成功"})},bindEmail:async function({uid:e,email:t,code:r}){const n=await P.where({email:t,email_confirmed:1}).count();if(n&&n.total>0)return{code:60201,msg:"此邮箱已被绑定"};if(r){const e=await Lr({email:t,code:r,type:"bind"});if(0!==e.code)return e}return E("bindEmail -> upRes",await P.doc(e).update({email:t,email_confirmed:1})),{code:0,msg:"邮箱绑定成功"}},bindMobile:async function({uid:e,mobile:t,code:r}){const n=await P.where({mobile:t,mobile_confirmed:1}).count();if(n&&n.total>0)return{code:60101,msg:"此手机号已被绑定"};if(r){const e=await Lr({mobile:t,code:r,type:"bind"});if(0!==e.code)return e}return E("bindMobile -> upRes",await P.doc(e).update({mobile:t,mobile_confirmed:1})),{code:0,msg:"手机号码绑定成功"}},bindWeixin:async function({uid:e,code:t,platform:r}){const n=r||__ctx__.PLATFORM,{openid:o,unionid:i}=await Vr({platform:n})["mp-weixin"===n?"code2Session":"getOauthAccessToken"](t);if(!o)return{code:60301,msg:"获取openid失败"};const s=Jr.command,a=[{wx_openid:{[n]:o}}];i&&a.push({wx_unionid:i});const c=await P.where(s.or(...a)).get();if(c&&c.data&&c.data.length>0)return{code:60302,msg:"微信绑定失败,此微信账号已被绑定"};const u={wx_openid:{[n]:o}};return i&&(u.wx_unionid=i),await P.doc(e).update(u),{code:0,msg:"绑定成功"}},unbindAlipay:async function(e){const t=Gr.command,r=await P.doc(e).update({ali_openid:t.remove()});return E("upRes:",r),1===r.updated?{code:0,msg:"支付宝解绑成功"}:{code:70401,msg:"支付宝解绑失败,请稍后再试"}},unbindEmail:async function({uid:e,email:t,code:r}){if(r){const e=await Lr({email:t,code:r,type:"unbind"});if(0!==e.code)return e}const n=zr.command;return 1===(await P.where({_id:e,email:t}).update({email:n.remove(),email_confirmed:n.remove()})).updated?{code:0,msg:"邮箱解绑成功"}:{code:70201,msg:"邮箱解绑失败,请稍后再试"}},unbindMobile:async function({uid:e,mobile:t,code:r}){if(r){const e=await Lr({mobile:t,code:r,type:"unbind"});if(0!==e.code)return e}const n=Wr.command;return 1===(await P.where({_id:e,mobile:t}).update({mobile:n.remove(),mobile_confirmed:n.remove()})).updated?{code:0,msg:"手机号解绑成功"}:{code:70101,msg:"手机号解绑失败,请稍后再试"}},unbindWeixin:async function(e){const t=Xr.command,r=await P.doc(e).update({wx_openid:t.remove(),wx_unionid:t.remove()});return E("upRes:",r),1===r.updated?{code:0,msg:"微信解绑成功"}:{code:70301,msg:"微信解绑失败,请稍后再试"}},code2SessionAlipay:async function(e){let t=e;"string"==typeof e&&(t={code:e});try{const e=t.platform||__ctx__.PLATFORM,r=await Dr({platform:e}).code2Session(t.code);return r.openid?{code:0,msg:"",...r}:{code:80701,msg:"获取openid失败"}}catch(e){return{code:80702,msg:e.message}}},code2SessionWeixin:async function(e){let t=e;"string"==typeof e&&(t={code:e});try{const e=t.platform||__ctx__.PLATFORM,r=await Vr({platform:e})["mp-weixin"===e?"code2Session":"getOauthAccessToken"](t.code);return r.openid?{code:0,msg:"",...r}:{code:80601,msg:"获取openid失败"}}catch(e){return{code:80602,msg:e.message}}},init:function(e){M=e},encryptPwd:N,checkToken:Er,createToken:Sr,setVerifyCode:Br,verifyCode:Lr,sendSmsCode:async function({mobile:e,code:t,type:r,templateId:n}){if(!e)throw new Error("手机号码不可为空");if(t||(t=x()),!r)throw new Error("验证码类型不可为空");const o=$();let i=o&&o.service&&o.service.sms;if(!i)throw new Error("请在config.json或init方法中配置service.sms下短信相关参数");i=Object.assign({codeExpiresIn:300},i);const s=["smsKey","smsSecret"];if(!n&&!i.name)throw new Error("不传入templateId时应在config.json或init方法内service.sms下配置name字段以正确使用uniID_code模板");for(let e=0,t=s.length;e<t;e++){const t=s[e];if(!i[t])throw new Error("请在config.json或init方法中service.sms下配置"+t)}const{name:a,smsKey:c,smsSecret:u,codeExpiresIn:f}=i;let d;switch(r){case"login":d="登录";break;default:d="验证手机号"}try{const o={name:a,code:t,action:d,expMinute:""+Math.round(f/60)};a&&(o.name=a),await uniCloud.sendSms({smsKey:c,smsSecret:u,phone:e,templateId:n||"uniID_code",data:o});const i=await Br({mobile:e,code:t,expiresIn:f,type:r});return i.code>=0?i:{code:0,msg:"验证码发送成功"}}catch(e){return{code:50301,msg:"验证码发送失败, "+e.message}}}});const Yr=["init","encryptPwd","createToken"],Qr={};for(const e in Zr)Yr.indexOf(e)>-1?Qr[e]=Zr[e]:Qr[e]=O(Zr[e]);module.exports=Qr;
{
"name": "uni-id",
"version": "2.0.3",
"description": "uni-id for uniCloud",
"main": "index.js",
"homepage": "https://uniapp.dcloud.io/uniCloud/uni-id",
"repository": {
"type": "git",
"url": "git+https://gitee.com/dcloud/uni-id.git"
},
"author": "",
"license": "Apache-2.0"
}
\ No newline at end of file
async function getUserId(token) {
const res = await uniCloud.httpclient.request("https://system.banshouhui.com/wxh-worker-rest/rest/" + token +
"/myinfo/id", {
method: 'GET'
})
return res ? res.data : ""
}
module.exports = {
getUserId
}
{
"name": "user-common",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
'use strict';
const {
getUserId
} = require('user-common')
exports.main = async (event, context) => {
const db = uniCloud.database();
const _ = db.command
const $ = db.command.aggregate
const user_id = getUserId(event.token)
let res = await db.collection("standardV2").aggregate().lookup({
from: 'user_upload_file',
let: {
standard_id: '$_id'
},
pipeline: $.pipeline()
.match(_.expr($.and([
$.eq(['$standard_id', '$$standard_id']),
$.eq(['$user_id', user_id])
]))).sort({
create_date: -1
}).limit(5)
.project({
"_id": 0,
"url": 1,
})
.done(),
as: 'imageList'
}).end()
let data = res.data
const map = new Map()
for (let i = 0; i < data.length; i++) {
data[i].imageList = data[i].imageList.map(a => a.url)
let key = data[i].type
if (map.has(key)) {
data[i].images = data[i].images.split(",")
map.get(key).list.push(data[i])
} else {
data[i].images = data[i].images.split(",")
map.set(key, {
type: key,
list: [data[i]]
})
}
}
return [...map.values()]
};
{
"name": "getGroupStandardV2",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"user-common": "file:../common/user-common"
}
}
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"field": "brand_id"
}
'use strict';
exports.main = async (event, context) => {
const field_name = event.field
const param = {
"classify_id": event.classify_id,
"system_id": event.system_id,
"brand_id": event.brand_id
}
const db = uniCloud.database()
let res = await db.collection("standardV2").aggregate().match(param).group({
_id: "$" + event.field
}).end();
res = await db.collection('dictionary').field({
"_id": true,
"name": true
}).where({
_id: db.command.in(Array.from(res.data, item => item._id))
}).get()
return res.data
};
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{
"token": ""
"system_id": "79550af260555cc20afb34156c94b32c"
}
'use strict';
const {
getUserId
} = require('user-common')
exports.main = async (event, context) => {
//event为客户端上传的参数
const user_id = getUserId(event.token)
const collection = uniCloud.database().collection("user_watermark").field({
'_id': false
})
let res = await collection.where({
user_id: user_id,
system_id: event.system_id
}).get()
if (!res.data || res.data.length <= 0) { // 用户没有 获取模板
res = await collection.where({
system_id: event.system_id
}).get()
}
return res.data[0]
};
{
"name": "getUserWatermark",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"user-common": {
"version": "file:../common/user-common"
}
}
}
{
"name": "getUserWatermark",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"user-common": "file:../common/user-common"
}
}
'use strict';
const {
getUserId
} = require('user-common')
exports.main = async (event, context) => {
//event为客户端上传的参数
let workerId = getUserId(event.token)
if (workerId) {
await uniCloud.database().collection("user_upload_file").add({
"user_id": workerId,
"standard_id": event.standardId,
url: event.url,
create_date: new Date()
})
return true
}
return false
};
{
"name": "saveImage",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"user-common": "file:../common/user-common"
}
}
'use strict';
const {
getUserId
} = require('user-common')
exports.main = async (event, context) => {
let user_id = getUserId(event.token)
const watermark = event.watermark
user_id = '12312313'
if (user_id) {
watermark.user_id = user_id
const collection = uniCloud.database().collection("user_watermark");
const res = await collection.where({
user_id: user_id,
system_id: watermark.system_id
}).get()
if (res.data && res.data.length > 0) {
collection.doc(res.data[0]._id).update(watermark)
} else {
collection.add(watermark)
}
}
//返回数据给客户端
return true
};
{
"name": "saveUserWatermark",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"user-common": {
"version": "file:../common/user-common"
}
}
}
{
"name": "saveUserWatermark",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"user-common": "file:../common/user-common"
}
}
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{
"token": "12312313",
"watermark": {
"has_origin": true,
"lower_right": {
"body": [{
"watemark_text": "时间",
"watemark_type": "时间",
"watemark_value": ""
}, {
"watemark_text": "地址",
"watemark_type": "地址",
"watemark_value": ""
}, {
"watemark_text": "经度",
"watemark_type": "经度",
"watemark_value": ""
}, {
"watemark_text": "纬度",
"watemark_type": "纬度",
"watemark_value": ""
}],
"title_text": "OR000000001111"
},
"mid_text": "现场拍照",
"system_id": "79550af260555cc20afb34156c94b32c",
"user_id": ""
}
}
{ {
"brand": { "dictionary": {
"data": [ "data": [{
{ "type": "classify",
"_id": "a8831daa5fe2b20e0086101c0c0a7a1c", "name": "充电桩"
"code": "B0001", }, {
"name": "广汽丰田", "type": "system",
"product_code": "P0001" "name": "挚达系统"
}, }, {
{ "type": "system",
"_id": "eb0c51035fe2b2240072abd73977fb07", "name": "空灵系统"
"name": "广汽新能源", }, {
"product_code": "P0001", "type": "brand",
"code": "B0002" "name": "广汽丰田"
}, }, {
{ "type": "brand",
"_id": "2424fa985fe2b22d00661c595bf1790c", "name": "广汽新能源"
"code": "B0003", }, {
"name": "东风本田", "type": "brand",
"product_code": "P0001" "name": "东风本田"
}, {
"type": "brand",
"name": "沃尔沃"
}, {
"type": "brand",
"name": "北汽"
}, {
"type": "brand",
"name": "吉利"
}, {
"type": "brand",
"name": "保时捷"
}, {
"type": "brand",
"name": "广汽蔚来"
}, {
"type": "brand",
"name": "一汽奥迪"
}, {
"type": "brand",
"name": "一汽大众"
}, {
"type": "brand",
"name": "米家"
}],
"index": [],
"schema": {
"bsonType": "object",
"required": [
"type",
"name"
],
"permission": {
"read": true,
"create": true,
"update": false,
"delete": false
}, },
{ "properties": {
"_id": "2424fa985fe2b23c00661d1076fecb44", "_id": {
"code": "B0004", "description": "ID,系统自动生成"
"name": "沃尔沃",
"product_code": "P0001"
}, },
{ "type": {
"_id": "2f6ab8515fe2b244005b72a45566efd1", "bsonType": "string",
"code": "B0005", "description": "数据类型"
"name": "北汽",
"product_code": "P0001"
}, },
{ "name": {
"_id": "9f2a34705fe2b24c0074f91567d54019", "bsonType": "string",
"code": "B0006", "description": "数据名称"
"name": "吉利",
"product_code": "P0001"
} }
],
"index": [
{
"IndexName": "code",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "code",
"Direction": "1"
} }
],
"MgoIsUnique": true
} }
}, },
"standardV2": {
"data": [{
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "79550af260555cc20afb3417731a827c",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"image_count": "1",
"images": "https://cloud-bak.banshouhui.com/FkxetdqtVgCN_Xz53w6KqQsEC3K-",
"name": "不需要报装声明(不需要报装必填)",
"type": "勘察部分"
},
{ {
"IndexName": "category_openid_index_",
"MgoKeySchema": { "classify_id": "79550af260555cc20afb34146966a2c4",
"MgoIndexKeys": [ "system_id": "79550af260555cc20afb34156c94b32c",
{ "brand_id": "79550af260555cc20afb341875d0f7ba",
"Name": "_openid", "describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"Direction": "1" "image_count": "1",
} "images": "https://cloud-bak.banshouhui.com/FkxetdqtVgCN_Xz53w6KqQsEC3K-",
], "name": "不需要报装声明(不需要报装必填)",
"MgoIsUnique": false "type": "勘察部分"
}
} }
], ],
"index": [],
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
...@@ -73,7 +105,7 @@ ...@@ -73,7 +105,7 @@
], ],
"permission": { "permission": {
"read": true, "read": true,
"create": false, "create": true,
"update": false, "update": false,
"delete": false "delete": false
}, },
...@@ -81,53 +113,54 @@ ...@@ -81,53 +113,54 @@
"_id": { "_id": {
"description": "ID,系统自动生成" "description": "ID,系统自动生成"
}, },
"product_code": { "classify_id": {
"bsonType": "string",
"description": "字典,数据分类为类型的ID"
},
"system_id": {
"bsonType": "string",
"description": "字典,数据分类为系统的ID"
},
"brand_id": {
"bsonType": "string", "bsonType": "string",
"description": "产品编码" "description": "字典,数据分类为品牌的ID"
}, },
"code": { "type": {
"bsonType": "string", "bsonType": "string",
"description": "品牌编码" "description": "标准分类"
}, },
"name": { "name": {
"bsonType": "string", "bsonType": "string",
"description": "品牌名称" "description": "名称"
}
}
}
}, },
"product": { "describe": {
"data": [ "bsonType": "string",
{ "description": "描述、要求"
"_id": "9f2a34705fe1cef5006a64ce7c380413", },
"code": "P0001", "image_count": {
"name": "充电桩", "bsonType": "string",
"type": "product" "description": "图片基本要求数量"
} },
], "images": {
"index": [ "bsonType": "string",
{ "description": "图片url,逗号分隔"
"IndexName": "code",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "code",
"Direction": "1"
} }
],
"MgoIsUnique": true
} }
} }
], },
"user_upload_file": {
"data": [],
"index": [],
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"code", "user_id",
"name" "standard_id",
"url"
], ],
"permission": { "permission": {
"read": true, "read": true,
"create": false, "create": true,
"update": false, "update": false,
"delete": false "delete": false
}, },
...@@ -135,1384 +168,218 @@ ...@@ -135,1384 +168,218 @@
"_id": { "_id": {
"description": "ID,系统自动生成" "description": "ID,系统自动生成"
}, },
"code": { "user_id": {
"bsonType": "string", "bsonType": "string",
"description": "产品编码" "description": "用户ID"
}, },
"name": { "standard_id": {
"bsonType": "string", "bsonType": "string",
"description": "产品名称" "description": "规范ID"
},
"url": {
"bsonType": "string",
"description": "url"
},
"create_date": {
"bsonType": "Date",
"description": "创建时间"
} }
} }
} }
}, },
"standard": { "user_watermark": {
"data": [{ "data": [{
"_id": 1, "user_id": "",
"product_code": "P0001", "system_id": "79550af260555cc20afb34156c94b32c",
"brand_code": "B0001", "has_origin": true,
"type": "勘察部分", "mid_text": "现场拍照",
"name": "不需要报装声明(不需要报装必填)", "lower_right": {
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传", "title_text": "",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkxetdqtVgCN_Xz53w6KqQsEC3K-.jpeg", "body": [{
"image_count": 1 "watemark_type": "时间",
}, { "watemark_text": "时间",
"_id": 2, "watemark_value": ""
"product_code": "P0001", }, {
"brand_code": "B0001", "watemark_type": "地址",
"type": "勘察部分", "watemark_text": "地址",
"name": "电源点照片", "watemark_value": ""
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。", }, {
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ6AjimiYWWVVQixQHqbXeUFF0X.jpeg,https://s-fa.banshouhui.com/uploads/20201223/lnP53fQkI4aNb_AD94ijfGcerwrQ.png", "watemark_type": "经度",
"image_count": 2 "watemark_text": "经度",
}, { "watemark_value": ""
"_id": 3, }, {
"product_code": "P0001", "watemark_type": "纬度",
"brand_code": "B0001", "watemark_text": "纬度",
"type": "勘察部分", "watemark_value": ""
"name": "车位照片", }, {
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n", "watemark_type": "备注",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ38hb3V8uDK36kG8wLeRFXrEC2.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png", "watemark_text": "",
"image_count": 2 "watemark_value": ""
}, { }, {
"_id": 4, "watemark_type": "备注",
"product_code": "P0001", "watemark_text": "",
"brand_code": "B0001", "watemark_value": ""
"type": "勘察部分", }, {
"name": "走线示意照片", "watemark_type": "备注",
"describe": "安装线路,标识走向(可多张照片)", "watemark_text": "",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png", "watemark_value": ""
"image_count": 2 }, {
}, { "watemark_type": "备注",
"_id": 5, "watemark_text": "",
"product_code": "P0001", "watemark_value": ""
"brand_code": "B0001", }, {
"type": "勘察部分", "watemark_type": "备注",
"name": "施工方案照片", "watemark_text": "",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚", "watemark_value": ""
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg", }]
"image_count": 1 }
}, {
"_id": 6,
"product_code": "P0001",
"brand_code": "B0001",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、使用广汽丰田专用版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkOriN6D6Axy5hyvp7XmwvrneCXm.jpeg",
"image_count": 1
}, {
"_id": 7,
"product_code": "P0001",
"brand_code": "B0001",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、使用广汽丰田专用版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fvw9b3dA9FGvkFDFqOqwh4nkVsTV.png",
"image_count": 1
}, {
"_id": 8,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 9,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n安装前,需在现场拍摄\\n敷设管材完整标识,可识\\n别阻燃标记和制造厂标、注\\n册商标、厂家名称、型号、\\n执行标准 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fkw2p7YBN25w6ohQF1dXUHMNXi25.jpeg",
"image_count": 1
}, {
"_id": 10,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fh74LcVG0ZNBG6YyUfl7QB4JKj40.jpeg",
"image_count": 1
}, {
"_id": 11,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fmnjj_c6K5hh2oY5c2S8czKNZkzE.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fn_iCx-givrj42OMTueSRRg8Eypy.jpeg",
"image_count": 2
}, {
"_id": 12,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n拍摄清晰完整,充电桩编号\\n清晰可辨 丰田充电桩编码为:如图条码下方编码:201028110132",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FsVDVOQqpMjRfKXbWYpgBpuP1dUl.jpeg",
"image_count": 1
}, {
"_id": 13,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjptCyN5Fhs_me6mTlrIyZo1lW8a.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnuG81JaBR0M1jQs1vUDbfDKqjvD.jpeg",
"image_count": 2
}, {
"_id": 14,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fv55VaeIhPRE9wxb7fGaWPkNe9xN.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FoXEluUuKFhdsINRh3SGqSnHfcMa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fit9qG8Nyerj4zn3RvLnpHuqCBiV.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 4
}, {
"_id": 15,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 16,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FuyoiJlCFbZiuSXwfDb8FXddr0Y0.jpeg",
"image_count": 1
}, {
"_id": 17,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FuvuNOChYgGqdGIVcARmiudmziU9.jpeg",
"image_count": 1
}, {
"_id": 18,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 19,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqKvqqFiQePq7CnTYSEDnyp53-ZU.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FuUsbPRssDR-TVDqXF5kcFGiM2yd.jpeg",
"image_count": 2
}, {
"_id": 20,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "安装确认",
"describe": "\\n1、使用广汽丰田专用版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人\\n或指定代理人签字 \\n4、表格扫描清晰,文字可\\n辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FuHaEMWk6rogeNoctOo19Kl62B3C.jpeg",
"image_count": 1
}, {
"_id": 21,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 22,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 23,
"product_code": "P0001",
"brand_code": "B0001",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 24,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "不需要报装声明(不需要报装必填)",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkxetdqtVgCN_Xz53w6KqQsEC3K-.jpeg",
"image_count": 1
}, {
"_id": 25,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "电源点照片",
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ6AjimiYWWVVQixQHqbXeUFF0X.jpeg,https://s-fa.banshouhui.com/uploads/20201223/lnP53fQkI4aNb_AD94ijfGcerwrQ.png",
"image_count": 2
}, {
"_id": 26,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "车位照片",
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ38hb3V8uDK36kG8wLeRFXrEC2.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 2
}, {
"_id": 27,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "走线示意照片",
"describe": "安装线路,标识走向(可多张照片)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png",
"image_count": 2
}, {
"_id": 28,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "施工方案照片",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg",
"image_count": 1
}, {
"_id": 29,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、若车企无专用版本,全部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fkylvdb9fUFS6T3m2EKZpcvXr_qB.jpeg",
"image_count": 1
}, {
"_id": 30,
"product_code": "P0001",
"brand_code": "B0002",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、若车企无专用版本,全部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FvEGp2cgNnwiuFs_d3MaqjwFsldo.jpeg",
"image_count": 1
}, {
"_id": 31,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 32,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n安装前,需在现场拍摄\\n敷设管材完整标识,可识\\n别阻燃标记和制造厂标、注\\n册商标、厂家名称、型号、\\n执行标准 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fkw2p7YBN25w6ohQF1dXUHMNXi25.jpeg",
"image_count": 1
}, {
"_id": 33,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fh74LcVG0ZNBG6YyUfl7QB4JKj40.jpeg",
"image_count": 1
}, {
"_id": 34,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjBaD7O3n2du4E_XPoPhFYDL3cp1.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fsk3cWA5NAx8MAFUGNWNpJmI7OGB.jpeg",
"image_count": 2
}, {
"_id": 35,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n1.拍摄清晰完整,充电桩编号\\n清晰可辨 ,广汽新能源充电桩必须贴上挚达科技400服务热线。",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fi_nuqbh84pim5tYp_N2ku8oPT8A.jpeg",
"image_count": 1
}, {
"_id": 36,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjptCyN5Fhs_me6mTlrIyZo1lW8a.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnuG81JaBR0M1jQs1vUDbfDKqjvD.jpeg",
"image_count": 2
}, {
"_id": 37,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fv55VaeIhPRE9wxb7fGaWPkNe9xN.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FoXEluUuKFhdsINRh3SGqSnHfcMa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fit9qG8Nyerj4zn3RvLnpHuqCBiV.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 4
}, {
"_id": 38,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 39,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FhIulyJDoMIWMU2kc539CdU0tDUv.jpeg",
"image_count": 1
}, {
"_id": 40,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 1
}, {
"_id": 41,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 42,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqKvqqFiQePq7CnTYSEDnyp53-ZU.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FuUsbPRssDR-TVDqXF5kcFGiM2yd.jpeg",
"image_count": 2
}, {
"_id": 43,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "安装确认",
"describe": "\\n1、若车企无专用版本,全\\n部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人\\n或指定代理人签字 \\n4、表格扫描清晰,文字可\\n辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fq2GElfa3I_9-qPBVR59SlMrmbQJ.jpeg",
"image_count": 1
}, {
"_id": 44,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 45,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 46,
"product_code": "P0001",
"brand_code": "B0002",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 47,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "不需要报装声明(不需要报装必填)",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkxetdqtVgCN_Xz53w6KqQsEC3K-.jpeg",
"image_count": 1
}, {
"_id": 48,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "电源点照片",
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ6AjimiYWWVVQixQHqbXeUFF0X.jpeg,https://s-fa.banshouhui.com/uploads/20201223/lnP53fQkI4aNb_AD94ijfGcerwrQ.png",
"image_count": 2
}, {
"_id": 49,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "车位照片",
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ38hb3V8uDK36kG8wLeRFXrEC2.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 2
}, {
"_id": 50,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "走线示意照片",
"describe": "安装线路,标识走向(可多张照片)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png",
"image_count": 2
}, {
"_id": 51,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "施工方案照片",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg",
"image_count": 1
}, {
"_id": 52,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、若车企无专用版本,全部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqdtxfhayQnTm_8uWcNzdPG1W8NC.jpeg",
"image_count": 1
}, {
"_id": 53,
"product_code": "P0001",
"brand_code": "B0003",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、若车企无专用版本,全部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fl1l1Griiga0-SDjOGaxnm3Mzw39.jpeg",
"image_count": 1
}, {
"_id": 54,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 55,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n安装前,需在现场拍摄\\n敷设管材完整标识,可识\\n别阻燃标记和制造厂标、注\\n册商标、厂家名称、型号、\\n执行标准 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fkw2p7YBN25w6ohQF1dXUHMNXi25.jpeg",
"image_count": 1
}, {
"_id": 56,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fh74LcVG0ZNBG6YyUfl7QB4JKj40.jpeg",
"image_count": 1
}, {
"_id": 57,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjBaD7O3n2du4E_XPoPhFYDL3cp1.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fsk3cWA5NAx8MAFUGNWNpJmI7OGB.jpeg",
"image_count": 2
}, {
"_id": 58,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n1.拍摄清晰完整,充电桩编号\\n清晰可辨 ,东风本田的充电桩编码为产品编号",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fon-_MxpTiQ5bvAXgZuuj3Ay5ge1.jpeg",
"image_count": 1
}, {
"_id": 59,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjptCyN5Fhs_me6mTlrIyZo1lW8a.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnuG81JaBR0M1jQs1vUDbfDKqjvD.jpeg",
"image_count": 2
}, {
"_id": 60,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fv55VaeIhPRE9wxb7fGaWPkNe9xN.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FoXEluUuKFhdsINRh3SGqSnHfcMa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fit9qG8Nyerj4zn3RvLnpHuqCBiV.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 4
}, {
"_id": 61,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 62,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FnG0OUJ-XBy78F8JTtzixyC2icF6.jpeg",
"image_count": 1
}, {
"_id": 63,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fixn3HXtfVwcIMKWm6Uo7ilV-V7q.jpeg",
"image_count": 1
}, {
"_id": 64,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 65,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqKvqqFiQePq7CnTYSEDnyp53-ZU.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FuUsbPRssDR-TVDqXF5kcFGiM2yd.jpeg",
"image_count": 2
}, {
"_id": 66,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "安装确认",
"describe": "\\n1、若车企无专用版本,全\\n部使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人\\n或指定代理人签字 \\n4、表格扫描清晰,文字可\\n辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FuOfYgfzMv-JovXBjzxs679zOo6Y.jpeg",
"image_count": 1
}, {
"_id": 67,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 68,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 69,
"product_code": "P0001",
"brand_code": "B0003",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 70,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "不需要报装声明(不需要报装必填)",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkxetdqtVgCN_Xz53w6KqQsEC3K-.jpeg",
"image_count": 1
}, {
"_id": 71,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "电源点照片",
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ6AjimiYWWVVQixQHqbXeUFF0X.jpeg,https://s-fa.banshouhui.com/uploads/20201223/lnP53fQkI4aNb_AD94ijfGcerwrQ.png",
"image_count": 2
}, {
"_id": 72,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "车位照片",
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ38hb3V8uDK36kG8wLeRFXrEC2.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 2
}, {
"_id": 73,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "走线示意照片",
"describe": "安装线路,标识走向(可多张照片)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png",
"image_count": 2
}, {
"_id": 74,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "施工方案照片",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg",
"image_count": 1
}, {
"_id": 75,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fl1NkfnTSkzywb7zrrD7kDI6isc9.jpeg",
"image_count": 1
}, {
"_id": 76,
"product_code": "P0001",
"brand_code": "B0004",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、使用沃尔沃专用收费标准 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjdryO_yvmUlohPSPvoe2Z6Dc3U8.jpeg",
"image_count": 1
}, {
"_id": 77,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 78,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n安装前,需在现场拍摄\\n敷设管材完整标识,可识\\n别阻燃标记和制造厂标、注\\n册商标、厂家名称、型号、\\n执行标准 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fkw2p7YBN25w6ohQF1dXUHMNXi25.jpeg",
"image_count": 1
}, {
"_id": 79,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fh74LcVG0ZNBG6YyUfl7QB4JKj40.jpeg",
"image_count": 1
}, {
"_id": 80,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FnqSMJ64vD1TH2HvCSuHOQdTlsiO.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnpNl5A1ohOcl8bunN4ZdcQJivw8.jpeg",
"image_count": 2
}, {
"_id": 81,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n1.拍摄清晰完整,充电桩编号\\n清晰可辨 ,沃尔沃的充电桩编码为条码下面编码:FJ30160018",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoXa7PR-5vsgr8yiYYmAZE-8fJeG.jpeg",
"image_count": 1
}, {
"_id": 82,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjptCyN5Fhs_me6mTlrIyZo1lW8a.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnuG81JaBR0M1jQs1vUDbfDKqjvD.jpeg",
"image_count": 2
}, {
"_id": 83,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fv55VaeIhPRE9wxb7fGaWPkNe9xN.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FoXEluUuKFhdsINRh3SGqSnHfcMa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fit9qG8Nyerj4zn3RvLnpHuqCBiV.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 4
}, {
"_id": 84,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 85,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fin9grZn3uQW962WOV3DXuvyRfuC.jpeg",
"image_count": 1
}, {
"_id": 86,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqxDvSuZvSXKLX4RYtSOzE4N_it8.jpeg",
"image_count": 1
}, {
"_id": 87,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 88,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqKvqqFiQePq7CnTYSEDnyp53-ZU.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FuUsbPRssDR-TVDqXF5kcFGiM2yd.jpeg",
"image_count": 2
}, {
"_id": 89,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "安装确认",
"describe": "沃尔沃需要填写两份确认单:1.安装确认单;2。立柱确认单",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FovtDQxYzVGQgvtfB27GIdTMPNpw.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FiimxcZ0CdOve17Nbg-8kyiL7QNG.jpeg",
"image_count": 2
}, {
"_id": 90,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 91,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 92,
"product_code": "P0001",
"brand_code": "B0004",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 93,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "不需要报装声明(不需要报装必填)",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkxetdqtVgCN_Xz53w6KqQsEC3K-.jpeg",
"image_count": 1
}, {
"_id": 94,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "电源点照片",
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ6AjimiYWWVVQixQHqbXeUFF0X.jpeg,https://s-fa.banshouhui.com/uploads/20201223/lnP53fQkI4aNb_AD94ijfGcerwrQ.png",
"image_count": 2
}, {
"_id": 95,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "车位照片",
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoJ38hb3V8uDK36kG8wLeRFXrEC2.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 2
}, {
"_id": 96,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "走线示意照片",
"describe": "安装线路,标识走向(可多张照片)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png",
"image_count": 2
}, {
"_id": 97,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "施工方案照片",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg",
"image_count": 1
}, {
"_id": 98,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fhvvn5UWe9VBxEN6dgGo-_YEPMND.jpeg",
"image_count": 1
}, {
"_id": 99,
"product_code": "P0001",
"brand_code": "B0005",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、使用北汽专用收费标准 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FsXgleS1Q63bNBD17_7Oudf4MMC2.jpeg",
"image_count": 1
}, {
"_id": 100,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 101,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n北汽要求用管材必须使用:JDG",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjyUVcEr-VjGayixnb5WcD-NyX9x.jpeg",
"image_count": 1
}, {
"_id": 102,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fh74LcVG0ZNBG6YyUfl7QB4JKj40.jpeg",
"image_count": 1
}, {
"_id": 103,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FnqSMJ64vD1TH2HvCSuHOQdTlsiO.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnpNl5A1ohOcl8bunN4ZdcQJivw8.jpeg",
"image_count": 2
}, {
"_id": 104,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n1.拍摄清晰完整,充电桩编号\\n清晰可辨 ,北汽的充电桩编码为条码下面编码:",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpcB8OwcXsxgIZTNwOUhRNNnR4lw.jpeg",
"image_count": 1
}, {
"_id": 105,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FjptCyN5Fhs_me6mTlrIyZo1lW8a.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnuG81JaBR0M1jQs1vUDbfDKqjvD.jpeg",
"image_count": 2
}, {
"_id": 106,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fv55VaeIhPRE9wxb7fGaWPkNe9xN.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FoXEluUuKFhdsINRh3SGqSnHfcMa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fit9qG8Nyerj4zn3RvLnpHuqCBiV.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 4
}, {
"_id": 107,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 108,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fin9grZn3uQW962WOV3DXuvyRfuC.jpeg",
"image_count": 1
}, {
"_id": 109,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqxDvSuZvSXKLX4RYtSOzE4N_it8.jpeg",
"image_count": 1
}, {
"_id": 110,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 111,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqKvqqFiQePq7CnTYSEDnyp53-ZU.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FuUsbPRssDR-TVDqXF5kcFGiM2yd.jpeg",
"image_count": 2
}, {
"_id": 112,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "安装确认",
"describe": "北汽使用挚达通用版本",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FhoN1EOjr_88zZasdXNLzhYnksFx.jpeg",
"image_count": 1
}, {
"_id": 113,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 114,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 115,
"product_code": "P0001",
"brand_code": "B0005",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 116,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "不需要报装声明(不需要报装必填)",
"describe": "已经报装新能源专用电表,不用签此放弃声明,且不用上传",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FilEo_UPmmP4eYsW3nYfucSVxI-b.jpeg",
"image_count": 1
}, {
"_id": 117,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "电源点照片",
"describe": "1.报装电表的,需要拍到电表参数及空开参数,拍照的时候需要对焦拍清楚 。 2.不报装电表的,需要拍上一级电源点,要查看上一级电源的是否达到负载要求,负载要求达不到,需要与用户沟通整改后才能安装。 3.安装前电源点相片必须",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkAK0_KVq_SD8oICeVMqff8eEitM.png",
"image_count": 1
}, {
"_id": 118,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "车位照片",
"describe": "1、车位号清晰可辨(如有) \\n2、能体现出安装车位周围环境 \\n",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 1
}, {
"_id": 119,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "走线示意照片",
"describe": "安装线路,标识走向(可多张照片)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgHJY--YXPKaYamqGcTy-hCqA5PL.png,https://s-fa.banshouhui.com/uploads/20201223/FmuleII-8amVKwl5nTqSFumwsRLj.png",
"image_count": 2
}, {
"_id": 120,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "施工方案照片",
"describe": "从电源点到充电桩整个安装线路的敷设方式、使用的材料及长度需标识清楚",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpifld8dB0l1KN6L6Y3M0VcxwFqX.jpeg",
"image_count": 1
}, {
"_id": 121,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "纸质勘察单",
"describe": "1、使用挚达版本 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨 \\n5、表格居中,不倾斜",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FiimxcZ0CdOve17Nbg-8kyiL7QNG.jpeg",
"image_count": 1
}, {
"_id": 122,
"product_code": "P0001",
"brand_code": "B0006",
"type": "勘察部分",
"name": "安装收费标准",
"describe": "1、使用沃尔沃专用收费标准 \\n2、填写完整,书写工整 \\n3、用户签字需由用户本人或指定代理人签字 \\n4、表格扫描清晰,文字可辨,表格居中,不倾斜 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FovtDQxYzVGQgvtfB27GIdTMPNpw.jpeg",
"image_count": 1
}, {
"_id": 123,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "电缆",
"describe": "套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fpff_EOGqfpHruQvPHrV974Ba9DV.jpeg",
"image_count": 1
}, {
"_id": 124,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "管材",
"describe": "\\n\\n安装前,需在现场拍摄\\n敷设管材完整标识,可识\\n别阻燃标记和制造厂标、注\\n册商标、厂家名称、型号、\\n执行标准 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FlpxYPnQ1lPx-nw8SpJA2AKin7N4.jpeg",
"image_count": 1
}, {
"_id": 125,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "安全施工标识",
"describe": "1、 安全警戒如:安全施工围栏、安全警示牌、警示带等 \\n2、 消方设备如:灭火器、灭火毯等",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FmKVntY4ZvJts7Zi5XWieZoozsiQ.jpeg",
"image_count": 1
}, {
"_id": 126,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "充电桩配件",
"describe": "\\n1、包装箱内全部资料及配\\n件,包含合格证、说明书、\\n检验报告、充电卡、遥控\\n器、漏保开关、挂板、螺丝\\n配件及立柱等 \\n2、充电卡编号(编号清晰\\n可辨) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FnAzABkukdKkjYzJJ0NmpMRpbUwp.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fpj_nhGVdrEJh_kH-5tfkCyFf2ZY.jpeg",
"image_count": 2
}, {
"_id": 127,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "充电桩编号",
"describe": "\\n\\n1.拍摄清晰完整,充电桩编号\\n清晰可辨 ,吉利的充电桩编码为充电桩充电线上的设备号:P开头的",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fk0BRzdMzJZ9PWQzJP7_OH28_tH2.jpeg",
"image_count": 1
}, {
"_id": 128,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "电源点照片",
"describe": "1、整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 \\n2、防触电警示标识可见",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FhGYjfVtrnq5L_uEWLlXm6uLDVS7.png",
"image_count": 1
}, {
"_id": 129,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "敷设路径",
"describe": "1、取电点往后 5 米以上安装敷设路径(可多张) \\n2、充电桩往前 5 米以上安装敷设路径(可多张)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fto-8AvtaUygDF7RznfxvPckGk6_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FnxK1vjUc_xV9swDpTfYgQZ17JiG.jpeghttps://s-fa.banshouhui.com/uploads/20201223/FqMSrKvUvg0dRGHq5vt1bbyfcSzV.jpeg",
"image_count": 2
}, {
"_id": 130,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "充电桩上端电源接线(空开漏保)",
"describe": "1、整个开关盒/配电箱布线尽收眼底,包含内部及外部进线及出线口,开关参数需清晰可辨,开关进出线端 火、零、地线接线及线缆标识清晰可辨,配电箱内接地端子至配电箱门接地全程可见,2、工作接地,地钎埋地照,永久接地标识清晰可见(若有此施工) ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoMPCXQ4izu75onBj0anjkfp2v1_.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fq14gfiEcdaiLWM8B6vIsP2YUNN7.jpeg",
"image_count": 2
}, {
"_id": 131,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "内部接线",
"describe": "\\n1、接线完整清晰 \\n2、火、零、地清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fuj_H9r4oJBUtgUhBJMc8pybd40S.jpeg",
"image_count": 1
}, {
"_id": 132,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "充电桩上电",
"describe": "\\n充电桩必须通电,可看到电源指示灯亮 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FojaDXkvRJx-4dCQ_QpZ2WFoxPkX.jpeg",
"image_count": 1
}, {
"_id": 133,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "充电测试",
"describe": "\\n\\n1、汽车充电照 \\n2、使用诊断盒测试电压输\\n入是否正常(若车不在现\\n场) 3.需要测量零火线电压及零对地电阻",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fs-mXu2_A32N0RNmE_jyTd7yBECa.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fihy7hIxzTx7b4mB2FLqyJwSfN9G.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Fl4x2W3_2lXHrlTPhivDqP2TGI2M.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FgH7s1efsbI6QmVl61QtHMiajgyA.jpeg",
"image_count": 4
}, {
"_id": 134,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "人桩合影",
"describe": "\\n1、充电桩必须通电,可看\\n到电源指示灯亮 \\n2、施工人员穿戴整齐规\\n范,身穿工作服佩戴安全帽 \\n3、开关盒/配电箱外部防触\\n电安全标识清晰可见 注意:人桩合影必须上传至少两张相片,一张师傅手持电工证的相片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoEk7gEwroBTxt6sNLM1RNXLXqYX.jpeg,https://s-fa.banshouhui.com/uploads/20201223/FmxfAwhv9ORcDD5blFvZGpTErCcY.jpeg",
"image_count": 2
}, {
"_id": 135,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "安装确认",
"describe": "沃尔沃需要填写两份确认单:1.安装确认单;2。立柱确认单",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fl-RvW-rcQ0z86Rgb7MsQM8-VACM.jpeg",
"image_count": 1
}, {
"_id": 136,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "安装承诺书",
"describe": "1、若车企无专用版本,全\\n部使用挚达版本 \\n2、客户提供全部/部分材\\n料,客户有自行布线 3、客户执意违反要求及标\\n准安装施工的; \\n以上情况需经车企/经销商\\n同意后,与客户需签署免责\\n协议。 \\n注: \\n1、部分车企如长城不允许\\n只挂桩的,需按车企要求操\\n作; \\n2、如用户无其他特殊要求\\n时,请在“其他情况”的空\\n白处写上“无”或“不适\\n用”或“/”。 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FpbwLHlRMXl8Uq7ZUbRm4ADzYTMf.jpeg",
"image_count": 1
}, {
"_id": 137,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "开挖尺寸测量",
"describe": "1、开挖宽度及深度测量全景照片 \\n2、测量仪器刻度清晰可辨 ",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Ftu9ZowLB1ixNpJeA0loQxr0KKik.png,https://s-fa.banshouhui.com/uploads/20201223/FlsxL0UjI8bao9fGvMvczVWLF_k_.png",
"image_count": 2
}, {
"_id": 138,
"product_code": "P0001",
"brand_code": "B0006",
"type": "安装阶段",
"name": "车架号",
"describe": "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fu3UVB85XE2AoXlEMjZhWbbZAR64.jpeg",
"image_count": 1
}, {
"_id": 139,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "安装前主电源点相片",
"describe": "安装前电源电源点相片不用水印相机拍照,需要拍清楚漏保参数(不用水印)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FiMrD7uo_Ac6itURX8cT2VJjq49F.jpeg",
"image_count": 1
}, {
"_id": 140,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "安装后主电源点相片",
"describe": "安装后电源电源点相片,需要贴好危险标识及火线吊牌(不用水印)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkAK0_KVq_SD8oICeVMqff8eEitM.png",
"image_count": 1
}, {
"_id": 141,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "停车位相片",
"describe": "停车位相片,有停车位的徐娅拍到车位相片,户外停车需要拍到停车位(不用水印)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FgjTx1XqWtN6pQpXD69-UwH6ViWb.png",
"image_count": 1
}, {
"_id": 142,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "用户人桩合影",
"describe": "用户人桩合影,需要用今日相机拍照,需要现场定位相片,水印必须清楚,必须和充电桩编码水印的经纬度,地址一样(需要今日水印相片拍照)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FoEk7gEwroBTxt6sNLM1RNXLXqYX.jpeg",
"image_count": 1
}, {
"_id": 143,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "勘察单相片",
"describe": "勘察单相片,勘察单必须填写工作完整,上传的相片不允许涂改(不用水印)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FkwX2P_QrrMsXv7o7GiMdHUy-Q44.jpeg",
"image_count": 1
}, {
"_id": 144,
"product_code": "P0001",
"brand_code": "B0006",
"type": "核销照片",
"name": "竣工单相片",
"describe": "竣工单相片,竣工单需要彩色打印,显示红色印章,必须填写工作完整,上传的相片不允许涂改(不用水印)",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fl-RvW-rcQ0z86Rgb7MsQM8-VACM.jpeg",
"image_count": 1
}, { }, {
"_id": 145, "user_id": "",
"product_code": "P0001", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_code": "B0006", "has_origin": true,
"type": "核销照片", "mid_text": "现场拍照",
"name": "行驶证相片或车主身份证相片", "lower_right": {
"describe": "安装前需要车主出示行驶证,没有行驶证不能安装,需要拍用户行驶证或身份证上传系统(不用水印)", "title_text": "",
"images": "https://s-fa.banshouhui.com/uploads/20201223/FqoPcW9BOZfawq6N0uxAvIdp4waW.jpeg,https://s-fa.banshouhui.com/uploads/20201223/Ftv6CFFXqxjBxpa8HaWoToKZ4KIv.jpeg", "body": [{
"image_count": 2 "watemark_type": "时间",
"watemark_text": "时间",
"watemark_value": ""
}, {
"watemark_type": "地址",
"watemark_text": "地址",
"watemark_value": ""
}, {
"watemark_type": "经度",
"watemark_text": "经度",
"watemark_value": ""
}, {
"watemark_type": "纬度",
"watemark_text": "纬度",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}]
}
}, { }, {
"_id": 146, "user_id": "",
"product_code": "P0001", "system_id": "28ee4e3e60580c1d0be5c37a0910022f",
"brand_code": "B0006", "has_origin": true,
"type": "核销照片", "mid_text": "",
"name": "充电桩编号相片", "lower_right": {
"describe": "充电桩编码,必须拍充电桩充电线上的白色纸“设备号”P开头的。需要用今日水印相片拍照,现场定位,需要与用户人桩合影的的水印地址及经纬度相同(需要今日水印相片拍照)", "title_text": "",
"images": "https://s-fa.banshouhui.com/uploads/20201223/Fk0BRzdMzJZ9PWQzJP7_OH28_tH2.jpeg", "body": [{
"image_count": 1 "watemark_type": "时间",
"watemark_text": "时间",
"watemark_value": ""
}, {
"watemark_type": "地址",
"watemark_text": "地址",
"watemark_value": ""
}, {
"watemark_type": "经度",
"watemark_text": "经度",
"watemark_value": ""
}, {
"watemark_type": "纬度",
"watemark_text": "纬度",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": ""
}]
}
} }
], ],
"index": [],
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": [ "required": [
"product_code", "user_id",
"brand_code", "system_id",
"type", "has_origin",
"name", "mid_text",
"describe", "lower_right"
"images",
"image_count"
], ],
"permission": { "permission": {
"read": true, "read": true,
"create": false, "create": true,
"update": false, "update": true,
"delete": false "delete": false
}, },
"properties": { "properties": {
"_id": { "_id": {
"description": "ID,系统自动生成" "description": "ID,系统自动生成"
}, },
"product_code": { "user_id": {
"bsonType": "string",
"description": "产品编码"
},
"brand_code": {
"bsonType": "string", "bsonType": "string",
"description": "品牌编码" "description": "用户ID"
}, },
"type": { "system_id": {
"bsonType": "string", "bsonType": "string",
"description": "规范分类" "description": "字典表 系统ID"
}, },
"name": { "has_origin": {
"bsonType": "string", "bsonType": "string",
"description": "名称" "description": "是否保存原图"
}, },
"describe": { "mid_text": {
"bsonType": "string", "bsonType": "string",
"description": "描述" "description": "中间文字"
}, },
"images": { "lower_right": {
"bsonType": "object",
"description": "右下角水印",
"required": [
"title_text"
],
"properties": {
"title_text": {
"bsonType": "string", "bsonType": "string",
"description": "图片url" "description": "水印块标题"
}, },
"image_count": { "body": {
"bsonType": "string", "bsonType": "array",
"description": "图片数量" "description": "水印块体"
}
}
} }
} }
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment