审查视图

pages/home/home.wxml 7.2 KB
倪静楠 authored
1
<!--pages/home/home.wxml-->
倪静楠 authored
2 3 4
<image src="/images/homeBj.png" class="topImage"></image>
<view class="pageTitle1      "></view>
<view class="pageTitle">世纪华联</view>
倪静楠 authored
5 6
<view class="contenter">
	<!-- 搜索框 -->
倪静楠 authored
7 8
	<view class="searchBox">
		<!-- <view class="search_center" catchtap="goSearch">
倪静楠 authored
9 10 11 12
			<view class="real_search_center">
				<view class="iconfont icon-sousuo"></view>
				<input placeholder='搜索' placeholder-class="placeholder" disabled />
			</view>
倪静楠 authored
13 14
		</view> -->
		<van-search value="{{ value }}" shape="round" background='linear-gradient(137deg,#5b8eff, #2e55ff 92%)'
倪静楠 authored
15
			placeholder="搜索" bind:focus="goSearch" />
倪静楠 authored
16 17
	</view>
	<!-- 轮播图 -->
倪静楠 authored
18
	<view style="margin-top:60rpx">
倪静楠 authored
19 20 21
		<swiper class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="1000">
			<block wx:for="{{swiperArray}}" wx:for-index="idx">
				<swiper-item bindtap="goBannnerDetail" data-url="{{item.url}}" data-index="{{index}}">
倪静楠 authored
22
					<image src="{{item.img}}" class="slideImage"></image>
倪静楠 authored
23 24 25 26 27
				</swiper-item>
			</block>
		</swiper>
	</view>
	<!-- 分类 -->
倪静楠 authored
28
	<view class="{{countDownShow?'classify':'classify1'}}">
倪静楠 authored
29 30 31
		<scroll-view class='wrapper1' scroll-x="true">
			<view wx:for="{{classifyArray}}" class="classifyItem" bindtap="classifyEvent" data-id="{{item.categoryId}}"
				data-index="{{index}}">
倪静楠 authored
32 33 34 35 36 37 38 39
				<view class="classifyPic">
					<image src="{{item.icon}}"></image>
				</view>
				<view class="classifyText">{{item.categoryName}}</view>
			</view>
		</scroll-view>
	</view>
	<!-- 限时优惠 -->
倪静楠 authored
40
	<view class="dayDiscount" wx:if="{{limitCountShow}}" wx:if="{{countDownShow}}">
倪静楠 authored
41 42 43
		<view class="discountTitle">
			<view class="limitCount">{{limitCount}}</view>
			<!-- 倒计时 -->
倪静楠 authored
44
			<view class="countTime">
倪静楠 authored
45 46 47 48 49
				<view class="textss">{{hour}}</view>
				<view class="maohao">:</view>
				<view class="textss">{{minute}}</view>
				<view class="maohao">:</view>
				<view class="textss">{{second}}</view>
倪静楠 authored
50 51 52 53 54 55 56 57 58 59 60
			</view>
			<view class="moreCount" bindtap="moreCount">{{moreCount}}</view>
			<view class="arrow" bindtap="moreCount"></view>
		</view>
		<!-- <view class="discountContent"> -->
		<scroll-view class='wrapper' scroll-x="true">
			<view class="contentItem" wx:for="{{discountArray}}">
				<view class="countPic" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
					<image src="{{item.goodsImg}}"></image>
				</view>
				<view class="countText">{{item.goodsName}}</view>
倪静楠 authored
61 62 63 64
				<view class="countPrice">
					<text class="moneyIcon">¥</text>
					<text class="moneyNum">{{item.goodsPrice}}</text>
				</view>
倪静楠 authored
65 66 67 68 69 70 71 72 73 74 75
				<view class="countNum">
					<view class="num">还剩{{item.goodsStock}}件</view>
					<view class="icon" bindtap="addCart" data-id="{{item.defaultSku}}" data-type="{{item.type}}">
						<image src="/images/01-01/cart.png"></image>
					</view>
				</view>
			</view>
		</scroll-view>
		<!-- </view> -->
	</view>
	<!-- 每日特价 -->
倪静楠 authored
76
	<view class="borderTop"></view>
倪静楠 authored
77
	<view class="dayPriceContent">
倪静楠 authored
78
		<view class="dayPrice" wx:if="{{dayPicArray.length!==0}}">
倪静楠 authored
79 80 81 82
			<view class="dayPriceTitle">
				<view class="dayPriceText">{{dayPrice}}</view>
				<view class="dayPriceTime">
					<van-count-down use-slot time="{{ times }}" bind:change="onChange2">
倪静楠 authored
83
						<text class="item">{{timeDatas.hours<10?'0'+timeDatas.hours:timeDatas.hours }}</text>
倪静楠 authored
84
						<text style="color:#FF593C">:</text>
倪静楠 authored
85
						<text class="item">{{ timeDatas.minutes<10?'0'+timeDatas.minutes:timeDatas.minutes  }}</text>
倪静楠 authored
86
						<text style="color:#FF593C">:</text>
倪静楠 authored
87
						<text class="item">{{timeDatas.seconds<10?'0'+timeDatas.seconds:timeDatas.seconds}}</text>
倪静楠 authored
88 89 90 91 92 93
					</van-count-down>
				</view>
				<view class="morePrice" bindtap="morePrice">{{morePrice}}</view>
				<view class="arrow" bindtap="morePrice"></view>
			</view>
			<view class="dayPricePicMain">
倪静楠 authored
94 95 96 97 98
				<scroll-view class='wrapper' scroll-x="true">
					<view wx:for="{{dayPicArray}}" class="dayPricePic" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
						<image src="{{item.goodsImg}}"></image>
					</view>
				</scroll-view>
倪静楠 authored
99 100 101
			</view>
		</view>
		<view class="mainly">
倪静楠 authored
102 103 104 105 106 107
			<view class="dayPriceTitle" style="display: flex;justify-content: space-between;">
				<view>
					<view class="dayPriceText">{{nameData.name}}</view>
					<view class="mainlyTitle">{{nameData.label}}</view>
				</view>
				<view style="position: relative;">
倪静楠 authored
108 109
					<view bindtap="moreMainly" class="moreMainly">查看更多</view>
					<view class="arrow" bindtap="moreMainly"></view>
倪静楠 authored
110
				</view>
倪静楠 authored
111 112
			</view>
			<view class="dayPricePicMain">
倪静楠 authored
113 114 115 116 117
				<scroll-view class='wrapper' scroll-x="true">
					<view wx:for="{{marilyArray}}" class="dayPricePic" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
						<image src="{{item.goodsImg}}"></image>
					</view>
				</scroll-view>
倪静楠 authored
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
			</view>
		</view>
	</view>
	<!-- 每日精选 -->
	<van-tabs active="{{0}}" bind:change="onChange">
		<van-tab title="{{item.categoryName}}" wx:for="{{pickArray}}">
			<view class="pickContainer">
				<view class="pickContent">
					<view class="pickItem" wx:for="{{pickList}}" data-id="{{item.goodsId}}" bindtap="goGoodsDetail">
						<view class="pickPic">
							<image src="{{item.goodsImg}}"></image>
						</view>
						<view class="pickTitle">{{item.goodsName}}</view>
						<view class="pickDesc">{{item.goodsAttributes}}</view>
						<view class="userInfo">
							<view class="collectIcon">
倪静楠 authored
134
								<!-- <image src="{{item.collectIcon}}"></image> -->
倪静楠 authored
135 136 137
								<view style="display:inline-block">
									<text class="moneyIcon">¥</text>
					<text class="moneyNum">{{item.goodsPrice}}</text></view>
倪静楠 authored
138 139 140 141 142 143 144 145 146 147 148 149 150
							</view>
						</view>
					</view>
				</view>
			</view>

		</van-tab>
	</van-tabs>
	<!-- 优惠券弹出层 -->
	<van-cell title="展示弹出层" is-link bind:click="showPopup"></van-cell>
	<van-popup show="{{show}}" bind:close="onClose">
		<view class="popupBox">
			<view class="delIcon" bindtap="onClose">
倪静楠 authored
151
				<image src="/images/icon_close@2x.png"></image>
倪静楠 authored
152 153 154 155 156 157
			</view>
			<view class="popupPic">
				<image src="/images/popup.png"></image>
			</view>
			<view>
				<view class="popupText"> 实名优惠活动券</view>
倪静楠 authored
158 159 160 161 162 163 164 165 166
				<view class="discountBox">
					<view class="popupImg" wx:for="{{discountCartArray}}" wx:if="{{item.status}}">
						<view class="left"></view>
						<view class="right"></view>
						<view class="popupNamePic">{{item.name}}</view>
						<view class="popupPriceBox">
							<view class="popupIcon">¥</view>
							<view class="popupPrice">{{item.amount}}</view>
						</view>
倪静楠 authored
167 168 169 170 171 172
					</view>
				</view>
				<view class="popupBtn" bindtap="getDiscountCart">立即领取</view>
			</view>
		</view>
	</van-popup>
倪静楠 authored
173
	<view class="bottomHint" wx:if="{{bottomHint}}">
倪静楠 authored
174 175
		我是有底线的~
	</view>
倪静楠 authored
176 177 178
</view>

<!-- tabbar -->
倪静楠 authored
179
<!-- <view class="tabbarBox" >
倪静楠 authored
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
	<ul>
		<li>
			<view class="tabbarPic">
				<image src="/images/tab/home (2).png"></image>
			</view>
			<text class="check">首页</text>
		</li>
		<li bindtap="toClassify">
			<view class="tabbarPic">
				<image src="/images/tab/classify (2).png"></image>
			</view>
			<text>分类</text>
		</li>
		<li bindtap="toShopCart">
			<view class="tabbarPic">
				<image src="/images/tab/cart (2).png"></image>
			</view>
			<text>购物车</text>
		</li>
		<li bindtap="toUser">
			<view class="tabbarPic">
				<image src="/images/tab/user.png"></image>
			</view>
			<text>我的</text>
		</li>
	</ul>
倪静楠 authored
206
</view> -->