ai-chat-bot-interface 1.1.3 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-chat-bot-interface",
3
3
  "private": false,
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "description": "A AI chat bot interface. (private)",
package/src/App.vue CHANGED
@@ -4,7 +4,11 @@ import ChatUi from './ChatUi.vue';
4
4
 
5
5
  <template>
6
6
  <div style="width: 100vw; height: 100vh">
7
- <chat-ui bot-id="266666" token="pat_8888" uid="262598" />
7
+ <chat-ui
8
+ bot-id="7471093458661720104"
9
+ token="pat_2yVcSFJUZB6c9Kdcv9iktIVFeGRuzyK3bAJY6GcqKrdGxTdjKMd1iDB09ipJ6YX8"
10
+ uid="262598"
11
+ />
8
12
  </div>
9
13
  </template>
10
14
  <style></style>
package/src/ChatUi.vue CHANGED
@@ -98,6 +98,7 @@
98
98
  </div>
99
99
  <operate-module
100
100
  v-model="inputText"
101
+ :tag-list="tagList"
101
102
  @send="chatConv"
102
103
  @tag="handleTagSel"
103
104
  />
@@ -159,6 +160,13 @@ const props = defineProps({
159
160
  type: String,
160
161
  required: true,
161
162
  },
163
+ tagList: {
164
+ type: Array,
165
+ default: () => [
166
+ { name: '人工客服', value: 'kefu', type: 'chat', msg: '人工客服' },
167
+ { name: '查看菜单', value: 'menu', type: 'call', msg: '查看菜单' },
168
+ ],
169
+ },
162
170
  });
163
171
 
164
172
  const Emits = defineEmits(['call']);
@@ -22,7 +22,7 @@ const props = defineProps({
22
22
  });
23
23
 
24
24
  const subStr = computed(() => {
25
- return `热量${props.info.energy}kcal,蛋白质${props.info.protein}g,脂肪${props.info.fat}g,碳水${props.info.carbonwater}g`;
25
+ return `熱量${props.info.energy}kcal,蛋白質${props.info.protein}g,脂肪${props.info.fat}g,碳水${props.info.carbonwater}g`;
26
26
  });
27
27
  </script>
28
28
 
@@ -22,11 +22,11 @@
22
22
  </template>
23
23
  <div class="btn_group">
24
24
  <div class="btn btn_1" @click.stop="handleBtn('ship_order')">
25
- <span class="name">配送下单</span>
25
+ <span class="name">配送下單</span>
26
26
  <span class="sub">(直送到府)</span>
27
27
  </div>
28
28
  <div class="btn btn_2" @click.stop="handleBtn('pick_order')">
29
- <span class="name">自提點餐</span>
29
+ <span class="name">自提下單</span>
30
30
  <span class="sub">(免運費)</span>
31
31
  </div>
32
32
  </div>
@@ -43,10 +43,7 @@ const props = defineProps({
43
43
  },
44
44
  tagList: {
45
45
  type: Array,
46
- default: () => [
47
- { name: '人工客服', value: 'kefu', type: 'chat', msg: '人工客服' },
48
- { name: '查看菜单', value: 'menu', type: 'call', msg: '查看菜单' },
49
- ],
46
+ required: true,
50
47
  },
51
48
  });
52
49
  const Emits = defineEmits(['update:modelValue', 'send', 'tag']);