219 lines
11 KiB
Plaintext
219 lines
11 KiB
Plaintext
<view class="business" wx:if="{{datas && is_open}}">
|
|
<van-tabs active="{{panelIndex}}" bind:change="chooseTabData" wx:if="{{titleName[0]}}">
|
|
<van-tab title="{{titleName[0].text}}" wx:if="{{titleName[0].is_open}}" disabled="{{!(titleName[0].is_open)}}">
|
|
<view class="store_box">
|
|
<view catchtap="toRouter" wx:key="index" data-item="{{items}}" wx:for-item="items" wx:for="{{shopList0}}" style="background:#fff;">
|
|
<block wx:if="{{openTemplate == '01'}}">
|
|
<view class="list">
|
|
<view class="store-img">
|
|
<view class="a store-logo">
|
|
<view class="span img-mask" wx:if="{{items.operating_state === 1}}"></view>
|
|
<view class="img-text span" wx:if="{{items.operating_state === 1}}">商家休息中
|
|
</view>
|
|
<view class="img">
|
|
<image src="{{items.thumb}}" mode='aspectFill' style="border-radius: {{items.logo_style?'0;':'50%;'}}" />
|
|
</view>
|
|
</view>
|
|
<view class="store-category" wx:if="{{items.has_one_category}}">
|
|
<view class="span" data-id="{{items.has_one_category.id}}" catchtap="toClassify">
|
|
{{ items.has_one_category.name }}
|
|
</view>
|
|
</view>
|
|
<view class="store-category" wx:if="{{!items.has_one_category}}">
|
|
<view class="span">暂无分类</view>
|
|
</view>
|
|
</view>
|
|
<!--new-->
|
|
<view class="store-intro2">
|
|
<view class="h2">{{ items.store_name }}</view>
|
|
<view class="score-box">
|
|
<view class="score-left">
|
|
<view class="iconfont icon-card_collect_b"></view>
|
|
<view class="span">{{items.average_score}}分</view>
|
|
<view class="span" style="margin-left:16rpx">已售{{ items.order_total }}单</view>
|
|
</view>
|
|
<view class="score-right" catchtap="goToAdress" data-items="{{items}}">{{ items.distance }}{{ items.unit }} <icon class="iconfont icon-all_daohang"></icon></view>
|
|
</view>
|
|
<view class="dispatch-box" wx:if="{{items.address}}" style="padding:0;color:#666;">
|
|
<view wx:if="{{items.address.city}}">{{items.address.city}}</view>
|
|
<view wx:if="{{items.address.detailed_address}}">{{items.address.detailed_address}}</view>
|
|
</view>
|
|
<view class="discount-box">
|
|
<view class="p discount-item" wx:if="{{items.has_many_coupon&&items.has_many_coupon.length > 0}}">
|
|
<view class="span red">优惠</view>
|
|
<view class="span" style="margin-left: 16rpx" wx:for-index="coupon_index" wx:for-item="coupon" wx:for="{{items.has_many_coupon}}"
|
|
wx:key="coupon_index" wx:if="{{coupon_index <=2}}">{{ coupon.name }}</view>
|
|
</view>
|
|
<view class="p discount-item" wx:if="{{items.store_point.point_switch != 0 || items.store_love.award == 1}}">
|
|
<view class="span red">赠送</view>
|
|
<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_point.point_switch == 0 ? false : true}}">{{ items.store_point.point }}</view>
|
|
<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_love.award == 1 ? true : false}}">{{ items.store_love.award_proportion }}</view>
|
|
</view>
|
|
<view class="p discount-item" wx:if="{{items.store_point.point_deduct_switch != 0 || items.store_love.deduction == 1}}">
|
|
<view class="span red">{{ items.goods_show.search_class_name || "抵扣" }}</view>
|
|
<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_love.deduction == 1 ? true : false}}">{{ items.store_love.deduction_proportion }}</view>
|
|
<view class="span {{items.goods_show && items.goods_show.store_deduction_style?'store_deduction_style':''}}" style="margin-left: 16rpx" wx:if="{{items.store_point.point_deduct_switch == 0 ? false : true}}">{{ items.store_point.max_point_deduct }}</view>
|
|
<view class="span store_cash_back_style" style="margin-left: 16rpx" wx:if="{{items.store_point.commission_deduct && items.goods_show.store_cash_back}}">{{ items.store_point.commission_deduct }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="dispatch-box" wx:if="{{items.dispatchs}}">
|
|
<view class="span" wx:for="{{items.dispatchs}}" wx:for-index="dispatchidx" wx:for-item="dispatch" wx:key="dispatchidx">{{dispatch}}</view>
|
|
</view>
|
|
|
|
</view>
|
|
<!--new end-->
|
|
</view>
|
|
<view class="goods-box" wx:if="{{items.recommend_goods &&items.recommend_goods.length > 0}}">
|
|
<!-- <view class="flexBox"></view> -->
|
|
<view class="good-item" wx:for-index="i" wx:for-item="good" wx:for="{{items.recommend_goods}}" wx:key="i"
|
|
catchtap="toGoodBtn" data-goods_id="{{good.goods_id}}">
|
|
<view class="good-img">
|
|
<image src="{{good.thumb}}" mode='aspectFill' />
|
|
</view>
|
|
<view class="good-title p">{{good.title}}</view>
|
|
<view class="good-price p" wx:if="{{!good.goods_show||good.goods_show.length<=0}}">{{language['money']}}{{good.price}}</view>
|
|
<view class="show_price_box" wx:if="{{good.goods_show.length>0}}">
|
|
<view class="show_price {{index % 2 == 0 ? 'red_white' : 'white_red'}}" wx:for="{{good.goods_show}}">
|
|
{{ item.name }}:{{ item.value }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{openTemplate == '02'}}">
|
|
<storeList02 items="{{items}}"></storeList02>
|
|
</block>
|
|
</view>
|
|
<view class="bottom-status">
|
|
<view wx:if="{{loading}}" class="loading-box">数据加载中 <van-loading color="#1989fa" size="28rpx"></van-loading> </view>
|
|
<view wx:elif="{{shopList0.length <= 0}}">暂无数据~</view>
|
|
<view wx:if="{{isLoadMore0}}"catchtap="getMoreList">加载更多</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
<van-tab title="{{titleName[1].text}}" wx:if="{{titleName[1].is_open}}" disabled="{{!(titleName[1].is_open)}}">
|
|
<view class="rebate_box">
|
|
<view class="content_b_a">
|
|
<view class="tab_b">
|
|
<view class="ul tab_b_box">
|
|
<view class="li {{index == pd_index ?'current': '' }}" wx:for-index="index" wx:for-item="classfy" wx:for="{{pd_classfy_arr}}"
|
|
catchtap="pdClassfySearch" data-index="{{index}}" wx:key="index" data-id="{{classfy.id}}">
|
|
{{ classfy.name }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tab_c">
|
|
<view class="ul tab_c_box">
|
|
<view class="li {{ index == pd_date_index?'current': '' }}" wx:for-index="index" wx:for-item="date" wx:for="{{pd_date_arr}}"
|
|
data-index="{{index}}" data-date="{{date}}" wx:key="index" catchtap="pdDateSearch">
|
|
<view class="span">{{ date.week }}</view>
|
|
<view class="span">{{ date.ye }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="goods_list">
|
|
<view class="goods" wx:for-item="item" wx:key="index" wx:for="{{shopList1}}" data-id="{{item.id}}" catchtap="gotoShop">
|
|
<view class="img">
|
|
<image src="{{item.thumb}}" mode='aspectFill' />
|
|
</view>
|
|
<view class="ul info">
|
|
<view class="li info_a">
|
|
<view class="span">{{ item.store_name }}</view>
|
|
<view class="span">距离{{ item.distance }}km</view>
|
|
</view>
|
|
<view class="li info_b">
|
|
<view class="span">{{ item.has_many_privilege[0].title }}</view>
|
|
</view>
|
|
<view class="li info_c">
|
|
<view class="span">{{ item.has_many_privilege[0].discount_value }}折</view>
|
|
<view class="button" catchtap="gotoShop" data-id="{{item.id}}">
|
|
立即使用
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom-status">
|
|
<view wx:if="{{loading}}" class="loading-box">数据加载中...</view>
|
|
<view wx:elif="{{shopList1.length <= 0}}">暂无数据~</view>
|
|
<view wx:if="{{isLoadMore1}}" catchtap="getMorePdData">加载更多</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
<van-tab title="{{titleName[2].text}}" wx:if="{{titleName[2].is_open}}" disabled="{{!(titleName[2].is_open)}}">
|
|
<view class="coupon_list">
|
|
<view class="content_b_c">
|
|
<view class="coupon_box">
|
|
<view class="coupon" wx:for-item="item" wx:key="index" wx:for="{{shopList2}}">
|
|
<view class="left">
|
|
<view class="img">
|
|
<image src="{{ item.store && item.store.thumb? item.store.thumb: 'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/photo-mr.jpg'}}"
|
|
mode='aspectFill' />
|
|
</view>
|
|
<view class="p">{{item.store && item.store.store_name? item.store.store_name: " "}}</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="ul right_a">
|
|
<view class="li">{{ item.name }}</view>
|
|
<view wx:if="{{item.coupon_method == 1}}">
|
|
满{{ item.enough }}立减{{ item.deduct }}{{language['元']}}
|
|
</view>
|
|
<view wx:if="{{item.coupon_method == 0}}">
|
|
{{ item.discount }}折优惠
|
|
</view>
|
|
</view>
|
|
<view class="ul right_b">
|
|
<view class="li" wx:if="{{item.coupon_method == 1}}">
|
|
{{language['money']}}<text class="span">{{ item.deduct }}</text>
|
|
</view>
|
|
<view class="li" wx:if="{{item.coupon_method == 0}}">
|
|
<text class="span">{{ item.discount }}</text>折
|
|
</view>
|
|
<view class="li">
|
|
<view class="button" data-id="{{item.id}}" catchtap="getCoupon">
|
|
立即领取
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom-status">
|
|
<view wx:if="{{loading}}" class="loading-box">数据加载中...</view>
|
|
<view wx:elif="{{shopList2.length <= 0}}" >暂无数据~</view>
|
|
<view wx:if="{{isLoadMore2}}" catchtap="getMoreList">加载更多</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
<van-tab title="{{titleName[3].text}}" wx:if="{{titleName[3].is_open}}" disabled="{{!(titleName[3].is_open)}}">
|
|
<view class="gift_box">
|
|
<view class="fe-mod-8-hp-line" wx:key="index" wx:for="{{shopList3}}" catchtap="toGood" data-item="{{item}}">
|
|
<view class="fe-mod-8-hp-line-img">
|
|
<view class="saleimg"></view>
|
|
<image src="{{item.thumb}}" mode='aspectFill' />
|
|
</view>
|
|
<view class="fe-mod-8-hp-line-info">
|
|
<view class="title">
|
|
{{ item.title }}
|
|
</view>
|
|
<view class="price fe-mod-8-main-name">
|
|
<view>
|
|
<view class="p1">{{language['money']}}{{ item.vip_level_status&&item.vip_level_status.status==1?item.vip_level_status.word:item.price }}</view>
|
|
<view class="p2">{{language['money']}}{{ item.market_price }}</view>
|
|
</view>
|
|
<view class="fe-mod-8-main-name-buy buy-1" style="margin-top: 12rpx;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom-status">
|
|
<view wx:if="{{loading}}" class="loading-box">数据加载中...</view>
|
|
<view wx:elif="{{shopList3.length <= 0}}">暂无数据~</view>
|
|
<view wx:if="{{isLoadMore3}}" catchtap="getMoreList">加载更多</view>
|
|
</view>
|
|
</view>
|
|
</van-tab>
|
|
</van-tabs>
|
|
</view>
|