1 line
7.3 KiB
Plaintext
1 line
7.3 KiB
Plaintext
<block wx:if="{{isLoad}}"><view class="pages-home"><uni-nav-bar vue-id="54490ea4-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" onlyLeft="{{true}}" color="#fff" backgroundColor="{{scrollTop<20?'':primaryColor}}" bind:__l="__l" vue-slots="{{['left']}}"><view class="flex-y-center" slot="left" data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" catchtap="__e"><view class="iconfont icon-dingwei mr-sm _i"></view><view class=" max-400 ellipsis">{{''+(location.address?location.address:isLoad?'定位失败':'定位中...')+''}}</view></view></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><view class="home-index-bg abs" mode="aspectFill" lazy-load="{{true}}"></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="pt-md pl-md pr-md" catchtap="__e"><search vue-id="54490ea4-2" padding="{{0}}" radius="{{10}}" backgroundColor="rgba(240,240,240,0.2)" searchColor="rgba(240,240,240,0.2)" frontColor="#fff" textAlign="center" placeholder="请输入商品名称" bind:__l="__l"></search></view><block wx:if="{{$root.g0>0}}"><view class="mt-lg ml-md mr-md"><banner vue-id="54490ea4-3" list="{{detail.banner.rotation}}" margin="{{0}}" autoplay="{{true}}" borderRadius="{{25}}" height="{{286}}" indicatorActiveColor="{{primaryColor}}" data-event-opts="{{[['^change',[['goBanner']]]]}}" bind:change="__e" bind:__l="__l"></banner></view></block><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="notice-info flex-center mt-md pd-md fill-base" bindtap="__e"><image class="notice-img" mode="aspectFill" lazy-load="{{true}}" src="/static/image/home/notice.png"></image><view class="ml-sm infomation-left"></view><view class="flex-1 ml-md"><swiper class="roller-box" autoplay="{{true}}" circular="{{true}}" vertical="{{true}}" interval="{{2000}}"><block wx:for="{{detail.system_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><view class="roller-item flex-between f-caption c-desc"><view class="ellipsis">{{item.title}}</view></view></swiper-item></block></swiper></view></view><block wx:if="{{detail.weather.observe.update_time}}"><view data-event-opts="{{[['tap',[['goAbout',['$event']]]]]}}" class="weather-info flex-warp rel pr-md pl-md pb-md f-icontext c-desc" catchtap="__e"><view class="flex-y-baseline"><view class="flex-center mr-lg"><view class="number">{{detail.weather.observe.degree+"°"}}</view></view><view class="weather">{{today+" "+detail.weather.observe.weather}}</view></view><view class="flex-warp"><view class="mr-lg">{{'温度变化:'+(detail.weather.forecast_24h.min_degree+'°~'+detail.weather.forecast_24h.max_degree+'°')+''}}</view><view class="mr-lg">{{"风力:"+detail.weather.observe.wind_power+"级"}}</view><view class="mr-lg">{{"湿度:"+detail.weather.observe.humidity+"%"}}</view><view>{{"气压:"+detail.weather.observe.pressure+"hPa"}}</view></view><view class="about-info flex-center abs" style="{{'background:'+(primaryColor)+';'}}"><image class="weather-img ml-sm mr-md" mode="aspectFill" lazy-load="{{true}}" src="{{''+weather_img+time_key+'/'+detail.weather.observe.weather_code+'.png'}}"></image></view></view></block><view class="flex-warp fill-base pb-md"><block wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMenu',[index]]]]]}}" class="menu-item flex-center flex-column pb-lg" catchtap="__e"><image class="menu-img radius" mode="aspectFill" lazy-load="{{true}}" src="{{'/static/image/home/'+item.img_name+'.png'}}"></image><view class="f-caption c-title mt-sm">{{item.title}}</view></view></block></view><block wx:if="{{detail.coupon_total}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="advertisement-info fill-base pr-md pl-md pb-md" bindtap="__e"><image class="coupon-img" mode="aspectFill" lazy-load="{{true}}" src="/static/image/home/xrhb.png"></image></view></block><block wx:if="{{$root.g1>0}}"><view class="advertisement-info fill-base pr-md pl-md pb-md"><banner vue-id="54490ea4-4" list="{{detail.banner.poster}}" margin="{{0}}" autoplay="{{true}}" borderRadius="{{25}}" height="{{285}}" indicatorActiveColor="{{primaryColor}}" data-event-opts="{{[['^change',[['goBanner']]]]}}" bind:change="__e" bind:__l="__l"></banner></view></block><view class="mt-md pd-lg fill-base"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="flex-center" bindtap="__e"><view class="flex-1 f-paragraph text-bold">热门商品</view><view class="flex-y-center c-caption f-caption">查看更多<view class="iconfont icon-right _i"></view></view></view><block wx:for="{{detail.hot_goods}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[1,'hot_goods',index]]]]]}}" class="goods-item flex-center mt-lg" catchtap="__e"><image class="cover radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="flex-center"><view class="flex-1"><view class="f-paragraph c-title mt-sm mb-sm max-400 ellipsis">{{item.goods_name+''}}</view><view class="flex-y-baseline f-caption c-warning">¥<view class="f-title">{{''+item.show_price+''}}</view></view><view class="f-caption c-caption text-delete">{{"¥"+item.show_init_price}}</view></view><image class="add-car-img" lazy-load="{{true}}" src="/static/image/shop/add-car.png"></image></view></view></view></block></block></view><view class="mt-md pt-lg pb-lg fill-base"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="pl-lg pr-lg flex-center" bindtap="__e"><view class="flex-1 f-paragraph text-bold">热门店铺</view><view class="flex-y-center c-caption f-caption">查看更多<view class="iconfont icon-right _i"></view></view></view><block wx:if="{{$root.g2>0}}"><scroll-view class="hot-shop-list pt-lg pl-lg" scroll-x="{{true}}" scroll-with-animation="{{true}}"><block wx:for="{{detail.store_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[2,'store_list',index]]]]]}}" class="hot-shop-item mr-lg radius-16" catchtap="__e"><image class="cover box-shadow" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="pd-md"><view class="flex-between f-caption c-desc"><view class="business-tag flex-center radius-4" style="{{'color:'+(primaryColor)+';'}}">营业中</view><view class="pl-sm ellipsis">{{item.distance}}</view></view><view class="f-paragraph c-title mt-md ellipsis-2">{{item.title}}</view></view></view></block></block></scroll-view></block></view><view class="mt-md pd-lg fill-base"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="flex-center" bindtap="__e"><view class="flex-1 f-paragraph text-bold">公益栏目</view><view class="flex-y-center c-caption f-caption">查看更多<view class="iconfont icon-right _i"></view></view></view><block wx:for="{{detail.welfare_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[3,'welfare_list',index]]]]]}}" class="welfare-item flex-center mt-lg" catchtap="__e"><image class="cover radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="f-title c-title mb-md ellipsis">{{item.title}}</view><view class="f-caption c-caption">{{item.create_time_text}}</view></view></view></block></block></view><view class="space-footer"></view></view></block> |