acdr-ui/dist/dev/mp-weixin/pages/space/components/UserPost.wxml

1 line
3.1 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
<view class="user-post relative data-v-624bde23"><view wx:if="{{a}}" class="absolute top-2 right-2 space-x-2 data-v-624bde23"><button wx:if="{{b}}" bindtap="{{c}}" class="bg-amber-500 text-white rounded w-16 h-8 text-size-14px data-v-624bde23"> 关注+ </button><button wx:else bindtap="{{d}}" class="border border-amber-500 text-amber-500 rounded data-v-624bde23"> 取消关注 </button></view><view class="user-info data-v-624bde23"><image src="{{e}}" alt="avatar" class="avatar data-v-624bde23"></image><view class="user-details data-v-624bde23"><view class="user-name data-v-624bde23">{{f}}</view><view class="location data-v-624bde23">{{g}}</view></view></view><view class="time data-v-624bde23">{{h}}</view><view class="images-grid data-v-624bde23"><wd-img wx:for="{{i}}" wx:for-item="image" wx:key="a" class="post-image data-v-624bde23" u-i="{{image.b}}" bind:__l="__l" u-p="{{image.c}}"/></view><view class="post-content data-v-624bde23"><view class="data-v-624bde23">{{j}}</view></view><view class="actions data-v-624bde23"><view class="action-item data-v-624bde23"><image wx:if="{{k}}" bindtap="{{l}}" class="icon data-v-624bde23" src="{{m}}" mode="scaleToFill"/><image wx:else bindtap="{{n}}" class="icon data-v-624bde23" src="{{o}}" mode="scaleToFill"/><text class="data-v-624bde23">{{p}}</text></view><view class="action-item data-v-624bde23"><image wx:if="{{q}}" bindtap="{{r}}" class="icon data-v-624bde23" src="{{s}}" mode="scaleToFill"/><image wx:else bindtap="{{t}}" class="icon data-v-624bde23" src="{{v}}" mode="scaleToFill"/><text class="data-v-624bde23">{{w}}</text></view><view class="action-item data-v-624bde23"><image bindtap="{{x}}" class="icon data-v-624bde23" src="{{y}}" mode="scaleToFill"/><text class="data-v-624bde23">{{z}}</text></view></view><view wx:if="{{A}}" class="bg-gray-100 data-v-624bde23"><view wx:if="{{B}}" class="data-v-624bde23"><view wx:for="{{C}}" wx:for-item="comment" wx:key="f" bindtap="{{comment.e}}" class="w-full mx-auto bg-white rounded-lg p-1 flex items-start data-v-624bde23"><image src="{{comment.a}}" class="w-12 h-12 rounded-full mr-4 data-v-624bde23" mode="aspectFill"/><view class="flex-grow data-v-624bde23"><text class="font-bold text-lg txt w-40 data-v-624bde23">{{comment.b}}</text><view class="text-sm text-gray-800 mt-2 data-v-624bde23">{{comment.c}}</view><view class="text-xs text-gray-500 mt-2 flex items-center data-v-624bde23"><text class="data-v-624bde23">{{comment.d}}</text><text class="mx-2 data-v-624bde23">•</text><text class="data-v-624bde23">{{D}}</text></view></view></view><view wx:if="{{E}}" class="text-blue-500 data-v-624bde23" bindtap="{{F}}"> 加载更多... </view></view></view><view wx:if="{{G}}" class="flex items-center relative data-v-624bde23"><block wx:if="{{r0}}"><textarea class="flex-grow p-2 border border-gray-300 rounded-lg data-v-624bde23" placeholder="评论..." rows="3" value="{{H}}" bindinput="{{I}}"/></block><view class="absolute bottom-0 left-0 text-gray-500 data-v-624bde23">{{J}}</view><button class="bg-blue-500 text-white rounded-lg absolute right-0 bottom-0 data-v-624bde23" bindtap="{{K}}"> 发送 </button></view></view>