97 lines
4.7 KiB
Plaintext
97 lines
4.7 KiB
Plaintext
<!-- 头部导航 -->
|
|
<nav-bar class="skeleton-rect" isLocation="{{isLocation}}" pageTitle="{{pageTitle}}" system="{{system}}" cityInfo="{{cityInfo}}" titleColor="{{titleColor}}"></nav-bar>
|
|
<!-- pages/index/index.wxml -->
|
|
<view class="index">
|
|
<view class="pd30 mt20">
|
|
<view class="swp skeleton-rect">
|
|
<swiper class="screen-swiper" circular="true" autoplay="true" interval="5000" duration="500" bindchange="swiperChange">
|
|
<swiper-item class="swiper-item-index" wx:for="{{swiperList}}" wx:key data-url="{{item.href}}" bind:tap="goUrl">
|
|
<image src="{{item.image}}" mode="aspectFill" class="swp-img" binderror="imgerr"></image>
|
|
<!-- <video src="{{item.url}}" autoplay loop muted show-play-btn="{{false}}" controls="{{false}}" objectFit="cover" wx:if="{{item.type=='video'}}"></video> -->
|
|
</swiper-item>
|
|
</swiper>
|
|
<!-- 重置小圆点的样式 -->
|
|
<view class="dots">
|
|
<block wx:for="{{swiperList}}" wx:key>
|
|
<view class="dot {{index == currentSwiper ? ' active' : ''}}"></view>
|
|
</block>
|
|
</view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="classification pd30">
|
|
<view class="class_list">
|
|
<view class="class_row" wx:for="{{brandImg}}" wx:key="index" data-name="{{item.name}}" data-url="{{item.href}}" bind:tap="goDiamondInfo">
|
|
<view class="class_img">
|
|
<image class="skeleton-rect" src="{{item.logo}}" />
|
|
</view>
|
|
<view class="class_p">
|
|
<span class="skeleton-rect">{{item.name}}</span>
|
|
</view>
|
|
</view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="head" wx:if="{{preferential.length > 0}}">
|
|
<view class="head_title">
|
|
<view class="head_l">
|
|
<view class="head_ll flex-con2 skeleton-rect">每周特惠</view>
|
|
<view class="head_lr flex-con2 skeleton-rect" data-url="/mall/auth/auth?index=1" bind:tap="shopMore">
|
|
<view class="flex1">更多</view>
|
|
<view class="head_rimg">
|
|
<image src="/static/img/icon/right-r.png" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="head_con">
|
|
<view class="shop_key">
|
|
<view class="shop_row skeleton-rect" wx:for="{{preferential}}" wx:key="index" data-id="{{item.id}}" bind:tap="goShopInfo">
|
|
<view class="shop_img">
|
|
<image src="{{item.image}}" />
|
|
</view>
|
|
<view class="shop_name">{{item.name}}</view>
|
|
<view class="shop_pri">{{item.price}}元</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="my_video">
|
|
<video object-fit="cover" class="ys_video" src="http://static.geekhelp.cn/ysvideo.mp4" controls></video>
|
|
</view>
|
|
<view class="head">
|
|
<view class="head_title">
|
|
<view class="head_l">
|
|
<view class="head_ll flex-con2 skeleton-rect">品牌合作</view>
|
|
<view class="head_lr flex-con2 skeleton-rect" data-url="/pages/brandList/brandList" bind:tap="shopMore">
|
|
<view class="flex1">更多</view>
|
|
<view class="head_rimg">
|
|
<image src="/static/img/icon/right-r.png" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="head_con">
|
|
<navigator wx:for="{{newsData}}" class="know pd30" wx:key url="/pages/brandList/brandInfo/brandInfo?id={{item.id}}">
|
|
<view class="know_row dis-flex">
|
|
<view class="know_row_img">
|
|
<image class="skeleton-rect" src="{{item.images}}" />
|
|
</view>
|
|
<view class="flex1 dis-flex1 ml20 skeleton-rect">
|
|
<view class="flex1 know_row_text">{{item.title}}</view>
|
|
<view class="know_row_time">{{item.create_time}}</view>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 视频播放弹出层 -->
|
|
<view catchtouchmove='{{ isVideo }}' wx:if="{{ isVideo }}" class="tips_video flex-con3">
|
|
<view class="video_cen">
|
|
<video id="myVideo" autoplay src="https://www.yishaxiyi.com/assets/video/0300200100561DC1C1FB5B28D342A6E3821DFE-7BD7-264D-DABE-A4532876567C.mp4" enable-danmu danmu-btn controls></video>
|
|
<image bind:tap="disVideo" src="/static/img/icon/colse_tips.png" />
|
|
</view>
|
|
</view>
|
|
<!-- toasta提示 -->
|
|
<i-toast id="toast" /> |