1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
<template>
<div class="page" :class="{'mobile':_isMobile,'pc':!_isMobile}">
<div class="main_content">
<div class="top" :class="{'small':_isMobile && !isBig}" :style="{'height':topHeiht}">
<div class="page_title">{{$t('strings.homeTitle')}}</div>
<div class="picture-box">
<img class="page_bg2" src="../assets/images/gesture/swiper1big_new.png" alt srcset />
<div class="page_tips_1 page_tips">{{$t('strings.homeText1')}}</div>
<div class="page_tips_2 page_tips">{{$t('strings.homeText2')}}</div>
<div class="page_tips_3 page_tips">{{$t('strings.homeText3')}}</div>
</div>
</div>
<div class="global_box">
<img class="global_img" @click="clickGlobalPopup" src="../assets/images/gesture/icon_global.png" alt srcset />
<div class="popup-box" v-if="showPopup">
<img class="popup_bg" src="../assets/images/gesture/popup.png" alt srcset />
<div class="poup-item" :class="{'active':currentLanguage === index}" v-for="(item,index) in languageList" :key="item" @click="clickLanguage(index)">
<img v-if="currentLanguage === index" class="icon" src="../assets/images/gesture/select.png" alt srcset />
<div v-else></div>
<span>{{item}}</span>
</div>
</div>
</div>
<div class="bottom">
<div class="info" :style="{'marginTop':cT,'marginLeft':cL, 'marginRight':cL, 'marginBottom':cT}">
<div class="title" :style="{'margin-bottom':cTb}">{{$t('strings.homeText4')}}</div>
<div class="content" v-if="_isMobile">
<div class="item"></div>
</div>
</div>
<div class="bottomBtn">
<light-button @click="clickAuthCamera" :text="$t('strings.homeButtonText')"></light-button>
<div class="bottom-tips">{{$t('strings.completeText2')}}</div>
</div>
</div>
<div class="no_camera_dialog" v-if="showNoCameraDialog">
<div class="no_camera_dialog_mask"></div>
<div class="no_camera_dialog_content">
<div class="no_camera_dialog_title">{{$t('strings.cameraText')}}</div>
<div class="no_camera_dialog_button" @click="clickAuthCamera">
<img class="no_camera_dialog_button_bg" src="../assets/images/gesture/light-btn-bg.png" alt srcset />
<div class="no_camera_dialog_button_text">{{$t('strings.cameraButtonText')}}</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { calcAdapt, isBigScreen, authCamera, isMobile } from "../common/util";
import lightButton from "../components/lightButton.vue";
let calcs = calcAdapt();
let scale;
const calcCoord = function () {
let width = 0;
let height = 0;
if (!isMobile()) {
width = 750;
height =
document.body.clientHeight > 1334 ? document.body.clientHeight : 1334;
} else {
width = document.body.clientWidth;
height = document.body.clientHeight;
}
if (height === 0) {
height = window.innerHeight;
if (!isMobile()) {
height = window.innerHeight > 1334 ? window.innerHeight : 1334;
}
}
scale = height / width;
let k = +scale.toFixed(2);
if (k >= 2.16) {
k = 2.16;
} else if (k <= 1.78) {
k = 1.78;
}
return calcs.calcCoord.call(null, ...arguments, k);
};
export default {
data() {
return {
showNoCameraDialog: false,
topHeiht: 0,
isBig: isBigScreen(),
scale: scale,
currentLanguage: 0,
showPopup: false,
languageList: ["English", "Français", "Español"],
cL: calcCoord({ minTop: 47, maxTop: 51 }).top + "px",
cT: calcCoord({ minTop: 47, maxTop: 67 }).top + "px",
cB: calcCoord({ minTop: 40, maxTop: 80 }).top + "px",
cTs: calcCoord({ minTop: 40, maxTop: 60 }).top + "px", // title fontsize
cTb: calcCoord({ minTop: 30, maxTop: 30 }).top + "px", // title bottom
cCs: calcCoord({ minTop: 20, maxTop: 40 }).top + "px", // content
pageHeight: "",
_isMobile: false
};
},
components: {
lightButton
},
methods: {
clickGlobalPopup() {
this.showPopup = !this.showPopup;
},
setLanguagePack() {
let _languagePack = {
tipsString: {
initInitial: "请调整姿势",
sittingUnrecognition: "未识别到宝宝,请根据屏幕上的宝宝贴纸模拟动作",
sittingBabyneckloc: "请用肘关节支撑宝宝颈部",
sittingBabyhead: "请勿用手掌固定宝宝头部",
sittingBabybackloc: "请将前臂顺着宝宝背部",
sittingUpleft: "请抬高左手臂",
sittingUpright: "请抬高右手臂",
sittingDownleft: "请放低左手臂",
sittingDownright: "请放低右手臂",
sittingHeadupassdown: "请保持宝宝头部高于臀部",
sittingBabystright: "请保持宝宝耳肩臀在同一直线",
sittingBabyheadloc: "请确保宝宝头部正对妈妈乳房,不宜过高",
nobabysittingBabyneckloc: "实际哺乳时,请注意用肘关节支撑宝宝颈部",
nobabysittingHeadupassdown: "实际哺乳时,请注意用肘关节支撑宝宝颈部",
nobabysittingBabystright: "实际哺乳时,请保持宝宝耳肩臀一条直线",
/// 坐姿建议
sittingSuggest: [
"请采用舒适姿势,确保与宝宝始终胸腹相贴",
"宝宝嘴巴尽量包裹住乳晕",
"使宝宝下巴紧贴乳房,张嘴角度大于100度",
"随时点击右上角指导图示调整含乳姿势",
"放松肩膀",
"妈妈抱宝宝的手,腰部和脚有支撑",
"保持放松,直到哺乳结束"
]
},
commonmemsg: {
initialMassage:
"请与屏幕保持1米左右距离使身体进入轮廓线,5秒后开始识别",
slogan: "疼痛少一分,自在喂养多一分"
},
sittingMsg: {
babyneckloc: "请用肘关节支撑宝宝颈部",
babyhead: "请勿用手掌固定宝宝头部",
babybackloc: "请将前臂顺着宝宝背部",
upleft: "请抬高左手臂",
upright: "请抬高右手臂",
downleft: "请放低左手臂",
downright: "请放低右手臂",
headupassdown: "请保持宝宝头部高于臀部",
babystright: "请保持宝宝耳肩臀在同一直线",
babyheadloc: "请确保宝宝头部正对妈妈乳房,不宜过高"
},
sittingMsgPart: {
babyneckloc: "请用肘关节支撑宝宝颈部",
babyhead: "请勿用手掌固定宝宝头部",
babybackloc: "请将前臂顺着宝宝背部",
headupassdown: "请保持宝宝头部高于臀部",
babystright: "请保持宝宝耳肩臀在同一直线",
babyheadloc: "请确保宝宝头部正对妈妈乳房,不宜过高"
},
successmsg: {
recordMessage: "现在可以开始哺乳了!3秒后将自动开始计时",
nobabyRecord: "您已掌握喂养姿势,期待您和宝宝一起来体验哺乳计时功能",
suggest: "请及时点击右上角指导图示调整",
posSuccess: "您的姿势正确,请继续保持"
},
strings: {
suggestTitle: "在开始哺乳的时候可以保持:",
suggestText1:
"1.在哺乳过程中,应采用妈妈和宝宝都舒适的姿势,确保与宝宝始终胸腹相贴。",
suggestText2:
"2.请让宝宝嘴巴尽量包裹住乳晕,下巴紧贴乳房,张嘴角度大于100度。",
suggestText3: "3.若感到乳头疼痛,请及时点击右上角知道/详解图示调整。",
suggestText4: "4.请放松肩膀,用垫子或枕头支撑抱宝宝的手,腰部和脚。",
suggestText5: "5.全程请保持放松,愉悦的状态,直到宝宝主动吐出乳头。",
suggestConfirmText: "知道了",
suggestText6:
"1.在哺乳过程中,请时刻避免乳房闷到宝宝,不要挤压胸部释放空间,应使宝宝臀部紧贴妈妈腹部,自然留有空隙。",
suggestText7:
"2.妈妈可在头部下方垫上垫子用以支撑,但位置不宜过高。在背部放上靠垫支撑腰部,保持腿部放松,自然屈曲,也可在两膝关节间放置垫子缓解压力。",
discardReasonTitle: "放弃的原因是...",
discardReason1: "不知道怎么用",
discardReason2: "担心我的个人隐私",
discardReason3: "觉得没有用处",
literature:
"[1]Fernandez L, Cardenas N, Arroyo R, et al. Prevention of infectious mastitis by oral administration of Lactobacillus salivarius PS2 during late pregnancy [J]. Clinical Infectious Diseases, 2016, 62 (5): 568-73.",
mainTipsText:
"请在安全环境安全设备使用本功能。在使用过程中,我们不会存储您的图像。",
guidance: "指导",
recordText: '正在进行哺乳计时,当喂养结束后请点击"结束哺乳"按钮',
noCameraText1: "您已关闭摄像头",
noCameraText2: "哺乳计时将会继续",
noCameraEndText: "结束哺乳",
briefSummaryTitleFront: "恭喜您在",
briefSummaryTitleAfter: "秒内完成了本次姿势矫正",
briefSummaryText1: "您在AI的帮助下掌握了",
briefSummaryText2: "摇篮式姿势要点",
sitMainPointsText1: "婴儿头高臀低,妈妈能看到婴儿的表情",
sitMainPointsText2: "妈妈和婴儿应该腹胸相贴",
sitMainPointsText3: "婴儿的头枕于妈妈手肘处,不要用手固定婴儿头部",
sitMainPointsText4: "婴儿的耳、肩、臀成一条直线",
sitMainPointsConfirmText: "好 的",
momLeft: "当未检测到您,将自动停止计时后续流程,停留5s后跳转至结束页面"
}
};
let _englishLanguagePack = {
tipsString: {
initInitial: "Please adjust your posture",
sittingUnrecognition:
"No baby detected. Please follow the on-screen instructions",
sittingBabyneckloc: "Make sure baby's neck is on your elbow",
sittingBabyhead: "Do not restrict baby's head with your hands",
sittingBabybackloc:
"Make sure your forearm is supporting baby's back",
sittingUpleft: "Raise your left arm",
sittingUpright: "Raise your right arm",
sittingDownleft: "Lower your left arm",
sittingDownright: "Lower your right arm",
sittingHeadupassdown:
"Keep baby's head in higher position than the rest of the body",
sittingBabystright:
"Keep baby's ear, shoulder and butt at the same level",
sittingBabyheadloc:
"Make sure baby is facing the breast at proper height",
nobabysittingBabyneckloc:
"During actual breastfeeding, make sure baby's neck is on your elbow",
nobabysittingHeadupassdown:
"When actually breastfeeding, please pay attention to supporting the baby's neck with elbow joint",
nobabysittingBabystright:
"When actually breastfeeding, please keep your baby's ears, shoulders and hips in a straight line",
/// 坐姿建议
sittingSuggest: [
"Adjust to a comfortable posture, and keep baby very close to you at all times",
"Make sure baby is latched properly (mouth should fully cover the nipple and areola)",
"Keep baby's chin close to your breast, and mouth fully covering the nipple and areola",
"Tap top right icon to view more info",
"Relax your shoulder",
"There should be support to your hand, waist and feet when holding baby",
"Keep relaxed until the end of session"
]
},
commonmemsg: {
initialMassage:
"Keep one meter away from the camera, and fit your body into the guide line. Session starts in 5 seconds…",
slogan: "Less pain, more free feeding"
},
sittingMsg: {
babyneckloc: "Please support your baby's neck with your elbow",
babyhead: "Do not hold the baby's head with your palm",
babybackloc: "Please put your forearm along your baby's back",
upleft: "Please raise your left arm",
upright: "Please raise your right arm",
downleft: "Please lower your left arm",
downright: "Please lower your right arm",
headupassdown: "Keep your baby's head above your hips",
babystright:
"Please keep your baby's ears, shoulders and hips in the same line",
babyheadloc:
"Please make sure the baby's head is facing the mother's breast and should not be too high"
},
sittingMsgPart: {
babyneckloc: "Please support your baby's neck with your elbow",
babyhead: "Do not hold the baby's head with your palm",
babybackloc: "Please put your forearm along your baby's back",
headupassdown: "Keep your baby's head above your hips",
babystright:
"Please keep your baby's ears, shoulders and hips in the same line",
babyheadloc:
"Please make sure the baby's head is facing the mother's breast and should not be too high"
},
successmsg: {
recordMessage:
"You may start breastfeeding now! Timer starts in 3 seconds…",
nobabyRecord:
"You have learned the correct posture. You may try this AI coach with your baby next time.",
suggest: "Tap top right icon to view more info",
posSuccess: "Your posture is correct. Please keep it going."
},
strings: {
suggestTitle: "It can be maintained at the beginning of lactation:",
suggestText1:
"1During breast-feeding, both mother and baby should be in a comfortable position to ensure that they are always close to the chest and abdomen of the baby.",
suggestText2:
"2.Please let the baby's mouth wrap around the areola as much as possible, keep the chin close to the breast, and open the mouth at an angle greater than 100 degrees.",
suggestText3:
"3.If you feel nipple pain, please click the upper right corner to know / explain the adjustment in detail.",
suggestText4:
"4.Please relax your shoulders and support your baby's hands, waist and feet with cushions or pillows.",
suggestText5:
"5.Please stay relaxed and happy until the baby spits out his nipples.",
suggestConfirmText: "got it",
suggestText6:
"1.During lactation, please always avoid breast tightness to the baby, do not squeeze the chest to release space, and make the baby's hips close to the mother's abdomen, leaving a gap naturally.",
suggestText7:
"2.Mother can put a cushion under her head for support, but the position should not be too high. Put a cushion on your back to support your waist, keep your legs relaxed and flex naturally, or place a cushion between your knees to relieve pressure.",
discardReasonTitle: "Reasons to give up…",
discardReason1: "Not sure how to use it",
discardReason2: "Concern about my personal privacy",
discardReason3: "Do not think it is helpful",
literature:
"[1]Fernandez L, Cardenas N, Arroyo R, et al. Prevention of infectious mastitis by oral administration of Lactobacillus salivarius PS2 during late pregnancy [J]. Clinical Infectious Diseases, 2016, 62 (5): 568-73.",
mainTipsText:
"Please use this function in a safe environment and safe equipment. We will not store your images during use.",
guidance: "guide",
recordText:
'Lactation timing is in progress. Please click the "end lactation" button after feeding',
noCameraText1: "You have turned off the camera",
noCameraText2: "Lactation timing will continue",
noCameraEndText: "End lactation",
briefSummaryTitleFront:
"Congratulations! You have completed the session in ",
briefSummaryTitleAfter: " seconds",
briefSummaryText1: "You have learned the",
briefSummaryText2: "key points of cradle hold breastfeeding",
sitMainPointsText1:
"Keep baby's head in higher position so you can see baby's face",
sitMainPointsText2: "Keep baby very close to you",
sitMainPointsText3:
"Keep baby's neck on your elbow, and do not restrict baby's head with your hand",
sitMainPointsText4:
"Keep baby's ear, shoulder and butt at the same level",
sitMainPointsConfirmText: "OK",
momLeft:
"When you are not detected, the follow-up process of timing will be automatically stopped, and after 5S, jump to the end page"
}
};
let _frenchLanguagePack = {
tipsString: {
initInitial: "Veuillez ajuster votre posture",
sittingUnrecognition:
"Aucun bébé détecté. Veuillez suivre les instructions à l'écran",
sittingBabyneckloc:
"Assurez-vous que le cou de bébé est sur votre coude",
sittingBabyhead: "Ne limitez pas la tête de bébé avec vos mains",
sittingBabybackloc:
"Assurez-vous que votre avant-bras soutient le dos de bébé",
sittingUpleft: "Levez votre bras gauche",
sittingUpright: "Levez votre bras droit",
sittingDownleft: "Abaissez votre bras gauche",
sittingDownright: "Abaissez votre bras droit",
sittingHeadupassdown:
"Gardez la tête de bébé en position plus haute que le reste du corps",
sittingBabystright:
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
sittingBabyheadloc:
"Assurez-vous que bébé est face au sein à la bonne hauteur",
nobabysittingBabyneckloc:
"Pendant l'allaitement, assurez-vous que le cou du bébé est sur votre coude",
nobabysittingHeadupassdown:
"Vous pouvez commencer à allaiter maintenant ! La minuterie démarre dans 3 secondes…",
nobabysittingBabystright:
"Pendant l'allaitement,gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
/// 坐姿建议
sittingSuggest: [
"Ajustez-vous à une posture confortable et gardez bébé très près de vous à tout moment",
"Assurez-vous que le bébé prend correctement le sein (la bouche doit couvrir entièrement le mamelon et l'aréole)",
"Gardez le menton de bébé près de votre sein, sa bouche couvrant entièrement le mamelon et l'aréole",
"Appuyez sur l'icône en haut à droite pour afficher plus d'informations",
"Détendez votre épaule",
"Votre main, votre taille et vos pieds doivent être soutenus lorsque vous tenez bébé",
"Restez détendu jusqu'à la fin de la séance"
]
},
commonmemsg: {
initialMassage:
"Tenez-vous à un mètre de la caméra et placez votre corps dans la ligne de guidage. La session démarre dans 5 secondes…",
slogan: "Moins de douleur, plus de liberté d'alimentation"
},
sittingMsg: {
babyneckloc: "Assurez-vous que le cou de bébé est sur votre coude",
babyhead: "Ne limitez pas la tête de bébé avec vos mains",
babybackloc:
"Assurez-vous que votre avant-bras soutient le dos de bébé",
upleft: "Levez votre bras gauche",
upright: "Levez votre bras droit",
downleft: "Abaissez votre bras gauche",
downright: "Abaissez votre bras droit",
headupassdown:
"Gardez la tête de bébé en position plus haute que le reste du corps",
babystright:
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
babyheadloc:
"Assurez-vous que bébé est face au sein à la bonne hauteur"
},
sittingMsgPart: {
babyneckloc: "Assurez-vous que le cou de bébé est sur votre coude",
babyhead: "Ne limitez pas la tête de bébé avec vos mains",
babybackloc:
"Assurez-vous que votre avant-bras soutient le dos de bébé",
headupassdown:
"Gardez la tête de bébé en position plus haute que le reste du corps",
babystright:
"Gardez l'oreille, l'épaule et les fesses de bébé au même niveau",
babyheadloc:
"Assurez-vous que bébé est face au sein à la bonne hauteur"
},
successmsg: {
recordMessage:
"Vous pouvez commencer à allaiter maintenant ! La minuterie démarre dans 3 secondes…",
nobabyRecord:
"Vous avez appris la bonne posture. Vous pouvez essayer cet entraîneur AI avec votre bébé la prochaine fois.",
suggest:
"Appuyez sur l'icône en haut à droite pour afficher plus d'informations",
posSuccess: "Votre posture est correcte. Vous pouvez continuer."
},
strings: {
suggestTitle:
"Au début de l’allaitement, il est possible de maintenir:",
suggestText1:
"1.Pendant l'allaitement, assurez - vous d'utiliser une position confortable pour la mère et le bébé, en veillant à ce qu'il soit toujours attaché à la poitrine et à l'abdomen du bébé.",
suggestText2:
"2.S'il vous plaît laissez la bouche du bébé couvrir l'aréole autant que possible, le menton près du sein, l'angle d'ouverture de la bouche est supérieur à 100 degrés.",
suggestText3:
"3.Si vous ressentez une douleur au mamelon, cliquez sur le coin supérieur droit pour connaître / détailler le réglage.",
suggestText4:
"4.Détendez vos épaules et utilisez un coussin ou un oreiller pour soutenir vos mains, votre taille et vos pieds.",
suggestText5:
"5.Restez détendu et heureux jusqu'à ce que le bébé vomisse ses mamelons.",
suggestConfirmText: "J'ai compris.",
suggestText6:
"1.Dans le processus d'allaitement, s'il vous plaît toujours éviter l'oppression mammaire au bébé, ne pas presser la poitrine pour libérer de l'espace, devrait faire les fesses du bébé près de l'abdomen de la mère, laisser l'espace naturel.",
suggestText7:
"2.Maman peut mettre un coussin sous la tête pour soutenir, mais pas trop haut. Placez des coussins sur le dos pour soutenir la taille, garder les jambes détendues et fléchies naturellement, ou placez des coussins entre les genoux pour soulager la pression.",
discardReasonTitle: "Raisons d'abandonner…",
discardReason1: "Je ne sais pas comment l'utiliser",
discardReason2: "Inquiétude pour ma vie privée",
discardReason3: "Je ne pense pas que c'est utile",
literature:
"[1]Fernandez L, Cardenas N, Arroyo R, et al. Prevention of infectious mastitis by oral administration of Lactobacillus salivarius PS2 during late pregnancy [J]. Clinical Infectious Diseases, 2016, 62 (5): 568-73.",
mainTipsText:
"Veuillez utiliser cette fonction dans l'équipement de sécurité de l'environnement de sécurité.Vos images et vidéos ne seront utilisées que pour la reconnaissance des coachs IA. Elles ne seront pas stockés.",
guidance: "Orientation",
recordText:
"'Le timing de l'allaitement est en cours. Cliquez sur le bouton « terminer l'allaitement » lorsque l'allaitement est terminé.'",
noCameraText1: "Vous avez éteint la caméra",
noCameraText2: "Le temps d'allaitement se poursuivra",
noCameraEndText: "Mettre fin à l'allaitement",
briefSummaryTitleFront: "Toutes nos félicitations!",
briefSummaryTitleAfter: " Vous avez terminé la session !",
briefSummaryText1: "Vous l'avez maîtrisé avec l'aide de l'IA",
briefSummaryText2: "Points clés de la posture du berceau",
sitMainPointsText1:
"Gardez la tête de bébé en position haute pour que vous puissiez voir le visage de bébé",
sitMainPointsText2: "Gardez bébé très près de vous",
sitMainPointsText3:
"Gardez le cou de bébé sur votre coude et ne limitez pas la tête de bébé avec votre main",
sitMainPointsText4:
"Gardez le cou de bébé sur votre coude et ne limitez pas la tête de bébé avec votre main",
sitMainPointsConfirmText: "OK",
momLeft:
"Si vous n'êtes pas détecté, le processus de suivi du timing s'arrêtera automatiquement et passera à la page de fin après 5S."
}
};
let _spanishLanguagePack = {
tipsString: {
initInitial: "Por favor, ajuste su postura",
sittingUnrecognition:
"Ningún bebé detectado. Siga las instrucciones mostradas en pantalla",
sittingBabyneckloc:
"Asegúrese de que el cuello del bebé esté sobre su codo.",
sittingBabyhead: "No restrinja la cabeza del bebé con las manos.",
sittingBabybackloc:
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé.",
sittingUpleft: "Levante su brazo izquierdo",
sittingUpright: "Levante su brazo derecho",
sittingDownleft: "Baje su brazo izquierdo",
sittingDownright: "Baje su brazo derecho",
sittingHeadupassdown:
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo.",
sittingBabystright:
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
sittingBabyheadloc:
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada",
nobabysittingBabyneckloc:
"Durante la lactancia real, asegúrese de que el cuello del bebé esté sobre su codo.",
nobabysittingHeadupassdown:
"¡Puede comenzar a darle el pecho ahora! El temporizador comienza en 3 segundos...",
nobabysittingBabystright:
"Durante la lactancia real,mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
/// 坐姿建议
sittingSuggest: [
"Tome una postura cómoda y mantén al bebé muy cerca de usted en todo momento.",
"Asegúrese de que el bebé esté bien sujeto (la boca debe cubrir completamente el pezón y la areola)",
"Mantenga la barbilla del bebé cerca de su seno y la boca cubriendo completamente el pezón y la areola.",
"Toque el icono superior derecho para ver más información",
"Relaje su hombro",
"Debe haber apoyo en su mano, su cintura y sus pies al sostener al bebé.",
"Manténgase relajada hasta el final de la sesión."
]
},
commonmemsg: {
initialMassage:
"Manténgase a un metro de distancia de la cámara y coloque su cuerpo en la línea. La sesión comienza en 5 segundos...",
slogan: "Un punto menos de dolor, un punto más de alimentación libre"
},
sittingMsg: {
babyneckloc:
"Asegúrese de que el cuello del bebé esté sobre su codo.",
babyhead: "No restrinja la cabeza del bebé con las manos.",
babybackloc:
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé.",
upleft: "Levante su brazo izquierdo",
upright: "Levante su brazo derecho",
downleft: "Baje su brazo izquierdo",
downright: "Baje su brazo derecho",
headupassdown:
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo.",
babystright:
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
babyheadloc:
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada"
},
sittingMsgPart: {
babyneckloc:
"Asegúrese de que el cuello del bebé esté sobre su codo.",
babyhead: "No restrinja la cabeza del bebé con las manos.",
babybackloc:
"Asegúrese de que su antebrazo esté sosteniendo la espalda del bebé.",
headupassdown:
"Mantenga la cabeza del bebé en una posición más alta que el resto del cuerpo.",
babystright:
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
babyheadloc:
"Asegúrese de que el bebé esté frente al pecho a la altura adecuada"
},
successmsg: {
recordMessage:
"¡Puede comenzar a darle el pecho ahora! El temporizador comienza en 3 segundos...",
nobabyRecord:
"Ha aprendido la postura correcta. Puede probar este asistente de IA con su bebé la próxima vez.",
suggest: "Toque el icono superior derecho para ver más información",
posSuccess: "Su postura es correcta. Por favor, sigua así."
},
strings: {
suggestTitle: "Al comienzo de la lactancia se puede mantener:",
suggestText1:
"1.Durante la lactancia, la madre y el bebé deben adoptar una postura cómoda para asegurarse de que siempre se adhieren al pecho y el abdomen del bebé.",
suggestText2:
"2.Por favor, deje que la boca del bebé envuelva la areola en la medida de lo posible, la barbilla se aferra al pecho, el ángulo de la boca abierta es superior a 100 grados.",
suggestText3:
"3.Si siente dolor en el pezón, por favor haga clic en la esquina superior derecha para saber / explicar el ajuste de la imagen.",
suggestText4:
"4.Por favor, afloje los hombros y sostenga las manos, la cintura y los pies del bebé con almohadillas o almohadas.",
suggestText5:
"5.Por favor, manténgase relajado y alegre hasta que el bebé vomite sus pezones.",
suggestConfirmText: "Lo tengo.",
suggestText6:
"1.En el proceso de lactancia, por favor, evite siempre la opresión de los pechos al bebé, no apriete el pecho para liberar el espacio, debe hacer que las caderas del bebé se aferren al abdomen de la madre, la naturaleza deja espacio.",
suggestText7:
"2.Mamá puede estar debajo de la almohadilla de la cabeza para apoyar, pero la posición no debe ser demasiado alta. Coloque almohadillas en la espalda para apoyar la cintura, mantenga las piernas relajadas, flexiones naturales, o coloque almohadillas entre las rodillas para aliviar la presión.",
discardReasonTitle: "Razones para rendirse...",
discardReason1: "No estoy segura de cómo usarlo",
discardReason2: "Preocupación por mi privacidad",
discardReason3: "No creo que sea útil",
literature:
"[1]Fernandez L, Cardenas N, Arroyo R, et al. Prevention of infectious mastitis by oral administration of Lactobacillus salivarius PS2 during late pregnancy [J]. Clinical Infectious Diseases, 2016, 62 (5): 568-73.",
mainTipsText:
"Por favor, utilice esta función en un dispositivo seguro.Sus imágenes y videos solo se utilizarán para el reconocimiento del asistente de IA. No se almacenarán.",
guidance: "Guía",
recordText:
'El tiempo de lactancia está en curso, por favor haga clic en el botón "terminar la lactancia" después de la alimentación.',
noCameraText1: "Has apagado la Cámara",
noCameraText2: "El tiempo de lactancia continuará",
noCameraEndText: "Fin de la lactancia",
briefSummaryTitleFront: "¡Felicidades!",
briefSummaryTitleAfter: "Has completado la sesión en xx segundos",
briefSummaryText1: "Lo tienes con la ayuda de AI.",
briefSummaryText2: "Postura de cuna",
sitMainPointsText1:
"Mantenga la cabeza del bebé en una posición más alta para que pueda ver la cara del bebé",
sitMainPointsText2: "Mantenga al bebé muy cerca de usted",
sitMainPointsText3:
"Mantenga el cuello del bebé sobre su codo y no restrinja la cabeza del bebé con su mano.",
sitMainPointsText4:
"Mantenga la oreja, el hombro y el trasero del bebé al mismo nivel",
sitMainPointsConfirmText: "DE ACUERDO",
momLeft:
"Cuando no se detecta, el proceso de seguimiento de la sincronización se detiene automáticamente, se detiene durante 5 segundos y se salta a la página final"
}
};
switch (this.currentLanguage) {
case 0:
localStorage.setItem(
"languagePack",
JSON.stringify(_englishLanguagePack)
);
break;
case 1:
localStorage.setItem(
"languagePack",
JSON.stringify(_frenchLanguagePack)
);
break;
case 2:
localStorage.setItem(
"languagePack",
JSON.stringify(_spanishLanguagePack)
);
break;
// case 3:
// _prefs.setString("languagePack", json.encode(_spanishLanguagePack));
// break;
default:
}
},
clickLanguage(index) {
this.showPopup = false;
this.currentLanguage = index;
let lang = "zh";
if (index === 0) {
lang = "en";
} else if (index === 1) {
lang = "fr";
} else if (index === 2) {
lang = "es";
}
this.$i18n.locale = lang;
},
async clickAuthCamera() {
this.setLanguagePack();
if (this.showNoCameraDialog) {
this.showNoCameraDialog = false;
}
let { camera } = await authCamera(0);
if (camera) {
let openDev = this.$route.query.openDev;
localStorage.setItem(
"backUrl",
"https://bfai-service-uat.d-lab-services.danone.com/demo/#/complete"
);
let url =
"https://bfai-service-uat.d-lab-services.danone.com/sdk/#/?camera=1&lying=0";
if (openDev) {
url = url + "&openDev=true";
}
window.location.href = url;
} else {
this.showNoCameraDialog = true;
}
}
},
created() {
this.$i18n.locale = "en";
this._isMobile = isMobile();
if (!isMobile()) {
document.getElementsByTagName("body")[0].style.minWidth = "750px";
this.topHeiht = calcCoord({ minTop: 918, maxTop: 1142.6 }).top;
this.topHeiht = 1042.6;
} else {
this.topHeiht = calcCoord({ minTop: 918, maxTop: 1142.6 }).top;
}
if (!this._isMobile) {
this.topHeiht = this.topHeiht + "px";
this.cL = calcCoord({ minTop: 47, maxTop: 51 }).top + "px";
this.cT = calcCoord({ minTop: 47, maxTop: 67 }).top + "px";
this.cB = calcCoord({ minTop: 40, maxTop: 80 }).top + "px";
this.cTs = calcCoord({ minTop: 40, maxTop: 60 }).top + "px"; // title fontsize
this.cTb = calcCoord({ minTop: 30, maxTop: 30 }).top + "px"; // title bottom
this.cCs = calcCoord({ minTop: 20, maxTop: 40 }).top + "px"; // content
} else {
this.topHeiht = this.topHeiht / 75 + "rem";
this.cL = calcCoord({ minTop: 47, maxTop: 51 }).top / 75 + "rem";
this.cT = calcCoord({ minTop: 47, maxTop: 67 }).top / 75 + "rem";
this.cB = calcCoord({ minTop: 40, maxTop: 80 }).top / 75 + "rem";
this.cTs = calcCoord({ minTop: 40, maxTop: 60 }).top / 75 + "rem"; // title fontsize
this.cTb = calcCoord({ minTop: 30, maxTop: 30 }).top / 75 + "rem"; // title bottom
this.cCs = calcCoord({ minTop: 20, maxTop: 40 }).top / 75 + "rem"; // content
}
},
mounted() {
window.onresize = () => {
return (() => {})();
};
}
};
</script>
<style lang="scss" scoped>
.page {
background: #000;
display: flex;
justify-content: center;
height: 100%;
}
.pc {
.main_content {
width: 750px;
min-height: 1334px;
background: #ffffff;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.global_box {
width: 62px;
position: absolute;
right: 18px;
top: 62px;
z-index: 10;
.global_img {
width: 100%;
}
.popup-box {
width: 140px;
height: 150px;
position: absolute;
right: -9px;
top: 72px;
padding-top: 12px;
box-sizing: border-box;
overflow: hidden;
border-radius: 12px;
.popup_bg {
position: absolute;
left: 0;
top: 0;
width: 140px;
}
.poup-item {
position: relative;
height: 45px;
font-size: 20px;
font-family: Source Han Sans SC;
font-weight: 500;
color: #303030;
line-height: 45px;
display: flex;
align-items: center;
justify-content: start;
cursor: pointer;
img {
width: 14px;
margin-left: 19px;
margin-right: 11px;
}
div {
width: 14px;
margin-left: 19px;
margin-right: 11px;
}
&.active {
color: #f68682;
}
}
}
}
.top {
position: relative;
width: 100%;
background: url("../assets/images/gesture/introduceBg.png") no-repeat top
center;
overflow: hidden;
.page_bg {
width: 100%;
position: absolute;
left: 0;
top: 0;
}
.page_title {
font-size: 53px;
font-family: Source Han Sans SC;
font-weight: bold;
color: #f68682;
line-height: 60px;
-webkit-text-stroke: 2px #fff9fb;
text-stroke: 2px #fff9fb;
width: 100%;
position: absolute;
left: 0;
top: 116px;
z-index: 2;
}
.picture-box {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
.page_bg2 {
width: 100%;
position: absolute;
left: 0;
top: 100px;
}
.page_tips {
font-size: 24px;
color: #7d7c7a;
text-align: left;
font-weight: bold;
white-space: pre-line;
&.page_tips_1 {
position: absolute;
top: 330px;
left: 100px;
width: 260px;
}
&.page_tips_2 {
position: absolute;
width: 430px;
left: 310px;
top: 712px;
}
&.page_tips_3 {
position: absolute;
width: 530px;
left: 110px;
top: 890px;
}
}
}
&.small {
.page_title {
top: 40px;
}
.page_bg2 {
width: 60%;
position: absolute;
left: 20%;
top: 60px;
}
.page_tips {
font-size: 20px;
&.page_tips_1 {
position: absolute;
top: 192px;
left: calc(20% + 55px);
width: 260px;
}
&.page_tips_2 {
position: absolute;
width: 430px;
left: calc(20% + 184px);
top: 424px;
}
&.page_tips_3 {
position: absolute;
width: 530px;
left: calc(20% + 60px);
top: 528px;
}
}
}
}
.bottom {
flex: 1;
width: 750px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
position: relative;
.info {
align-self: flex-start;
color: #999;
font-size: 29.6px;
.title {
color: #fb7c76;
font-size: 44.5px;
font-weight: bold;
}
.item {
min-height: 44.5px;
line-height: 44.6px;
}
}
.bottomBtn {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
.bottom-tips {
margin-top: 20px;
font-size: 24px;
color: #999999;
}
}
}
.no_camera_dialog {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
&_mask {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 0;
}
&_content {
width: 593px;
height: 496px;
background: #ffffff;
border-radius: 16px;
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: 78px 0 97px 0;
}
&_title {
font-size: 46px;
line-height: 1.2;
font-family: Source Han Sans SC;
font-weight: 500;
color: #000000;
width: 456px;
text-align: left;
margin-bottom: 130px;
}
&_button {
width: 431px;
height: 69px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
&_bg {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
&_text {
font-size: 33px;
font-family: Source Han Sans SC;
font-weight: 500;
color: #ffffff;
z-index: 1;
}
}
}
}
}
.mobile {
.main_content {
width: 10rem;
height: 100vh;
background: #ffffff;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.global_box {
width: 0.8267rem;
position: absolute;
right: 0.24rem;
top: 0.8267rem;
z-index: 10;
.global_img {
width: 100%;
}
.popup-box {
width: 1.8667rem;
height: 2rem;
position: absolute;
right: -0.12rem;
top: 0.96rem;
padding-top: 0.16rem;
box-sizing: border-box;
overflow: hidden;
border-radius: 0.16rem;
.popup_bg {
position: absolute;
left: 0;
top: 0;
width: 1.8667rem;
}
.poup-item {
position: relative;
height: 0.6rem;
font-size: 0.2667rem;
font-family: Source Han Sans SC;
font-weight: 500;
color: #303030;
line-height: 0.6rem;
display: flex;
align-items: center;
justify-content: start;
cursor: pointer;
img {
width: 0.1867rem;
margin-left: 0.2533rem;
margin-right: 0.1467rem;
}
div {
width: 0.1867rem;
margin-left: 0.2533rem;
margin-right: 0.1467rem;
}
&.active {
color: #f68682;
}
}
}
}
.top {
position: relative;
width: 100%;
background: url("../assets/images/gesture/introduceBg.png") no-repeat top
center;
overflow: hidden;
.page_bg {
width: 100%;
position: absolute;
left: 0;
top: 0;
}
.page_title {
font-size: 0.7067rem;
font-family: Source Han Sans SC;
font-weight: bold;
color: #f68682;
line-height: 0.8rem;
-webkit-text-stroke: 0.0267rem #fff9fb;
text-stroke: 0.0267rem #fff9fb;
width: 100%;
position: absolute;
left: 0;
top: 1.5467rem;
z-index: 2;
}
.picture-box {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
.page_bg2 {
width: 100%;
position: absolute;
left: 0;
top: 1.3333rem;
}
.page_tips {
font-size: 0.32rem;
color: #7d7c7a;
text-align: left;
font-weight: bold;
white-space: pre-line;
&.page_tips_1 {
position: absolute;
top: 4.4rem;
left: 1.3333rem;
width: 3.4667rem;
}
&.page_tips_2 {
position: absolute;
width: 5.7333rem;
left: 4.1333rem;
top: 9.4933rem;
}
&.page_tips_3 {
position: absolute;
width: 7.0667rem;
left: 1.4667rem;
top: 11.8667rem;
}
}
}
&.small {
.page_title {
top: 0.8rem;
}
.page_bg2 {
width: 80%;
position: absolute;
left: 10%;
top: 0.8rem;
}
.page_tips {
font-size: 0.2667rem;
&.page_tips_1 {
position: absolute;
top: 3.3067rem;
left: calc(10% + 1.0667rem);
width: 3.4667rem;
}
&.page_tips_2 {
position: absolute;
width: 5.7333rem;
left: calc(10% + 3.2rem);
top: 7.36rem;
}
&.page_tips_3 {
position: absolute;
width: 7.0667rem;
left: calc(10% + 1.0667rem);
top: 9.28rem;
}
}
}
}
.bottom {
flex: 1;
width: 10rem;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
position: relative;
.info {
align-self: flex-start;
color: #999;
font-size: 0.3947rem;
.title {
color: #fb7c76;
font-size: 0.5933rem;
font-weight: bold;
}
.item {
min-height: 0.5933rem;
line-height: 0.5947rem;
}
}
.bottomBtn {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
bottom: 0.4rem;
left: 50%;
transform: translateX(-50%);
.bottom-tips {
margin-top: 0.2667rem;
font-size: 0.32rem;
color: #999999;
}
}
}
.no_camera_dialog {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
&_mask {
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 0;
}
&_content {
width: 7.9067rem;
height: 6.6133rem;
background: #ffffff;
border-radius: 0.2133rem;
z-index: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: 1.04rem 0 1.2933rem 0;
}
&_title {
font-size: 0.6133rem;
line-height: 1.2;
font-family: Source Han Sans SC;
font-weight: 500;
color: #000000;
width: 6.08rem;
text-align: left;
margin-bottom: 1.7333rem;
}
&_button {
width: 5.7467rem;
height: 0.92rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
&_bg {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
&_text {
font-size: 0.44rem;
font-family: Source Han Sans SC;
font-weight: 500;
color: #ffffff;
z-index: 1;
}
}
}
}
}
</style>