fstarter 2.10.49 → 2.10.50

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fstarter",
3
3
  "description": "A Vue.js project",
4
- "version": "2.10.49",
4
+ "version": "2.10.50",
5
5
  "author": "han.zhang <zhanghan810810@163.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -473,7 +473,9 @@ function callShell(fnModel, param, cbparam, vnode = null) {
473
473
  }
474
474
  const requestJson = JSON.stringify(jsonObj)
475
475
  console.log('壳调用json:' + requestJson, ua)
476
- window.shellCaller = vnode
476
+ if (vnode != null) {
477
+ window.shellCaller = vnode
478
+ }
477
479
  if (ua.iPad || ua.iPhone) {
478
480
  if (window.navigator.userAgent.indexOf('app_ios_wk') != -1) {
479
481
  window.webkit.messageHandlers.JSonString.postMessage(requestJson)
@@ -28,7 +28,11 @@ platform = {
28
28
 
29
29
  const requestJson = JSON.stringify(jsonObj)
30
30
  console.log('requestJson', requestJson)
31
- window.shellCaller = vnode
31
+ //如果vnode没有赋值,则默认为null,说明业务层不需要vnode来处理回调事件
32
+ //所以避免冲掉正在进行的需要vnode回调事件的业务逻辑,增加一个为null的判断
33
+ if (vnode != null) {
34
+ window.shellCaller = vnode
35
+ }
32
36
  // window.webkit.messageHandlers.JSonString.postMessage(requestJson)
33
37
  // return
34
38
  if (ua.iPad || ua.iPhone) {
@@ -10,21 +10,21 @@
10
10
  <p @click="barHeight">获取bar的高度</p>
11
11
  <p @click="gosetPage">去配置页</p>
12
12
  <p @click="face">人脸</p>
13
- <bs-input
14
- :mod="submodel.name"
13
+ <bs-input
14
+ :mod="submodel.name"
15
15
  cname="name"
16
16
  @blur="blurFn"
17
17
  />
18
18
  <BankSelect :mod="submodel.bank" cname="bank"></BankSelect>
19
- <bs-radio
20
- :mod="submodel.sex"
19
+ <bs-radio
20
+ :mod="submodel.sex"
21
21
  cname="sex"
22
22
  ></bs-radio>
23
23
  <bs-input :mod="submodel.cardno" cname="cardno"/>
24
24
  <!-- send-verCode 发送短信事件 -->
25
- <bs-vercode
26
- :mod="submodel.vercode"
27
- @send-verCode="sendVerCode1"
25
+ <bs-vercode
26
+ :mod="submodel.vercode"
27
+ @send-verCode="sendVerCode"
28
28
  cname="vercode"
29
29
  :cusValidate="cusValidate_name"
30
30
  />
@@ -32,35 +32,35 @@
32
32
  :mod="submodel.piccode"
33
33
  cname="piccode"
34
34
  />
35
- <bs-datePicker
36
- :mod="submodel.data"
37
- cname="data"
35
+ <bs-datePicker
36
+ :mod="submodel.data"
37
+ cname="data"
38
38
  />
39
- <bs-search
40
- :mod="submodel.search"
39
+ <bs-search
40
+ :mod="submodel.search"
41
41
  cname="search"
42
- @search="search"
42
+ @search="search"
43
43
  />
44
- <bs-list
44
+ <bs-list
45
45
  :mod="submodel.list"
46
- cname="list"
46
+ cname="list"
47
47
  @onload="load"
48
48
  >
49
49
  <div slot="slotA"></div>
50
50
  </bs-list>
51
- <!-- <bs-popup
51
+ <!-- <bs-popup
52
52
  cname="popup"
53
53
  >
54
- <bs-image
55
- :mod="submodel.picture"
54
+ <bs-image
55
+ :mod="submodel.picture"
56
56
  cname="picture"
57
57
  >
58
58
  </bs-image>
59
59
  </bs-popup> -->
60
60
  <bs-stepper
61
61
  cname="stepper"
62
- :mod="submodel.stepper"
63
- >
62
+ :mod="submodel.stepper"
63
+ >
64
64
  <span slot="title">123</span>
65
65
  </bs-stepper>
66
66
  <div @click="a">123</div>
@@ -105,12 +105,12 @@
105
105
  readonly: false, // 只读
106
106
  placeholder: '请输入关键词', // placeholder
107
107
  leftIcon: 'search', // 输入框左侧图标名称或图片链接
108
- clearable: true, // 是否启用清除图标,点击清除图标后会清空输入框
108
+ clearable: true, // 是否启用清除图标,点击清除图标后会清空输入框
109
109
  inputAlign: 'left' // 输入框内容对齐方式,可选值为 center right
110
110
  },
111
111
  btn: {
112
112
  label: '确定', // 按钮文字
113
- disabled: false // 禁用
113
+ disabled: false // 禁用
114
114
  },
115
115
  name:{
116
116
  label:'lang.accname', // 输入框label
@@ -125,7 +125,7 @@
125
125
  {span: '123'}
126
126
  ]
127
127
  },
128
- cell: {
128
+ cell: {
129
129
  label: '', // 标题下方的描述信息
130
130
  value: '', // 右侧内容
131
131
  title: '' // 左侧标题
@@ -138,7 +138,7 @@
138
138
  disabled: false, // 禁用
139
139
  required: true, // 必填
140
140
  sendButtonLabel: '发送短信', // 按钮文字
141
- expiredTime: 5 , // 倒计时时长
141
+ expiredTime: 3, // 倒计时时长
142
142
  expiredLabel: '{0}s', // 倒计时格式
143
143
  validateType:'CUS' // 校验类型。见文档校验
144
144
  },
@@ -221,7 +221,7 @@
221
221
  imgurl:"http://www.ihasl.com/pages/common/share.png",
222
222
  // 固定入参
223
223
  shareType: "2",
224
- //
224
+ //
225
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
226
  // 分享标题
227
227
  title:"空中签名",
@@ -298,7 +298,7 @@
298
298
 
299
299
  // console.log(this.regedit)
300
300
  }
301
-
301
+
302
302
 
303
303
  },
304
304
  createDefaultModel() {
@@ -306,12 +306,9 @@
306
306
  title:'表单'
307
307
  };
308
308
  },
309
- sendVerCode1(resolve){
310
- console.log("2")
311
- console.log(1)
309
+ sendVerCode(resolve){
310
+ debugger
312
311
  setTimeout(function() {
313
- console.log("3")
314
-
315
312
  resolve()
316
313
  }, 1000)
317
314
 
@@ -319,7 +316,7 @@
319
316
  // resolve()
320
317
  // }
321
318
  // )
322
-
319
+
323
320
  },
324
321
  authWatchHandle(){
325
322
 
@@ -62,10 +62,13 @@
62
62
  menu:[]
63
63
  }
64
64
  },
65
+ created() {
66
+ //把基础参数的获取从mounted提前到created中,避免业务代码大量的请求基础参数导致的一些问题
67
+ this.$service.callServices(['hideToolBar','getToken','getSystemData'])
68
+ },
65
69
  mounted() {
66
70
 
67
71
  weixin.hideWxMenu()
68
- this.$service.callServices(['hideToolBar','getToken','getSystemData'])
69
72
 
70
73
  },
71
74
  computed: {
package/fstarter.iml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>