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