|
|
@@ -1,23 +1,34 @@
|
|
|
<!--为搜索页面-->
|
|
|
-<view class="search block-background-color">
|
|
|
- <view class="search-inside" style="display: flex; align-items: center;">
|
|
|
- <icon type="search"></icon>
|
|
|
- <input class="search-input primary-text-color" style="width: {{searchEnable ? 550 : 650}}rpx;" value="{{searchText}}" placeholder="搜索" confirm-type="search" bindinput="update" bindfocus="focus" bindconfirm="search"></input>
|
|
|
+<view class="search" style="background-color:#ffffff;">
|
|
|
+ <view class="search-inside bg-color" style="display: flex; align-items: center;">
|
|
|
+ <icon type="search" size="20"></icon>
|
|
|
+ <input class="search-input" style="width: {{searchEnable ? 550 : 650}}rpx;" value="{{searchText}}" placeholder="搜索" confirm-type="search" bindinput="update" bindfocus="focus" bindconfirm="search"></input>
|
|
|
</view>
|
|
|
- <view wx:if="{{searchEnable}}" class="cancel-button secondary-text-color" bindtap="cancel">取消</view>
|
|
|
+ <view wx:if="{{searchEnable}}" class="cancel-button" bindtap="cancel">取消</view>
|
|
|
</view>
|
|
|
|
|
|
<scroll-view class="hot-block" scroll-y="true">
|
|
|
- <view class="hot-tag-block block-background-color">
|
|
|
- <view class="hot-tag-title default-primary-color-font">热门搜索</view>
|
|
|
- <view class="hot-tags">
|
|
|
- <view class="hot-tag light-primary-color" wx:for="{{hotTagData}}" wx:key="tag" wx:for-item="item" data-search-tag="{{item.tag}}" bindtap="searchTag">{{item.tag}}</view>
|
|
|
+ <view class="hot-tag-block">
|
|
|
+ <view class="hot-tag-title primary-color-fg">历史搜索</view>
|
|
|
+ <view class="hot-tags secondary-text-color">
|
|
|
+ <view class="hot-tag" wx:for="{{hotTagData}}" wx:key="tag" wx:for-item="item" data-search-tag="{{item.tag}}" bindtap="searchTag">{{item.tag}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="hot-tag-block">
|
|
|
+ <view class="hot-tag-title primary-color-fg">热门搜索</view>
|
|
|
+ <view class="hot-tags secondary-text-color">
|
|
|
+ <view class="hot-tag" wx:for="{{hotTagData}}" wx:key="tag" wx:for-item="item" data-search-tag="{{item.tag}}" bindtap="searchTag">{{item.tag}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="hot-bar-block">
|
|
|
- <view class="hot-bar-title default-primary-color-font">实时热点</view>
|
|
|
- <view class="hot-bar block-background-color" wx:for="{{hotBarData}}" wx:key="rank" wx:for-item="item" data-activity-id="{{item.id}}" bindtap="viewActivity">{{item.rank}}. {{item.title}}</view>
|
|
|
+ <text class="hot-bar-title primary-color-bg text-primary-color">实时热点</text>
|
|
|
+ <view class="hot-bar" wx:for="{{hotBarData}}" wx:key="rank" wx:for-item="item" data-activity-id="{{item.id}}" bindtap="viewActivity">
|
|
|
+ <view>
|
|
|
+ <text class="primary-color-fg" space="nbsp">{{item.rank}} </text><text class="secondary-text-color">{{item.title}} </text>
|
|
|
+ </view>
|
|
|
+ <image class="more" src="/images/more.png" mode="aspectFill"></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|