12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <view class="search_container">
- <view class="inputContent">
- <van-icon name="search" />
- <input type="text" bindinput="onInput" bindconfirm="onInput" placeholder="搜索商品名称" />
- <button bindtap="onSearch" bintap="onSearch">搜索</button>
- </view>
- <view class="show_clear" hidden="true">
- <text>搜索历史</text>
- <view>
- <van-icon name="delete-o" />
- <text>清除记录</text>
- </view>
- </view>
- <view class="search_content_true" wx:if="{{show}}">
- <image src="./img/kong.png"></image>
- </view>
- <view wx:else>
- <view class="search_content_false" wx:for="{{showList}}" wx:key="*this" >
- <van-row>
- <van-col span="7" offset="1">
- <view class="pic">
- <image src="{{item.foodsImg}}"></image>
- </view>
- </van-col>
- <van-col span="8">
- <view class="desc">
- <text style="font-size:33rpx;font-weight:700;">{{item.foodsName}}</text>
- <text style="font-size: 24rpx;color:rgb(173, 173, 173);">{{item.foodsDesc}}</text>
- <text style="text-decoration: line-through;">¥{{item.initPrice}}</text>
- <text style="color:red;font-size: 30rpx;">¥{{item.nowPrice}}+40积分</text>
- </view>
- </van-col>
- <van-col span="8">
- <van-stepper disable-input="true" data-id="{{item.id}}" style="position: relative;top:180rpx;right:-20rpx;" min="0" value="{{ item.num }}" bind:change="onChange" bind:plus="onPlus" bind:minus="onMinus" />
- </van-col>
- </van-row>
- </view>
- <!-- 分割 -->
- <view style="height: 80rpx;width: 100%;"></view>
- <!-- 结算 -->
- <view class="search_total" >
- <van-submit-bar price="{{ totalPrice*100 }}" button-text="去结算" bind:submit="onSubmit" />
- </view>
- </view>
- </view>
|