You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
12 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<view style='--color--:{{color}}'>
<loading hidden="{{hidden}}">{{msg}}</loading>
<view class='container'>
<view class='cy-view-top flex-display {{noticeInfo?"":"heigth" }}'>
<view class='cy-title-item'>
<view class='cy-title-row down-bottom cy-ellipsis'>
<text class='cy-ellipsis' style='font-size:15px; margin-left:12rpx;'>{{storeAddress}}</text>
</view>
<view class='cy-title-row down-center' style='height:40rpx;'>
<text class='cy-ellipsis' style='font-weight:400; font-size:12px;color:gray;margin-left:12rpx;'>距离您约{{distance}}km</text>
</view>
<view class="cy_noticeInfo cy-title-row margin-bottom2" wx:if="{{noticeInfo !='' }}">
<view class="cy_noticeInfo_img">
<image class="iconfont iconlingdang" style="color:{{color}};"></image>
<!-- src="/images/noticeInfo.png" -->
</view>
<view class="cy_noticeInfo_msg">{{noticeInfo}}</view>
</view>
</view>
<view class='cy-food-mark content-center cy-global-border cy-global-color ' bindtap="cy_storeLocation">
<text style="color:{{color}};" >✔ 当前订单</text>
</view>
</view>
<!-- <view class="cy_store_describe "></view> -->
<view class='cy-top-bar flex-display'>
<view bindtap='cy_getLookInfo' data-index='1' class='content-center' style='width:188rpx;'>
<text class='cy-top-title content-center {{selectNavIndex==1 ? "cy-select-title cy-global-color" : "cy-normal-title"}}'>点菜</text>
</view>
<view bindtap='cy_getLookInfo' data-index='2' class='content-center'>
<text class='cy-top-title content-center {{selectNavIndex==2 ? "cy-select-title cy-global-color" : "cy-normal-title"}}' style='margin-left:60rpx;'>评价({{evaluateList.length}})</text>
</view>
<view bindtap='cy_getLookInfo' data-index='3' class='content-center'>
<text class='cy-top-title content-center {{selectNavIndex==3 ? "cy-select-title cy-global-color" : "cy-normal-title"}}'>商家</text>
</view>
</view>
</view>
<!-- 评价 -->
<view hidden="{{evaluateList.length == 0}}" wx:if='{{selectNavIndex==2}}' class='cy-view-store'>
<view style='background:#f3f3f3; overflow: hidden;'>
<view class='cy-view-evaluation flex-display'>
<view class='cy-evaluation-row down-center'>
<text>商家</text>
<view class='cy-evaluation-view down-center'>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
</view>
</view>
<view class='cy-evaluation-row down-center'>
<text>配送</text>
<view class='cy-evaluation-view down-center'>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
<image src='../../images/icon-evaluation.png'></image>
</view>
</view>
</view>
<view class='cy-evaluation-list' style="height:{{evaluatehight}}">
<block wx:if="{{evaluateList.length>0}}" wx:for="{{evaluateList}}" wx:key="index">
<view class='cy-evaluation-item flex-display'>
<view class='cy-evaluation-header-view'>
<image src="{{item.touxiang}}"></image>
</view>
<view class='cy-evaluation-content-view'>
<view style="position:relative;" class="down-center">
<text class="cy-item-name">{{item.memberName}}</text>
<text class="cy-item-time">{{item.tickingTime}}</text>
</view>
<view class="down-center">
<text class="cy-item-evaluate">评分</text>
<image class="cy-item-icon-image" src='../../images/icon-evaluation.png'></image>
<image class="cy-item-icon-image" src='../../images/icon-evaluation.png'></image>
<image class="cy-item-icon-image" src='../../images/icon-evaluation.png'></image>
<image class="cy-item-icon-image" src='../../images/icon-evaluation.png'></image>
<image class="cy-item-icon-image" src='../../images/icon-evaluation.png'></image>
</view>
<view class="cy-item-content">{{item.memo}}</view>
</view>
</view>
</block>
</view>
</view>
</view>
<!-- 商家 -->
<view wx:if='{{selectNavIndex==3}}' class='cy-view-store'>
<view style='background:#f3f3f3; overflow: hidden;'>
<view class='down-center cy-store-info cy-store-bottom-line'>
<view class='cy-store-icon'>
<image src='../../images/icon-address.png'></image>
</view>
<text>{{storeAddress}}</text>
<view class='cy-store-mobile content-center cy-global-bg-color' bindtap="cy_callPhone">
<image style="width:26rpx; height:26rpx;" src="../../images/icon-white-phone.png"></image>
</view>
</view>
<view class='down-center cy-store-info'>
<view class='cy-store-icon'>
<image src='../../images/icon-time.png'></image>
</view>
<text>营业时间:{{openTime}}</text>
</view>
<block wx:if="{{busMode==3}}">
<view class='down-center cy-store-info cy-store-bottom-line'>
<view class='cy-store-icon'>
<image src='../../images/icon-time.png'></image>
</view>
<text>配送时间:{{openTime}}</text>
</view>
<view class='down-center cy-store-info'>
<view class='cy-store-icon' style='width:34rpx;'>
<image src='../../images/icon-store-out.png'></image>
</view>
<text style='margin-left: 15rpx;'>商家自己负责配送配送约40分钟</text>
</view>
</block>
</view>
</view>
<!-- 商品信息 -->
<view wx:if='{{selectNavIndex==1}}' class='cy-content-list flex-display'>
<!-- 商品分类 -->
<scroll-view scroll-y='true' scroll-top="{{scrollTop}}" class='cy-category-list' scroll-with-animation="true">
<view wx:for="{{categoryList}}" wx:key="index" class='cy-category-item flex-display {{item.select?"cy-checked-item cy-global-color":"cy-unchecked-item"}}' data-index='{{index}}' bindtap='cy_selectCategory'>
<view wx:if="{{item.select}}" class='cy-select-line cy-global-bg-color'></view>
<view class='cy-category-name content-center {{item}}'>
<label>{{item.name}}</label>
</view>
</view>
</scroll-view>
<!-- 商品明细 -->
<scroll-view id="sProduct" scroll-y='true' class='cy-product-list' scroll-into-view="{{scrollId}}" scroll-with-animation="true" bindscroll="cy_bindScroll">
<view class='cy-view-search'>
<view class='cy-search down-center'>
<image class='cy-search-icon' src="../../images/icon-search.png" />
<input class='cy-search-input' confirm-type='search' bindblur='cy_search' placeholder='请输入菜品关键词搜索' />
</view>
</view>
<swiper class="cy_shop_banner" indicatorDots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" circular="{{circular}}">
<block wx:if="{{defaultShopBanner.length>=1}}" wx:for="{{defaultShopBanner}}" wx:key="index">
<swiper-item>
<image src='{{item.pictureUrl}}' />
</swiper-item>
</block>
<block wx:if="{{defaultStoreVodiu}}">
<swiper-item>
<video src="{{defaultStoreVodiu}}" bindplay="payVideo" bindpause="pauseVideo"></video>
</swiper-item>
</block>
</swiper>
<view id="{{item.scrollId}}" wx:if="{{item.isSearch}}" wx:for="{{productList}}" wx:for-index="index" wx:key="index" data-index="{{index}}" class='cy-product-item flex-display' bindtap="{{item.suitFlag == 0 ? 'cy_goto_productDetail' : 'cy_selectProductSpec'}}">
<view class='cy-product-view-image state' data-src="{{item.linkUrl}}">
<!-- bindtap='cy_showBigImage' -->
<image class='cy-product-image' src='{{item.linkUrl}}'></image>
<image wx:if='{{item.saleStatus}}' mode='aspectFit' src='../../images/sellOut.png'></image>
</view>
<view class='cy-product-row' data-index='{{index}}' bindtap=''>
<view class="cy-product-title">
<view class='cy-product-name cy-ellipsis'>
{{item.productName}}
</view>
<view class="cy-new-product" wx:if="{{item.isNew==1}}"> 新品 </view>
<view class="cy-new-product" wx:if="{{item.discountRule}}"> 促销 </view>
</view>
<view class='cy-product-description cy-product-message-text' wx:if="{{item.description}}">
{{item.description}} {{memberPriceEnabled}}
</view>
<!-- 判断门店是否会员价 -->
<block wx:if="{{memberPriceEnabled==1}}">
<view class="member-price-style" wx:if="{{item.specList[0].memberPrice>0 && isMemberPrice == 1}}">
<view class="member-price-left">会员</view>
<view class="member-price-centext">¥{{item.specList[0].memberPrice}}</view>
</view>
</block>
<view class='cy-product-more down-bottom '>
<view class='cy-product-price down-bottom'>
<block wx:if="{{item.specList[0].discountRule}}">
<text>¥{{item.specList[0].promotionPrice}}</text>
<text class="cy-product-originalPrice">¥{{item.specList[0].price}}</text>
</block>
<block wx:else>
¥{{item.specList[0].price}}
</block>
</view>
<block wx:if="{{item.specFlag}}">
<view hidden='{{item.saleStatus}}' class='cy-product-width flex-display' catchtap='{{item.isSellOut?"cy_changeProductSellOut":"cy_selectProductSpec"}}' data-index="{{index}}">
<view wx:if="{{item.sumCount > 0}}" class='cy-product-position'>{{item.sumCount}}</view>
<view class='cy-product-spec cy-global-bg-color' wx:if="{{!item.isSellOut}}">{{item.suitFlag == 0 ? "选规格" : "随心配"}}</view>
<view class='cy-product-sell_out' wx:if="{{item.isSellOut}}">已售罄</view>
</view>
</block>
<block wx:else>
<view hidden='{{item.saleStatus}}' class='cy-product-width flex-display'>
<image wx:if="{{item.sumCount>0}}" src='../../images/icon-sub.png' data-index="{{index}}" class='cy-product-sym' catchtap='cy_subItem' />
<view wx:if="{{item.sumCount>0}}" class='cy-product-count content-center' style="color:black;">{{item.sumCount}}</view>
<view wx:if="{{!item.isSellOut}}" class='cy-product-sym' style='background: {{color}};' data-index="{{index}}" catchtap='cy_addItem'>
<!--<image class="iconfont iconjiahao"></image>-->
<view class="mykd"></view>
</view>
<view class='cy-product-sell_out' wx:if="{{item.isSellOut}}" catchtap="cy_changeProductSellOut">已售罄</view>
</view>
</block>
</view>
</view>
</view>
</scroll-view>
<view class='cy-content-cart flex-display' wx:if="{{isBusiness=='1' || busMode==1}}">
<view class='cy-content-cart-image'>
<view class='cy-cart-image cy-global-bg-color' bindtap='cy_cart'>
<image class='cy-cart-view-image' src='http://pos.juweiyun.cn/373001/file/wechatAppicon_shopping%20cart%402x.png'></image>
</view>
<view class='cy-cart-count'>{{count}}</view>
</view>
<view class='cy-view-cart down-center'>
<view class='cy-content-cart-total down-center'>
<text>¥</text>
<text class='cy-sum-money'>
<block wx:if="{{promotionMoney>0}}">
<text> {{promotionMoney}}</text>
<text class="cy-product-originalPrice" style="color: rgba(153, 153, 153, 1);"> {{money}}</text>
</block>
<block wx:else>
<text> {{money}}</text>
</block>
</text>
</view>
<view class='cy-content-place-order content-center cy-global-bg-color' bindtap='cy_placeOrder'>
去结算
</view>
</view>
</view>
<view class="cy-content-no-cart" wx:if="{{isBusiness=='0' && busMode==0}}">
本店已休息 ({{openTime}} 营业)
</view>
</view>
<showSpecAndMake promotionPrice="{{promotionPrice}}" isSpec="{{isSpec}}" shopName="{{shopName}}" spec="{{spec}}" makeList="{{makeList}}" specPrice="{{specPrice}}" showSpec="{{showSpec}}" productCount="{{productCount}}" selectProduct="{{selectProduct}}" color="{{color}}" specList="{{specList}}" bind:cy_hide="cy_hide" bind:cy_changeSpecSellOut="cy_changeSpecSellOut" bind:cy_changeSpec="cy_changeSpec" bind:cy_changeMake="cy_changeMake" bind:cy_addCart="cy_addCart" bind:cy_subSpecItem="cy_subSpecItem" bind:cy_addSpecItem="cy_addSpecItem" />
<cart cartFlag="{{cartFlag}}" list="{{list}}" color="{{color}}" bind:cy_hide="cy_hide" bind:cy_clearCart="cy_clearCart" bind:cy_subCartItem="cy_subCartItem" bind:cy_addCartItem="cy_addCartItem" bind:cy_subSpecItem="cy_subSpecItem" bind:cy_addSpecItem="cy_addSpecItem" />
</view>