index.wxml 587 B

12345678910
  1. <view class="page">
  2. <view class="page__hd" wx:for="{{list}}">
  3. <view class="page__pic" bindtap="view" data-id="{{item.id}}"><image class="pic" src="{{item.pic}}"></image></view>
  4. <view class="page__title" bindtap="view" data-id="{{item.id}}">{{item.name}}</view>
  5. <view class="page__desc">
  6. <view class="price">¥{{item.price}}</view>
  7. <view class="button" bindtap="addCarts" data-id="{{item.id}}" data-name="{{item.name}}"><button class="weui-btn mini-btn" type="primary" size="mini">购买</button></view>
  8. </view>
  9. </view>
  10. </view>