zhuanqu.wxml 3.1 KB
<view class='page'>

  <view class='select_box'>
    <view class='select_item {{c_index == 0?"active":""}}' data-index="0" bindtap='reorder'>默认</view>
    <view class='select_item {{c_index == 1?"active":""}}' data-index="1" bindtap='reorder'>价格
      <view class='select_img'>
        <image src="{{c_index == 1?'/images/select_active.png':'/images/select.png'}}" class='select_img_no_choose' />
      </view>
    </view>
    <view class='select_item {{c_index == 2?"active":""}}' data-index="2" bindtap='reorder'>销量
      <view class='select_img'>
        <image src="{{c_index == 2?'/images/select_active.png':'/images/select.png'}}" class='select_img_no_choose' />
      </view>
    </view>
  </view>
  <!-- 商品列表 -->
  <view class='real_goods'>
    <Model_item list="{{shop_arr}}" type='open' />

    <view class='real_goods' wx:if="{{activelist.length>0}}">
      <view class="real_goods_item" wx:for="{{activelist}}" wx:key="index" data-id="{{item.goods_id}}"
        bindtap="{{item.product.sold==0?'':'look_more'}}" data-type="{{item.type}}">

        <view wx:if="{{item.type==1}}">
          <view class='real_goods_img'>
            <image src='{{item.goods.image}}' mode="aspectFill" />
            <image src='/images/mei.png' class="tip" wx:if="{{item.goods.stock_num == 0}}" />
          </view>
          <view class='real_goods_bottom'>
            <view class='goods_title'>{{item.goods.name}}</view>
            <view class='goods_flex'>
              <!-- <view class='score'>积分</view> -->
              <view class='price'>¥{{item.goods_price}}</view>
              <view class="huaxianprice">¥{{item.goods.line_price}}</view>
            </view>
            <view class='sell'>已卖出{{item.goods.sales}}件</view>
            <!-- <view class='oldprice'>{{item.product.price}}</view> -->

          </view>
          <view class="pink_cover" wx:if="{{item.product.sold == 0}}" />
        </view>

        <view wx:else class="goodimgbox">
          <view class='real_goods_img'>
            <image src='{{item.combo.image}}' mode="aspectFill" />
            <image src='/images/mei.png' class="tip" wx:if="{{item.sold == 0}}" />
          </view>
          <view class='real_goods_bottom'>
            <view class='goods_title'>{{item.combo.name}}</view>
            <view wx:if="{{item.combo.price2!=null}}">

              <view class='goods_flex'>
                <view class='score'>积分</view>
                <view class='price'>{{item.combo.price2}}</view>


                <!-- <view class='sell'>已卖出{{item.combo.paynum}}件</view> -->
              </view>

              <!-- <view class='oldprice'>{{item.combo.price}}</view> -->
            </view>

            <view class='goods_flex' wx:else>
              <view class='score'>积分</view>
              <view class='price'>{{item.combo.price}}</view>


              <!-- <view class='sell'>已卖出{{item.combo.paynum}}件</view> -->
            </view>
          </view>

        </view>

      </view>
    </view>
    <view class="empty" wx:else>暂无更多数据</view>
  </view>


</view>