<view class="min-h-screen bg-gray-100 flex flex-col"><view class="fixed top-0 left-0 right-0 z-10 bg-white shadow p-4"><view class="flex flex-wrap justify-around"><button wx:for="{{a}}" wx:for-item="category" wx:key="b" class="bg-blue-500 text-white text-sm px-4 py-2 rounded m-1" bindtap="{{category.c}}">{{category.a}}</button></view></view><scroll-view scroll-y scroll-with-animation class="flex-1 px-4 pt-20 pb-20" scroll-top="{{c}}"><view wx:for="{{b}}" wx:for-item="msg" wx:key="e" class="mb-4"><view wx:if="{{msg.a}}" class="flex justify-end"><view class="bg-blue-200 text-black p-3 rounded-lg max-w-3-4 m-3">{{msg.b}}</view></view><view wx:if="{{msg.c}}" class="flex justify-start"><view class="bg-gray-200 text-black p-3 rounded-lg max-w-3-4 m-3">{{msg.d}}</view></view></view><view class="h-20"></view></scroll-view><view class="fixed bottom-0 left-0 right-0 bg-white shadow-t p-4 flex items-center"><input type="text" placeholder="请输入问题..." class="flex-1 border border-gray-300 rounded-l p-2 h-10" bindconfirm="{{d}}" value="{{e}}" bindinput="{{f}}"/><button class="ml-2 bg-blue-500 text-white px-4 text-base rounded-r h-10" bindtap="{{g}}"> 发送 </button></view></view>
|