82 lines
3.2 KiB
Plaintext
82 lines
3.2 KiB
Plaintext
![]() |
<!-- 商品 -->
|
||
|
|
||
|
<!-- <view class="top-all display_J_S display_A_C" style="padding-top:{{statusBarHeight}}px;">
|
||
|
<view class="back display_A_C" catchtap="back" style="top:{{statusBarHeight}}px;">
|
||
|
<image src="/icon/back.png"></image>
|
||
|
</view>
|
||
|
<view class="ipt">
|
||
|
<input type="text" bindfocus="searchFocus"></input>
|
||
|
<view class="search-cont display_A_C">{{searchCont}}
|
||
|
<image src="/icon/delete_2.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view> -->
|
||
|
|
||
|
<!-- 搜索 -->
|
||
|
|
||
|
|
||
|
<view class="top">
|
||
|
<view class="search">
|
||
|
<image src="/icon/search.png"></image>
|
||
|
<input placeholder="{{searchCont==''?'搜索您想要的内容':''}}" focus='{{inputShowed}}' value="{{goodsName}}" bindinput="search_input" bindfocus='bindfocusFn' bindblur='bindblurFn'></input>
|
||
|
<view class="search-cont display_A_C" wx:if="{{!delCont&&searchCont!=''}}" catchtap="bindfocusFn">{{searchCont}}
|
||
|
<image src="/icon/delete_2.png"></image>
|
||
|
</view>
|
||
|
<!-- <image src="/icon/delete.png" catchtap="delCont" wx:if='{{delCont}}' style="margin-left: 10rpx;"></image> -->
|
||
|
</view>
|
||
|
<view catchtap='sear' class="sear">搜索</view>
|
||
|
</view>
|
||
|
|
||
|
<!-- 热门推荐 -->
|
||
|
<view wx:if='{{search}}' style="background-color: #fff;">
|
||
|
<view class="hot">热门推荐</view>
|
||
|
<view class="hot-all">
|
||
|
<view class="hot-cont" wx:for='{{hot}}' wx:key="index" data-id='{{item.id}}' data-name='{{item.typeName}}'
|
||
|
catchtap="hot">{{item.typeName}}</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<!-- 搜索内容 -->
|
||
|
<view wx:if='{{!search}}'>
|
||
|
<view class="type-all display_J_S display_A_C">
|
||
|
<view class="type {{typeIndex==index?'type-active':''}}" wx:for='{{type}}' wx:key='index' catchtap="type"
|
||
|
data-index='{{index}}'>
|
||
|
<view class="type-name" wx:if='{{index<4}}'>{{item}}</view>
|
||
|
|
||
|
<picker wx:if='{{index==5}}' mode="multiSelector" bindcolumnchange="bindMultiPickerColumnChange" bindchange="bindMultiPickerChange" value="{{multiIndex}}" range="{{multiArray}}">
|
||
|
<view class="type-name">{{item}}</view>
|
||
|
</picker>
|
||
|
|
||
|
<view class="type-name display_J_S display_A_C display_J_C" wx:if='{{index==4}}'>
|
||
|
<view>{{item}}</view>
|
||
|
<view class="img">
|
||
|
<view class="display_A_C display_J_C">
|
||
|
<image src="/icon/{{bigOrSmall?'price-up':'price-up2'}}.png"></image>
|
||
|
</view>
|
||
|
<view class="display_A_C display_J_C">
|
||
|
<image src="/icon/{{!bigOrSmall?'price-down':'price-down2'}}.png"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="cont-all">
|
||
|
<view class="cont" catchtap="goodsDetails" data-id='{{item.id}}' wx:for='{{goods}}' wx:key='index'>
|
||
|
<image class="goods-img" src="{{item.goodsPhoto}}"></image>
|
||
|
<view class="goods-name GStitleTwo">{{item.goodsName}}</view>
|
||
|
<view class="goods-price display_J_B">
|
||
|
<view class="price">
|
||
|
<text
|
||
|
class="price-text1">¥</text>{{item.wisdGoodsSpecList[0].specBulyPrice==null||item.wisdGoodsSpecList[0].specBulyPrice==0?item.wisdGoodsSpecList[0].specPrice:item.wisdGoodsSpecList[0].specBulyPrice}}
|
||
|
<text class="price-text2">¥{{item.wisdGoodsSpecList[0].originalPrice}}</text>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="goods-sales">已出售{{item.goodsSales}}件</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="empty" wx:if="{{goods.length==0}}">暂无商品信息~</view>
|
||
|
|
||
|
</view>
|