微信小程序联调

This commit is contained in:
zhonghua.li
2026-04-17 07:35:37 +08:00
parent c62622dc90
commit d74bc2ad1f
484 changed files with 3312 additions and 9 deletions

View File

@@ -0,0 +1 @@
"use strict";const t=require("../../common/vendor.js");function e(){if(void 0!==t.wx$1&&t.wx$1.getWindowInfo)try{const e=t.wx$1.getWindowInfo();return{statusBarHeight:e.statusBarHeight||20,windowWidth:e.windowWidth,windowHeight:e.windowHeight}}catch(e){console.warn("[AIQa] wx.getWindowInfo fallback:",e)}try{const e=t.index.getSystemInfoSync();return{statusBarHeight:e.statusBarHeight||20,windowWidth:e.windowWidth,windowHeight:e.windowHeight}}catch(e){return console.error("[AIQa] getSystemInfoSync:",e),{statusBarHeight:20,windowWidth:375,windowHeight:667}}}const a={data:()=>({contentTop:2*e().statusBarHeight+88+"rpx",contentBottom:"96rpx"}),computed:{computedContentTop:()=>2*e().statusBarHeight+88+"rpx"},onLoad(){this.updateNavbarPosition(),setTimeout((()=>this.preloadSubpackage()),100)},onShow(){this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50)}))},onReady(){this.$nextTick((()=>{t.index.createSelectorQuery().in(this).select(".uni-navbar__content").boundingClientRect((t=>{if(t&&t.height){const e=Math.max(2*t.height-4,0);this.$set(this,"contentTop",e+"rpx")}})).exec();t.index.createSelectorQuery().in(this).select(".tabbar").boundingClientRect((t=>{if(t&&t.height){const e=Math.max(2*t.height-4,0);this.$set(this,"contentBottom",e+"rpx")}})).exec(),setTimeout((()=>{t.index.createSelectorQuery().in(this).select(".uni-navbar__content").boundingClientRect((t=>{t&&t.height&&this.$set(this,"contentTop",Math.max(2*t.height-4,0)+"rpx")})).exec();t.index.createSelectorQuery().in(this).select(".tabbar").boundingClientRect((t=>{t&&t.height&&this.$set(this,"contentBottom",Math.max(2*t.height-4,0)+"rpx")})).exec()}),200)}))},methods:{preloadSubpackage(){void 0!==t.wx$1&&t.wx$1.loadSubpackage&&t.wx$1.loadSubpackage({name:"pages-subpackage",success:()=>{},fail:t=>console.error("[AIQa] loadSubpackage:",t)})},updateNavbarPosition(){const t=2*e().statusBarHeight+88;this.$set(this,"contentTop",t+"rpx"),this.$forceUpdate()},goBack(){getCurrentPages().length<=1||t.index.navigateBack({fail:t=>console.error("[AIQa] goBack:",t)})},navigateToQa(e){t.index.navigateTo({url:`/pages-subpackage/ai_qa/${e}/${e}`,fail:e=>{console.error("[AIQa] navigate:",e),t.index.showToast({title:"页面跳转失败",icon:"none"})}})}}};if(!Array){t.resolveComponent("uni-nav-bar")()}Math;const o=t._export_sfc(a,[["render",function(e,a,o,n,i,s){return{a:t.o(s.goBack,"e4"),b:t.p({fixed:!0,statusBar:!0,title:"AI问答",leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:t.o((t=>s.navigateToQa("general_qa")),"35"),d:t.o((t=>s.navigateToQa("after_sales_qa")),"c0"),e:t.o((t=>s.navigateToQa("demand_qa")),"c8"),f:t.o((t=>s.navigateToQa("price_qa")),"2e"),g:t.o((t=>s.navigateToQa("trust_qa")),"24"),h:t.o((t=>s.navigateToQa("decision_qa")),"b4"),i:t.o((t=>s.navigateToQa("competitor_qa")),"81"),j:t.o((t=>s.navigateToQa("objection_qa")),"0b"),k:t.o((t=>s.navigateToQa("sharp_qa")),"05"),l:s.computedContentTop||i.contentTop,m:i.contentBottom||"96rpx"}}],["__scopeId","data-v-4559c886"]]);wx.createPage(o);

View File

@@ -0,0 +1,6 @@
{
"navigationStyle": "custom",
"usingComponents": {
"uni-nav-bar": "../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar"
}
}

View File

@@ -0,0 +1 @@
<view class="page data-v-4559c886"><uni-nav-bar wx:if="{{b}}" class="data-v-4559c886" bindclickLeft="{{a}}" u-i="4559c886-0" bind:__l="__l" u-p="{{b}}"></uni-nav-bar><view class="content data-v-4559c886"><scroll-view class="content-scroll data-v-4559c886" scroll-y="true" style="{{'top:' + l + ';' + ('bottom:' + m)}}"><view class="category-section two-column data-v-4559c886"><view class="category-header data-v-4559c886"><text class="category-icon data-v-4559c886">💬</text><text class="category-title data-v-4559c886">基础问答</text></view><view class="function-grid data-v-4559c886"><view class="function-item data-v-4559c886" bindtap="{{c}}"><view class="function-icon data-v-4559c886">🙋</view><text class="function-name data-v-4559c886">通用问答</text><text class="function-desc data-v-4559c886">日常接待与通用话术</text></view><view class="function-item data-v-4559c886" bindtap="{{d}}"><view class="function-icon data-v-4559c886">🛠️</view><text class="function-name data-v-4559c886">售后问答</text><text class="function-desc data-v-4559c886">安装、质保与售后流程</text></view></view></view><view class="category-section sales-analysis data-v-4559c886"><view class="category-header data-v-4559c886"><text class="category-icon data-v-4559c886">🎯</text><text class="category-title data-v-4559c886">需求与信任</text></view><view class="function-grid data-v-4559c886"><view class="function-item full-row-item data-v-4559c886" bindtap="{{e}}"><view class="function-icon data-v-4559c886">📌</view><text class="function-name data-v-4559c886">需求类问答</text><text class="function-desc data-v-4559c886">是否匹配需求、场景方案</text></view><view class="function-item full-row-item data-v-4559c886" bindtap="{{f}}"><view class="function-icon data-v-4559c886">💳</view><text class="function-name data-v-4559c886">价格类问答</text><text class="function-desc data-v-4559c886">价格、优惠与性价比</text></view><view class="function-item full-row-item data-v-4559c886" bindtap="{{g}}"><view class="function-icon data-v-4559c886">🤝</view><text class="function-name data-v-4559c886">信任类问答</text><text class="function-desc data-v-4559c886">质量、售后与案例资质</text></view><view class="function-item full-row-item data-v-4559c886" bindtap="{{h}}"><view class="function-icon data-v-4559c886">⚡</view><text class="function-name data-v-4559c886">决策类问答</text><text class="function-desc data-v-4559c886">再考虑、犹豫与促单</text></view></view></view><view class="category-section two-column data-v-4559c886"><view class="category-header data-v-4559c886"><text class="category-icon data-v-4559c886">⚔️</text><text class="category-title data-v-4559c886">对比与难点</text></view><view class="function-grid data-v-4559c886"><view class="function-item data-v-4559c886" bindtap="{{i}}"><view class="function-icon data-v-4559c886">🔀</view><text class="function-name data-v-4559c886">竞品类问答</text><text class="function-desc data-v-4559c886">与竞品对比与选型</text></view><view class="function-item data-v-4559c886" bindtap="{{j}}"><view class="function-icon data-v-4559c886">🚧</view><text class="function-name data-v-4559c886">抗拒点问答</text><text class="function-desc data-v-4559c886">拖延、借口与隐性拒绝</text></view><view class="function-item full-span data-v-4559c886" bindtap="{{k}}"><view class="function-icon data-v-4559c886">📍</view><text class="function-name data-v-4559c886">针尖问答</text><text class="function-desc data-v-4559c886">尖锐与刁难型问题</text></view></view></view></scroll-view></view></view>

View File

@@ -0,0 +1 @@
page.data-v-4559c886{background-color:#f5f5f5}.page.data-v-4559c886{min-height:100vh;background-color:#f5f5f5}.content.data-v-4559c886{padding-top:0!important;margin-top:0!important;position:relative;min-height:100vh;top:0}.data-v-4559c886 .uni-navbar__placeholder,.data-v-4559c886 .uni-navbar__placeholder-view,.data-v-4559c886 [class*=tabbar][class*=placeholder],.data-v-4559c886 [class*=safe-area][class*=bottom],.data-v-4559c886 [class*=bottom][class*=safe]{display:none!important;height:0!important}.content-scroll.data-v-4559c886{position:absolute;left:0;right:0;top:0;bottom:0;padding:0!important;margin:0!important;box-sizing:border-box}.category-section.data-v-4559c886{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-4559c886:first-child{margin-top:0}.category-header.data-v-4559c886{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #F0F0F0}.category-icon.data-v-4559c886{font-size:32rpx;margin-right:20rpx}.category-title.data-v-4559c886{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-4559c886{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.full-span.data-v-4559c886{flex:1 1 100%;margin-top:10rpx}.two-column .function-item.data-v-4559c886{flex:1;background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);transition:all .3s ease;border:1rpx solid #F0F0F0}.sales-analysis .function-item.full-row-item.data-v-4559c886{flex:1;width:calc(50% - 10rpx);background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);border:1rpx solid #F0F0F0}.sales-analysis .function-item.new-line-item.data-v-4559c886{flex-basis:100%;width:calc(50% - 10rpx);margin-top:10rpx}.function-item.data-v-4559c886:active{transform:scale(.95)}.function-icon.data-v-4559c886{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-4559c886{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-4559c886{display:block;font-size:24rpx;color:#666;line-height:1.4}