问星数据小程序

index.wxml 2.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/hotProduct/index.wxml-->
  2. <scroll-view class="scrollView" scroll-left="{{scroll_left}}" scroll-into-view="{{toIndex}}" scroll-x="{{true}}" style="width: 100%;white-space: nowrap;">
  3. <view wx:for="{{cateList}}" data-type="{{index}}" data-id='{{item.id}}' bindtap="check" wx:key="voucherFind" id="{{'cate'+item.id}}" class="item {{cate==item.id?'active':''}}">
  4. {{item.cate_name}}
  5. </view>
  6. </scroll-view>
  7. <scroll-view class="box" scroll-y="true" style="height:{{scrollHeight}}px;" bindscrolltolower="bindDownLoad">
  8. <view class="proItem" wx:for="{{proList}}"wx:key="prolist" data-id='{{item.commodity_id}}' bindtap="toProduct">
  9. <view class="index">
  10. <image wx:if="{{index<=2}}" class="sIcon {{index<3?'goTop':''}}" src="{{index==0?'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/one.png':index==1?'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/two.png':'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/three.png'}}"></image>
  11. <text style="position:relative;z-index:33;">{{index+1}}</text>
  12. </view>
  13. <image class="img" wx:if="{{item.img}}" src="{{item.img}}"></image>
  14. <view class="info">
  15. <view class="title">
  16. <image class="icon" src="{{item.channelName=='淘宝'?'../../assets/img/taobao.png':item.channelName=='天猫'?'../../assets/img/tianmao.png':item.channelName=='有赞'?'../../assets/img/youzan.png':item.channelName=='魔筷星选'?'../../assets/img/mo.png':item.channelName=='苏宁'?'../../assets/img/su.png':item.channelName=='快手小店'?'../../assets/img/kuai.png':item.channelName=='拼多多'?'../../assets/img/pinduoduo.png':item.channelName=='京东'?'../../assets/img/jingdong.png.png':'../../assets/img/shan.png'}}"></image>
  17. {{item.title}}</view>
  18. <view class="price">¥
  19. <text style="font-size:28rpx;">{{item.price?item.price:'-'}}</text>
  20. </view>
  21. <view class="bottom">
  22. <view class="text">
  23. 销量<text class="number">{{item.sale_count?item.sale_count:'-'}}</text>
  24. </view>
  25. <view class="text">
  26. 销售额<text class="number">{{item.sale_money?item.sale_money:'-'}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <nopermission wx:if="{{hasAuno}}"></nopermission>
  32. </scroll-view>
  33. <text class="desc">更多数据请登录www.data.kuxuan.com进行查看</text>