fstarter 2.10.43 → 2.10.47

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