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.
Files changed (78) 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 -167
  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 +382 -392
  35. package/src/plugins/components/BSVerCode.vue +131 -135
  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 -41
  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 +354 -361
  67. package/src/views/auth2.vue +90 -90
  68. package/src/views/auth3.vue +148 -157
  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
  77. package/src/plugins/services/faceTx.js +0 -61
  78. package/src/plugins/services/getTxFaceResult.js +0 -83
@@ -1,361 +1,354 @@
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
+ <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
+ defaultPickerVal: '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>