fstarter 2.10.45 → 2.10.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +6 -6
- package/.editorconfig +9 -9
- package/README.md +18 -18
- package/fstarter.iml +9 -0
- package/index.html +22 -22
- package/index.js +222 -222
- package/package.json +104 -104
- package/src/App.vue +38 -38
- package/src/i18n/en-US.js +35 -35
- package/src/i18n/zh-CN.js +35 -35
- package/src/main.js +87 -87
- package/src/plugins/assets/ak.js +948 -948
- package/src/plugins/assets/callNative.js +488 -488
- package/src/plugins/assets/compressImg.js +75 -75
- package/src/plugins/assets/config.js +106 -106
- package/src/plugins/assets/fileServer.js +469 -469
- package/src/plugins/assets/http.js +343 -343
- package/src/plugins/assets/ua.js +27 -27
- package/src/plugins/components/BSButton.vue +61 -61
- package/src/plugins/components/BSCascader.vue +465 -465
- package/src/plugins/components/BSCell.vue +48 -48
- package/src/plugins/components/BSDatePicker.vue +167 -167
- package/src/plugins/components/BSImage.vue +42 -42
- package/src/plugins/components/BSInput.vue +140 -140
- package/src/plugins/components/BSList.vue +81 -81
- package/src/plugins/components/BSPicCode.vue +96 -96
- package/src/plugins/components/BSPopup.vue +43 -43
- package/src/plugins/components/BSRadio.vue +97 -97
- package/src/plugins/components/BSSearch.vue +109 -109
- package/src/plugins/components/BSSelect.vue +144 -144
- package/src/plugins/components/BSSign.vue +454 -454
- package/src/plugins/components/BSStepper.vue +115 -115
- package/src/plugins/components/BSUpload.vue +92 -92
- package/src/plugins/components/BSUpload2.vue +382 -392
- package/src/plugins/components/BSVerCode.vue +131 -135
- package/src/plugins/components/BSViewer.vue +92 -92
- package/src/plugins/components/base.js +496 -496
- package/src/plugins/components/base2.js +489 -489
- package/src/plugins/lib/weixin.js +20 -20
- package/src/plugins/platform/index.js +7 -7
- package/src/plugins/platform/isp_phone.js +306 -306
- package/src/plugins/route/index.js +140 -140
- package/src/plugins/selector/index.js +342 -342
- package/src/plugins/service/index.js +81 -81
- package/src/plugins/services/callCamera.js +53 -53
- package/src/plugins/services/exit.js +36 -36
- package/src/plugins/services/face.js +69 -69
- package/src/plugins/services/faceInApp.js +31 -31
- package/src/plugins/services/getFaceResult.js +104 -104
- package/src/plugins/services/getMenus.js +40 -40
- package/src/plugins/services/getSystemData.js +128 -128
- package/src/plugins/services/getToken.js +79 -79
- package/src/plugins/services/getUserInfo.js +47 -47
- package/src/plugins/services/goSetPage.js +40 -40
- package/src/plugins/services/hideFhoneTitle.js +36 -36
- package/src/plugins/services/index.js +37 -41
- package/src/plugins/services/init.js +35 -35
- package/src/plugins/services/jumpView.js +40 -40
- package/src/plugins/services/logout.js +43 -43
- package/src/plugins/services/share.js +113 -113
- package/src/plugins/services/statusBarHeight.js +39 -39
- package/src/plugins/session/index.js +32 -32
- package/src/services/getAuthInfo.js +22 -22
- package/src/services/index.js +9 -9
- package/src/services/sendVerCode.js +23 -23
- package/src/views/auth.vue +354 -361
- package/src/views/auth2.vue +90 -90
- package/src/views/auth3.vue +148 -157
- package/src/views/auth4.vue +8979 -8979
- package/src/views/auth5.vue +50 -50
- package/src/views/components/BankSelect.vue +55 -55
- package/src/views/foot.vue +140 -140
- package/src/views/page.vue +219 -219
- package/src/views/shellFunc.vue +41 -41
- package/themes/basic.css +1 -1
- package/webpack.config.js +144 -144
- package/src/plugins/services/faceTx.js +0 -61
- package/src/plugins/services/getTxFaceResult.js +0 -83
package/webpack.config.js
CHANGED
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
const NODE_ENV = process.env.NODE_ENV
|
|
4
|
-
|
|
5
|
-
function resolve (dir) {
|
|
6
|
-
return path.join(__dirname, '..', dir)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
entry: NODE_ENV == 'development' ? './src/main.js' : './index.js',
|
|
11
|
-
output: {
|
|
12
|
-
path: path.resolve(__dirname, './dist'),
|
|
13
|
-
publicPath: '/dist/',
|
|
14
|
-
filename: 'build.js',
|
|
15
|
-
library:'bstarter',
|
|
16
|
-
libraryTarget:'umd',
|
|
17
|
-
umdNamedDefine:true
|
|
18
|
-
},
|
|
19
|
-
module: {
|
|
20
|
-
rules: [
|
|
21
|
-
{
|
|
22
|
-
test: /\.css$/,
|
|
23
|
-
use: [
|
|
24
|
-
'vue-style-loader',
|
|
25
|
-
'css-loader'
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
test: /\.scss$/,
|
|
30
|
-
use: [
|
|
31
|
-
'vue-style-loader',
|
|
32
|
-
'css-loader',
|
|
33
|
-
'sass-loader'
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
test: /\.sass$/,
|
|
38
|
-
use: [
|
|
39
|
-
'vue-style-loader',
|
|
40
|
-
'css-loader',
|
|
41
|
-
'sass-loader?indentedSyntax'
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
test: /\.vue$/,
|
|
46
|
-
loader: 'vue-loader',
|
|
47
|
-
options: {
|
|
48
|
-
loaders: {
|
|
49
|
-
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
|
|
50
|
-
// the "scss" and "sass" values for the lang attribute to the right configs here.
|
|
51
|
-
// other preprocessors should work out of the box, no loader config like this necessary.
|
|
52
|
-
'scss': [
|
|
53
|
-
'vue-style-loader',
|
|
54
|
-
'css-loader',
|
|
55
|
-
'sass-loader'
|
|
56
|
-
],
|
|
57
|
-
'sass': [
|
|
58
|
-
'vue-style-loader',
|
|
59
|
-
'css-loader',
|
|
60
|
-
'sass-loader?indentedSyntax'
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
// other vue-loader options go here
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
test: /\.js$/,
|
|
68
|
-
loader: 'babel-loader',
|
|
69
|
-
exclude: /node_modules/
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
test: /\.(png|jpg|gif|svg)$/,
|
|
73
|
-
loader: 'file-loader',
|
|
74
|
-
options: {
|
|
75
|
-
name: '[name].[ext]?[hash]'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
resolve: {
|
|
81
|
-
alias: {
|
|
82
|
-
'vue$': 'vue/dist/vue.esm.js',
|
|
83
|
-
'@': resolve('src')
|
|
84
|
-
},
|
|
85
|
-
extensions: ['*', '.js', '.vue', '.json']
|
|
86
|
-
},
|
|
87
|
-
devServer: {
|
|
88
|
-
setup(app) {
|
|
89
|
-
app.post('*', (req, res) => {
|
|
90
|
-
res.redirect(req.originalUrl);
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
host:'0.0.0.0',
|
|
94
|
-
historyApiFallback: true,
|
|
95
|
-
noInfo: true,
|
|
96
|
-
overlay: true,
|
|
97
|
-
proxy: {
|
|
98
|
-
'/api/*': {
|
|
99
|
-
target: 'https://testgemini.ihasl.com',
|
|
100
|
-
changeOrigin: true,
|
|
101
|
-
secure: true
|
|
102
|
-
},'/mock/*': {
|
|
103
|
-
target: 'https://testgemini.ihasl.com',
|
|
104
|
-
changeOrigin: true,
|
|
105
|
-
secure: true
|
|
106
|
-
},
|
|
107
|
-
'/find/*': {
|
|
108
|
-
target: 'http://175.24.244.148',
|
|
109
|
-
changeOrigin: true,
|
|
110
|
-
secure: true
|
|
111
|
-
},
|
|
112
|
-
'/find/': {
|
|
113
|
-
target: 'http://175.24.244.148',
|
|
114
|
-
changeOrigin: true,
|
|
115
|
-
secure: true
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
performance: {
|
|
120
|
-
hints: false
|
|
121
|
-
},
|
|
122
|
-
devtool: '#eval-source-map'
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (process.env.NODE_ENV === 'production') {
|
|
126
|
-
module.exports.devtool = '#source-map'
|
|
127
|
-
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
128
|
-
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
129
|
-
new webpack.DefinePlugin({
|
|
130
|
-
'process.env': {
|
|
131
|
-
NODE_ENV: '"production"'
|
|
132
|
-
}
|
|
133
|
-
}),
|
|
134
|
-
new webpack.optimize.UglifyJsPlugin({
|
|
135
|
-
sourceMap: true,
|
|
136
|
-
compress: {
|
|
137
|
-
warnings: false
|
|
138
|
-
}
|
|
139
|
-
}),
|
|
140
|
-
new webpack.LoaderOptionsPlugin({
|
|
141
|
-
minimize: true
|
|
142
|
-
})
|
|
143
|
-
])
|
|
144
|
-
}
|
|
1
|
+
var path = require('path')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
const NODE_ENV = process.env.NODE_ENV
|
|
4
|
+
|
|
5
|
+
function resolve (dir) {
|
|
6
|
+
return path.join(__dirname, '..', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
entry: NODE_ENV == 'development' ? './src/main.js' : './index.js',
|
|
11
|
+
output: {
|
|
12
|
+
path: path.resolve(__dirname, './dist'),
|
|
13
|
+
publicPath: '/dist/',
|
|
14
|
+
filename: 'build.js',
|
|
15
|
+
library:'bstarter',
|
|
16
|
+
libraryTarget:'umd',
|
|
17
|
+
umdNamedDefine:true
|
|
18
|
+
},
|
|
19
|
+
module: {
|
|
20
|
+
rules: [
|
|
21
|
+
{
|
|
22
|
+
test: /\.css$/,
|
|
23
|
+
use: [
|
|
24
|
+
'vue-style-loader',
|
|
25
|
+
'css-loader'
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
test: /\.scss$/,
|
|
30
|
+
use: [
|
|
31
|
+
'vue-style-loader',
|
|
32
|
+
'css-loader',
|
|
33
|
+
'sass-loader'
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
test: /\.sass$/,
|
|
38
|
+
use: [
|
|
39
|
+
'vue-style-loader',
|
|
40
|
+
'css-loader',
|
|
41
|
+
'sass-loader?indentedSyntax'
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
test: /\.vue$/,
|
|
46
|
+
loader: 'vue-loader',
|
|
47
|
+
options: {
|
|
48
|
+
loaders: {
|
|
49
|
+
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
|
|
50
|
+
// the "scss" and "sass" values for the lang attribute to the right configs here.
|
|
51
|
+
// other preprocessors should work out of the box, no loader config like this necessary.
|
|
52
|
+
'scss': [
|
|
53
|
+
'vue-style-loader',
|
|
54
|
+
'css-loader',
|
|
55
|
+
'sass-loader'
|
|
56
|
+
],
|
|
57
|
+
'sass': [
|
|
58
|
+
'vue-style-loader',
|
|
59
|
+
'css-loader',
|
|
60
|
+
'sass-loader?indentedSyntax'
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
// other vue-loader options go here
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
test: /\.js$/,
|
|
68
|
+
loader: 'babel-loader',
|
|
69
|
+
exclude: /node_modules/
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
test: /\.(png|jpg|gif|svg)$/,
|
|
73
|
+
loader: 'file-loader',
|
|
74
|
+
options: {
|
|
75
|
+
name: '[name].[ext]?[hash]'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
resolve: {
|
|
81
|
+
alias: {
|
|
82
|
+
'vue$': 'vue/dist/vue.esm.js',
|
|
83
|
+
'@': resolve('src')
|
|
84
|
+
},
|
|
85
|
+
extensions: ['*', '.js', '.vue', '.json']
|
|
86
|
+
},
|
|
87
|
+
devServer: {
|
|
88
|
+
setup(app) {
|
|
89
|
+
app.post('*', (req, res) => {
|
|
90
|
+
res.redirect(req.originalUrl);
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
host:'0.0.0.0',
|
|
94
|
+
historyApiFallback: true,
|
|
95
|
+
noInfo: true,
|
|
96
|
+
overlay: true,
|
|
97
|
+
proxy: {
|
|
98
|
+
'/api/*': {
|
|
99
|
+
target: 'https://testgemini.ihasl.com',
|
|
100
|
+
changeOrigin: true,
|
|
101
|
+
secure: true
|
|
102
|
+
},'/mock/*': {
|
|
103
|
+
target: 'https://testgemini.ihasl.com',
|
|
104
|
+
changeOrigin: true,
|
|
105
|
+
secure: true
|
|
106
|
+
},
|
|
107
|
+
'/find/*': {
|
|
108
|
+
target: 'http://175.24.244.148',
|
|
109
|
+
changeOrigin: true,
|
|
110
|
+
secure: true
|
|
111
|
+
},
|
|
112
|
+
'/find/': {
|
|
113
|
+
target: 'http://175.24.244.148',
|
|
114
|
+
changeOrigin: true,
|
|
115
|
+
secure: true
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
performance: {
|
|
120
|
+
hints: false
|
|
121
|
+
},
|
|
122
|
+
devtool: '#eval-source-map'
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (process.env.NODE_ENV === 'production') {
|
|
126
|
+
module.exports.devtool = '#source-map'
|
|
127
|
+
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
128
|
+
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
129
|
+
new webpack.DefinePlugin({
|
|
130
|
+
'process.env': {
|
|
131
|
+
NODE_ENV: '"production"'
|
|
132
|
+
}
|
|
133
|
+
}),
|
|
134
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
135
|
+
sourceMap: true,
|
|
136
|
+
compress: {
|
|
137
|
+
warnings: false
|
|
138
|
+
}
|
|
139
|
+
}),
|
|
140
|
+
new webpack.LoaderOptionsPlugin({
|
|
141
|
+
minimize: true
|
|
142
|
+
})
|
|
143
|
+
])
|
|
144
|
+
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import http from '../assets/http.js'
|
|
2
|
-
import ak from '../assets/ak.js'
|
|
3
|
-
import config from '../assets/config.js'
|
|
4
|
-
import {ua} from "../assets/ua";
|
|
5
|
-
|
|
6
|
-
var faceTx = {
|
|
7
|
-
|
|
8
|
-
getData(params){
|
|
9
|
-
let nonce = radomKey()
|
|
10
|
-
return {
|
|
11
|
-
'idcard_name': params.idcard_name,
|
|
12
|
-
'idcard_number': params.idcard_number,
|
|
13
|
-
'comparison_type': '1',
|
|
14
|
-
'nonce': nonce
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
invoke(params){
|
|
19
|
-
|
|
20
|
-
if(ua.isIspPhone){
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}else if(ua.microMsg){
|
|
24
|
-
debugger
|
|
25
|
-
let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
|
|
26
|
-
// if(faceType == 'wy'){
|
|
27
|
-
// apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
|
|
28
|
-
// }else{
|
|
29
|
-
// apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceTokenNew'
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
|
-
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
33
|
-
const objstr = JSON.stringify(Object.assign(params, data))
|
|
34
|
-
debugger
|
|
35
|
-
localStorage.setItem('faceAbout', objstr)
|
|
36
|
-
let cbUrl = ak.http.concatParams(params.cbUrl ? params.cbUrl : window.location.href,'facetoken=1')
|
|
37
|
-
const url = `https://${data.optimalDomain}/api/web/login?webankAppId=TIDA55eC&version=1.0.0&nonce=${params.nonce}&orderNo=${data.orderNo}&h5faceId=${data.h5faceId}&url=${encodeURIComponent(cbUrl)}&from=browser&userId=${data.userId}&sign=${data.sign}&redirectType=1&resultType=1`
|
|
38
|
-
window.location.href = url
|
|
39
|
-
return Promise.resolve(data)
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
}else{
|
|
44
|
-
Promise.reject()
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
function radomKey(length = 32, needChars = true) {
|
|
51
|
-
let chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
|
|
52
|
-
let num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
|
|
53
|
-
let final = needChars ? chars : num
|
|
54
|
-
let nums = ''
|
|
55
|
-
for (var i = 0; i < length; i++) {
|
|
56
|
-
const id = parseInt(Math.random() * 61)
|
|
57
|
-
nums += final[id]
|
|
58
|
-
}
|
|
59
|
-
return nums
|
|
60
|
-
}
|
|
61
|
-
export default faceTx;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import http from '../assets/http.js'
|
|
2
|
-
import ak from '../assets/ak.js'
|
|
3
|
-
import config from '../assets/config.js'
|
|
4
|
-
import {ua} from "../assets/ua";
|
|
5
|
-
import service from "../service"
|
|
6
|
-
|
|
7
|
-
var getTxFaceResult = {
|
|
8
|
-
|
|
9
|
-
need(){
|
|
10
|
-
|
|
11
|
-
let token = ak.http.getQueryString('facetoken')
|
|
12
|
-
if(ak.utils.isEmpty(token)){
|
|
13
|
-
localStorage.removeItem('faceAbout')
|
|
14
|
-
return false
|
|
15
|
-
} else {
|
|
16
|
-
return true
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
getData(){
|
|
21
|
-
|
|
22
|
-
let obj = JSON.parse(localStorage.getItem('faceAbout'))
|
|
23
|
-
|
|
24
|
-
localStorage.removeItem('faceAbout')
|
|
25
|
-
return {
|
|
26
|
-
biz_no: obj.bizSeqNo,
|
|
27
|
-
userId: obj.userId,
|
|
28
|
-
orderNo: obj.orderNo,
|
|
29
|
-
nonce: obj.nonce,
|
|
30
|
-
expired: '-1000',
|
|
31
|
-
buz: 'POLICY_FILE',
|
|
32
|
-
domain: 'POLICY',
|
|
33
|
-
buzId: radomNum(16),
|
|
34
|
-
fileName: radomNum(16)
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
invoke(params){
|
|
40
|
-
// let faceType = params.faceType
|
|
41
|
-
// delete params.faceType
|
|
42
|
-
|
|
43
|
-
if(ua.isIspPhone){
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}else if(ua.microMsg){
|
|
47
|
-
let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceCompareResult'
|
|
48
|
-
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
49
|
-
let res = data.result
|
|
50
|
-
let resData = {
|
|
51
|
-
confidence: res.similarity,
|
|
52
|
-
imageFile: res.faceFileId,
|
|
53
|
-
success: true
|
|
54
|
-
}
|
|
55
|
-
service.saveInitService('getTxFaceResult',resData)
|
|
56
|
-
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
57
|
-
window.location.href = reUrl
|
|
58
|
-
return Promise.resolve(resData)
|
|
59
|
-
}).catch(err => {
|
|
60
|
-
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
61
|
-
reUrl = ak.http.deleteParams(reUrl,'orderNo')
|
|
62
|
-
reUrl = ak.http.deleteParams(reUrl,'signature')
|
|
63
|
-
reUrl = ak.http.deleteParams(reUrl,'h5faceId')
|
|
64
|
-
reUrl = ak.http.deleteParams(reUrl,'code')
|
|
65
|
-
window.location.href = reUrl
|
|
66
|
-
return Promise.reject(err)
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
}else{
|
|
70
|
-
Promise.reject()
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
function radomNum(n) {
|
|
77
|
-
var rnd = ''
|
|
78
|
-
for (var i = 0; i < n; i++) {
|
|
79
|
-
rnd += Math.floor(Math.random() * 10)
|
|
80
|
-
}
|
|
81
|
-
return rnd
|
|
82
|
-
}
|
|
83
|
-
export default getTxFaceResult;
|