fhrons-mobile-next 2.0.0 → 2.0.2

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 (90) hide show
  1. package/.env.poc +8 -0
  2. package/assets/css/colors.js +6 -0
  3. package/assets/css/customVant.less +60 -0
  4. package/assets/css/extra.css +32 -0
  5. package/assets/css/global.css +1 -0
  6. package/assets/css/global.less +1637 -0
  7. package/assets/css/index.js +63 -0
  8. package/assets/css/static.less +607 -0
  9. package/assets/js/func.js +361 -0
  10. package/assets/js/globalData.js +18 -0
  11. package/assets/js/qywxapi.js +484 -0
  12. package/{packages → assets/js}/storage.js +1 -20
  13. package/assets/js/upload.js +269 -0
  14. package/assets/js/validate.js +48 -0
  15. package/assets/js/vant.js +39 -0
  16. package/assets/js/wxapi.js +297 -0
  17. package/assets/vantLang/index.js +172 -0
  18. package/assets/vantLang/lib/en-US.js +95 -0
  19. package/assets/vantLang/lib/es-ES.js +95 -0
  20. package/assets/vantLang/lib/pt-PT.js +96 -0
  21. package/assets/vantLang/lib/zh-CN.js +96 -0
  22. package/assets/vantLang/lib/zh-HK.js +96 -0
  23. package/assets/vantLang/locales/en_US.js +102 -0
  24. package/assets/vantLang/locales/es_ES.js +102 -0
  25. package/assets/vantLang/locales/index.js +12 -0
  26. package/assets/vantLang/locales/pt_PT.js +102 -0
  27. package/assets/vantLang/locales/zh_CN.js +102 -0
  28. package/assets/vantLang/locales/zh_T.js +102 -0
  29. package/babel.config.js +15 -0
  30. package/index.js +68 -33
  31. package/inject-env-plugin.js +29 -0
  32. package/package.json +46 -32
  33. package/packages/areaMobile/index.js +5 -0
  34. package/packages/areaMobile/index.vue +260 -0
  35. package/packages/autoGraph/VueEsign.vue +309 -0
  36. package/packages/autoGraph/index.js +5 -0
  37. package/packages/autoGraph/index.vue +472 -0
  38. package/packages/commonForm/CommonAsyncAreaPicker.vue +223 -0
  39. package/packages/commonForm/CommonDatePicker.vue +152 -0
  40. package/packages/commonForm/CommonForm.vue +786 -0
  41. package/packages/commonForm/CommonFullTimePicker.vue +137 -0
  42. package/packages/commonForm/CommonSinglePicker.vue +121 -0
  43. package/packages/commonForm/CommonYearMonthPicker.vue +127 -0
  44. package/packages/commonForm/index.js +33 -0
  45. package/packages/dialog/index.js +32 -0
  46. package/packages/dialog/index.vue +379 -0
  47. package/packages/index.js +7 -3
  48. package/packages/introduce/index.js +5 -0
  49. package/packages/introduce/index.vue +31 -0
  50. package/packages/loading/Loading.vue +70 -0
  51. package/packages/loading/index.js +43 -0
  52. package/packages/mindMap/index.js +5 -0
  53. package/packages/mindMap/index.vue +437 -0
  54. package/packages/pdfViewer/index.js +12 -0
  55. package/packages/pdfViewer/index.vue +131 -0
  56. package/packages/sharePanel/SheetPanel.vue +316 -0
  57. package/packages/sharePanel/index.js +5 -0
  58. package/packages/sharePanel/index.vue +476 -0
  59. package/packages/sharePanel/props.js +58 -0
  60. package/packages/sharePanel/utils/QyWxShareMixin.js +93 -0
  61. package/packages/sharePanel/utils/shareWay.js +81 -0
  62. package/packages/theme/index copy.js +89 -0
  63. package/packages/theme/index.js +38 -0
  64. package/packages/theme/theme.css +910 -0
  65. package/packages/theme/theme.less +26 -0
  66. package/packages/uploadFile/VanUploadFile.vue +80 -0
  67. package/packages/uploadFile/index.js +5 -0
  68. package/packages/uploadFile/index.vue +725 -0
  69. package/packages/uploadFile/vanUpload.js +5 -0
  70. package/packages/verify/Verify/VerifyPoints.vue +247 -0
  71. package/packages/verify/Verify/VerifySlide.vue +364 -0
  72. package/packages/verify/index.js +5 -0
  73. package/packages/verify/index.vue +416 -0
  74. package/packages/verify/utils/verify.js +53 -0
  75. package/packages/videoPage/index.js +5 -0
  76. package/packages/videoPage/index.vue +440 -0
  77. package/plugins/sensors/fhsensors.js +84 -0
  78. package/plugins/sensors/sensors.js +175 -0
  79. package/plugins/sensors/sensorsFun.js +1387 -0
  80. package/fhrons-mobile-next-2.0.0.tgz +0 -0
  81. package/packages/fhImage/index.js +0 -5
  82. package/packages/fhImage/index.vue +0 -57
  83. package/packages/fhPresetImage/index.js +0 -5
  84. package/packages/fhPresetImage/index.vue +0 -39
  85. package/packages/html2canvas/index.js +0 -29
  86. package/upload copy.js +0 -468
  87. package/utils/tools.js +0 -22
  88. /package/{dist → fhcommon/dist}/fhcommon.min.js +0 -0
  89. /package/{dist → fhcommon/dist}/fhcommon.min.js.LICENSE.txt +0 -0
  90. /package/{upload.js → fhcommon/upload.js} +0 -0
@@ -0,0 +1,316 @@
1
+ <template>
2
+ <van-popup id="SheetPanel" v-model="isShowShare" class="popup-wrapper" round position="bottom" :safe-area-inset-bottom="true" @close="handleCancel" :get-container="targetDom" :duration="duration">
3
+ <div v-show="showPost">
4
+ <slot name="post"></slot>
5
+ </div>
6
+ <div @click="handleCancel">
7
+ <slot name="close">
8
+ <div class="sheet__chanel" />
9
+ </slot>
10
+ </div>
11
+ <div class="sheet_box">
12
+ <div v-if="showTitle" class="sheet_title">{{ title }}</div>
13
+ <div v-if="shareText" class="sheet_share__text">
14
+ <div class="sheet_text_title">{{ $t("componentsfile.sharemediapanel.9mt921") }}</div>
15
+ <div class="sheet_text_content" @click="copyText(shareText, true)">
16
+ <div class="text">{{ shareText }}</div>
17
+ </div>
18
+ </div>
19
+ <div class="share-imgbox flex-wrap flex-between-start" :class="[options.length >= 6 ? 'flex-wrap flex-start' : 'flex-nowrap', options.length == 4 ? 'plr20' : '', options.length == 3 ? 'plr10' : '', options.length == 2 ? 'plr60' : '']">
20
+ <div v-for="(item, index) in options" :key="`img_${index}`" class="flex-column-center flex-basis25 mb20 relative">
21
+ <img :src="item.icon" alt="" @click="handleSelect(item)" />
22
+ <span class="ft12 c-23242e mt8 line-height18 ta-c min-width60">{{ item.name }}</span>
23
+ <UploadFile v-if="item.tagEvent === 'upload'" class="b-cont-btn1-1 block" :uploadFileId="item.uploadID" />
24
+ </div>
25
+ </div>
26
+ <slot />
27
+ </div>
28
+ </van-popup>
29
+ </template>
30
+ <script>
31
+ import UploadFile from "../uploadFile";
32
+
33
+ export default {
34
+ components: { UploadFile },
35
+ props: {
36
+ isShow: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
40
+ title: {
41
+ type: String,
42
+ default: "",
43
+ },
44
+ shareText: {
45
+ type: String,
46
+ default: "",
47
+ },
48
+ options: {
49
+ type: Array,
50
+ default: () => [],
51
+ },
52
+ targetDom: {
53
+ type: String,
54
+ default: "",
55
+ },
56
+ duration: {
57
+ type: Number,
58
+ default: 0.3,
59
+ },
60
+ showTitle: {
61
+ type: Boolean,
62
+ default: true,
63
+ },
64
+ },
65
+ data() {
66
+ return {
67
+ isShowShare: false,
68
+ showPost: false,
69
+ // uploadObj1: {
70
+ // maxCount: "9",
71
+ // fileType: "image",
72
+ // uploadType: "0",
73
+ // isIconUpload: true,
74
+ // fileSize: "10",
75
+ // type: "image/*,video/*",
76
+ // // cropper: false,
77
+ // needOCR: false,
78
+ // multiple: true,
79
+ // },
80
+ };
81
+ },
82
+ watch: {
83
+ isShow: {
84
+ handler() {
85
+ this.isShowShare = this.isShow;
86
+ if (this.isShow && this.shareText) {
87
+ setTimeout(() => this.copyText(this.shareText), 200);
88
+ }
89
+ },
90
+ immediate: true,
91
+ },
92
+ isShowShare: {
93
+ handler(newVal) {
94
+ if (newVal) {
95
+ setTimeout((_) => {
96
+ this.showPost = newVal;
97
+ }, this.duration * 2000);
98
+ } else {
99
+ this.showPost = newVal;
100
+ }
101
+ },
102
+ },
103
+ },
104
+ methods: {
105
+ // 复制文案
106
+ copyText(str, isClick) {
107
+ this.$copyText(str)
108
+ .then(() => {
109
+ isClick && this.$toast(this.$t("components.poster.mnipsj"));
110
+ })
111
+ .catch(() => this.$toast(this.$t("componentsfile.sharepanel.2mzpka")));
112
+ },
113
+ handleCancel() {
114
+ this.isShowShare = false;
115
+ this.$emit("close");
116
+ },
117
+ handleSelect(item) {
118
+ this.$emit("select", item);
119
+ },
120
+ },
121
+ };
122
+ </script>
123
+ <style lang="less" scoped>
124
+ .sheet_title {
125
+ font-size: 16px;
126
+ font-weight: 500;
127
+ color: #23242e;
128
+ line-height: 24px;
129
+ text-align: center;
130
+ margin-bottom: 16px;
131
+ }
132
+
133
+ .sheet_share__text {
134
+ margin-bottom: 28px;
135
+
136
+ .sheet_text_title {
137
+ position: relative;
138
+ font-size: 14px;
139
+ color: #23242e;
140
+ line-height: 21px;
141
+ padding-left: 20px;
142
+
143
+ &:before {
144
+ content: "";
145
+ position: absolute;
146
+ background: url("https://dop-pro-1251973116.file.myqcloud.com/upload/img/scrmdop/icon_danxuan.png") no-repeat;
147
+ background-size: 100%;
148
+ width: 16px;
149
+ height: 16px;
150
+ left: 0;
151
+ top: 50%;
152
+ margin-top: -8px;
153
+ }
154
+ }
155
+
156
+ .sheet_text_content {
157
+ font-size: 14px;
158
+ color: #7f808a;
159
+ line-height: 21px;
160
+ background: #f5f5f9;
161
+ border-radius: 4px;
162
+ padding: 12px;
163
+ margin-top: 8px;
164
+
165
+ .text {
166
+ max-height: 42px;
167
+ overflow-y: auto;
168
+ }
169
+ }
170
+ }
171
+
172
+ .sheet__chanel {
173
+ position: absolute;
174
+ left: 50%;
175
+ transform: translateX(-50%);
176
+ padding: 12px;
177
+ top: 0;
178
+ width: 32px;
179
+ height: 8px;
180
+ box-sizing: content-box;
181
+ background: url("https://dop-pro-1251973116.file.myqcloud.com/upload/img/scrmdop/icon_zhankailine.png") no-repeat;
182
+ background-size: 32px 8px;
183
+ background-position: 12px 12px;
184
+ overflow: hidden;
185
+ cursor: pointer;
186
+ }
187
+
188
+ .sheet__chanel:before {
189
+ background-color: transparent;
190
+ }
191
+
192
+ .sheet_box {
193
+ padding: 32px 12px 16px;
194
+ }
195
+
196
+ .sheet__options {
197
+ position: relative;
198
+ margin: 0 10px;
199
+ display: -webkit-box;
200
+ display: -webkit-flex;
201
+ display: flex;
202
+ overflow-x: auto;
203
+ overflow-y: visible;
204
+ -webkit-overflow-scrolling: touch;
205
+ }
206
+
207
+ .sheet__option {
208
+ display: -webkit-box;
209
+ display: -webkit-flex;
210
+ display: flex;
211
+ -webkit-box-orient: vertical;
212
+ -webkit-box-direction: normal;
213
+ -webkit-flex-direction: column;
214
+ flex-direction: column;
215
+ -webkit-box-align: center;
216
+ -webkit-align-items: center;
217
+ align-items: center;
218
+ cursor: pointer;
219
+ -webkit-user-select: none;
220
+ user-select: none;
221
+ flex-basis: 25%;
222
+ flex-shrink: 0;
223
+
224
+ img {
225
+ width: 44px;
226
+ height: 44px;
227
+ margin: 0;
228
+ }
229
+
230
+ span {
231
+ margin-top: 8px;
232
+ padding: 0 4px;
233
+ font-size: 12px;
234
+ color: #666666;
235
+ line-height: 19px;
236
+ }
237
+ }
238
+
239
+ #SheetPanel {
240
+ .arrow {
241
+ width: 44px;
242
+ }
243
+
244
+ .flex-column-center {
245
+ display: flex;
246
+ flex-direction: column;
247
+ align-items: center;
248
+ }
249
+
250
+ .share-imgbox {
251
+ margin-bottom: 18px;
252
+ }
253
+
254
+ .flex-between {
255
+ display: flex;
256
+ justify-content: space-between;
257
+ }
258
+
259
+ .share-imgbox {
260
+ margin-bottom: 18px;
261
+ }
262
+
263
+ .share-imgbox img {
264
+ width: 44px;
265
+ height: 44px;
266
+ }
267
+
268
+ .flex-between {
269
+ display: flex;
270
+ justify-content: space-between;
271
+ }
272
+
273
+ .flex-wrap {
274
+ display: flex;
275
+ flex-wrap: wrap;
276
+ }
277
+
278
+ .flex-nowrap {
279
+ display: flex;
280
+ flex-wrap: nowrap;
281
+ }
282
+
283
+ .flex-start {
284
+ display: flex;
285
+ justify-content: flex-start;
286
+ }
287
+
288
+ .flex-basis25 {
289
+ flex-basis: 25%;
290
+ }
291
+
292
+ .min-width60 {
293
+ min-width: 60px;
294
+ }
295
+
296
+ .relative {
297
+ position: relative;
298
+ }
299
+
300
+ .b-cont-btn1-1 {
301
+ position: absolute;
302
+ left: 0;
303
+ top: 0;
304
+ right: 0;
305
+ bottom: 0;
306
+
307
+ /deep/ input {
308
+ position: absolute;
309
+ left: 0;
310
+ top: 0;
311
+ right: 0;
312
+ bottom: 0;
313
+ }
314
+ }
315
+ }
316
+ </style>
@@ -0,0 +1,5 @@
1
+ import SharePanel from './index.vue';
2
+ SharePanel.install = (Vue) => {
3
+ Vue.component(SharePanel.name, SharePanel);
4
+ };
5
+ export default SharePanel;