fstarter 2.10.49 → 2.10.52
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/.babelrc +6 -6
- package/.editorconfig +9 -9
- package/index.html +22 -22
- package/index.js +222 -222
- package/package.json +104 -104
- package/src/App.vue +38 -38
- package/src/i18n/en-US.js +35 -35
- package/src/i18n/zh-CN.js +35 -35
- package/src/main.js +95 -87
- package/src/plugins/assets/ak.js +948 -948
- package/src/plugins/assets/callNative.js +490 -488
- package/src/plugins/assets/compressImg.js +75 -75
- package/src/plugins/assets/config.js +106 -106
- package/src/plugins/assets/fileServer.js +469 -469
- package/src/plugins/assets/http.js +343 -343
- package/src/plugins/assets/ua.js +27 -27
- package/src/plugins/components/BSButton.vue +61 -61
- package/src/plugins/components/BSCascader.vue +465 -465
- package/src/plugins/components/BSCell.vue +48 -48
- package/src/plugins/components/BSDatePicker.vue +167 -167
- package/src/plugins/components/BSImage.vue +42 -42
- package/src/plugins/components/BSInput.vue +140 -140
- package/src/plugins/components/BSList.vue +81 -81
- package/src/plugins/components/BSPicCode.vue +96 -96
- package/src/plugins/components/BSPopup.vue +43 -43
- package/src/plugins/components/BSRadio.vue +97 -97
- package/src/plugins/components/BSSearch.vue +109 -109
- package/src/plugins/components/BSSelect.vue +144 -144
- package/src/plugins/components/BSSign.vue +454 -454
- package/src/plugins/components/BSStepper.vue +115 -115
- package/src/plugins/components/BSUpload.vue +92 -92
- package/src/plugins/components/BSUpload2.vue +398 -398
- package/src/plugins/components/BSVerCode.vue +128 -128
- package/src/plugins/components/BSViewer.vue +92 -92
- package/src/plugins/components/base.js +496 -496
- package/src/plugins/components/base2.js +489 -489
- package/src/plugins/lib/weixin.js +20 -20
- package/src/plugins/platform/index.js +7 -7
- package/src/plugins/platform/isp_phone.js +310 -306
- package/src/plugins/route/index.js +140 -140
- package/src/plugins/selector/index.js +342 -342
- package/src/plugins/service/index.js +81 -81
- package/src/plugins/services/callCamera.js +53 -53
- package/src/plugins/services/exit.js +36 -36
- package/src/plugins/services/face.js +69 -69
- package/src/plugins/services/faceH5.js +54 -0
- package/src/plugins/services/faceInApp.js +31 -31
- package/src/plugins/services/faceTx.js +61 -61
- package/src/plugins/services/getFaceResult.js +104 -104
- package/src/plugins/services/getH5FaceResult.js +62 -0
- package/src/plugins/services/getMenus.js +40 -40
- package/src/plugins/services/getSystemData.js +128 -128
- package/src/plugins/services/getToken.js +79 -79
- package/src/plugins/services/getTxFaceResult.js +83 -83
- package/src/plugins/services/getUserInfo.js +47 -47
- package/src/plugins/services/goSetPage.js +40 -40
- package/src/plugins/services/hideFhoneTitle.js +36 -36
- package/src/plugins/services/index.js +45 -41
- package/src/plugins/services/init.js +35 -35
- package/src/plugins/services/jumpView.js +40 -40
- package/src/plugins/services/logout.js +43 -43
- package/src/plugins/services/share.js +113 -113
- package/src/plugins/services/statusBarHeight.js +39 -39
- package/src/plugins/session/index.js +32 -32
- package/src/services/getAuthInfo.js +22 -22
- package/src/services/index.js +9 -9
- package/src/services/sendVerCode.js +23 -23
- package/src/views/auth.vue +367 -370
- package/src/views/auth2.vue +90 -90
- package/src/views/auth3.vue +157 -157
- package/src/views/auth4.vue +8979 -8979
- package/src/views/auth5.vue +50 -50
- package/src/views/authh5.vue +369 -0
- package/src/views/components/BankSelect.vue +55 -55
- package/src/views/foot.vue +140 -140
- package/src/views/page.vue +222 -219
- package/src/views/shellFunc.vue +41 -41
- package/themes/basic.css +1 -1
- package/webpack.config.js +144 -144
- package/fstarter.iml +0 -9
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
<van-field
|
|
4
|
-
:label="model.label"
|
|
5
|
-
:label-width="model.labelWidth"
|
|
6
|
-
v-model="model.text"
|
|
7
|
-
:placeholder="placeholder2"
|
|
8
|
-
:readonly="model.readonly"
|
|
9
|
-
:left-icon="model.leftIcon"
|
|
10
|
-
:error-message="model.hiddenValidate ? '': model.validateResult.message"
|
|
11
|
-
@blur="blur"
|
|
12
|
-
@input="input"
|
|
13
|
-
@clear="clear"
|
|
14
|
-
:maxlength="model.maxlength"
|
|
15
|
-
:class="ctlClass"
|
|
16
|
-
:type="model.inputType"
|
|
17
|
-
:border="false"
|
|
18
|
-
:input-align="model.inputAlign"
|
|
19
|
-
:clearable="model.clearable"
|
|
20
|
-
:right-icon="model.rightIcon"
|
|
21
|
-
@click-right-icon="handleRightIcon"
|
|
22
|
-
/>
|
|
23
|
-
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
27
|
-
|
|
28
|
-
import config from '../assets/config.js'
|
|
29
|
-
import base2 from './base2.js'
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
name: "bs-input",
|
|
33
|
-
mixins: [base2],
|
|
34
|
-
props: {
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
data() {
|
|
38
|
-
return {
|
|
39
|
-
validateCtl:true
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
mounted() {
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
watch:{
|
|
46
|
-
'model.value':{
|
|
47
|
-
handler(val,oldval){
|
|
48
|
-
|
|
49
|
-
this.saveLocalValue(val)
|
|
50
|
-
|
|
51
|
-
let vc = this.$props.textRender
|
|
52
|
-
if(Object.prototype.toString.call(vc) == "[object Function]"){
|
|
53
|
-
this.model.text = vc('value',val)
|
|
54
|
-
}else{
|
|
55
|
-
this.model.text = val
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
this.setEventString(this.fullName,this.sname,'value',val,oldval)
|
|
59
|
-
},
|
|
60
|
-
deep: false
|
|
61
|
-
},
|
|
62
|
-
'model.text':{
|
|
63
|
-
handler(val,oldval){
|
|
64
|
-
|
|
65
|
-
let vc = this.$props.textRender
|
|
66
|
-
if(Object.prototype.toString.call(vc) == "[object Function]"){
|
|
67
|
-
this.model.value = vc('text',val)
|
|
68
|
-
}else{
|
|
69
|
-
this.model.value = val
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
deep: false
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
computed:{
|
|
77
|
-
|
|
78
|
-
placeholder2(){
|
|
79
|
-
|
|
80
|
-
if(this.model.readonly){
|
|
81
|
-
return ''
|
|
82
|
-
}else{
|
|
83
|
-
return this.model.placeholder
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
createDefaultModel() {
|
|
90
|
-
return {
|
|
91
|
-
maxlength:100,
|
|
92
|
-
type:'BSInput',
|
|
93
|
-
value:'',
|
|
94
|
-
text:'',
|
|
95
|
-
placeholder:'lang.ctl.BSInput.placeholder',
|
|
96
|
-
inputType:'text'
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
blur(){
|
|
100
|
-
|
|
101
|
-
if(!this.model.readonly)
|
|
102
|
-
this.model.validateToken++
|
|
103
|
-
|
|
104
|
-
this.$emit('blur',function(){
|
|
105
|
-
|
|
106
|
-
},this.fullName)
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
input(value) {
|
|
110
|
-
|
|
111
|
-
//将废弃input
|
|
112
|
-
this.$emit('input', value)
|
|
113
|
-
this.$emit('typein',function(){
|
|
114
|
-
|
|
115
|
-
},this.fullName)
|
|
116
|
-
},
|
|
117
|
-
clear() {
|
|
118
|
-
this.$emit('clear',function(){
|
|
119
|
-
|
|
120
|
-
},this.fullName)
|
|
121
|
-
},
|
|
122
|
-
handleRightIcon () {
|
|
123
|
-
this.$emit('handleRightIcon',function(){
|
|
124
|
-
|
|
125
|
-
},this.fullName)
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
</script>
|
|
131
|
-
|
|
132
|
-
<style scoped>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
.BSInput_readonly{
|
|
136
|
-
color:#999999;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
</stylescoped>
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<van-field
|
|
4
|
+
:label="model.label"
|
|
5
|
+
:label-width="model.labelWidth"
|
|
6
|
+
v-model="model.text"
|
|
7
|
+
:placeholder="placeholder2"
|
|
8
|
+
:readonly="model.readonly"
|
|
9
|
+
:left-icon="model.leftIcon"
|
|
10
|
+
:error-message="model.hiddenValidate ? '': model.validateResult.message"
|
|
11
|
+
@blur="blur"
|
|
12
|
+
@input="input"
|
|
13
|
+
@clear="clear"
|
|
14
|
+
:maxlength="model.maxlength"
|
|
15
|
+
:class="ctlClass"
|
|
16
|
+
:type="model.inputType"
|
|
17
|
+
:border="false"
|
|
18
|
+
:input-align="model.inputAlign"
|
|
19
|
+
:clearable="model.clearable"
|
|
20
|
+
:right-icon="model.rightIcon"
|
|
21
|
+
@click-right-icon="handleRightIcon"
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
|
|
28
|
+
import config from '../assets/config.js'
|
|
29
|
+
import base2 from './base2.js'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: "bs-input",
|
|
33
|
+
mixins: [base2],
|
|
34
|
+
props: {
|
|
35
|
+
|
|
36
|
+
},
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
validateCtl:true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
mounted() {
|
|
43
|
+
|
|
44
|
+
},
|
|
45
|
+
watch:{
|
|
46
|
+
'model.value':{
|
|
47
|
+
handler(val,oldval){
|
|
48
|
+
|
|
49
|
+
this.saveLocalValue(val)
|
|
50
|
+
|
|
51
|
+
let vc = this.$props.textRender
|
|
52
|
+
if(Object.prototype.toString.call(vc) == "[object Function]"){
|
|
53
|
+
this.model.text = vc('value',val)
|
|
54
|
+
}else{
|
|
55
|
+
this.model.text = val
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
this.setEventString(this.fullName,this.sname,'value',val,oldval)
|
|
59
|
+
},
|
|
60
|
+
deep: false
|
|
61
|
+
},
|
|
62
|
+
'model.text':{
|
|
63
|
+
handler(val,oldval){
|
|
64
|
+
|
|
65
|
+
let vc = this.$props.textRender
|
|
66
|
+
if(Object.prototype.toString.call(vc) == "[object Function]"){
|
|
67
|
+
this.model.value = vc('text',val)
|
|
68
|
+
}else{
|
|
69
|
+
this.model.value = val
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
},
|
|
73
|
+
deep: false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
computed:{
|
|
77
|
+
|
|
78
|
+
placeholder2(){
|
|
79
|
+
|
|
80
|
+
if(this.model.readonly){
|
|
81
|
+
return ''
|
|
82
|
+
}else{
|
|
83
|
+
return this.model.placeholder
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
createDefaultModel() {
|
|
90
|
+
return {
|
|
91
|
+
maxlength:100,
|
|
92
|
+
type:'BSInput',
|
|
93
|
+
value:'',
|
|
94
|
+
text:'',
|
|
95
|
+
placeholder:'lang.ctl.BSInput.placeholder',
|
|
96
|
+
inputType:'text'
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
blur(){
|
|
100
|
+
|
|
101
|
+
if(!this.model.readonly)
|
|
102
|
+
this.model.validateToken++
|
|
103
|
+
|
|
104
|
+
this.$emit('blur',function(){
|
|
105
|
+
|
|
106
|
+
},this.fullName)
|
|
107
|
+
|
|
108
|
+
},
|
|
109
|
+
input(value) {
|
|
110
|
+
|
|
111
|
+
//将废弃input
|
|
112
|
+
this.$emit('input', value)
|
|
113
|
+
this.$emit('typein',function(){
|
|
114
|
+
|
|
115
|
+
},this.fullName)
|
|
116
|
+
},
|
|
117
|
+
clear() {
|
|
118
|
+
this.$emit('clear',function(){
|
|
119
|
+
|
|
120
|
+
},this.fullName)
|
|
121
|
+
},
|
|
122
|
+
handleRightIcon () {
|
|
123
|
+
this.$emit('handleRightIcon',function(){
|
|
124
|
+
|
|
125
|
+
},this.fullName)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<style scoped>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
.BSInput_readonly{
|
|
136
|
+
color:#999999;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
</stylescoped>
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
4
|
-
<van-list
|
|
5
|
-
v-model="loading"
|
|
6
|
-
:finished="finished"
|
|
7
|
-
:finished-text="model.finishedText"
|
|
8
|
-
@load="onLoad"
|
|
9
|
-
>
|
|
10
|
-
<slot v-for="(item,index) in model.list" :item="item" :index="index"></slot>
|
|
11
|
-
</van-list>
|
|
12
|
-
</van-pull-refresh>
|
|
13
|
-
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
|
|
18
|
-
import base2 from './base2.js'
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
name: "bs-list",
|
|
22
|
-
mixins: [base2],
|
|
23
|
-
props: {
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
finished:false,
|
|
29
|
-
refreshing:false,
|
|
30
|
-
loading:false
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
mounted() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
methods: {
|
|
38
|
-
createDefaultModel() {
|
|
39
|
-
return {
|
|
40
|
-
type:'BSList',
|
|
41
|
-
list:[],
|
|
42
|
-
finishedText:'lang.ctl.BSList.finishedText'
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
onRefresh(){
|
|
46
|
-
|
|
47
|
-
let self = this
|
|
48
|
-
this.$emit('onRefresh',function(data){
|
|
49
|
-
|
|
50
|
-
self.model.list = data
|
|
51
|
-
self.refreshing = false
|
|
52
|
-
},this.fullName)
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
onLoad(){
|
|
56
|
-
|
|
57
|
-
let self = this
|
|
58
|
-
this.$emit('onLoad',function(data){
|
|
59
|
-
|
|
60
|
-
if(data.length > 0){
|
|
61
|
-
self.model.list.push(...data)
|
|
62
|
-
self.loading = false
|
|
63
|
-
self.finished = true
|
|
64
|
-
}else{
|
|
65
|
-
self.model.list.push(...data)
|
|
66
|
-
self.loading = false
|
|
67
|
-
self.finished = true
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
},this.fullName)
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
</script>
|
|
78
|
-
|
|
79
|
-
<style scoped>
|
|
80
|
-
|
|
81
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
4
|
+
<van-list
|
|
5
|
+
v-model="loading"
|
|
6
|
+
:finished="finished"
|
|
7
|
+
:finished-text="model.finishedText"
|
|
8
|
+
@load="onLoad"
|
|
9
|
+
>
|
|
10
|
+
<slot v-for="(item,index) in model.list" :item="item" :index="index"></slot>
|
|
11
|
+
</van-list>
|
|
12
|
+
</van-pull-refresh>
|
|
13
|
+
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
|
|
18
|
+
import base2 from './base2.js'
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
name: "bs-list",
|
|
22
|
+
mixins: [base2],
|
|
23
|
+
props: {
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
finished:false,
|
|
29
|
+
refreshing:false,
|
|
30
|
+
loading:false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
mounted() {
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
createDefaultModel() {
|
|
39
|
+
return {
|
|
40
|
+
type:'BSList',
|
|
41
|
+
list:[],
|
|
42
|
+
finishedText:'lang.ctl.BSList.finishedText'
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
onRefresh(){
|
|
46
|
+
|
|
47
|
+
let self = this
|
|
48
|
+
this.$emit('onRefresh',function(data){
|
|
49
|
+
|
|
50
|
+
self.model.list = data
|
|
51
|
+
self.refreshing = false
|
|
52
|
+
},this.fullName)
|
|
53
|
+
|
|
54
|
+
},
|
|
55
|
+
onLoad(){
|
|
56
|
+
|
|
57
|
+
let self = this
|
|
58
|
+
this.$emit('onLoad',function(data){
|
|
59
|
+
|
|
60
|
+
if(data.length > 0){
|
|
61
|
+
self.model.list.push(...data)
|
|
62
|
+
self.loading = false
|
|
63
|
+
self.finished = true
|
|
64
|
+
}else{
|
|
65
|
+
self.model.list.push(...data)
|
|
66
|
+
self.loading = false
|
|
67
|
+
self.finished = true
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
},this.fullName)
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<style scoped>
|
|
80
|
+
|
|
81
|
+
</style>
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
<van-field
|
|
4
|
-
:label="model.label"
|
|
5
|
-
v-model="model.value"
|
|
6
|
-
:placeholder="model.placeholder"
|
|
7
|
-
slot="button"
|
|
8
|
-
@blur="blur"
|
|
9
|
-
:class="ctlClass"
|
|
10
|
-
:clearable="model.clearable"
|
|
11
|
-
:error-message="model.hiddenValidate ? '': model.validateResult.message"
|
|
12
|
-
>
|
|
13
|
-
<van-image
|
|
14
|
-
slot="button"
|
|
15
|
-
width="60"
|
|
16
|
-
height="25"
|
|
17
|
-
:src="src"
|
|
18
|
-
@click="clickImg"
|
|
19
|
-
/>
|
|
20
|
-
</van-field>
|
|
21
|
-
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
|
|
26
|
-
import Rx from 'rxjs';
|
|
27
|
-
import {take} from 'rxjs/operators';
|
|
28
|
-
import { filter } from 'rxjs/operators';
|
|
29
|
-
import base2 from './base2.js'
|
|
30
|
-
import ak from '../assets/ak.js'
|
|
31
|
-
|
|
32
|
-
export default {
|
|
33
|
-
name: "bs-piccode",
|
|
34
|
-
mixins: [base2],
|
|
35
|
-
props: {
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
validateCtl:true
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
mounted() {
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
createDefaultModel() {
|
|
48
|
-
return {
|
|
49
|
-
type:'BSPicCode',
|
|
50
|
-
value:'',
|
|
51
|
-
fileId:'',
|
|
52
|
-
placeholder:'lang.ctl.BSPicCode.placeholder'
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
blur(){
|
|
56
|
-
|
|
57
|
-
if(!this.model.readonly)
|
|
58
|
-
this.model.validateToken++
|
|
59
|
-
|
|
60
|
-
this.$emit('blur',function(){
|
|
61
|
-
|
|
62
|
-
},this.fullName)
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
clickImg() {
|
|
66
|
-
this.$emit('clickImg',function(){
|
|
67
|
-
|
|
68
|
-
},this.fullName)
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
watch:{
|
|
72
|
-
'model.value':{
|
|
73
|
-
handler(val,oldval){
|
|
74
|
-
|
|
75
|
-
this.setEventString(this.fullName,this.sname,'value',val,oldval)
|
|
76
|
-
},
|
|
77
|
-
deep: false
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
computed:{
|
|
81
|
-
src(){
|
|
82
|
-
return this.config.file.baseURL + '/file/vscode/' + this.model.fileId + '.jpg'
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
</script>
|
|
89
|
-
|
|
90
|
-
<style scoped>
|
|
91
|
-
|
|
92
|
-
.BSPicCode_disabled{
|
|
93
|
-
color:#999999;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<van-field
|
|
4
|
+
:label="model.label"
|
|
5
|
+
v-model="model.value"
|
|
6
|
+
:placeholder="model.placeholder"
|
|
7
|
+
slot="button"
|
|
8
|
+
@blur="blur"
|
|
9
|
+
:class="ctlClass"
|
|
10
|
+
:clearable="model.clearable"
|
|
11
|
+
:error-message="model.hiddenValidate ? '': model.validateResult.message"
|
|
12
|
+
>
|
|
13
|
+
<van-image
|
|
14
|
+
slot="button"
|
|
15
|
+
width="60"
|
|
16
|
+
height="25"
|
|
17
|
+
:src="src"
|
|
18
|
+
@click="clickImg"
|
|
19
|
+
/>
|
|
20
|
+
</van-field>
|
|
21
|
+
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
|
|
26
|
+
import Rx from 'rxjs';
|
|
27
|
+
import {take} from 'rxjs/operators';
|
|
28
|
+
import { filter } from 'rxjs/operators';
|
|
29
|
+
import base2 from './base2.js'
|
|
30
|
+
import ak from '../assets/ak.js'
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
name: "bs-piccode",
|
|
34
|
+
mixins: [base2],
|
|
35
|
+
props: {
|
|
36
|
+
|
|
37
|
+
},
|
|
38
|
+
data() {
|
|
39
|
+
return {
|
|
40
|
+
validateCtl:true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
mounted() {
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
createDefaultModel() {
|
|
48
|
+
return {
|
|
49
|
+
type:'BSPicCode',
|
|
50
|
+
value:'',
|
|
51
|
+
fileId:'',
|
|
52
|
+
placeholder:'lang.ctl.BSPicCode.placeholder'
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
blur(){
|
|
56
|
+
|
|
57
|
+
if(!this.model.readonly)
|
|
58
|
+
this.model.validateToken++
|
|
59
|
+
|
|
60
|
+
this.$emit('blur',function(){
|
|
61
|
+
|
|
62
|
+
},this.fullName)
|
|
63
|
+
|
|
64
|
+
},
|
|
65
|
+
clickImg() {
|
|
66
|
+
this.$emit('clickImg',function(){
|
|
67
|
+
|
|
68
|
+
},this.fullName)
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
watch:{
|
|
72
|
+
'model.value':{
|
|
73
|
+
handler(val,oldval){
|
|
74
|
+
|
|
75
|
+
this.setEventString(this.fullName,this.sname,'value',val,oldval)
|
|
76
|
+
},
|
|
77
|
+
deep: false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
computed:{
|
|
81
|
+
src(){
|
|
82
|
+
return this.config.file.baseURL + '/file/vscode/' + this.model.fileId + '.jpg'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<style scoped>
|
|
91
|
+
|
|
92
|
+
.BSPicCode_disabled{
|
|
93
|
+
color:#999999;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
</style>
|