|
@@ -1,4 +1,5 @@
|
|
|
<!--pages/search/search.wxml-->
|
|
|
+<wxs module="commom" src="../../components/commom.wxs"></wxs>
|
|
|
<view class='container2'>
|
|
|
<view class='search_input'>
|
|
|
<icon type="search" size="15" class='search_icon' />
|
|
@@ -13,7 +14,6 @@
|
|
|
<!-- <image src='../images/delete.png' wx:if="{{list.length!=0}}" catchtap='remove'></image> -->
|
|
|
<image src='./images/delete.png' catchtap='remove'></image>
|
|
|
</view>
|
|
|
-
|
|
|
<view class='list'>
|
|
|
<view class="key" wx:if="{{list.length==0}}">暂无搜索记录</view>
|
|
|
<view class="key" wx:for="{{list}}" wx:key="key" bindtap='searchName' data-value='{{item}}'>{{item}}</view>
|
|
@@ -21,14 +21,14 @@
|
|
|
<view style="clear:both"></view>
|
|
|
<!-- <view class='search_result' wx:if="{{inputValue}}"> -->
|
|
|
<view class='search_result' wx:if="{{inputValue}}">
|
|
|
- <view wx:for="{{resultList}}"class="swiper-box-view" wx:key="key" bindtap='detail' data-index="{{index}}">
|
|
|
+ <view wx:for="{{resultList}}" class="swiper-box-view" wx:key="key" bindtap='detail' data-row='{{item}}'>
|
|
|
<view class="swiper-box-left">
|
|
|
- <view>{{item.title}}</view>
|
|
|
- <view class="swiper-box-subtitle">{{item.subtitle}}</view>
|
|
|
+ <view>{{item.Name}}</view>
|
|
|
+ <!-- <view class="swiper-box-subtitle">{{item.Name}}</view> -->
|
|
|
</view>
|
|
|
<view class="swiper-box-right">
|
|
|
<view class="swiper-box-button">
|
|
|
- <button class="mini-btn" type="warn" size="mini" >+{{item.Increase}}</button>
|
|
|
+ <button class="mini-btn" type="warn" size="mini" >+{{commom.Intercept(item.Value)}}%</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -39,12 +39,9 @@
|
|
|
热门搜索
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class='list'>
|
|
|
- <view class="key">中国移动</view>
|
|
|
- <view class="key">中国联通</view>
|
|
|
- <view class="key">中国电信</view>
|
|
|
+ <view class='list' wx:for="{{hotList}}" wx:key="key" bindtap='searchName' data-index="{{index}}">
|
|
|
+ <view class="key">{{item.Name}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
|