aI问答支持流式输出,效果非常好
This commit is contained in:
32
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.js
vendored
Normal file
32
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.js
vendored
Normal 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-1c90125f"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="qa-page data-v-1c90125f"><view class="page-header data-v-1c90125f"><view class="nav-bar data-v-1c90125f"><view class="nav-left data-v-1c90125f" bindtap="{{a}}"><text class="back-icon data-v-1c90125f">←</text></view><text class="nav-title data-v-1c90125f">决策类问答</text></view></view><scroll-view class="content-scroll data-v-1c90125f" scroll-y="true"><view class="intro-card data-v-1c90125f"><text class="intro-title data-v-1c90125f">临门一脚</text><text class="intro-body data-v-1c90125f">客户有需求、认可产品,但犹豫是否立刻下单。</text></view><view class="section data-v-1c90125f"><text class="section-title data-v-1c90125f">典型问题</text><view wx:for="{{b}}" wx:for-item="t" wx:key="b" class="bullet data-v-1c90125f"><text class="bullet-dot data-v-1c90125f">•</text><text class="bullet-text data-v-1c90125f">{{t.a}}</text></view></view><view class="tip-card data-v-1c90125f"><text class="tip-label data-v-1c90125f">应对关键</text><text class="tip-body data-v-1c90125f">制造紧迫感(限时 / 限量)、给出行动理由,推动快速决策。</text></view></scroll-view></view>
|
||||
103
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.wxss
vendored
Normal file
103
unpackage/dist/dev/mp-weixin/pages-subpackage/ai_qa/decision_qa/decision_qa.wxss
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
|
||||
.qa-page.data-v-1c90125f {
|
||||
min-height: 100vh;
|
||||
background: #f8f9fa;
|
||||
}
|
||||
.page-header.data-v-1c90125f {
|
||||
background: #ffffff;
|
||||
border-bottom: 1rpx solid #e9ecef;
|
||||
}
|
||||
.nav-bar.data-v-1c90125f {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 88rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.nav-left.data-v-1c90125f {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.back-icon.data-v-1c90125f {
|
||||
font-size: 36rpx;
|
||||
color: #333;
|
||||
}
|
||||
.nav-title.data-v-1c90125f {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
.content-scroll.data-v-1c90125f {
|
||||
height: calc(100vh - 88rpx);
|
||||
}
|
||||
.intro-card.data-v-1c90125f {
|
||||
margin: 24rpx 30rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.intro-title.data-v-1c90125f {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.intro-body.data-v-1c90125f {
|
||||
font-size: 26rpx;
|
||||
color: #555;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.section.data-v-1c90125f {
|
||||
margin: 0 30rpx 24rpx;
|
||||
padding: 28rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
.section-title.data-v-1c90125f {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.bullet.data-v-1c90125f {
|
||||
display: flex;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.bullet-dot.data-v-1c90125f {
|
||||
margin-right: 12rpx;
|
||||
color: #007AFF;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.bullet-text.data-v-1c90125f {
|
||||
flex: 1;
|
||||
font-size: 26rpx;
|
||||
color: #555;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.tip-card.data-v-1c90125f {
|
||||
margin: 0 30rpx 40rpx;
|
||||
padding: 28rpx;
|
||||
background: #f0f7ff;
|
||||
border-radius: 16rpx;
|
||||
border: 1rpx solid #d0e3fc;
|
||||
}
|
||||
.tip-label.data-v-1c90125f {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #007AFF;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
.tip-body.data-v-1c90125f {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
line-height: 1.6;
|
||||
}
|
||||
Reference in New Issue
Block a user