ai-chat-bot-interface 1.7.2 → 1.7.4
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 +1 -1
- package/src/ChatUi.vue +13 -7
package/package.json
CHANGED
package/src/ChatUi.vue
CHANGED
|
@@ -394,7 +394,8 @@ const handleFirstMsg = async () => {
|
|
|
394
394
|
height: '160',
|
|
395
395
|
},
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
age: 25,
|
|
398
|
+
msg: `本食谱为均衡营养版${props.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
|
|
398
399
|
性别:女;
|
|
399
400
|
年龄:25岁;
|
|
400
401
|
身高:160cm;
|
|
@@ -414,7 +415,8 @@ const handleFirstMsg = async () => {
|
|
|
414
415
|
height: '170',
|
|
415
416
|
},
|
|
416
417
|
},
|
|
417
|
-
|
|
418
|
+
age: 25,
|
|
419
|
+
msg: `本食谱为均衡营养版${props.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
|
|
418
420
|
性别:男;
|
|
419
421
|
年龄:25岁;
|
|
420
422
|
身高:170cm;
|
|
@@ -434,7 +436,8 @@ const handleFirstMsg = async () => {
|
|
|
434
436
|
height: '160',
|
|
435
437
|
},
|
|
436
438
|
},
|
|
437
|
-
|
|
439
|
+
age: 35,
|
|
440
|
+
msg: `本食谱为控卡版${props.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
|
|
438
441
|
性别:女;
|
|
439
442
|
年龄:35岁;
|
|
440
443
|
身高:160cm;
|
|
@@ -454,7 +457,8 @@ const handleFirstMsg = async () => {
|
|
|
454
457
|
height: '170',
|
|
455
458
|
},
|
|
456
459
|
},
|
|
457
|
-
|
|
460
|
+
age: 35,
|
|
461
|
+
msg: `本食谱为控卡版${props.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
|
|
458
462
|
性别:男;
|
|
459
463
|
年龄:35岁;
|
|
460
464
|
身高:170cm;
|
|
@@ -475,6 +479,8 @@ const handleFirstMsg = async () => {
|
|
|
475
479
|
if (p >= presetList.length) {
|
|
476
480
|
p = 0;
|
|
477
481
|
}
|
|
482
|
+
|
|
483
|
+
localStorage.setItem('preset_point', p);
|
|
478
484
|
const curInfo = presetList[p];
|
|
479
485
|
const perMsg = curInfo.msg;
|
|
480
486
|
|
|
@@ -507,9 +513,9 @@ const handleFirstMsg = async () => {
|
|
|
507
513
|
脂肪:${item.fatTotal}g\n\n`),
|
|
508
514
|
);
|
|
509
515
|
|
|
510
|
-
const resMsg = `您的身高:${
|
|
511
|
-
curInfo.
|
|
512
|
-
}
|
|
516
|
+
const resMsg = `您的身高:${curInfo.params.profileInfo.height}cm 年龄:${
|
|
517
|
+
curInfo.age
|
|
518
|
+
} 岁 体重:${curInfo.params.profileInfo.weight}kg 性别:${
|
|
513
519
|
curInfo.params.profileInfo.sex === '2' ? '女' : '男'
|
|
514
520
|
} 日常运动水平:久坐
|
|
515
521
|
|