Files
AGuestSaas/pages/ticket/goods/goods.wxml
2020-12-28 09:16:11 +08:00

68 lines
2.7 KiB
Plaintext

<!-- 搜索 -->
<form bindsubmit="searchForm" class="mallSearch">
<view class="mallSearch-cont">
<image class="mallSearch-cont-icon" src="/static/mall_icon/mall_search.png">
</image>
<input class="search-navigator" placeholder="输入关键字" value="{{categoryTitle}}" name="search"
confirm-type="search" bindconfirm='confirmTap'></input>
</view>
</form>
<!-- 分类 -->
<view class="mallTag">
<view class="mallTag-one {{ordertype == '' ? 'active':''}}" bindtap="emptyTap">综合推荐</view>
<view class="mallTag-name {{ordertype == 'sell' ? 'active':''}}" data-type="sell" bindtap="orderTap">
销量
<block wx:if="{{ordertype == 'sell'}}">
<image src="/static/mall_icon/price_icon.png" wx:if="{{orderasc == 'asc'}}">
</image>
<image src="/static/mall_icon/price_icon_active.png" wx:else></image>
</block>
</view>
<view class="mallTag-name {{ordertype == 'price' ? 'active':''}}" data-index="{{daindex}}" data-type="price"
bindtap="orderTap">
价格
<block wx:if="{{ordertype == 'price'}}">
<image src="/static/mall_icon/price_icon.png" wx:if="{{orderasc == 'asc'}}">
</image>
<image src="/static/mall_icon/price_icon_active.png" wx:else></image>
</block>
</view>
</view>
<!-- 商品 -->
<view class="recommend-list" wx:if="{{dataArr.length > 0}}">
<view class="recommend-label" wx:for="{{dataArr}}" wx:key="dataArr" bindtap="push" data-id="{{item.goods_id}}">
<view class="recommend-img">
<image src="{{item.cover}}" mode="aspectFill"></image>
</view>
<view class="recommend-cont">
<view class="nowrap recommend-name">
{{item.title}}
</view>
<view class="recommend-price">
<view class="recommend-ruling">
<text>¥</text>{{item.prices.price}}
</view>
<view class="recommend-cost">
协会: ¥{{item.prices.association}}
</view>
</view>
<view class="recommend-tips">
<view class="recommend-mark">
<text class="recommend-vip">vip</text>
¥{{item.prices.vip}}
</view>
<view class="recommend-sell">已售{{item.sell_number}}</view>
</view>
</view>
</view>
</view>
<!-- 为空 -->
<view class="pack-center pages-hint" wx:else>
<image src="/static/mall_icon/null_icon.png"></image>
<view class="pages-text">暂无内容</view>
</view>
<view class="nomore" wx:if="{{nomore==true}}">没有更多了~</view>