fstarter 2.10.48 → 2.10.51

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 (80) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/index.html +22 -22
  4. package/index.js +222 -222
  5. package/package.json +1 -1
  6. package/src/App.vue +38 -38
  7. package/src/i18n/en-US.js +35 -35
  8. package/src/i18n/zh-CN.js +35 -35
  9. package/src/main.js +95 -87
  10. package/src/plugins/assets/ak.js +948 -948
  11. package/src/plugins/assets/callNative.js +490 -488
  12. package/src/plugins/assets/compressImg.js +75 -75
  13. package/src/plugins/assets/config.js +106 -106
  14. package/src/plugins/assets/fileServer.js +469 -469
  15. package/src/plugins/assets/http.js +343 -343
  16. package/src/plugins/assets/ua.js +27 -27
  17. package/src/plugins/components/BSButton.vue +61 -61
  18. package/src/plugins/components/BSCascader.vue +465 -465
  19. package/src/plugins/components/BSCell.vue +48 -48
  20. package/src/plugins/components/BSDatePicker.vue +167 -167
  21. package/src/plugins/components/BSImage.vue +42 -42
  22. package/src/plugins/components/BSInput.vue +140 -140
  23. package/src/plugins/components/BSList.vue +81 -81
  24. package/src/plugins/components/BSPicCode.vue +96 -96
  25. package/src/plugins/components/BSPopup.vue +43 -43
  26. package/src/plugins/components/BSRadio.vue +97 -97
  27. package/src/plugins/components/BSSearch.vue +109 -109
  28. package/src/plugins/components/BSSelect.vue +144 -144
  29. package/src/plugins/components/BSSign.vue +454 -454
  30. package/src/plugins/components/BSStepper.vue +115 -115
  31. package/src/plugins/components/BSUpload.vue +92 -92
  32. package/src/plugins/components/BSUpload2.vue +398 -398
  33. package/src/plugins/components/BSVerCode.vue +128 -129
  34. package/src/plugins/components/BSViewer.vue +92 -92
  35. package/src/plugins/components/base.js +496 -496
  36. package/src/plugins/components/base2.js +489 -489
  37. package/src/plugins/lib/weixin.js +20 -20
  38. package/src/plugins/platform/index.js +7 -7
  39. package/src/plugins/platform/isp_phone.js +310 -306
  40. package/src/plugins/route/index.js +140 -140
  41. package/src/plugins/selector/index.js +342 -342
  42. package/src/plugins/service/index.js +81 -81
  43. package/src/plugins/services/callCamera.js +53 -53
  44. package/src/plugins/services/exit.js +36 -36
  45. package/src/plugins/services/face.js +69 -69
  46. package/src/plugins/services/faceH5.js +49 -0
  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/getH5FaceResult.js +62 -0
  51. package/src/plugins/services/getMenus.js +40 -40
  52. package/src/plugins/services/getSystemData.js +128 -128
  53. package/src/plugins/services/getToken.js +79 -79
  54. package/src/plugins/services/getTxFaceResult.js +83 -83
  55. package/src/plugins/services/getUserInfo.js +47 -47
  56. package/src/plugins/services/goSetPage.js +40 -40
  57. package/src/plugins/services/hideFhoneTitle.js +36 -36
  58. package/src/plugins/services/index.js +45 -41
  59. package/src/plugins/services/init.js +35 -35
  60. package/src/plugins/services/jumpView.js +40 -40
  61. package/src/plugins/services/logout.js +43 -43
  62. package/src/plugins/services/share.js +113 -113
  63. package/src/plugins/services/statusBarHeight.js +39 -39
  64. package/src/plugins/session/index.js +32 -32
  65. package/src/services/getAuthInfo.js +22 -22
  66. package/src/services/index.js +9 -9
  67. package/src/services/sendVerCode.js +23 -23
  68. package/src/views/auth.vue +367 -367
  69. package/src/views/auth2.vue +90 -90
  70. package/src/views/auth3.vue +157 -157
  71. package/src/views/auth4.vue +8979 -8979
  72. package/src/views/auth5.vue +50 -50
  73. package/src/views/authh5.vue +369 -0
  74. package/src/views/components/BankSelect.vue +55 -55
  75. package/src/views/foot.vue +140 -140
  76. package/src/views/page.vue +222 -219
  77. package/src/views/shellFunc.vue +41 -41
  78. package/themes/basic.css +1 -1
  79. package/webpack.config.js +144 -144
  80. package/fstarter.iml +0 -9
@@ -1,367 +1,367 @@
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>
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: 3, // 倒计时时长
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>