fstarter 2.10.45 → 2.10.48

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.
Files changed (78) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/fstarter.iml +9 -0
  4. package/index.html +22 -22
  5. package/index.js +222 -222
  6. package/package.json +104 -104
  7. package/src/App.vue +38 -38
  8. package/src/i18n/en-US.js +35 -35
  9. package/src/i18n/zh-CN.js +35 -35
  10. package/src/main.js +87 -87
  11. package/src/plugins/assets/ak.js +948 -948
  12. package/src/plugins/assets/callNative.js +488 -488
  13. package/src/plugins/assets/compressImg.js +75 -75
  14. package/src/plugins/assets/config.js +106 -106
  15. package/src/plugins/assets/fileServer.js +469 -469
  16. package/src/plugins/assets/http.js +343 -343
  17. package/src/plugins/assets/ua.js +27 -27
  18. package/src/plugins/components/BSButton.vue +61 -61
  19. package/src/plugins/components/BSCascader.vue +465 -465
  20. package/src/plugins/components/BSCell.vue +48 -48
  21. package/src/plugins/components/BSDatePicker.vue +167 -167
  22. package/src/plugins/components/BSImage.vue +42 -42
  23. package/src/plugins/components/BSInput.vue +140 -140
  24. package/src/plugins/components/BSList.vue +81 -81
  25. package/src/plugins/components/BSPicCode.vue +96 -96
  26. package/src/plugins/components/BSPopup.vue +43 -43
  27. package/src/plugins/components/BSRadio.vue +97 -97
  28. package/src/plugins/components/BSSearch.vue +109 -109
  29. package/src/plugins/components/BSSelect.vue +144 -144
  30. package/src/plugins/components/BSSign.vue +454 -454
  31. package/src/plugins/components/BSStepper.vue +115 -115
  32. package/src/plugins/components/BSUpload.vue +92 -92
  33. package/src/plugins/components/BSUpload2.vue +398 -392
  34. package/src/plugins/components/BSVerCode.vue +129 -135
  35. package/src/plugins/components/BSViewer.vue +92 -92
  36. package/src/plugins/components/base.js +496 -496
  37. package/src/plugins/components/base2.js +489 -489
  38. package/src/plugins/lib/weixin.js +20 -20
  39. package/src/plugins/platform/index.js +7 -7
  40. package/src/plugins/platform/isp_phone.js +306 -306
  41. package/src/plugins/route/index.js +140 -140
  42. package/src/plugins/selector/index.js +342 -342
  43. package/src/plugins/service/index.js +81 -81
  44. package/src/plugins/services/callCamera.js +53 -53
  45. package/src/plugins/services/exit.js +36 -36
  46. package/src/plugins/services/face.js +69 -69
  47. package/src/plugins/services/faceInApp.js +31 -31
  48. package/src/plugins/services/faceTx.js +61 -61
  49. package/src/plugins/services/getFaceResult.js +104 -104
  50. package/src/plugins/services/getMenus.js +40 -40
  51. package/src/plugins/services/getSystemData.js +128 -128
  52. package/src/plugins/services/getToken.js +79 -79
  53. package/src/plugins/services/getTxFaceResult.js +83 -83
  54. package/src/plugins/services/getUserInfo.js +47 -47
  55. package/src/plugins/services/goSetPage.js +40 -40
  56. package/src/plugins/services/hideFhoneTitle.js +36 -36
  57. package/src/plugins/services/index.js +41 -41
  58. package/src/plugins/services/init.js +35 -35
  59. package/src/plugins/services/jumpView.js +40 -40
  60. package/src/plugins/services/logout.js +43 -43
  61. package/src/plugins/services/share.js +113 -113
  62. package/src/plugins/services/statusBarHeight.js +39 -39
  63. package/src/plugins/session/index.js +32 -32
  64. package/src/services/getAuthInfo.js +22 -22
  65. package/src/services/index.js +9 -9
  66. package/src/services/sendVerCode.js +23 -23
  67. package/src/views/auth.vue +367 -361
  68. package/src/views/auth2.vue +90 -90
  69. package/src/views/auth3.vue +157 -157
  70. package/src/views/auth4.vue +8979 -8979
  71. package/src/views/auth5.vue +50 -50
  72. package/src/views/components/BankSelect.vue +55 -55
  73. package/src/views/foot.vue +140 -140
  74. package/src/views/page.vue +219 -219
  75. package/src/views/shellFunc.vue +41 -41
  76. package/themes/basic.css +1 -1
  77. package/webpack.config.js +144 -144
  78. package/README.md +0 -18
@@ -1,361 +1,367 @@
1
- <template>
2
-
3
- <van-cell-group>
4
- <p @click="share">分享</p>
5
- <p @click="camera">相机</p>
6
- <p @click="jump">跳转</p>
7
- <p @click="barHeight">获取bar的高度</p>
8
- <p @click="gosetPage">去配置页</p>
9
- <p @click="face">人脸</p>
10
- <bs-input
11
- :mod="submodel.name"
12
- cname="name"
13
- @blur="blurFn"
14
- />
15
- <BankSelect :mod="submodel.bank" cname="bank"></BankSelect>
16
- <bs-radio
17
- :mod="submodel.sex"
18
- cname="sex"
19
- ></bs-radio>
20
- <bs-input :mod="submodel.cardno" cname="cardno"/>
21
- <!-- send-verCode 发送短信事件 -->
22
- <bs-vercode
23
- :mod="submodel.vercode"
24
- @send-verCode="sendVerCode"
25
- cname="vercode"
26
- :cusValidate="cusValidate_name"
27
- />
28
- <bs-piccode
29
- :mod="submodel.piccode"
30
- cname="piccode"
31
- />
32
- <bs-datePicker
33
- :mod="submodel.data"
34
- cname="data"
35
- />
36
- <bs-search
37
- :mod="submodel.search"
38
- cname="search"
39
- @search="search"
40
- />
41
- <bs-list
42
- :mod="submodel.list"
43
- cname="list"
44
- @onload="load"
45
- >
46
- <div slot="slotA"></div>
47
- </bs-list>
48
- <!-- <bs-popup
49
- cname="popup"
50
- >
51
- <bs-image
52
- :mod="submodel.picture"
53
- cname="picture"
54
- >
55
- </bs-image>
56
- </bs-popup> -->
57
- <bs-stepper
58
- cname="stepper"
59
- :mod="submodel.stepper"
60
- >
61
- <span slot="title">123</span>
62
- </bs-stepper>
63
- <div @click="a">123</div>
64
- </van-cell-group>
65
-
66
- </template>
67
-
68
- <script>
69
-
70
- import base from '../plugins/components/base.js'
71
- import BankSelect from './components/BankSelect.vue'
72
-
73
- export default {
74
- name: "auth",
75
- components: { BankSelect },
76
- mixins: [base],
77
- props: {
78
-
79
- },
80
- data() {
81
- return {
82
- vname:'auth',
83
- needProcessEvent:true,
84
- needLoadData: true,
85
- submodel:{
86
- data: {
87
- required:true, // 必填
88
- needStar: false,
89
- text: '',
90
- maxDate: '2030-02-03',
91
- placeholder: '123123',
92
- defaultPickerVal: '2020-02-03'
93
- },
94
- stepper:{
95
- min: -2,
96
- max: 5000,
97
- integer: true
98
- },
99
- search: {
100
- maxlength: 100, // 输入的值的最大长度
101
- text: '', // 输入的值
102
- readonly: false, // 只读
103
- placeholder: '请输入关键词', // placeholder
104
- leftIcon: 'search', // 输入框左侧图标名称或图片链接
105
- clearable: true, // 是否启用清除图标,点击清除图标后会清空输入框
106
- inputAlign: 'left' // 输入框内容对齐方式,可选值为 center right
107
- },
108
- btn: {
109
- label: '确定', // 按钮文字
110
- disabled: false // 禁用
111
- },
112
- name:{
113
- label:'lang.accname', // 输入框label
114
- placeholder:'请输入您的姓名', // placeholder
115
- required:true, // 必填
116
- readonly:false, // 只读
117
-
118
- },
119
- list: {
120
- finishedText: '加载中..', // 加载完成后的提示文案
121
- list: [
122
- {span: '123'}
123
- ]
124
- },
125
- cell: {
126
- label: '', // 标题下方的描述信息
127
- value: '', // 右侧内容
128
- title: '' // 左侧标题
129
- },
130
- bank:{required:true,readonly:false},
131
- cardno:{label:'扣款卡号',placeholder:'请输入扣款卡号',required:true,readonly:true},
132
- vercode:{
133
- label: '验证码', // label
134
- placeholder: '请输入验证码', // placeholder
135
- disabled: false, // 禁用
136
- required: true, // 必填
137
- sendButtonLabel: '发送短信', // 按钮文字
138
- expiredTime: 3, // 倒计时时长
139
- expiredLabel: '{0}s', // 倒计时格式
140
- validateType:'CUS' // 校验类型。见文档校验
141
- },
142
- piccode:{
143
- label:'验证码', // label
144
- placeholder:'请输入验证码', // placeholder
145
- disabled:true, // 禁用
146
- required:true, // 必填
147
- fileId:'18d339fe9861935f33df4cbf55fc251a'
148
- },
149
- sex:{
150
- label: '性别', // label
151
- value: '0', // 绑定的值
152
- required: true, // 必填
153
- readonly: true, // 只读
154
- items: [{value:"lang.man",key:"1"},{value:"lang.women",key:"0"}] // 选项
155
- },
156
- createDate:{label:'创建日期',placeholder:'请选择创建日期',required:true,readonly:false},
157
- picture:{
158
- value:'https://www.baidu.com/img/flexible/logo/pc/result.png' // 图片url
159
- },
160
- popup: {
161
- show: false // 是否显示
162
- }
163
-
164
- },
165
- flag:true
166
- }
167
- },
168
- mounted() {
169
- // this.selector('#data').setValue(new Date())
170
- this.session.sys.toolbar.title='sss'
171
- // this.$service.callService('getAuthInfo')
172
- this.$on('getPic', (res) => {
173
- console.log(res)
174
- })
175
- this.$on('statusBarHeight', (res) => {
176
- console.log(res)
177
- })
178
- this.$on('live', (res) => {
179
- console.log(res)
180
- })
181
- setTimeout(()=>{
182
- this.session.sys.title='sddss'
183
- this.selector('#name').reset()
184
-
185
- },5000)
186
-
187
- },
188
- methods: {
189
- face() {
190
- const a = {
191
- idcard_number: '152531199103160179',
192
- idcard_name: '胡玉泽'
193
- }
194
- this.$service.callService('faceTx', a)
195
- },
196
- gosetPage() {
197
- this.$service.callService('goSetPage')
198
- },
199
- barHeight() {
200
- const a = {
201
- vnode: this,
202
- }
203
- this.$service.callService('statusBarHeight', a)
204
- },
205
- jump() {
206
- const a = {
207
- url: 'http://192.168.1.15:8080/#/auth2',
208
- pageCode: 'tarinJump', // 训练页面
209
- // pageCode: 'COMMON_PRIMARY_PAGE' 指定页面
210
- }
211
- this.$service.callService('jumpView', a)
212
- },
213
- share() {
214
- const a = {
215
- // 分享链接描述
216
- description:"尊敬的老大先生/女士:您购买的MRE-御医保医疗保险,请您签名!感谢您对恒安标准人寿的信任。",
217
- // 分享链接配图
218
- imgurl:"http://www.ihasl.com/pages/common/share.png",
219
- // 固定入参
220
- shareType: "2",
221
- //
222
- // text:"https://www.ihasl.com/pages/eas/#/eleinsure/flySign?agentInfo=%7B%22payment_mode%22%3A%220%22%2C%22images%22%3A%5B%5D%2C%22agent_id%22%3A%2260005273%22%2C%22agent_name%22%3A%22%E5%B0%A4%E4%B8%B9%22%2C%22is_qt%22%3A%22N%22%2C%22is_fh%22%3A%22N%22%2C%22sum_initial_premium%22%3A%22325.0%22%2C%22is_tl%22%3A%22N%22%2C%22is_wn%22%3A%22N%22%2C%22total_premium%22%3A%220.0%22%2C%22policy_type%22%3A%22lib_pro%22%2C%22full_name%22%3A%22%E8%80%81%E5%A4%A7%22%2C%22payment_duration%22%3A%221%22%2C%22company_name%22%3A%22%E6%81%92%E5%AE%89%E6%A0%87%E5%87%86%E4%BA%BA%E5%AF%BF%E4%BF%9D%E9%99%A9%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%E5%A4%A9%E6%B4%A5%E5%88%86%E5%85%AC%E5%8F%B8%22%2C%22rn%22%3A1%2C%22zy_card_no%22%3A%2202003812000080002018000567%22%2C%22risk_name%22%3A%22MRE-%E5%BE%A1%E5%8C%BB%E4%BF%9D%E5%8C%BB%E7%96%97%E4%BF%9D%E9%99%A9%22%7D&applyTime=&isTaxExc=lib_pro&rn=0&otherPartyUuid=&isSamePerson=N&applicantHasSign=N&isSign=N&isShare=N&serno=hUDedDxn&orderUuid=Vv65u4Vy&policyUuid=wzB7maly&tPartyUuid=pmYtgjBz&bPartyUuid=&hasReliefClause=Y",
223
- // 分享标题
224
- title:"空中签名",
225
- // 分享链接地址
226
- // url:"https://www.ihasl.com/pages/eas/#/eleinsure/flySign?agentInfo=%7B%22payment_mode%22%3A%220%22%2C%22images%22%3A%5B%5D%2C%22agent_id%22%3A%2260005273%22%2C%22agent_name%22%3A%22%E5%B0%A4%E4%B8%B9%22%2C%22is_qt%22%3A%22N%22%2C%22is_fh%22%3A%22N%22%2C%22sum_initial_premium%22%3A%22325.0%22%2C%22is_tl%22%3A%22N%22%2C%22is_wn%22%3A%22N%22%2C%22total_premium%22%3A%220.0%22%2C%22policy_type%22%3A%22lib_pro%22%2C%22full_name%22%3A%22%E8%80%81%E5%A4%A7%22%2C%22payment_duration%22%3A%221%22%2C%22company_name%22%3A%22%E6%81%92%E5%AE%89%E6%A0%87%E5%87%86%E4%BA%BA%E5%AF%BF%E4%BF%9D%E9%99%A9%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%E5%A4%A9%E6%B4%A5%E5%88%86%E5%85%AC%E5%8F%B8%22%2C%22rn%22%3A1%2C%22zy_card_no%22%3A%2202003812000080002018000567%22%2C%22risk_name%22%3A%22MRE-%E5%BE%A1%E5%8C%BB%E4%BF%9D%E5%8C%BB%E7%96%97%E4%BF%9D%E9%99%A9%22%7D&applyTime=&isTaxExc=lib_pro&rn=0&otherPartyUuid=&isSamePerson=N&applicantHasSign=N&isSign=N&isShare=N&serno=hUDedDxn&orderUuid=Vv65u4Vy&policyUuid=wzB7maly&tPartyUuid=pmYtgjBz&bPartyUuid=&hasReliefClause=Y"
227
- }
228
- this.$service.callService('share', a)
229
- },
230
- camera() {
231
- // 配合mounted钩子函数中的$on来使用
232
- const param = {
233
- // 当前node节点,来绑定回调用
234
- vnode: this,
235
- // 随机数,长度适中
236
- buzId: 'asdf123123',
237
- cancelCrop: true,
238
- // 相册是否多选
239
- multiple: false,
240
- cropType: '1' // 图片裁剪类型 ,0 横向裁剪 宽 :高 = 8 :5, 1 竖向裁剪 宽 :高 = 5 :7
241
-
242
- }
243
- this.$service.callService('camera', param)
244
- },
245
- a() {
246
- // this.selector('#stepper').set('min', 20)
247
-          this.selector('#data').setValue(new Date())
248
- //          this.selector('#data').set(new Date())
249
- },
250
- search() {
251
- console.log(123)
252
- },
253
- blurFn() {
254
- console.log('blur')
255
- },
256
- load() {
257
- console.log(123)
258
- },
259
- processEvent(event){
260
-
261
- this.authWatchHandle()
262
-
263
- },
264
- cusValidate_name(self,value){
265
-
266
- if(value.value == 'aa'){
267
- return this.$service.callService('sendVerCode').then((data)=>{
268
- return ''
269
- })
270
- }else{
271
- return this.$service.callService('sendVerCode').then((data)=>{
272
- return {message:'该用户已存在',level:8}
273
- })
274
- }
275
-
276
- },
277
- loadData(res){
278
- if (res.serviceId === 'getTxFaceResult') {
279
- console.log(res)
280
- }
281
- if(res.serviceId == 'getAuthInfo'){
282
- // console.log('aaaaaaa')
283
- // console.log(this.selector('>page').ctls)
284
- // let data = res.data
285
- // this.selector('#auth').selector('')
286
- // this.selector('#name').selector('#name').setValue(data.name)
287
- // this.selector('#bank').setValue(data.bank)
288
- // this.selector('#sex').setValue('1')
289
- // // this.selector('#sex').set('items',[{value:"dddd",key:"21"},{value:"ffff",key:"01"}])
290
-
291
- // this.selector('#cardno').setValue(data.cardno)
292
-
293
- // console.log(this.regedit)
294
- }
295
-
296
-
297
- },
298
- createDefaultModel() {
299
- return {
300
- title:'表单'
301
- };
302
- },
303
- sendVerCode(resolve){
304
- debugger
305
- setTimeout(function() {
306
- resolve()
307
- }, 1000)
308
-
309
- // this.$service.callService('sendVerCode').then((data)=>{
310
- // resolve()
311
- // }
312
- // )
313
-
314
- },
315
- authWatchHandle(){
316
-
317
-
318
- if(this.$ak.utils.isEmpty(this.selector('##name').getValue())
319
- || this.$ak.utils.isEmpty(this.selector('##bank').getValue())
320
- || this.$ak.utils.isEmpty(this.selector('##cardno').getValue())
321
- || this.$ak.utils.isEmpty(this.selector('##vercode').getValue())
322
- ){
323
- this.selector('##btn').disable()
324
- }else{
325
- this.selector('##btn').enable()
326
- }
327
-
328
- if(this.$ak.utils.isEmpty(this.selector('##name').getValue())
329
- || this.$ak.utils.isEmpty(this.selector('##bank').getValue())
330
- || this.$ak.utils.isEmpty(this.selector('##cardno').getValue())
331
- ){
332
- this.selector('##vercode').disable()
333
- }else{
334
- this.selector('##vercode').enable()
335
- }
336
-
337
- }
338
- },
339
- watch: {
340
-
341
-
342
-
343
- }
344
-
345
- }
346
-
347
-
348
-
349
- </script>
350
-
351
-
352
- <style scoped>
353
- #app {
354
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
355
- -webkit-font-smoothing: antialiased;
356
- -moz-osx-font-smoothing: grayscale;
357
- text-align: center;
358
- color: #2c3e50;
359
- margin-top: 0px;
360
- }
361
- </style>
1
+ <template>
2
+
3
+ <van-cell-group>
4
+ <bs-upload2
5
+ @clickUpload="clickUpload"
6
+ ></bs-upload2>
7
+ <p @click="share">分享</p>
8
+ <p @click="camera">相机</p>
9
+ <p @click="jump">跳转</p>
10
+ <p @click="barHeight">获取bar的高度</p>
11
+ <p @click="gosetPage">去配置页</p>
12
+ <p @click="face">人脸</p>
13
+ <bs-input
14
+ :mod="submodel.name"
15
+ cname="name"
16
+ @blur="blurFn"
17
+ />
18
+ <BankSelect :mod="submodel.bank" cname="bank"></BankSelect>
19
+ <bs-radio
20
+ :mod="submodel.sex"
21
+ cname="sex"
22
+ ></bs-radio>
23
+ <bs-input :mod="submodel.cardno" cname="cardno"/>
24
+ <!-- send-verCode 发送短信事件 -->
25
+ <bs-vercode
26
+ :mod="submodel.vercode"
27
+ @send-verCode="sendVerCode"
28
+ cname="vercode"
29
+ :cusValidate="cusValidate_name"
30
+ />
31
+ <bs-piccode
32
+ :mod="submodel.piccode"
33
+ cname="piccode"
34
+ />
35
+ <bs-datePicker
36
+ :mod="submodel.data"
37
+ cname="data"
38
+ />
39
+ <bs-search
40
+ :mod="submodel.search"
41
+ cname="search"
42
+ @search="search"
43
+ />
44
+ <bs-list
45
+ :mod="submodel.list"
46
+ cname="list"
47
+ @onload="load"
48
+ >
49
+ <div slot="slotA"></div>
50
+ </bs-list>
51
+ <!-- <bs-popup
52
+ cname="popup"
53
+ >
54
+ <bs-image
55
+ :mod="submodel.picture"
56
+ cname="picture"
57
+ >
58
+ </bs-image>
59
+ </bs-popup> -->
60
+ <bs-stepper
61
+ cname="stepper"
62
+ :mod="submodel.stepper"
63
+ >
64
+ <span slot="title">123</span>
65
+ </bs-stepper>
66
+ <div @click="a">123</div>
67
+ </van-cell-group>
68
+
69
+ </template>
70
+
71
+ <script>
72
+
73
+ import base from '../plugins/components/base.js'
74
+ import BankSelect from './components/BankSelect.vue'
75
+
76
+ export default {
77
+ name: "auth",
78
+ components: { BankSelect },
79
+ mixins: [base],
80
+ props: {
81
+
82
+ },
83
+ data() {
84
+ return {
85
+ vname:'auth',
86
+ needProcessEvent:true,
87
+ needLoadData: true,
88
+ submodel:{
89
+ data: {
90
+ required:true, // 必填
91
+ needStar: false,
92
+ text: '',
93
+ maxDate: '2030-02-03',
94
+ placeholder: '123123',
95
+ defaultPickerVal: '2020-02-03'
96
+ },
97
+ stepper:{
98
+ min: -2,
99
+ max: 5000,
100
+ integer: true
101
+ },
102
+ search: {
103
+ maxlength: 100, // 输入的值的最大长度
104
+ text: '', // 输入的值
105
+ readonly: false, // 只读
106
+ placeholder: '请输入关键词', // placeholder
107
+ leftIcon: 'search', // 输入框左侧图标名称或图片链接
108
+ clearable: true, // 是否启用清除图标,点击清除图标后会清空输入框
109
+ inputAlign: 'left' // 输入框内容对齐方式,可选值为 center right
110
+ },
111
+ btn: {
112
+ label: '确定', // 按钮文字
113
+ disabled: false // 禁用
114
+ },
115
+ name:{
116
+ label:'lang.accname', // 输入框label
117
+ placeholder:'请输入您的姓名', // placeholder
118
+ required:true, // 必填
119
+ readonly:false, // 只读
120
+
121
+ },
122
+ list: {
123
+ finishedText: '加载中..', // 加载完成后的提示文案
124
+ list: [
125
+ {span: '123'}
126
+ ]
127
+ },
128
+ cell: {
129
+ label: '', // 标题下方的描述信息
130
+ value: '', // 右侧内容
131
+ title: '' // 左侧标题
132
+ },
133
+ bank:{required:true,readonly:false},
134
+ cardno:{label:'扣款卡号',placeholder:'请输入扣款卡号',required:true,readonly:true},
135
+ vercode:{
136
+ label: '验证码', // label
137
+ placeholder: '请输入验证码', // placeholder
138
+ disabled: false, // 禁用
139
+ required: true, // 必填
140
+ sendButtonLabel: '发送短信', // 按钮文字
141
+ expiredTime: 5 , // 倒计时时长
142
+ expiredLabel: '{0}s', // 倒计时格式
143
+ validateType:'CUS' // 校验类型。见文档校验
144
+ },
145
+ piccode:{
146
+ label:'验证码', // label
147
+ placeholder:'请输入验证码', // placeholder
148
+ disabled:true, // 禁用
149
+ required:true, // 必填
150
+ fileId:'18d339fe9861935f33df4cbf55fc251a'
151
+ },
152
+ sex:{
153
+ label: '性别', // label
154
+ value: '0', // 绑定的值
155
+ required: true, // 必填
156
+ readonly: true, // 只读
157
+ items: [{value:"lang.man",key:"1"},{value:"lang.women",key:"0"}] // 选项
158
+ },
159
+ createDate:{label:'创建日期',placeholder:'请选择创建日期',required:true,readonly:false},
160
+ picture:{
161
+ value:'https://www.baidu.com/img/flexible/logo/pc/result.png' // 图片url
162
+ },
163
+ popup: {
164
+ show: false // 是否显示
165
+ }
166
+
167
+ },
168
+ flag:true
169
+ }
170
+ },
171
+ mounted() {
172
+ // this.selector('#data').setValue(new Date())
173
+ this.session.sys.toolbar.title='sss'
174
+ // this.$service.callService('getAuthInfo')
175
+ this.$on('getPic', (res) => {
176
+ console.log(res)
177
+ })
178
+ this.$on('statusBarHeight', (res) => {
179
+ console.log(res)
180
+ })
181
+ this.$on('live', (res) => {
182
+ console.log(res)
183
+ })
184
+ setTimeout(()=>{
185
+ this.session.sys.title='sddss'
186
+ this.selector('#name').reset()
187
+
188
+ },5000)
189
+
190
+ },
191
+ methods: {
192
+ face() {
193
+ const a = {
194
+ idcard_number: '152531199103160179',
195
+ idcard_name: '胡玉泽'
196
+ }
197
+ this.$service.callService('faceTx', a)
198
+ },
199
+ gosetPage() {
200
+ this.$service.callService('goSetPage')
201
+ },
202
+ barHeight() {
203
+ const a = {
204
+ vnode: this,
205
+ }
206
+ this.$service.callService('statusBarHeight', a)
207
+ },
208
+ jump() {
209
+ const a = {
210
+ url: 'http://192.168.1.15:8080/#/auth2',
211
+ pageCode: 'tarinJump', // 训练页面
212
+ // pageCode: 'COMMON_PRIMARY_PAGE' 指定页面
213
+ }
214
+ this.$service.callService('jumpView', a)
215
+ },
216
+ share() {
217
+ const a = {
218
+ // 分享链接描述
219
+ description:"尊敬的老大先生/女士:您购买的MRE-御医保医疗保险,请您签名!感谢您对恒安标准人寿的信任。",
220
+ // 分享链接配图
221
+ imgurl:"http://www.ihasl.com/pages/common/share.png",
222
+ // 固定入参
223
+ shareType: "2",
224
+ //
225
+ // text:"https://www.ihasl.com/pages/eas/#/eleinsure/flySign?agentInfo=%7B%22payment_mode%22%3A%220%22%2C%22images%22%3A%5B%5D%2C%22agent_id%22%3A%2260005273%22%2C%22agent_name%22%3A%22%E5%B0%A4%E4%B8%B9%22%2C%22is_qt%22%3A%22N%22%2C%22is_fh%22%3A%22N%22%2C%22sum_initial_premium%22%3A%22325.0%22%2C%22is_tl%22%3A%22N%22%2C%22is_wn%22%3A%22N%22%2C%22total_premium%22%3A%220.0%22%2C%22policy_type%22%3A%22lib_pro%22%2C%22full_name%22%3A%22%E8%80%81%E5%A4%A7%22%2C%22payment_duration%22%3A%221%22%2C%22company_name%22%3A%22%E6%81%92%E5%AE%89%E6%A0%87%E5%87%86%E4%BA%BA%E5%AF%BF%E4%BF%9D%E9%99%A9%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%E5%A4%A9%E6%B4%A5%E5%88%86%E5%85%AC%E5%8F%B8%22%2C%22rn%22%3A1%2C%22zy_card_no%22%3A%2202003812000080002018000567%22%2C%22risk_name%22%3A%22MRE-%E5%BE%A1%E5%8C%BB%E4%BF%9D%E5%8C%BB%E7%96%97%E4%BF%9D%E9%99%A9%22%7D&applyTime=&isTaxExc=lib_pro&rn=0&otherPartyUuid=&isSamePerson=N&applicantHasSign=N&isSign=N&isShare=N&serno=hUDedDxn&orderUuid=Vv65u4Vy&policyUuid=wzB7maly&tPartyUuid=pmYtgjBz&bPartyUuid=&hasReliefClause=Y",
226
+ // 分享标题
227
+ title:"空中签名",
228
+ // 分享链接地址
229
+ // url:"https://www.ihasl.com/pages/eas/#/eleinsure/flySign?agentInfo=%7B%22payment_mode%22%3A%220%22%2C%22images%22%3A%5B%5D%2C%22agent_id%22%3A%2260005273%22%2C%22agent_name%22%3A%22%E5%B0%A4%E4%B8%B9%22%2C%22is_qt%22%3A%22N%22%2C%22is_fh%22%3A%22N%22%2C%22sum_initial_premium%22%3A%22325.0%22%2C%22is_tl%22%3A%22N%22%2C%22is_wn%22%3A%22N%22%2C%22total_premium%22%3A%220.0%22%2C%22policy_type%22%3A%22lib_pro%22%2C%22full_name%22%3A%22%E8%80%81%E5%A4%A7%22%2C%22payment_duration%22%3A%221%22%2C%22company_name%22%3A%22%E6%81%92%E5%AE%89%E6%A0%87%E5%87%86%E4%BA%BA%E5%AF%BF%E4%BF%9D%E9%99%A9%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%E5%A4%A9%E6%B4%A5%E5%88%86%E5%85%AC%E5%8F%B8%22%2C%22rn%22%3A1%2C%22zy_card_no%22%3A%2202003812000080002018000567%22%2C%22risk_name%22%3A%22MRE-%E5%BE%A1%E5%8C%BB%E4%BF%9D%E5%8C%BB%E7%96%97%E4%BF%9D%E9%99%A9%22%7D&applyTime=&isTaxExc=lib_pro&rn=0&otherPartyUuid=&isSamePerson=N&applicantHasSign=N&isSign=N&isShare=N&serno=hUDedDxn&orderUuid=Vv65u4Vy&policyUuid=wzB7maly&tPartyUuid=pmYtgjBz&bPartyUuid=&hasReliefClause=Y"
230
+ }
231
+ this.$service.callService('share', a)
232
+ },
233
+ camera() {
234
+ // 配合mounted钩子函数中的$on来使用
235
+ const param = {
236
+ // 当前node节点,来绑定回调用
237
+ vnode: this,
238
+ // 随机数,长度适中
239
+ buzId: 'asdf123123',
240
+ cancelCrop: true,
241
+ // 相册是否多选
242
+ multiple: false,
243
+ cropType: '1' // 图片裁剪类型 ,0 横向裁剪 宽 :高 = 8 :5, 1 竖向裁剪 宽 :高 = 5 :7
244
+
245
+ }
246
+ this.$service.callService('camera', param)
247
+ },
248
+ clickUpload() {
249
+ // console.log("点了上传图片")
250
+ },
251
+ a() {
252
+ // this.selector('#stepper').set('min', 20)
253
+          this.selector('#data').setValue(new Date())
254
+ //          this.selector('#data').set(new Date())
255
+ },
256
+ search() {
257
+ console.log(123)
258
+ },
259
+ blurFn() {
260
+ console.log('blur')
261
+ },
262
+ load() {
263
+ console.log(123)
264
+ },
265
+ processEvent(event){
266
+
267
+ this.authWatchHandle()
268
+
269
+ },
270
+ cusValidate_name(self,value){
271
+
272
+ if(value.value == 'aa'){
273
+ return this.$service.callService('sendVerCode').then((data)=>{
274
+ return ''
275
+ })
276
+ }else{
277
+ return this.$service.callService('sendVerCode').then((data)=>{
278
+ return {message:'该用户已存在',level:8}
279
+ })
280
+ }
281
+
282
+ },
283
+ loadData(res){
284
+ if (res.serviceId === 'getTxFaceResult') {
285
+ console.log(res)
286
+ }
287
+ if(res.serviceId == 'getAuthInfo'){
288
+ // console.log('aaaaaaa')
289
+ // console.log(this.selector('>page').ctls)
290
+ // let data = res.data
291
+ // this.selector('#auth').selector('')
292
+ // this.selector('#name').selector('#name').setValue(data.name)
293
+ // this.selector('#bank').setValue(data.bank)
294
+ // this.selector('#sex').setValue('1')
295
+ // // this.selector('#sex').set('items',[{value:"dddd",key:"21"},{value:"ffff",key:"01"}])
296
+
297
+ // this.selector('#cardno').setValue(data.cardno)
298
+
299
+ // console.log(this.regedit)
300
+ }
301
+
302
+
303
+ },
304
+ createDefaultModel() {
305
+ return {
306
+ title:'表单'
307
+ };
308
+ },
309
+ sendVerCode(resolve){
310
+ debugger
311
+ setTimeout(function() {
312
+ resolve()
313
+ }, 1000)
314
+
315
+ // this.$service.callService('sendVerCode').then((data)=>{
316
+ // resolve()
317
+ // }
318
+ // )
319
+
320
+ },
321
+ authWatchHandle(){
322
+
323
+
324
+ if(this.$ak.utils.isEmpty(this.selector('##name').getValue())
325
+ || this.$ak.utils.isEmpty(this.selector('##bank').getValue())
326
+ || this.$ak.utils.isEmpty(this.selector('##cardno').getValue())
327
+ || this.$ak.utils.isEmpty(this.selector('##vercode').getValue())
328
+ ){
329
+ this.selector('##btn').disable()
330
+ }else{
331
+ this.selector('##btn').enable()
332
+ }
333
+
334
+ if(this.$ak.utils.isEmpty(this.selector('##name').getValue())
335
+ || this.$ak.utils.isEmpty(this.selector('##bank').getValue())
336
+ || this.$ak.utils.isEmpty(this.selector('##cardno').getValue())
337
+ ){
338
+ this.selector('##vercode').disable()
339
+ }else{
340
+ this.selector('##vercode').enable()
341
+ }
342
+
343
+ }
344
+ },
345
+ watch: {
346
+
347
+
348
+
349
+ }
350
+
351
+ }
352
+
353
+
354
+
355
+ </script>
356
+
357
+
358
+ <style scoped>
359
+ #app {
360
+ font-family: 'Avenir', Helvetica, Arial, sans-serif;
361
+ -webkit-font-smoothing: antialiased;
362
+ -moz-osx-font-smoothing: grayscale;
363
+ text-align: center;
364
+ color: #2c3e50;
365
+ margin-top: 0px;
366
+ }
367
+ </style>