index.wxml 21.8 KB
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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
<!--普通界面-->
<view class="container rel" wx:if="{{ishow}}">
<block wx:if="{{banner}}">  
<image class="xc-top-img abs"  src="{{url}}/miniapp/images/top-img.png"></image>
</block>
    <!--搜索框-->
    <view class="{{banner==null?'pink-b ':''}} search-box {{scrollTop>10?'search-fixed':''}} flex-center white ">
        <view class="classify-frame t-c"  bindtap="go_cate">
        <image class="classify-img" src="{{url}}/miniapp/images/classify.png"></image>
        <view class="fs20">分<text class="white fs22">类</text></view>
        </view>
        <view class="search-inner">       
            <view class="search-img">
                <image class="wh100" src="{{url}}/miniapp/images/search.png"></image>
            </view>
            <input bindfocus="jumpSearch" class="search-cont" placeholder="请输入您所搜索的商品"         type="text">
            </input>
        </view>
        <view class="classify-frame t-c">
        <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image>
        <view bindtap="getScancode" class="fs20">扫一扫</view>
        </view>
    </view>
    <!--滚动广告-->
    <view class="rel title-img" wx:if="{{banner}}" >
        <swiper autoplay="true" class="swiper_box"  duration="1000"  interval="3000" vertical=""bindchange="bannerSwiperChange"  >
            <swiper-item wx:for="{{banner}}"  wx:key="banner">
                <view url="{{item.media_link}}" class="slide-image-frame">
                    <image class="slide-image" src="{{item.ad_code}}" lazy-load="true"  binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image>
                </view>
            </swiper-item>
        </swiper>

          <view class="flex-center-around translation abs">
        <view class="circle spot" wx:for="{{banner}}" wx:key="{{index}}" style="background:{{index==banner_index?'#fff':'#999'}}">
        </view>
        </view>
    </view>
	<view class="pd-view" wx:else></view>
	
    <!---导航--->
    <view class="venues_box" hidden='true'>
        <view class="venues_list">
            <view class="venues_item">
                <navigator url="/pages/activity/group_list/group_list">
                    <image src="{{url}}/miniapp/images/index/tuangou.png"></image>
                    <view>团购</view>
                </navigator>
            </view>
            <view class="venues_item">
                <navigator url="/pages/goods/integralMall/integralMall">
                    <image src="{{url}}/miniapp/images/index/jifen.png"></image>
                    <view>积分购</view>
                </navigator>
            </view>
            <view class="venues_item">
                <navigator url="/pages/goods/brandstreet/brandstreet">
                    <image src="{{url}}/miniapp/images/index/youhui.png"></image>
                    <view>优惠券</view>
                </navigator>
            </view>
            <view class="venues_item">
                <navigator url="/pages/activity/coupon_list/coupon_list">
                    <image src="{{url}}/miniapp/images/index/qiandao.png"></image>
                    <view>签到</view>
                </navigator>
            </view>          
            <view class="venues_item">
                <navigator openType="switchTab" url="/pages/goods/categoryList/categoryList">
                    <image src="{{url}}/miniapp/images/index/fenlei.png"></image>
                    <view>全部分类</view>
                </navigator>
            </view>
        </view>
    </view>


    <view class="flex-center-around {{banner==null?'mar-top':'mar-tops'}}" >
    <view class="flex">
      <view class="circle white xc-hook fs20 yellow-b">Г
      </view>
     <text class="yellow-co fs22 margin-left">人工优先</text>
    </view>


    <view class="flex">

      <view class="circle white xc-hook fs20 yellow-b">Г
      </view>
     <text class="yellow-co fs22 margin-left">正品保证</text>
    </view>

    <view class="flex">
      <view class="circle white xc-hook fs20 yellow-b">Г
      </view>
     <text class="yellow-co fs22 margin-left">售后无忧</text>
    </view>
    </view>

      <!---大分类--->
       <view class="flex-center-around">
           <view wx:for="{{gd_category}}" 
              bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0">
              <view class="circle  xc-class-frame t-c">
                 <image  class="xc-class-img" src="{{url+item.icon}}" binderror="bind_bnerr_icon" 
                  data-err="gd_category[{{index}}].icon"></image>
                 <view class="fs24">{{item.name}}</view>
              </view>
          </view>
      </view>

      <!---跳转我的权益--->
      <view class="title-img-frame" wx:if="{{is_boot}}" bindtap="go_quanyi" >
        <image class="xc-title-img"src="{{url}}/miniapp/images/title.png"></image>
     </view>

     <view class="split-line"></view>

    <!--秒杀-->
    <view class="seckill" wx:if="{{saleGoods!=null && pindGoods.length!=0 }}">
        <navigator url="/pages/activity/seckill_list/seckill_list">
            <view class="seckill-time">
                <view class="classname flex">
                   <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
                   <image class="seckill-ttitle-img"src="{{url}}/miniapp/images/seckill-ttitle.png"></image>
                </view>
                <view class="flex  seckill-list">
                <text class="fs24 xc-marfin-right">查看全部</text>
                <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
                </view>
            </view>
        </navigator>
        <view class="seckill-list">
            <swiper class="s_prom"  indicator-dots="{{false}}" bindchange="flashSwiperChange">
                <swiper-item wx:for="{{saleGoods}}" wx:key="{{index}}" class="p_swiper flex-center-around" wx:key="saleGoods">
                    <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}"
                               wx:for="{{item}}" wx:key="item"  wx:for-item="aitem" wx:for-index="aind"
                    >
                        <view class="imgview">
                            <image src="{{url+aitem.original_img}}" lazy-load="true"  data-errorimg="saleGoods[{{index}}][{{aind}}].original_img"
                                   binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>

                            <!--<view class="djs_view">-->
                                <!--<text class='tui-conutdown-box'>{{aitem.djs.day}}</text>天-->
                                <!--<text class='tui-conutdown-box'>{{aitem.djs.hou}}</text>时-->
                                <!--<text class='tui-conutdown-box'>{{aitem.djs.min}}</text>分-->
                                <!--<text class='tui-conutdown-box tui-countdown-bg'>{{aitem.djs.sec}}</text>秒-->
                            <!--</view>-->


                            <image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png"></image>
                            <image wx:if="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
                            <image wx:if="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
                        </view>
                        <view>{{aitem.title}}</view>
                        <view class="red-co mar-top10"> <text class="fs20">¥</text>{{aitem.price}}
                            <text class="un_line">¥{{aitem.market_price}}</text>
                        </view>
                    </navigator>
                </swiper-item>
            </swiper>
            <view class="flex-center-around translation">
        <view class="circle spot" wx:for="{{saleGoods}}" wx:key="{{index}}" style="background:{{index==flash_index?'#fff':'#999'}}">
        </view>
        </view>
        </view>
    </view>
    <!----拼单---->
    <view class="seckill" wx:if="{{pindGoods!=null && pindGoods.length!=0 }}">
        <navigator url="/pages/activity/pind_list/pind_list">
            <view class="seckill-time">
                <view class="classname flex">
                    <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
                   <image class="seckill-ttitle-img"src="{{url}}/miniapp/images/team.png"></image>
                    <block wx:if="{{pt_timer_item}}">
                              <view class="flex user-frame t-c xc-ash {{pt_timer_active==1?'pt_active':''}}">
                                 <image class="user-img  circle" src="{{pt_timer_item.head_pic}}"></image>
                                 <view class="ellipsis-1 user-name fs24">{{pt_timer_item.nickname}}</view>
                                 <text class="fs20">刚拼团成功</text>
                              </view>
                    </block>
                </view>
              <view class="flex  seckill-list">
                <text class="fs24 xc-marfin-right">查看全部</text>
                <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
                </view>
            </view>
        </navigator>
        <view class="seckill-lists rel">
            <swiper class="s_proms" indicator-active-color='red' bindchange="ptSwiperChange">
                <swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}">             
             <view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
               <view class="kill-item">
                 <navigator class="flex navwidth" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}">         
               <view class="kill-pic">
                   <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}"
                  data-errorimg="goodlist[{{index}}].original_img" binderror="bind_bnerr2" lazy-load="true">
                  </image>
              </view>

               <view class="kill-cont">
            <navigator class="goods-name ellipsis-2" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
            {{aitem.title}}

              </navigator>
            <view class="flex left">
            <view class="tneirong red-b flex-vertical rel">
            <image class="xc-team-img abs" src="{{url}}/miniapp/images/fril.png"></image>
            已拼11{{aitem.buy_num}}份</view>
            <view class="fs20 flex xc-people-val-frame" 
            style="border-color:{{type==1?'#059de5':'#d60021'}};margin-left:8rpx">
            <view class=" flex-center val-img {{type==1?'blue_b':'red-b'}}">
            <image class="people-img"src="{{url}}/miniapp/images/bai-ren.png"></image>
            </view>
           <text  class="{{type==1?'blue_c':'red-co'}}" style="margin-left:8rpx; margin-right:8rpx">{{aitem.ct_num}}人团</text> 
            </view>
                 </view>
             
                     <view class="goods-num"style="margin-top:{{type==0?'70rpx':'40rpx'}}">
                <view>
                
                    <view class="fs40 flex  xc-top15 {{type==1?'blue_c':' red-co ai-bas'}}">
                    <text class="fs28 {{type==0?'martop13':''}}">¥</text>
                   <text style="margin-left:-5rpx">{{aitem.price}}</text>
                    <span class="underline {{type==0?'martop18':''}}">零售价¥{{aitem.market_price}}</span>
                    </view>
              
                     </view>


                </view>
                     </view>
                     
              </navigator>


              </view>

</view>
               <!-- <view class="kill-item"wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
                  <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}">         
                <view class="kill-pic ">
            <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}"
                  data-errorimg="goodlist[{{index}}].original_img" binderror="bind_bnerr2" lazy-load="true">
                  </image>
        </view>
 </navigator>
        </view> -->

                </swiper-item>
            </swiper>

              <view class="flex-center-around translations abs">
        <view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}">
        </view>
        </view>
        </view>
    </view>
    <!--新品上市-->
    <!-- <view class="seckill" wx:if="{{newGoods!=null}}">
        <navigator url="/pages/goods/goodsList/goodsList?is_new=1">
            <view class="seckill-time">
                <view class="classname">
                    <text class="sk-tips">新品上市</text>
                </view>
                <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
            </view>
        </navigator>
        <view class="seckill-list">
            <swiper class="s_prom" indicator-active-color='red'  indicator-dots="true">
                <swiper-item wx:for="{{newGoods}}" class="p_swiper" wx:key="{{index}}">
                    <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}"
                               wx:for="{{item}}"  wx:key="item"  wx:for-item="aitem" wx:for-index="aind"
                    >
                        <view class="imgview">
                            <image src="{{url+aitem.original_img}}" lazy-load="true"  data-errorimg="newGoods[{{index}}][{{aind}}].original_img"
                                   binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>
                                                    
                        </view>
                        <view>{{aitem.goods_name}}</view>
                        <view class="co-red">¥{{aitem.shop_price}}
                            <text class="un_line">¥{{aitem.market_price}}</text>
                        </view>
                    </navigator>
                </swiper-item>
            </swiper>
        </view>
    </view> -->
    <!--热销商品-->
    <!-- <view class="seckill" wx:if="{{hotGoods!=null}}">
        <navigator url="/pages/goods/goodsList/goodsList?is_hot=1">
            <view class="seckill-time">
                <view class="classname">
                    <text class="sk-tips">热销商品</text>
                </view>
                <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
            </view>
        </navigator>
        <view class="seckill-list">
            <swiper class="s_prom" indicator-active-color='red'  indicator-dots="true">
                <swiper-item wx:for="{{hotGoods}}" class="p_swiper" wx:key="{{index}}">
                    <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}"
                               wx:for="{{item}}" wx:key="item"  wx:for-item="aitem" wx:for-index="aind"
                    >
                        <view class="imgview">
                            <image src="{{url+aitem.original_img}}" lazy-load="true"  data-errorimg="hotGoods[{{index}}][{{aind}}].original_img"
                                   binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>
                           
                        </view>
                        <view>{{aitem.goods_name}}</view>
                        <view class="co-red">¥{{aitem.shop_price}}
                            <text class="un_line">¥{{aitem.market_price}}</text>
                        </view>
                    </navigator>
                </swiper-item>
            </swiper>
        </view>
    </view> -->
    <!--推荐商品-->
    <!--111111111111 <view class="section">
        <view class="section-title">推荐商品</view>
        <view class="section-subtitle">
            <image class="wh100" src="{{url}}/miniapp/images/pic-interesting.png"></image>
        </view>
    </view>
    <view class="choice_box">
        <view class="choice_list">
            <view class="choice_item" wx:for="{{recommend}}" wx:key="{{index}}" >
                <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
                    <image src="{{item.original_img}}" lazy-load="true" binderror="bind_bnerr2" data-url="{{item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image>
                </navigator>
                <navigator class="title shelue" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">{{item.goods_name}}</navigator>
                <view class="choice_footer">
                    <view class="price flex"> -->
                       <!--<view class="meiz" wx:if="{{index==1}}">美妆价</view><view class="dengj" wx:if="{{index==3}}">等级价</view>-->
                       <!-- 11111¥{{item.shop_price}} <view class="xiafa">¥{{item.market_price}}</view>
                    </view>
                    <view class="ys">已售{{item.sales_sum}}</view> -->
                    <!-- <navigator class="similer" url="/pages/goods/goodsList/goodsList?cat_id={{item.cat_id}}">找相似</navigator>-->
                <!-- 111111</view>
            </view>
        </view>
    </view>
</view> -->





 <!-- 好物推荐 -->
  <view class="title">
    <!-- 标题 -->
    <view>
      <!-- 中文名标题 -->
      <view class="China flex-level">
        <view class="line flex-vertical">
          <view class="one"></view>
          <view class="two"></view>
          <view class="three"></view>
        </view>

        <view class="Recommend flex-level" bindtap="requestList">热门好物</view>

        <view class="line flex-vertical">
          <view class="three"></view>
          <view class="two"></view>
          <view class="one"></view>
        </view>
      </view>

      <!-- 英文标题 -->
      <view class="english flex-center">
        <view class="silk"></view>
        <view class="esh five-level-word">GOOD HOT THING</view>
        <view class="silk"></view>
      </view>

    </view>

    <view class="collects">
      <view class="hang ">
        <!-- 商品详情 -->
        <view class="collect ib"  wx:for="{{recommend}}" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
          <!-- 商品图片 -->  
          <image class="sp" src="{{item.original_img}}" mode="scaleToFill"  binderror="bind_bnerr2" data-url="{{item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image>
          <view class="bottom">
            <!-- 商品名称 -->
            <view class="goods_name ellipsis-2 fs24">{{item.goods_name}}</view>
            <!-- 商品价格 -->
            <view class="money flex">
              <!-- 办卡价 -->
              <view class="flex xc-wc">
                <view class="fs24">¥</view>
                <view class="fs35">{{item.shop_price}}</view>
              </view>
              <!-- 原价 -->
              <view class="price flex xc-ash">
                <view class="fs22">¥</view>
                <view class="fs22">{{item.market_price}}</view>
              </view>

            </view>

            <!-- 办卡优惠多少 
            <view class="Discount flex-center">
              <image src="{{url}}/miniapp/images/Member.png"></image>
              <view class="province">黑卡省11.9元</view>
            </view>-->
          </view>


        </view>
        
      </view>
      <view class="nothing flex-center" wx:if="{{is_no_more}}">
          <view class="Foil"></view>
          <view class="no_content fs24">没有更多内容了</view>
          <view class="Foil"></view>
      </view>
      </view>
        </view>
        
      </view>
<!--是否是自定义-->
<view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}">
    <block wx:for="{{template_arr}}" wx:key="{{index}}" >
        <view>
            <!--导航-->
            <block wx:if="{{item.ename=='nav'}}">
                <nav object="{{item.content}}"></nav>
            </block>
            <!--店招-->
            <block wx:if="{{item.ename=='shopname'}}">
                <shopname object="{{item.content}}"></shopname>
            </block>
            <!--广告组合-->
            <block wx:if="{{item.ename=='advertising'}}">
                <advertising object="{{item.content}}"></advertising>
            </block>
            <!--商品分组-->
            <block wx:if="{{item.ename=='goodsGroup'}}">
                <goodsGroup object="{{item.content}}"></goodsGroup>
            </block>
            <!--通知-->
            <block wx:if="{{item.ename=='notice'}}">
                <notice object="{{item.content}}"></notice>
            </block>
            <!--语音-->
            <block wx:if="{{item.ename=='voice'}}">
                <voice object="{{item.content}}"></voice>
            </block>
            <!--视频-->
            <block wx:if="{{item.ename=='video'}}">
                <mvideo object="{{item.content}}"></mvideo>
            </block>
            <!--搜索-->
            <block wx:if="{{item.ename=='searchbox'}}">
                <searchbox object="{{item.content}}"></searchbox>
            </block>
            <!--天天拼单-->
            <block wx:if="{{item.ename=='pingd_buy'}}">
                <pingd_buy object="{{item.content}}"></pingd_buy>
            </block>
            <!--秒杀-->
            <block wx:if="{{item.ename=='seckill'}}">
                <seckill object="{{item.content}}"></seckill>
            </block>
            <!--标题-->
            <block wx:if="{{item.ename=='title'}}">
                <title object="{{item.content}}"></title>
            </block>
            <!--辅助空白-->
            <block wx:if="{{item.ename=='white'}}">
                <assist object="{{item.content}}"></assist>
            </block>
            <!--图片组合-->
            <block wx:if="{{item.ename=='picMix'}}">
                <picMax object="{{item.content}}"></picMax>
            </block>
        </view>
    </block>
</view>