Fly лет назад: 2
Родитель
Сommit
bda50af61e

+ 1 - 1
.hbuilderx/launch.json

@@ -13,7 +13,7 @@
             "type" : "uniCloud"
         },
         {
-            "playground" : "standard",
+            "playground" : "custom",
             "type" : "uni-app:app-android"
         }
     ]

+ 3 - 1
README.md

@@ -8,4 +8,6 @@ npm install @hyoga/uni-socket.io@1.0.0
 
 npm install uview-ui@2.0.31
 
-npm install --save decimal.js
+npm install --save decimal.js
+
+npm i image-tools --save

+ 4 - 0
api/index.js

@@ -176,6 +176,10 @@ export function Api_setUpdatePassword(data) {
 	return axios.post(`/api/safe/update_password` , data)
 }
 
+// 身份验证
+export function Api_identityVerify (data) {
+	return axios.post(`/api/user/real_name` , data)
+}
 
 
 // // 根据手机号登录

+ 2 - 1
manifest.json

@@ -96,7 +96,8 @@
                     }
                 }
             }
-        }
+        },
+        "nativePlugins" : {}
     },
     /* 快应用特有相关 */
     "quickapp" : {},

+ 61 - 92
package-lock.json

@@ -1,93 +1,82 @@
 {
-  "name": "BiKing",
-  "lockfileVersion": 3,
+  "version": "1.0.0",
+  "lockfileVersion": 1,
   "requires": true,
-  "packages": {
-    "": {
-      "dependencies": {
-        "@hyoga/uni-socket.io": "^1.0.0",
-        "decimal.js": "^10.4.3",
-        "html2canvas": "^1.4.1",
-        "uview-ui": "^2.0.31"
-      }
-    },
-    "node_modules/@hyoga/uni-socket.io": {
+  "dependencies": {
+    "@hyoga/uni-socket.io": {
       "version": "1.0.0",
       "resolved": "https://registry.npmmirror.com/@hyoga/uni-socket.io/-/uni-socket.io-1.0.0.tgz",
       "integrity": "sha512-/S5GkG53SXY7hb6DcySWLt/j+inwXIjtbungnh+fcY+PHa9hNDJn/qQ55E5x7P383oCZjjbffJvXZc8kaWHrUQ==",
-      "dependencies": {
+      "requires": {
         "socket.io-client": "^2.1.1"
       }
     },
-    "node_modules/after": {
+    "after": {
       "version": "0.8.2",
       "resolved": "https://registry.npmmirror.com/after/-/after-0.8.2.tgz",
       "integrity": "sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA=="
     },
-    "node_modules/arraybuffer.slice": {
+    "arraybuffer.slice": {
       "version": "0.0.7",
       "resolved": "https://registry.npmmirror.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
       "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog=="
     },
-    "node_modules/backo2": {
+    "backo2": {
       "version": "1.0.2",
       "resolved": "https://registry.npmmirror.com/backo2/-/backo2-1.0.2.tgz",
       "integrity": "sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA=="
     },
-    "node_modules/base64-arraybuffer": {
+    "base64-arraybuffer": {
       "version": "1.0.2",
       "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
-      "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==",
-      "engines": {
-        "node": ">= 0.6.0"
-      }
+      "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ=="
     },
-    "node_modules/blob": {
+    "blob": {
       "version": "0.0.5",
       "resolved": "https://registry.npmmirror.com/blob/-/blob-0.0.5.tgz",
       "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig=="
     },
-    "node_modules/component-bind": {
+    "component-bind": {
       "version": "1.0.0",
       "resolved": "https://registry.npmmirror.com/component-bind/-/component-bind-1.0.0.tgz",
       "integrity": "sha512-WZveuKPeKAG9qY+FkYDeADzdHyTYdIboXS59ixDeRJL5ZhxpqUnxSOwop4FQjMsiYm3/Or8cegVbpAHNA7pHxw=="
     },
-    "node_modules/component-emitter": {
+    "component-emitter": {
       "version": "1.3.0",
       "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.3.0.tgz",
       "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
     },
-    "node_modules/component-inherit": {
+    "component-inherit": {
       "version": "0.0.3",
       "resolved": "https://registry.npmmirror.com/component-inherit/-/component-inherit-0.0.3.tgz",
       "integrity": "sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA=="
     },
-    "node_modules/css-line-break": {
+    "css-line-break": {
       "version": "2.1.0",
       "resolved": "https://registry.npmmirror.com/css-line-break/-/css-line-break-2.1.0.tgz",
       "integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==",
-      "dependencies": {
+      "requires": {
         "utrie": "^1.0.2"
       }
     },
-    "node_modules/debug": {
+    "debug": {
       "version": "3.1.0",
       "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz",
       "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
-      "dependencies": {
+      "requires": {
         "ms": "2.0.0"
       }
     },
-    "node_modules/decimal.js": {
+    "decimal.js": {
       "version": "10.4.3",
       "resolved": "https://registry.npmmirror.com/decimal.js/-/decimal.js-10.4.3.tgz",
       "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="
     },
-    "node_modules/engine.io-client": {
+    "engine.io-client": {
       "version": "3.5.3",
       "resolved": "https://registry.npmmirror.com/engine.io-client/-/engine.io-client-3.5.3.tgz",
       "integrity": "sha512-qsgyc/CEhJ6cgMUwxRRtOndGVhIu5hpL5tR4umSpmX/MvkFoIxUTM7oFMDQumHNzlNLwSVy6qhstFPoWTf7dOw==",
-      "dependencies": {
+      "requires": {
         "component-emitter": "~1.3.0",
         "component-inherit": "0.0.3",
         "debug": "~3.1.0",
@@ -101,81 +90,82 @@
         "yeast": "0.1.2"
       }
     },
-    "node_modules/engine.io-parser": {
+    "engine.io-parser": {
       "version": "2.2.1",
       "resolved": "https://registry.npmmirror.com/engine.io-parser/-/engine.io-parser-2.2.1.tgz",
       "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==",
-      "dependencies": {
+      "requires": {
         "after": "0.8.2",
         "arraybuffer.slice": "~0.0.7",
         "base64-arraybuffer": "0.1.4",
         "blob": "0.0.5",
         "has-binary2": "~1.0.2"
+      },
+      "dependencies": {
+        "base64-arraybuffer": {
+          "version": "0.1.4",
+          "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz",
+          "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg=="
+        }
       }
     },
-    "node_modules/engine.io-parser/node_modules/base64-arraybuffer": {
-      "version": "0.1.4",
-      "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz",
-      "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==",
-      "engines": {
-        "node": ">= 0.6.0"
-      }
-    },
-    "node_modules/has-binary2": {
+    "has-binary2": {
       "version": "1.0.3",
       "resolved": "https://registry.npmmirror.com/has-binary2/-/has-binary2-1.0.3.tgz",
       "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==",
-      "dependencies": {
+      "requires": {
         "isarray": "2.0.1"
       }
     },
-    "node_modules/has-cors": {
+    "has-cors": {
       "version": "1.1.0",
       "resolved": "https://registry.npmmirror.com/has-cors/-/has-cors-1.1.0.tgz",
       "integrity": "sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA=="
     },
-    "node_modules/html2canvas": {
+    "html2canvas": {
       "version": "1.4.1",
       "resolved": "https://registry.npmmirror.com/html2canvas/-/html2canvas-1.4.1.tgz",
       "integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==",
-      "dependencies": {
+      "requires": {
         "css-line-break": "^2.1.0",
         "text-segmentation": "^1.0.3"
-      },
-      "engines": {
-        "node": ">=8.0.0"
       }
     },
-    "node_modules/indexof": {
+    "image-tools": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmmirror.com/image-tools/-/image-tools-1.4.0.tgz",
+      "integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ=="
+    },
+    "indexof": {
       "version": "0.0.1",
       "resolved": "https://registry.npmmirror.com/indexof/-/indexof-0.0.1.tgz",
       "integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg=="
     },
-    "node_modules/isarray": {
+    "isarray": {
       "version": "2.0.1",
       "resolved": "https://registry.npmmirror.com/isarray/-/isarray-2.0.1.tgz",
       "integrity": "sha512-c2cu3UxbI+b6kR3fy0nRnAhodsvR9dx7U5+znCOzdj6IfP3upFURTr0Xl5BlQZNKZjEtxrmVyfSdeE3O57smoQ=="
     },
-    "node_modules/ms": {
+    "ms": {
       "version": "2.0.0",
       "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz",
       "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
     },
-    "node_modules/parseqs": {
+    "parseqs": {
       "version": "0.0.6",
       "resolved": "https://registry.npmmirror.com/parseqs/-/parseqs-0.0.6.tgz",
       "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w=="
     },
-    "node_modules/parseuri": {
+    "parseuri": {
       "version": "0.0.6",
       "resolved": "https://registry.npmmirror.com/parseuri/-/parseuri-0.0.6.tgz",
       "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow=="
     },
-    "node_modules/socket.io-client": {
+    "socket.io-client": {
       "version": "2.5.0",
       "resolved": "https://registry.npmmirror.com/socket.io-client/-/socket.io-client-2.5.0.tgz",
       "integrity": "sha512-lOO9clmdgssDykiOmVQQitwBAF3I6mYcQAo7hQ7AM6Ny5X7fp8hIJ3HcQs3Rjz4SoggoxA1OgrQyY8EgTbcPYw==",
-      "dependencies": {
+      "requires": {
         "backo2": "1.0.2",
         "component-bind": "1.0.0",
         "component-emitter": "~1.3.0",
@@ -189,74 +179,53 @@
         "to-array": "0.1.4"
       }
     },
-    "node_modules/socket.io-parser": {
+    "socket.io-parser": {
       "version": "3.3.3",
       "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz",
       "integrity": "sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==",
-      "dependencies": {
+      "requires": {
         "component-emitter": "~1.3.0",
         "debug": "~3.1.0",
         "isarray": "2.0.1"
       }
     },
-    "node_modules/text-segmentation": {
+    "text-segmentation": {
       "version": "1.0.3",
       "resolved": "https://registry.npmmirror.com/text-segmentation/-/text-segmentation-1.0.3.tgz",
       "integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==",
-      "dependencies": {
+      "requires": {
         "utrie": "^1.0.2"
       }
     },
-    "node_modules/to-array": {
+    "to-array": {
       "version": "0.1.4",
       "resolved": "https://registry.npmmirror.com/to-array/-/to-array-0.1.4.tgz",
       "integrity": "sha512-LhVdShQD/4Mk4zXNroIQZJC+Ap3zgLcDuwEdcmLv9CCO73NWockQDwyUnW/m8VX/EElfL6FcYx7EeutN4HJA6A=="
     },
-    "node_modules/utrie": {
+    "utrie": {
       "version": "1.0.2",
       "resolved": "https://registry.npmmirror.com/utrie/-/utrie-1.0.2.tgz",
       "integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==",
-      "dependencies": {
+      "requires": {
         "base64-arraybuffer": "^1.0.2"
       }
     },
-    "node_modules/uview-ui": {
+    "uview-ui": {
       "version": "2.0.31",
       "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.31.tgz",
-      "integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==",
-      "engines": {
-        "HBuilderX": "^3.1.0"
-      }
+      "integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw=="
     },
-    "node_modules/ws": {
+    "ws": {
       "version": "7.4.6",
       "resolved": "https://registry.npmmirror.com/ws/-/ws-7.4.6.tgz",
-      "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
-      "engines": {
-        "node": ">=8.3.0"
-      },
-      "peerDependencies": {
-        "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
-      },
-      "peerDependenciesMeta": {
-        "bufferutil": {
-          "optional": true
-        },
-        "utf-8-validate": {
-          "optional": true
-        }
-      }
+      "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A=="
     },
-    "node_modules/xmlhttprequest-ssl": {
+    "xmlhttprequest-ssl": {
       "version": "1.6.3",
       "resolved": "https://registry.npmmirror.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz",
-      "integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==",
-      "engines": {
-        "node": ">=0.4.0"
-      }
+      "integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q=="
     },
-    "node_modules/yeast": {
+    "yeast": {
       "version": "0.1.2",
       "resolved": "https://registry.npmmirror.com/yeast/-/yeast-0.1.2.tgz",
       "integrity": "sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg=="

+ 23 - 11
package.json

@@ -1,13 +1,25 @@
 {
-    "id": "ay-qrcode",
-    "name": "生成二维码。传入链接,即可使用,可快速扫出链接",
-    "version": "1.0.7",
-    "description": "生成二维码。传入链接,即可使用,可快速扫出链接,可自定义宽高,适用于APP与H5、微信小程序",
+    "id": "lzc-OCR",
+    "displayName": "基于百度OCR 身份证识别文字识别",
+    "version": "1.0.0",
+    "description": "是一个通用身份证识别功能页面模板,支持多端运行",
     "keywords": [
-        "生成二维码",
-        "二维码",
-        "即可使用",
-        "可快速扫出链接",
-        "已解决部分华为荣耀手机缺角问题"
-    ]
-}
+        "OCR",
+        "ocr",
+        "身份证识别",
+        "文字识别"
+    ],
+    "dcloudext": {
+        "category": [
+            "前端组件",
+            "通用组件"
+        ]
+    },
+    "dependencies": {
+        "@hyoga/uni-socket.io": "^1.0.0",
+        "decimal.js": "^10.4.3",
+        "html2canvas": "^1.4.1",
+        "image-tools": "^1.4.0",
+        "uview-ui": "^2.0.31"
+    }
+}

+ 26 - 8
pages/content/identification/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view class="pages-content">
 		<headContent borderBottom>
 			<template #left>
 				<reverse-back />
@@ -19,7 +19,7 @@
 			</view>
 		</view>
 		<view class="footer-info">
-			<view class="footer-btn">
+			<view class="footer-btn" @click.stop="nextStep">
 				开始
 			</view>
 		</view>
@@ -34,27 +34,45 @@
 			return {
 
 			};
+		},
+		methods:{
+			nextStep(){
+				uni.navigateTo({
+					url:'/pages/content/identification/select-type'
+				})
+			}
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
-	.content {
+	.pages-content{
 		width: 100%;
 		min-height: 100vh;
-		padding: 0 $pages-padding;
+		display: flex;
+		flex-direction: column;
+	}
+	.content {
+		flex: 1;
 		display: flex;
 		flex-direction: column;
 		justify-content: center;
 		align-items: center;
+		width: 100%;
+		text-align: center;
+		padding: 0 $pages-padding;
 
 		.content-title {
-			display: flex;
-			align-items: center;
-
+ 
+			padding-bottom: 20rpx;
 			.content-icon {
 				font-size: 50rpx;
 				color: $Theme-Color;
+				margin-right: 10rpx;
+			}
+			.content-text{
+				line-height: 1;
+				padding-bottom: 0;
 			}
 		}
 
@@ -76,7 +94,7 @@
 				.item-num {
 					width: 50rpx;
 					height: 50rpx;
-					background-color: #cacaca;
+					background-color: #e3e3e3;
 					border-radius: 50%;
 					margin-right: 30rpx;
 					text-align: center;

+ 158 - 4
pages/content/identification/select-type.vue

@@ -1,19 +1,173 @@
 <template>
 	<view>
-		
+		<headContent borderBottom>
+			<template #left>
+				<reverse-back />
+			</template>
+		</headContent>
+
+		<view class="content">
+			<text class="content-title">ID 验证</text>
+			<text class="content-lable">检查签发国家</text>
+			<view class="item-box">
+				<view class="item">
+					<text>中国</text>
+					<text class="item-icon iconfont">&#xe8b5;</text>
+				</view>
+			</view>
+			<text class="content-lable lable-type">选择ID类型</text>
+			<view class="item-box">
+				<!-- getIdentity -->
+				<!-- <view class="item" @click.stop=" "> -->
+				<view class="item" @click.stop=" getIdentity">
+					<text class="type-icon iconfont">&#xe616;</text>
+					<text class="text-name">身份证</text>
+					<text class="item-icon iconfont">&#xe8b5;</text>
+				</view>
+			</view>
+		</view>
+
 	</view>
 </template>
 
 <script>
+	import {
+		Api_identityVerify
+	} from "@/api/index.js"
+	import {
+		pathToBase64,
+		base64ToPath
+	} from 'image-tools'
+	// const ocr  = uni.requireNativePlugin('DC-WBOCRService');
 	export default {
 		data() {
 			return {
-				
+				dataObj: {}
 			};
+		},
+		mounted() {
+
+		},
+		methods: {
+			setIdentityVerify(base64) {
+				const userId = this.$getStorageSync('userInfo')?.id
+				Api_identityVerify({
+					name: userId,
+					card_id: userId,
+					front_pic: base64
+				}).then(res => {
+					console.log('res = ', res)
+					setTimeout(() => {
+						uni.showToast({
+							title: res || '提交成功'
+						})
+						setTimeout(() => {
+							uni.hideToast()
+							uni.reLaunch({
+								url: '/pages/content/mine'
+							});
+						}, 1500)
+					}, 210)
+
+				}).catch(err => {
+
+				}).finally(() => {
+					setTimeout(() => {
+
+					}, 500)
+				})
+			},
+
+			getIdentity(e) {
+				// 点击拍照
+				let _this = this
+				let configure = "{'side':'face'}" //face正面、back反面
+				uni.chooseImage({
+					count: 1, // 默认9  
+					sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有  
+					sourceType: ['album'], // 可以指定来源是相册还是相机,默认二者都有  
+					success: res => {
+
+						let tempFilePaths = res.tempFilePaths[0];
+						this.base64String(tempFilePaths)
+					},
+					complete: () => {
+						uni.hideLoading()
+					}
+				})
+			},
+
+			base64String(path) {
+				pathToBase64(path)
+					.then(base64 => {
+						this.setIdentityVerify(base64)
+						console.log(base64)
+					})
+					.catch(error => {
+						console.error(error)
+					})
+
+			}
+
+
+
 		}
 	}
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
+	.content {
+		width: 100%;
+		padding: 50rpx $pages-padding;
+		display: flex;
+		flex-direction: column;
 
-</style>
+		.content-title {
+			font-size: 70rpx;
+		}
+
+		.content-lable {
+			font-size: 50rpx;
+			line-height: 2.2;
+		}
+
+		.lable-type {
+			margin-top: 100rpx;
+		}
+
+		.item-box {
+			width: 100%;
+
+			.item {
+				width: 100%;
+				height: 120rpx;
+				padding: 0 $pages-padding;
+				background-color: #e3e3e3;
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
+				border-radius: 10rpx;
+
+				text {
+					flex-shrink: 0;
+				}
+
+				.type-icon {
+					font-size: 50rpx;
+					color: #000;
+					margin-right: 50rpx;
+				}
+
+				.text-name {
+					flex: 1;
+				}
+
+				.item-icon {
+					transform: rotate(180deg);
+					font-size: 50rpx;
+					color: #000;
+				}
+			}
+		}
+	}
+</style>

+ 1 - 1
pages/property/modules/contract/index.vue

@@ -29,7 +29,7 @@
 				</uni-tr>
 				<!-- 表格数据行 -->
 				<template v-if="contractAccount.balance">
-					<uni-tr v-for="(item , index) in contractAccount.balance" :key="`contractAccount_${index}`">
+					<uni-tr v-for="(item , index) in contractAccount.balance" v-if="item.lever_balance > 0" :key="`contractAccount_${index}`">
 						<uni-td style="flex: 1;">{{ item.currency_name }}</uni-td>
 						<uni-td style="flex: 1;">{{ showMoney ? getNums(item.lock_lever_balance , item.lever_balance) : '*****' }}</uni-td>
 						<uni-td style="flex: 1;">{{ showMoney ? item.lock_lever_balance : '*****' }}</uni-td>

+ 1 - 1
pages/property/modules/legalTender/index.vue

@@ -29,7 +29,7 @@
 				</uni-tr>
 				<!-- 表格数据行 -->
 				<template v-if="legalAccount.balance">
-					<uni-tr v-for="(item , index) in legalAccount.balance" :key="`legalAccount_${index}`">
+					<uni-tr v-for="(item , index) in legalAccount.balance" v-if="item.legal_balance > 0"  :key="`legalAccount_${index}`">
 						<uni-td style="flex: 1;">{{ item.currency_name }}</uni-td>
 						<uni-td style="flex: 1;">{{ showMoney ? getNums(item.lock_legal_balance , item.legal_balance) : '*****' }}</uni-td>
 						<uni-td style="flex: 1;">{{ showMoney ? item.lock_legal_balance : '*****' }}</uni-td>

+ 1 - 0
utils/common-request.js

@@ -11,6 +11,7 @@ export const Way_getUserInfo = () => {
 	return new Promise((resolve, reject) => {
 		Api_getUserInfo().then(res => {
 			setStorageSync('shareCode' , res.id)
+			setStorageSync('userInfo' , res)
 			resolve(res)
 		}).catch(err => {
 			reject()

+ 4 - 4
utils/request.js

@@ -94,10 +94,10 @@ export const request = async (opt = {}) => {
 					}
 					
 				} else { 
-					// uni.showToast({
-					// 	icon: 'none',
-					// 	title: data.message || '系统错误'
-					// })
+					uni.showToast({
+						icon: 'none',
+						title: data.message || '系统错误'
+					})
 					reject(data)
 				}