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