aI问答支持流式输出,效果非常好

This commit is contained in:
zhonghua.li
2026-03-31 21:04:53 +08:00
parent 60da0e2dd5
commit 22f951b514
163 changed files with 4646 additions and 8010 deletions

View File

@@ -0,0 +1,32 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
questions: [
"太贵了,能不能便宜点?",
"有优惠 / 折扣 / 赠品吗?",
"别家比你家便宜。"
]
};
},
methods: {
goBack() {
common_vendor.index.navigateBack();
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args), "4f"),
b: common_vendor.f($data.questions, (t, i, i0) => {
return {
a: common_vendor.t(t),
b: i
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-25489edb"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages-subpackage/ai_qa/price_qa/price_qa.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationStyle": "custom",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="qa-page data-v-25489edb"><view class="page-header data-v-25489edb"><view class="nav-bar data-v-25489edb"><view class="nav-left data-v-25489edb" bindtap="{{a}}"><text class="back-icon data-v-25489edb">←</text></view><text class="nav-title data-v-25489edb">价格类问答</text></view></view><scroll-view class="content-scroll data-v-25489edb" scroll-y="true"><view class="intro-card data-v-25489edb"><text class="intro-title data-v-25489edb">高频阻力</text><text class="intro-body data-v-25489edb">客户关注成本、性价比,是最常见的成交障碍。</text></view><view class="section data-v-25489edb"><text class="section-title data-v-25489edb">典型问题</text><view wx:for="{{b}}" wx:for-item="t" wx:key="b" class="bullet data-v-25489edb"><text class="bullet-dot data-v-25489edb">•</text><text class="bullet-text data-v-25489edb">{{t.a}}</text></view></view><view class="tip-card data-v-25489edb"><text class="tip-label data-v-25489edb">应对关键</text><text class="tip-body data-v-25489edb">塑造价值>谈价格,用效果、售后、长期成本抵消价格顾虑。</text></view></scroll-view></view>

View File

@@ -0,0 +1,103 @@
.qa-page.data-v-25489edb {
min-height: 100vh;
background: #f8f9fa;
}
.page-header.data-v-25489edb {
background: #ffffff;
border-bottom: 1rpx solid #e9ecef;
}
.nav-bar.data-v-25489edb {
display: flex;
align-items: center;
height: 88rpx;
padding: 0 30rpx;
}
.nav-left.data-v-25489edb {
width: 60rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 20rpx;
}
.back-icon.data-v-25489edb {
font-size: 36rpx;
color: #333;
}
.nav-title.data-v-25489edb {
flex: 1;
text-align: center;
font-size: 32rpx;
font-weight: bold;
color: #333;
}
.content-scroll.data-v-25489edb {
height: calc(100vh - 88rpx);
}
.intro-card.data-v-25489edb {
margin: 24rpx 30rpx;
padding: 28rpx;
background: #fff;
border-radius: 16rpx;
}
.intro-title.data-v-25489edb {
display: block;
font-size: 28rpx;
font-weight: 600;
color: #333;
margin-bottom: 16rpx;
}
.intro-body.data-v-25489edb {
font-size: 26rpx;
color: #555;
line-height: 1.6;
}
.section.data-v-25489edb {
margin: 0 30rpx 24rpx;
padding: 28rpx;
background: #fff;
border-radius: 16rpx;
}
.section-title.data-v-25489edb {
display: block;
font-size: 28rpx;
font-weight: 600;
color: #333;
margin-bottom: 20rpx;
}
.bullet.data-v-25489edb {
display: flex;
margin-bottom: 12rpx;
}
.bullet-dot.data-v-25489edb {
margin-right: 12rpx;
color: #007AFF;
font-size: 28rpx;
line-height: 1.5;
}
.bullet-text.data-v-25489edb {
flex: 1;
font-size: 26rpx;
color: #555;
line-height: 1.5;
}
.tip-card.data-v-25489edb {
margin: 0 30rpx 40rpx;
padding: 28rpx;
background: #f0f7ff;
border-radius: 16rpx;
border: 1rpx solid #d0e3fc;
}
.tip-label.data-v-25489edb {
display: block;
font-size: 26rpx;
font-weight: 600;
color: #007AFF;
margin-bottom: 12rpx;
}
.tip-body.data-v-25489edb {
font-size: 26rpx;
color: #333;
line-height: 1.6;
}