@toolspack/ttd-common 1.1.4 → 1.1.5

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.
@@ -1,177 +1,177 @@
1
- .cfca-pdf {
2
- width: 100%;
3
- min-height: 100%;
4
- position: relative;
5
- margin-top: -1px;
6
-
7
- .fontSize1 {
8
- font-size: 65%;
9
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
10
- }
11
- .fontSize2 {
12
- font-size: 70%;
13
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
14
- }
15
-
16
- .fontSize3 {
17
- font-size: 75%;
18
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
19
- }
20
- .fakehlink {
21
- cursor: pointer;
22
- text-decoration: underline;
23
- font-weight: normal;
24
- line-height: 26px;
25
- color: #0066cc;
26
- }
27
- .plaintext {
28
- line-height: 28px;
29
- }
30
-
31
- .blankline {
32
- height: 5px;
33
- }
34
- .remaining {
35
- width: 100%;
36
- position: absolute;
37
- z-index: 1;
38
- top: 72px;
39
- bottom: 0px;
40
- }
41
- .cfca-page .page-num {
42
- display: inline-block;
43
- width: auto;
44
- }
45
- .cfca-page .page-num input {
46
- display: inline-block;
47
- width: 48px;
48
- height: 32px;
49
- border: 1px solid #cccccc;
50
- border-radius: 2px;
51
- margin: 0 5px;
52
- }
53
-
54
- .cfca-pdf-wrapper {
55
- position: relative;
56
- width: 560px;
57
- margin: 0 auto;
58
- // background: #ffffff;
59
- box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.05);
60
- .cfca-left,
61
- .cfca-right {
62
- color: #dcdcdc;
63
- position: absolute;
64
- width: 73px;
65
- height: 130px;
66
- text-align: center;
67
- font-size: 33px;
68
- cursor: pointer;
69
- border-radius: 4px;
70
- top: 50%;
71
- left: -72px;
72
- }
73
- /*.active,.cfca-left:hover,.cfca-right:hover {
74
- background: #F2F2F2;
75
- }*/
76
- .disabled {
77
- cursor: not-allowed;
78
- }
79
- .cfca-right {
80
- left: auto;
81
- right: -72px;
82
- }
83
- .cfca-content {
84
- display: flex;
85
- flex-direction: column;
86
- justify-content: space-between;
87
-
88
- position: relative;
89
- background: #fff;
90
- border: 1px solid #d4d4d4;
91
- // border-radius: 8px;
92
- border-radius: 0;
93
- // padding: 48px 0 64px 0;
94
- padding: 0;
95
- box-sizing: border-box;
96
- overflow: hidden;
97
- .cfca-object {
98
- box-sizing: border-box;
99
- // flex: 1; 这个属性 在ie 下导致高度无法自动撑开,所以,不能放开
100
- position: relative;
101
- // overflow: auto;
102
- // box-shadow: 0 0 20px 0 rgba(7, 27, 54, 0.19);
103
- .obj-wrapper {
104
- // height: 910px;
105
- height: 758px;
106
- }
107
- }
108
- .cfca-page {
109
- // position: absolute;
110
- // top: 0;
111
- // left: 0;
112
- // right: 0;
113
- position: relative;
114
- height: 48px;
115
- line-height: 48px;
116
- box-sizing: border-box;
117
- overflow: hidden;
118
- padding: 0px 20px;
119
- text-align: left;
120
- font-size: 14px;
121
- background: #fff;
122
- color: #666;
123
- border-bottom: 1px solid #d4d4d4;
124
- .cfca-title {
125
- // margin-top: 15px;
126
- h2 {
127
- max-width: 340px;
128
- white-space: nowrap;
129
- text-overflow: ellipsis;
130
- overflow: hidden;
131
- font-size: 18px;
132
- color: #222222;
133
- // line-height: 64px;
134
- line-height: 48px;
135
- font-weight: normal;
136
- margin: 0;
137
- padding: 0;
138
- }
139
- .sub-title {
140
- font-size: 12px;
141
- color: #999999;
142
- line-height: 17px;
143
- }
144
- }
145
- .fr {
146
- position: absolute;
147
- right: 20px;
148
- top: 0;
149
- max-width: 180px;
150
- white-space: nowrap;
151
- text-overflow: ellipsis;
152
- }
153
- .di {
154
- margin-left: 10px;
155
- }
156
- }
157
- .cfca-control {
158
- // position: absolute;
159
- // bottom: 0;
160
- // left: 0;
161
- // right: 0;
162
- // height: 64px;
163
- line-height: 64px;
164
- box-sizing: border-box;
165
- overflow: hidden;
166
- padding: 0px 20px;
167
- text-align: right;
168
- font-size: 14px;
169
- background: #f5f5f5;
170
- color: #666;
171
- // & > *{
172
- // font-size: 14px;
173
- // }
174
- }
175
- }
176
- }
177
- }
1
+ .cfca-pdf {
2
+ width: 100%;
3
+ min-height: 100%;
4
+ position: relative;
5
+ margin-top: -1px;
6
+
7
+ .fontSize1 {
8
+ font-size: 65%;
9
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
10
+ }
11
+ .fontSize2 {
12
+ font-size: 70%;
13
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
14
+ }
15
+
16
+ .fontSize3 {
17
+ font-size: 75%;
18
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
19
+ }
20
+ .fakehlink {
21
+ cursor: pointer;
22
+ text-decoration: underline;
23
+ font-weight: normal;
24
+ line-height: 26px;
25
+ color: #0066cc;
26
+ }
27
+ .plaintext {
28
+ line-height: 28px;
29
+ }
30
+
31
+ .blankline {
32
+ height: 5px;
33
+ }
34
+ .remaining {
35
+ width: 100%;
36
+ position: absolute;
37
+ z-index: 1;
38
+ top: 72px;
39
+ bottom: 0px;
40
+ }
41
+ .cfca-page .page-num {
42
+ display: inline-block;
43
+ width: auto;
44
+ }
45
+ .cfca-page .page-num input {
46
+ display: inline-block;
47
+ width: 48px;
48
+ height: 32px;
49
+ border: 1px solid #cccccc;
50
+ border-radius: 2px;
51
+ margin: 0 5px;
52
+ }
53
+
54
+ .cfca-pdf-wrapper {
55
+ position: relative;
56
+ width: 560px;
57
+ margin: 0 auto;
58
+ // background: #ffffff;
59
+ box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.05);
60
+ .cfca-left,
61
+ .cfca-right {
62
+ color: #dcdcdc;
63
+ position: absolute;
64
+ width: 73px;
65
+ height: 130px;
66
+ text-align: center;
67
+ font-size: 33px;
68
+ cursor: pointer;
69
+ border-radius: 4px;
70
+ top: 50%;
71
+ left: -72px;
72
+ }
73
+ /*.active,.cfca-left:hover,.cfca-right:hover {
74
+ background: #F2F2F2;
75
+ }*/
76
+ .disabled {
77
+ cursor: not-allowed;
78
+ }
79
+ .cfca-right {
80
+ left: auto;
81
+ right: -72px;
82
+ }
83
+ .cfca-content {
84
+ display: flex;
85
+ flex-direction: column;
86
+ justify-content: space-between;
87
+
88
+ position: relative;
89
+ background: #fff;
90
+ border: 1px solid #d4d4d4;
91
+ // border-radius: 8px;
92
+ border-radius: 0;
93
+ // padding: 48px 0 64px 0;
94
+ padding: 0;
95
+ box-sizing: border-box;
96
+ overflow: hidden;
97
+ .cfca-object {
98
+ box-sizing: border-box;
99
+ // flex: 1; 这个属性 在ie 下导致高度无法自动撑开,所以,不能放开
100
+ position: relative;
101
+ // overflow: auto;
102
+ // box-shadow: 0 0 20px 0 rgba(7, 27, 54, 0.19);
103
+ .obj-wrapper {
104
+ // height: 910px;
105
+ height: 758px;
106
+ }
107
+ }
108
+ .cfca-page {
109
+ // position: absolute;
110
+ // top: 0;
111
+ // left: 0;
112
+ // right: 0;
113
+ position: relative;
114
+ height: 48px;
115
+ line-height: 48px;
116
+ box-sizing: border-box;
117
+ overflow: hidden;
118
+ padding: 0px 20px;
119
+ text-align: left;
120
+ font-size: 14px;
121
+ background: #fff;
122
+ color: #666;
123
+ border-bottom: 1px solid #d4d4d4;
124
+ .cfca-title {
125
+ // margin-top: 15px;
126
+ h2 {
127
+ max-width: 340px;
128
+ white-space: nowrap;
129
+ text-overflow: ellipsis;
130
+ overflow: hidden;
131
+ font-size: 18px;
132
+ color: #222222;
133
+ // line-height: 64px;
134
+ line-height: 48px;
135
+ font-weight: normal;
136
+ margin: 0;
137
+ padding: 0;
138
+ }
139
+ .sub-title {
140
+ font-size: 12px;
141
+ color: #999999;
142
+ line-height: 17px;
143
+ }
144
+ }
145
+ .fr {
146
+ position: absolute;
147
+ right: 20px;
148
+ top: 0;
149
+ max-width: 180px;
150
+ white-space: nowrap;
151
+ text-overflow: ellipsis;
152
+ }
153
+ .di {
154
+ margin-left: 10px;
155
+ }
156
+ }
157
+ .cfca-control {
158
+ // position: absolute;
159
+ // bottom: 0;
160
+ // left: 0;
161
+ // right: 0;
162
+ // height: 64px;
163
+ line-height: 64px;
164
+ box-sizing: border-box;
165
+ overflow: hidden;
166
+ padding: 0px 20px;
167
+ text-align: right;
168
+ font-size: 14px;
169
+ background: #f5f5f5;
170
+ color: #666;
171
+ // & > *{
172
+ // font-size: 14px;
173
+ // }
174
+ }
175
+ }
176
+ }
177
+ }
@@ -1,13 +1,13 @@
1
- import CfcaPdf from './cfca/CfcaPdf.vue'
2
- import Ukey from './ukey/Ukey.vue'
3
- import WzhSign from './ukey/WzhSign.vue'
4
- import SignNew from './ukey/SignNew.vue'
5
- import WzhSignChrome from './ukey/WzhSignChrome.vue'
6
-
7
- export default {
8
- CfcaPdf,
9
- Ukey,
10
- WzhSign,
11
- WzhSignChrome,
12
- SignNew,
13
- }
1
+ import CfcaPdf from './cfca/CfcaPdf.vue'
2
+ import Ukey from './ukey/Ukey.vue'
3
+ import WzhSign from './ukey/WzhSign.vue'
4
+ import SignNew from './ukey/SignNew.vue'
5
+ import WzhSignChrome from './ukey/WzhSignChrome.vue'
6
+
7
+ export default {
8
+ CfcaPdf,
9
+ Ukey,
10
+ WzhSign,
11
+ WzhSignChrome,
12
+ SignNew,
13
+ }
@@ -1,62 +1,62 @@
1
- <template>
2
- <div>
3
- <WzhSign :api="api" ref="signIe" v-if="isIE" />
4
- <WzhSignChrome :api="api" ref="signChrome" v-else />
5
- </div>
6
- </template>
7
- <script>
8
- import WzhSign from './WzhSign.vue';
9
- import WzhSignChrome from './WzhSignChrome.vue';
10
-
11
- export default {
12
- components: { WzhSign, WzhSignChrome },
13
- data() {
14
- return {
15
- child: null,
16
- isIE: true,
17
- }
18
- },
19
- props: {
20
- api: {
21
- type: Object,
22
- required: true,
23
- },
24
- },
25
- created() {
26
- this.getBrowserInfo()
27
- },
28
- mounted() {
29
- if (this.isIE) {
30
- console.log('--- ie sign')
31
- this.child = this.$refs.signIe
32
- } else {
33
- console.log('--- chrome sign')
34
- this.child = this.$refs.signChrome
35
- }
36
- },
37
- methods: {
38
- getBrowserInfo() {
39
- const { userAgent, plugins, mimeTypes } = navigator
40
-
41
- if (userAgent.indexOf('Trident') >= 0) {
42
- this.isIE = true
43
- return true
44
- }
45
- // 360的急速模式,需要使用ie签署控件(無法實現,或不稳定,360会快速修复让用户无法检测)
46
- // 测试后,360的急速模式 可以和chrome 用一个签署代码了
47
- // const plugin360 = [
48
- // '360', '360SoftMgrPlugin', 'ActiveX hosting plugin for Firefox/Chrome',
49
- // 'GamePlugin', 'QQMail Plugin', 'Tencent QQ', 'npQQPhotoDrawEx']
50
- // if (plugins['360SoftMgrPlugin']) {
51
- // this.isIE = true
52
- // return true
53
- // }
54
- // if (mimeTypes['application/360softmgrplugin']) {
55
- // this.isIE = true
56
- // return true
57
- // }
58
- this.isIE = false
59
- },
60
- },
61
- }
62
- </script>
1
+ <template>
2
+ <div>
3
+ <WzhSign :api="api" ref="signIe" v-if="isIE" />
4
+ <WzhSignChrome :api="api" ref="signChrome" v-else />
5
+ </div>
6
+ </template>
7
+ <script>
8
+ import WzhSign from './WzhSign.vue';
9
+ import WzhSignChrome from './WzhSignChrome.vue';
10
+
11
+ export default {
12
+ components: { WzhSign, WzhSignChrome },
13
+ data() {
14
+ return {
15
+ child: null,
16
+ isIE: true,
17
+ }
18
+ },
19
+ props: {
20
+ api: {
21
+ type: Object,
22
+ required: true,
23
+ },
24
+ },
25
+ created() {
26
+ this.getBrowserInfo()
27
+ },
28
+ mounted() {
29
+ if (this.isIE) {
30
+ console.log('--- ie sign')
31
+ this.child = this.$refs.signIe
32
+ } else {
33
+ console.log('--- chrome sign')
34
+ this.child = this.$refs.signChrome
35
+ }
36
+ },
37
+ methods: {
38
+ getBrowserInfo() {
39
+ const { userAgent, plugins, mimeTypes } = navigator
40
+
41
+ if (userAgent.indexOf('Trident') >= 0) {
42
+ this.isIE = true
43
+ return true
44
+ }
45
+ // 360的急速模式,需要使用ie签署控件(無法實現,或不稳定,360会快速修复让用户无法检测)
46
+ // 测试后,360的急速模式 可以和chrome 用一个签署代码了
47
+ // const plugin360 = [
48
+ // '360', '360SoftMgrPlugin', 'ActiveX hosting plugin for Firefox/Chrome',
49
+ // 'GamePlugin', 'QQMail Plugin', 'Tencent QQ', 'npQQPhotoDrawEx']
50
+ // if (plugins['360SoftMgrPlugin']) {
51
+ // this.isIE = true
52
+ // return true
53
+ // }
54
+ // if (mimeTypes['application/360softmgrplugin']) {
55
+ // this.isIE = true
56
+ // return true
57
+ // }
58
+ this.isIE = false
59
+ },
60
+ },
61
+ }
62
+ </script>