feat: 车牌卡片 图片商品组件名称 单位
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<image
|
<image
|
||||||
class="code-img"
|
class="code-img"
|
||||||
src="./images/qrcode.png"
|
src="https://one-feel-config-images-bucket.oss-cn-chengdu.aliyuncs.com/20250920102920_354_52.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
show-menu-by-longpress="true"
|
show-menu-by-longpress="true"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -3,12 +3,6 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.description {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #666;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.code-img {
|
.code-img {
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
@@ -20,6 +14,6 @@
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #666;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,30 @@
|
|||||||
|
|
||||||
export const MessageRole = {
|
export const MessageRole = {
|
||||||
AI: "AI",
|
// 智能体消息
|
||||||
ME: "ME",
|
AI: "AI",
|
||||||
OTHER: "OTHER"
|
// 我发送的消息
|
||||||
}
|
ME: "ME",
|
||||||
|
// 其他消息
|
||||||
|
OTHER: "OTHER",
|
||||||
|
};
|
||||||
|
|
||||||
export const MessageType = {
|
export const MessageType = {
|
||||||
TEXT: 'TEXT',
|
// 文本消息
|
||||||
IMAGE: 'IMAGE'
|
TEXT: "TEXT",
|
||||||
}
|
// 图片消息
|
||||||
|
IMAGE: "IMAGE",
|
||||||
|
};
|
||||||
|
|
||||||
export const CompName = {
|
export const CompName = {
|
||||||
|
// 快速预定卡片
|
||||||
quickBookingCard: "quickBookingCard",
|
quickBookingCard: "quickBookingCard",
|
||||||
|
// 服务工单卡片
|
||||||
createWorkOrderCard: "createWorkOrderCard",
|
createWorkOrderCard: "createWorkOrderCard",
|
||||||
|
// 意见反馈卡片
|
||||||
feedbackCard: "feedbackCard",
|
feedbackCard: "feedbackCard",
|
||||||
|
// 探索发现卡片
|
||||||
discoveryCard: "discoveryCard",
|
discoveryCard: "discoveryCard",
|
||||||
addLicensePlate: "addLicensePlate",
|
// 图片和商品卡片
|
||||||
|
pictureAndCommodityCard: "pictureAndCommodityCard",
|
||||||
|
// 输入车牌卡片
|
||||||
|
enterLicensePlateCard: "enterLicensePlateCard",
|
||||||
};
|
};
|
||||||
@@ -31,17 +31,6 @@
|
|||||||
>
|
>
|
||||||
</ChatTopWelcome>
|
</ChatTopWelcome>
|
||||||
|
|
||||||
<ChatCardAI class="message-item-ai">
|
|
||||||
<template #content>
|
|
||||||
<!-- 车牌添加卡片 -->
|
|
||||||
<AddCarCrad
|
|
||||||
:toolCall="{
|
|
||||||
url: 'https://shop.gzcyb.vip/scanQrFixCode?fixCodeId=49892',
|
|
||||||
}"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</ChatCardAI>
|
|
||||||
|
|
||||||
<view
|
<view
|
||||||
class="area-msg-list-content"
|
class="area-msg-list-content"
|
||||||
v-for="item in chatMsgList"
|
v-for="item in chatMsgList"
|
||||||
@@ -78,12 +67,16 @@
|
|||||||
:toolCall="item.toolCall"
|
:toolCall="item.toolCall"
|
||||||
/>
|
/>
|
||||||
<DetailCardCompontent
|
<DetailCardCompontent
|
||||||
v-else-if="item.toolCall.componentName === ''"
|
v-else-if="
|
||||||
|
item.toolCall.componentName ===
|
||||||
|
CompName.pictureAndCommodityCard
|
||||||
|
"
|
||||||
:toolCall="item.toolCall"
|
:toolCall="item.toolCall"
|
||||||
/>
|
/>
|
||||||
<AddCarCrad
|
<AddCarCrad
|
||||||
v-else-if="
|
v-else-if="
|
||||||
item.toolCall.componentName === CompName.addLicensePlate
|
item.toolCall.componentName ===
|
||||||
|
CompName.enterLicensePlateCard
|
||||||
"
|
"
|
||||||
:toolCall="item.toolCall"
|
:toolCall="item.toolCall"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<view class="card-price-row">
|
<view class="card-price-row">
|
||||||
<text class="card-price-fu">¥</text>
|
<text class="card-price-fu">¥</text>
|
||||||
<text class="card-price">{{ item.commodityPrice }}</text>
|
<text class="card-price">{{ item.commodityPrice }}</text>
|
||||||
<text class="card-unit">/人</text>
|
<text class="card-unit">/{{ item.stockUnitLabel }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<text class="card-btn">下单</text>
|
<text class="card-btn">下单</text>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<view class="card-price-row">
|
<view class="card-price-row">
|
||||||
<text class="card-price-fu">¥</text>
|
<text class="card-price-fu">¥</text>
|
||||||
<text class="card-price">{{ item.specificationPrice }}</text>
|
<text class="card-price">{{ item.specificationPrice }}</text>
|
||||||
<text class="card-unit">/人</text>
|
<text class="card-unit">/{{ item.stockUnitLabel }} </text>
|
||||||
</view>
|
</view>
|
||||||
<text class="card-btn">下单</text>
|
<text class="card-btn">下单</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user