Refactor(云灵AI):1、使用新模型逻辑对接;2、订单查询

This commit is contained in:
lifizer
2026-04-13 15:33:59 +08:00
parent 2f5b17da92
commit 2f5bb204bb
12 changed files with 1614 additions and 235 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ export default {
* 想找个像《去有风的地方》那样的治愈县城
* 云南有哪些小众县城适合旅居?
*/
prompt: '',
prompt: '查询最近一个月的订单',
recordManager: null,
// 录音权限是否开通
recordPermission: false,
+210
View File
@@ -0,0 +1,210 @@
<template>
<view
class="order-item"
>
<view class="order-header">
<view class="order-shop">
<view class="shop-name">
<image
:src="webUrl + '/aiChat/icon-04.png'"
class="icon"
mode="widthFix"
/>
{{ item.shopName }}
</view>
<view class="order-id">
{{ item.orderId }}
</view>
</view>
<view class="status">
{{ item.statusName }}
</view>
</view>
<view class="product-info">
<view class="good-img">
<image
:src="item.img"
class="img"
mode="widthFix"
/>
</view>
<view class="name-wrap">
<view class="name one-t">
{{ item.name }}
</view>
<view class="attr">
{{ item.attr || '' }}
</view>
</view>
<view class="price-num">
<view>
{{ item.price }}
</view>
<view class="num">
x{{ item.num }}
</view>
</view>
</view>
<view class="order-bottom">
<view class="time-total">
<view class="time">
{{ item.createTime }}
</view>
<view class="total">
{{ item.totalNum }}件商品
<text class="total-txt">
总金额<text class="color-red">{{ item.totalPrice }}</text>
</text>
</view>
</view>
<view class="btns">
<view class="btn" @click="viewOrderTrack">查看物流</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'AiHistoryList',
props: {
item: {
type: Object,
default: () => {}
}
},
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL
}
},
methods: {
viewOrderTrack() {
this.$emit('viewOrderTrack', this.item)
}
}
}
</script>
<style scoped lang="less">
.order-item {
padding: 20rpx;
border-radius: 20rpx;
background-color: #fff;
box-shadow: 0rpx 6rpx 20rpx rgba(101,101,101,0.16);
.order-header {
display: flex;
align-items: center;
justify-content: space-between;
.order-shop {
flex: 1;
width: calc(100% - 120rpx);
.shop-name {
display: flex;
align-items: center;
color: #333;
font-size: 28rpx;
line-height: 40rpx;
.icon {
display: block;
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
}
}
}
.order-id {
margin-top: 20rpx;
font-size: 24rpx;
color: #666;
}
.status {
width: 100rpx;
height: 40rpx;
border-radius: 10rpx;
color: #fff;
font-size: 24rpx;
line-height: 40rpx;
text-align: center;
background: rgba(197,39,51,0.39);
}
}
.product-info {
display: flex;
align-items: center;
justify-content: space-around;
padding: 20rpx 0;
font-size: 28rpx;
.good-img {
.img {
display: block;
width: 120rpx;
height: 120rpx;
border-radius: 8rpx;
}
}
.name-wrap {
display: flex;
flex-direction: column;
height: 120rpx;
width: calc(100% - 240rpx);
.name {
line-height: 40rpx;
}
.attr {
display: flex;
flex-wrap: wrap;
min-height: 50rpx;
padding: 0 25rpx;
margin: 20rpx 0 0 0;
border-radius: 25rpx;
line-height: 40rpx;
color: #252525;
line-height: 40rpx;
background: rgba(239,239,239,0.39);
}
}
.price-num {
line-height: 40rpx;
.price {
}
.num {
font-size: 20rpx;
}
}
}
.order-bottom {
.time-total {
display: flex;
align-items: center;
justify-content: space-between;
color: #999;
font-size: 22rpx;
.total-txt {
color: #333;
font-size: 28rpx;
font-weight: 600;
}
.color-red {
color: #C52733;
}
}
.btns {
display: flex;
align-items: center;
justify-content: flex-end;
margin: 24rpx 0 0 0;
.btn {
height: 44rpx;
padding: 0 24rpx;
border-radius: 22rpx;
border: 1rpx solid #C52733;
color: #C52733;
font-size: 28rpx;
line-height: 44rpx;
text-align: center;
}
}
}
}
</style>