1
xiaoyong931011
2022-03-25 1ceabefb451912daa5dda7768b7ef0b89a56c08a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!--主盒子-->
<view class="container">
  <!-- 搜索框 -->
  <view class="header">
    <view class='type_box'>
      <input class="marked" placeholder="{{queryKey}}" bindinput='formTitle' />
      <view class='search_text' bindtap='onSearching'>搜索</view>
    </view>
  </view>
  <!--左侧栏-->
  <scroll-view scroll-y="true" class="nav_left">
    <block wx:for="{{tabs}}" wx:key="ids">
      <view class="nav_left_items {{currentIndex == index ? 'active' : ''}}"
            bindtap='titleClick'
            data-idx='{{index}}'>{{item.attrName}}</view>
    </block>
  </scroll-view>
  <!--右侧栏-->
  <scroll-view bindscrolltolower="getProduct" scroll-y="true" class="nav_right"  scroll-top="{{top_num}}" bindscroll="scroll_distance">
    <!--如果有数据,才遍历项-->
    <block wx:for="{{productList}}" wx:key="ids">
      <view
      data-id='{{item.id}}' 
      data-service="{{item.isService}}"
      data-index="{{index}}"
      class="nav_right_items" bindtap='intoDetail'>
 
        <view wx:if="{{item.stockNum<1}}" class="sold-out">抢光了</view>
        <image src="{{item.imgMobile}}" mode="aspectFill"></image>
 
        <view class="content_right">
          <view class="right_top">
            <view class="nodata_text">{{item.title}}</view>
            <view class="author">{{item.briefIntroduction}} </view>
         </view>
          <view class="count">
            <text class="price">¥{{item.price}}</text>
            <text
             catchtap="touchOnGoods" data-stock-num="{{item.stockNum}}" data-id='{{item.id}}'
             class=" {{item.id==needAni ? 'bus scale': 'bus'}} iconfont icongouwuche litel_car liter_car_right "></text>
          </view>
        </view>
      </view>
    </block>
 
 
    <!-- 浮动购物车功能 -->
    <navigator open-type="switchTab" url="../shopCar/shopCar">
      <view class="carts-icon {{scaleCart?'on':''}}">
        <view class="iconfont icongouwuche2"></view>
        <text class="carts-icon-num" wx:if="{{hasCarts}}">{{totalNum}}</text>
      </view>
    </navigator>
 
    <view class="toTap" bind:tap="backtop" hidden='{{!toTopIcon}}' >
      <view class="iconfont icontop"></view>
    </view>
 
 
    <view wx:if="{{productList.length==0}}" class="nodata">该分类暂无数据</view>
    
    <view wx:if="{{productList.length!=0&&isEnd}}" class="nodata " >没有更多了</view>
 
 
 
    <!-- 购物车跳动点 -->
    <view class="dot" hidden="{{hide_good_box}}"   style="left: {{bus_x}}px; top: {{bus_y}}px;"></view>
 
    <!-- \\\\\\\\\\\\\\\\\\\\\\\\\\多规格弹出框\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
    <view>
      <skuList bindrefresh="refreshUserCartCount"  goodsInfo="{{currentGoodsInfo}}"
               normsList="{{normsList}}"
               normspopup="{{normspopup}}"
               currentSku="{{currentSku}}"
      >
      </skuList>
    </view>
    <!-- ///////////////////////////多规格礼弹出框////////////////////////////////// -->
 
 
 
</scroll-view >
</view>