533 lines
25 KiB
Plaintext
533 lines
25 KiB
Plaintext
<wxs module="m1">
|
||
var getindexof = function(num, id) {
|
||
if (num.indexOf(id) >= 0) {
|
||
return true
|
||
} else {
|
||
return false
|
||
}
|
||
}
|
||
module.exports.getindexof = getindexof;
|
||
</wxs>
|
||
<view class="all">
|
||
<view class="content" style="{{store.store_barnner_thumb?'background-image:url('+store.store_barnner_thumb+')':''}}">
|
||
<view class="search_top" id="search_top">
|
||
<view style="display: flex">
|
||
<input catchtap="searchJump" type="text" disabled="{{true}}" placeholder="搜索店内商品" />
|
||
<icon class="iconfont icon-sousuo"></icon>
|
||
</view>
|
||
</view>
|
||
<view class="storeInfo_box {{flxShow?'amout':''}}" id="storeInfo_box" style="transition: opacity 0.4s ease-out 0s;">
|
||
<view class="ul storeInfo">
|
||
<view class="name li">{{ store.store_name }}</view>
|
||
<view class="time li">
|
||
<view class="span">
|
||
<icon class="iconfont icon-service_j"></icon>
|
||
{{ store.business_hours }}
|
||
</view>
|
||
<view class="span">
|
||
<icon class="iconfont icon-service_o"></icon>{{ store.dispatch }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="coupon-box">
|
||
<view class="coupon-left">
|
||
<view class="span red-span" wx:for="{{get_coupon}}" wx:for-index="i" wx:for-item="coupon" wx:if="{{i<4}}" wx:key="i">{{coupon.name}}</view>
|
||
</view>
|
||
<view class="coupon" catchtap="gotoCupcon" wx:if="{{get_coupon.length>0}}">
|
||
更多优惠券
|
||
</view>
|
||
</view>
|
||
<view class="reduction-box">
|
||
<view class="reduction-left" wx:if="{{get_store_full_reduction&&get_store_full_reduction.length>0}}">
|
||
<text wx:for="{{get_store_full_reduction}}" wx:for-index="i" wx:for-item="item" wx:key="i" style="margin-left: 16rpx">{{item}}</text>
|
||
</view>
|
||
<view class="reduction-right" wx:if="get_store_full_package">{{get_store_full_package}}</view>
|
||
</view>
|
||
<view class="notice-box">
|
||
店铺公告:{{ store.affiche?store.affiche:'' }}
|
||
</view>
|
||
<view class="storeImg" style="border-radius: {{store.logo_style?'0;':'50%;'}}">
|
||
<image src="{{store.store_thumb}}" mode='scaleToFill' style="border-radius: {{store.logo_style?'0;':'50%;'}}"/>
|
||
</view>
|
||
</view>
|
||
<view class="menu_evaluate_business">
|
||
<view class="nav" id="nav">
|
||
<view class="select ul">
|
||
<view class="li" wx:for-index="index" wx:key="index" wx:for-item="name" wx:for="{{tab}}" catchtap="changeTab" data-index="{{index}}">
|
||
<view class="span {{index === tabIndex ? 'current' : ''}}">
|
||
{{ name }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="button buy_btn" catchtap="goBuy" wx:if="{{store.is_open_cashier == 1}}">
|
||
优惠买单
|
||
</view>
|
||
</view>
|
||
<view class="goods_box" wx:if="{{tabIndex === 0}}" style="height: {{goodsBoxheight}};">
|
||
<scroll-view class="menu-wrapper" scroll-y style="height: {{goodsBoxheight}};background-color: #f9f9f9;">
|
||
<view class="sort_box" id="menuWrapper">
|
||
<view class="ul box">
|
||
<view class="li {{items.id === category_id?'current1':''}}" wx:for-index="index" wx:for-item="items" wx:for="{{category}}" id="list_li_menulist" wx:key="index">
|
||
<view class="strong first" catchtap="getSecondCategory" data-item="{{items}}">
|
||
<view class="var" style="-webkit-box-orient: vertical;">
|
||
{{ items.name }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view style="height: 112rpx;"></view>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
<view class="catagoryBox {{flxShow?'topnavFixed ':''}}" style="width: 77.5vw;">
|
||
<van-collapse value="{{activeName}}" bind:change="onChange" border="{{false}}">
|
||
<van-collapse-item name="1">
|
||
<view slot="title" class="activetitle">
|
||
<!-- 自定义标题 -->
|
||
<view class="dl" wx:if="{{activeName != 1}}">
|
||
<view class="dt" wx:for="{{secondCategory}}" wx:key="index" wx:for-item="o" class="{{o.id == secondaryId ? 'addClass dt' : 'removeClass dt'}}" data-item="{{o}}" catchtap="getSecondGoods">
|
||
{{ o.name }}
|
||
</view>
|
||
</view>
|
||
<view class="span" style="text-align:center;" wx:if="{{activeName == 1}}">
|
||
{{language.category['选择分类']}}
|
||
</view>
|
||
</view>
|
||
<view style="max-height: 32vh;overflow-y: auto;width: 77.5vw;">
|
||
<view class="dl">
|
||
<view wx:for="{{secondCategory}}" wx:key="index" wx:for-item="Secondary" data-item="{{Secondary}}" class="{{ Secondary.id == secondaryId ? 'addClass1 dt' : 'removeClass1 dt'}}" catchtap="getSecondGoods">
|
||
{{ Secondary.name }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="p" wx:if="{{m2._isTextEmpty(secondCategory)}}">{{language.category['暂无其他分类']}}</view>
|
||
</van-collapse-item>
|
||
</van-collapse>
|
||
</view>
|
||
<scroll-view class="foods-wrapper wrapper" bounces enhanced scroll-y refresher-enabled="{{true}}" bindrefresherpulling="bindrefresherpulling" refresher-triggered="{{category_last_loading}}" style="height: {{goodsBoxheight}};background-color: #fff;" scroll-top="{{scrollTop}}" bindscroll="foodsScrollbtn" bindscrolltoupper="upper" bindscrolltolower="bindscrolltolower" bindrefresherrefresh="bindrefresherrefresh">
|
||
|
||
<view class="goods_list wrapper" id="foodsWrapper">
|
||
<view class="div" style="margin-bottom: 100rpx;">
|
||
<view class="food-list">
|
||
<view style="height: 90rpx"></view>
|
||
<view class="food-list-hook">
|
||
<view class="Goods" wx:if="{{goods.length == 0}}" style="justify-content: center;width: 77.5vw;">暂无商品</view>
|
||
<view class="Goods" wx:for-item="food" wx:for-index="foodindex" wx:key="foodindex" wx:for="{{goods}}" catchtap="goToGoodsO2O" data-food="{{food}}">
|
||
<view style="display: flex;">
|
||
<view class="goodsImg">
|
||
<image src="{{food.thumb}}" mode='widthFix' />
|
||
</view>
|
||
<view class="goods_right">
|
||
<view class="goodsName ul">
|
||
<view class="li name">{{ food.title }}</view>
|
||
<view class="buy li">
|
||
已售{{ food.show_sales+food.virtual_sales }}{{ food.sku }}
|
||
</view>
|
||
<div class="show_price_box" wx:if="{{food.goods_show&&food.goods_show.length>0}}">
|
||
<div class="show_price {{index % 2 == 0 ? 'red_white' : 'white_red'}}" wx:for="{{food.goods_show}}">
|
||
{{ item.name }}:{{ item.value }}
|
||
</div>
|
||
</div>
|
||
<view class="li sum sum1" wx:if="{{!food.goods_show||food.goods_show.length<=0}}">
|
||
<text class="span">{{language['money']}}</text>
|
||
<text wx:if="{{food.vip_level_status&&food.vip_level_status.status==1}}" class="span1">{{food.vip_level_status.word}}</text>
|
||
<text wx:else>{{food.price}}</text>
|
||
</view>
|
||
|
||
<view class="specBtn" wx:if="{{food.has_option === 1&& (!food.vip_level_status || food.vip_level_status.status==0) && !food.reserve_goods}}">
|
||
<view class="span goods-num {{goodsCarts[food.id] ? 'show' : 'hide'}}" wx:if="{{goodsCarts[food.id]}}">{{ goodsCartsTotal[food.id].total }}
|
||
</view>
|
||
<view class="button" catchtap="addGood" data-item="{{food}}">
|
||
选规格
|
||
</view>
|
||
</view>
|
||
<view class="addBtn" wx:if="{{!store.operating_state &&showDis &&food.has_option !== 1&&(!food.vip_level_status || food.vip_level_status.status==0)}}">
|
||
<view class="content_1">
|
||
<view class="left">
|
||
<icon class="iconfont icon-store_reduceLine {{goodsCarts[food.id]?'show':'hide'}}" data-goods="{{goodsCarts[food.id]}}" data-food="{{food}}" catchtap="numberLeft">
|
||
</icon>
|
||
</view>
|
||
<view class="center">
|
||
<input class="goodsNumber {{goodsCarts[food.id] ? 'show' : 'hide'}}" wx:if="{{goodsCarts[food.id]}}" type="number" value="{{goodsCarts[food.id].total}}" bindfocus="clickCount" data-total="{{goodsCarts[food.id].total}}" data-item="{{goodsCarts[food.id]}}" data-id="{{food.id}}" bindblur="changeCount_1" catchtap="Countstop" />
|
||
</view>
|
||
<view class="right">
|
||
<icon wx:if="{{!food.reserve_goods}}" class="iconfont icon-store_plus" catchtap="numberRight" data-goods="{{goodsCarts[food.id]}}" data-food="{{food}}" data-goodindex="{{goodindex}}" data-foodindex="{{foodindex}}" data-index="{{index}}">
|
||
</icon>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
</view>
|
||
<view class="goods_content_show" wx:if="{{food.goods_content_show}}">
|
||
<!-- 商品内容显示 #81889-->
|
||
<block wx:for="{{food.goods_content_show}}" wx:for-item="contentChild">
|
||
<view class="goods_content_show_item">
|
||
{{ contentChild.name }}{{ contentChild.value }}%
|
||
</view>
|
||
</block>
|
||
</view>
|
||
<view class="reserveTxt" wx:if="{{food.reserve_goods}}">
|
||
<view wx:if="{{food.reserve_number}}">可预约数量:{{ food.reserve_number.can_reserve }}</view>
|
||
<view class="reserveTxt_R" wx:if="{{food.reserve_number}}">已预约数量:{{ food.reserve_number.already_reserve }}</view>
|
||
</view>
|
||
</view>
|
||
<!--showLength为了补位滑动-->
|
||
<view class="" style="height: 6rem" wx:for="{{showLength}}"></view>
|
||
</view>
|
||
<view style="height: 400rpx"></view>
|
||
</view>
|
||
</view>
|
||
<view class="loadNomore" wx:if="{{loading}}" style="margin: 0 auto 80rpx;text-align: center;width: 100%;height: 180rpx;">
|
||
<view style="width:160rpx;height:120rpx;">
|
||
<image style="width: 100%;" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/no-more-product.png" mode='widthFix' />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
<view class="evaluate_box" wx:if="{{tabIndex === 1}}">
|
||
<view class="evaluate_number">
|
||
<view class="evaluate_info ul">
|
||
<view class="li">
|
||
<view class="h6">{{ store.comment.average_score }}</view>
|
||
<view class="span">综合评价</view>
|
||
</view>
|
||
<view class="li">
|
||
<view class="h6">{{ store.comment.comment_total }}</view>
|
||
<view class="span">评价数</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="evaluate_list">
|
||
<view class="user_box" wx:for-item="comment" wx:key="commentindex" wx:for-index="commentindex" wx:for="{{new_comment}}">
|
||
<view style="display:flex;">
|
||
<view class="ueser_img">
|
||
<image src="{{comment.head_img_url}}" mode='widthFix' />
|
||
</view>
|
||
<view class="user_info">
|
||
<view class="ul info_a">
|
||
<view class="li name_date">
|
||
<view class="span name">{{comment.nick_name}}</view>
|
||
<view class="span date">{{comment.created_at}}</view>
|
||
</view>
|
||
<view class="rate">
|
||
<van-rate value="{{comment.level}}" readonly="{{true}}" />
|
||
</view>
|
||
</view>
|
||
<view class="p text">
|
||
{{comment.content}}
|
||
</view>
|
||
<view class="img_box">
|
||
<view class="img" wx:for-item="img" wx:key="imgindex" wx:for-index="imgindex" wx:for="{{comment.images}}">
|
||
<image src="{{img}}" mode='widthFix' />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="goodlnfo" wx:if="{{comment.has_one_goods && comment.has_one_goods.id}}" catchtap="gotoGoodDetail" data-id="{{comment.has_one_goods.id}}">
|
||
<image src="{{comment.has_one_goods.img}}" ></image>
|
||
<view class="goodMain">
|
||
<view class="titless">{{ comment.has_one_goods.title }}</view>
|
||
<view class="price">{{ $i18n.t("money") }}{{ comment.has_one_goods.price }}</view>
|
||
</view>
|
||
<view class="sales">已售{{ comment.has_one_goods.show_sales }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="store_box" wx:if="{{tabIndex === 2}}">
|
||
<view class="ul tab-box">
|
||
<view class="li {{tabName == item.name ? 'choose' : ''}}" wx:for="{{tabList}}" wx:for-index="index" wx:for-item="item" wx:key="index" catchtap="chooseTab" data-index="{{index}}" data-item="{{item}}">{{item.name}}</view>
|
||
</view>
|
||
<view class="detail-box" wx:if="{{tabName == '店铺详情'}}">
|
||
<view class="detail-item">
|
||
<view class="p detail-title">营业时间</view>
|
||
<view class="p time">{{ store.business_hours }}</view>
|
||
</view>
|
||
<view class="detail-item">
|
||
<view class="p" style="display: flex">
|
||
<view class="p detail-title">门店地址</view>
|
||
<view catchtap="goToAdress" class="iconfont icon-all_daohang"></view>
|
||
</view>
|
||
<view class="p">{{ store.store_address }}</view>
|
||
</view>
|
||
<view class="detail-item" wx:if="{{delivery_amount}}" style="margin: 20rpx 0;">
|
||
<text>门店配送起送价</text>
|
||
<text style="color:#ed0606; margin-left: 20rpx;font-size: 28rpx;">{{language['money']}}{{delivery_amount}}</text>
|
||
</view>
|
||
<view class="detail-item">
|
||
<view class="p detail-title">门店公告</view>
|
||
<view class="p" wx:if="{{store.affiche}}">{{ store.affiche }}</view>
|
||
</view>
|
||
<view class="detail-item">
|
||
<view class="p detail-title">门店简介</view>
|
||
<view class="p">{{ store.store_introduce }}</view>
|
||
</view>
|
||
<view class="detail-item">
|
||
<view class="p detail-title">门店详情介绍</view>
|
||
<view class="p" wx:if="{{!infoShow}}" style="margin-left: 2rem;">暂无详情...</view>
|
||
<view wx:if="{{infoShow}}" class="p">
|
||
<rich-text nodes="{{info}}"></rich-text>
|
||
</view>
|
||
</view>
|
||
<!-- 门店配送 -->
|
||
<view class="delivery_info" wx:if="{{delivery_status==1}}">
|
||
<view class="detail_a">
|
||
<icon class="iconfont icon-service_o"></icon>
|
||
<view class="span">配送范围</view>
|
||
</view>
|
||
<view class="p">
|
||
<rich-text nodes="{{delivery_note}}"></rich-text>
|
||
</view>
|
||
<!-- 配送范围地图 -->
|
||
<view style="width:100%; height:18.75rem">
|
||
<map id="map" longitude="{{delivery.longitude}}" latitude="{{delivery.latitude}}" scale="12" markers="{{markers_2}}" style="width: 100%; height: 100%"
|
||
show-location="{{true}}" polygons="{{polygons_2}}" bindtap="testbtn"></map>
|
||
</view>
|
||
</view>
|
||
<view class="detail-item" wx:if="{{get_recommend_goods.length > 0}}">
|
||
<view class="detail-title p">推荐商品</view>
|
||
<view class="goods-box">
|
||
<view class="good-item" wx:for="{{get_recommend_goods}}" wx:for-index="i" wx:for-item="good" wx:key="i" catchtap="toGood" data-id="{{good.goods_id}}">
|
||
<view class="good-img">
|
||
<image src="{{good.change_thumb}}" mode='aspectFill' />
|
||
</view>
|
||
<view class="p good-title">{{good.title}}</view>
|
||
|
||
<view class="goods_content_show" wx:if="{{good.goods_content_show}}">
|
||
<!-- 商品内容显示 #81889-->
|
||
<block wx:for="{{good.goods_content_show}}" wx:for-item="contentChild">
|
||
<view class="goods_content_show_item">
|
||
{{ contentChild.name }}{{ contentChild.value }}%
|
||
</view>
|
||
</block>
|
||
</view>
|
||
|
||
<view class="p good-price">{{language['money']}}{{good.price}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="community-box" wx:if="{{tabName == '门店微贴'}}">
|
||
<Waterfalls_flow goodsData="{{menuList[tabIndex2].list}}"></Waterfalls_flow>
|
||
</view>
|
||
<view class="live-box" wx:if="{{tabName == '门店直播'}}">
|
||
<view class="living_content" wx:if="{{menuList[tabIndex2].list.length>0}}">
|
||
<view class="living" catchtap="gopage" data-status="{{item.play_type}}" wx:for="{{menuList[tabIndex2].list}}" wx:key="*this" data-id="{{item.id}}" data-backid="{{item.back_id}}">
|
||
<view class="bg">
|
||
<image src="{{item.cover}}" mode='aspectFill' />
|
||
<view class="content_show">
|
||
<view class="live_top" wx:if="{{item.play_type==3}}">
|
||
<view class="advance_left">
|
||
<view class="left">预告</view>
|
||
</view>
|
||
</view>
|
||
<view class="live_top" wx:if="{{item.play_type==1||item.play_type==2}}">
|
||
<view class="live_top_left" wx:if="{{item.play_type==1}}">
|
||
<view class="left">直播中</view>
|
||
<view class="right">{{item.view_num}}观看</view>
|
||
</view>
|
||
<view class="seeding_left" wx:if="{{item.play_type==2}}">
|
||
<view class="left">回放</view>
|
||
<view class="right">{{item.view_num}}观看</view>
|
||
</view>
|
||
<view class="live_top_right">
|
||
<view class="little_icon">
|
||
<view class="iconfont icon-zb_goods"></view>
|
||
</view>
|
||
<view class="num" wx:if="{{item.goods_num}}">{{item.goods_num}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="live_bottom">{{item.title}}</view>
|
||
</view>
|
||
<view class="bootom">
|
||
<view class="left">
|
||
<image src="{{item.avatar}}" mode='aspectFill' />
|
||
</view>
|
||
<view class="right">{{item.nickname}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="member-box" wx:if="{{tabName == '门店员工'}}">
|
||
<view class="member-item" wx:for-index="i" wx:for-item="member" wx:for="{{menuList[tabIndex2].list}}" wx:key="i">
|
||
<view class="img-box" catchtap="toCard" data-cardid="{{member.card_id}}">
|
||
<image src="{{member.avatar}}" mode='aspectFill' />
|
||
</view>
|
||
<view class="text-box" catchtap="toCard" data-cardid="{{member.card_id}}">
|
||
<view class="p name">{{member.realname}}</view>
|
||
<view class="p">联系方式:{{member.phone}}</view>
|
||
<view class="p">微信号:{{member.wechat || '无'}}</view>
|
||
</view>
|
||
<view class="phone-box">
|
||
<view class="a" catchtap="gomenphone" data-phone="{{member.phone}}">
|
||
<view class="icon-box">
|
||
<view class="iconfont icon-all_phone" style="display: flex;align-self: center"></view>
|
||
<!-- <view class="p">拨电话</view> -->
|
||
</view>
|
||
</view>
|
||
<view class="icon-box" style="margin-left: 16rpx;" catchtap="copybtn" data-wechat="{{member.wechat}}">
|
||
<view class="iconfont icon-card_weixin1"></view>
|
||
<!-- <view class="p">添加微信</view> -->
|
||
</view>
|
||
<view class="iconfont icon-advertise-next" catchtap="toCard" data-cardid="{{member.card_id}}"></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view wx:if="{{tabName == '门店拼团'}}">
|
||
<cGrouplist grouplist="{{menuList[tabIndex2].list}}" store_id='{{store_id}}'></cGrouplist>
|
||
</view>
|
||
|
||
<view class="group-box" wx:if="{{tabName == '定金阶梯团'}}">
|
||
<deposit-ladder-cell wx:for="{{menuList[tabIndex2].list}}" thumb="{{item.bind_goods.thumb_src}}"
|
||
title="{{item.activity_name}}" price="{{item.bind_goods.price}}" deposit="{{item.deposit}}"
|
||
count="{{item.order_count}}" store_id="{{store_id}}" aid="{{item.id}}"></deposit-ladder-cell>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="Go_settle" id="settlecomplete" wx:if="{{carts.length == 0 && !store.operating_state && showDis}}">
|
||
<view class="iconfontcss" catchtap="trggleCart">
|
||
<view class="iconfont icon-all_buycar"></view>
|
||
</view>
|
||
<view class="p">购物车是空的</view>
|
||
<view class="button" catchtap="goodsOrder" data-goodscarts="{{goodsCarts}}">
|
||
请选择商品
|
||
</view>
|
||
</view>
|
||
<view class="Go_settle complete" id="settlecomplete" wx:if="{{carts.length > 0 && !store.operating_state && showDis}}">
|
||
<view class="number" wx:if="{{!showCart}}">{{cartsNum}}</view>
|
||
<view class="iconfontcss" style="{{minicartStyle}}" catchtap="trggleCart">
|
||
<view class="iconfont icon-all_buycar"></view>
|
||
</view>
|
||
<view class="p" style="{{leftPrice}}">
|
||
<text class="span">{{language['money']}}</text>{{ cartsTotal }}</view>
|
||
<view class="button" catchtap="goodsOrder" data-goodscarts="{{goodsCarts}}">
|
||
去结算
|
||
</view>
|
||
</view>
|
||
<van-popup show="{{showCart}}" custom-style="width: 100%;max-height:60%;" position="bottom" overlay="{{true}}" bind:close="trggleCart">
|
||
<view class="top">
|
||
<!-- <van-checkbox checked-color="#f15353" value="{{cartchecked}}" bind:change="cartChange">全选<text class="select span">(已选{{ cartsNum }}件)</text>
|
||
</van-checkbox> -->
|
||
<view style="display: flex;align-items: center;">
|
||
<view class="iconfont iconfontcss" catchtap="trggleCart">
|
||
<view class="iconfont icon-all_buycar"></view>
|
||
</view>
|
||
<text class="span select">(已选{{ cartsNum }}件) </text>
|
||
</view>
|
||
<view class="clear_car" catchtap="clearCart">
|
||
<icon class="iconfont icon-delete"></icon>
|
||
<text class="span">清空购物车</text>
|
||
</view>
|
||
</view>
|
||
<view class="carPopup" ref="cartWrapper">
|
||
<view>
|
||
<view class="goodsList">
|
||
<view class="goods" wx:for-index="index" wx:key="index" wx:for-item="item" wx:for="{{carts}}" catchtap="goToGoodsO2O" data-food="{{item}}">
|
||
<view class="goods_img">
|
||
<image src="{{item.goods.thumb}}" mode='widthFix' />
|
||
</view>
|
||
<view class="ul goodsName">
|
||
<view class="li name">
|
||
<view class="install-tag" wx:if="{{item.live_install && item.live_install.open_state == 1}}">安装</view>
|
||
<view class="goods-names">{{ item.goods.title }}</view>
|
||
<view class="span" wx:if="{{item.option_str}}">({{ item.option_str }})</view>
|
||
</view>
|
||
<view class="li price">{{language['money']}}{{ item.goods.price }}</view>
|
||
</view>
|
||
<view class="addBtn">
|
||
<icon class="iconfont icon-store_reduceLine" catchtap="numberLeft1" data-item="{{item}}" data-index="{{index}}"></icon>
|
||
<input type="number" class="a3y" value="{{item.total}}" data-total="{{item.total}}" bindfocus="clickCount" bindblur="changeCount_2" data-index="{{index}}" data-item="{{item}}" catchtap="Countstop" />
|
||
<icon class="iconfont icon-store_plus" catchtap="numberRight1" data-item="{{item}}" data-index="{{index}}"></icon>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
</view>
|
||
</van-popup>
|
||
<van-popup show="{{show1}}" custom-style="width: 80%" position="center" overlay="{{true}}">
|
||
<view style="background-color:#fff;">
|
||
<view class="p tips">
|
||
商家休息中,暂不接受新订单
|
||
</view>
|
||
<view style="text-align: center;line-height:80rpx;">
|
||
<view class="button btn-sure">
|
||
我知道了
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</van-popup>
|
||
<van-popup show="{{show8}}" custom-style="width: 80%" position="center" overlay="{{true}}">
|
||
<view style="background-color:#fff;">
|
||
<view class="p tips">
|
||
该商家已过期,去看看其他的吧
|
||
</view>
|
||
<view style="text-align: center;line-height: 80rpx;">
|
||
<view class="button btn-sure" catchtap="goTOHome">
|
||
我知道了
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</van-popup>
|
||
<van-popup show="{{show2}}" position="center" overlay="{{true}}">
|
||
<view>
|
||
<view class="spec_box q5">
|
||
<view class="h3">
|
||
<text class="spec_box_title">{{ popTitle }}</text>
|
||
<icon catchtap="close" class="iconfont icon-close11"></icon>
|
||
</view>
|
||
<view style="height:80rpx;"></view>
|
||
<view class="spec_a" wx:for-item="spec" wx:key="index" wx:for="{{goodsInfo.has_many_specs}}">
|
||
<view class="h5">{{ spec.title }}:</view>
|
||
<view class="ul option">
|
||
<view class="li {{m1.getindexof(specid,item.id)?'cur':''}}" wx:for-index="itemidx" wx:for-item="item" data-index="{{itemidx}}" data-indexl="{{index}}" data-item="{{item}}" data-itemid="{{item.id}}" catchtap="selectSpecs" wx:for="{{spec.specitem}}" wx:key="itemidx">
|
||
{{ item.title }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view style="height:3.4375rem;"></view>
|
||
|
||
</view>
|
||
<view class="add_car">
|
||
<view class="ul car_btn">
|
||
<view class="li left">
|
||
<text class="span">{{language['money']}}</text>{{ popPrice }}
|
||
<text style="margin-left: 10rpx;font-size: 30rpx;">库存:{{popStock}}</text>
|
||
</view>
|
||
<view class="li right" catchtap="submitAction">
|
||
<view class="span" wx:if="{{!popNum}}">加入购物车</view>
|
||
</view>
|
||
<view class="Box" wx:if="{{popNum >= 1}}">
|
||
<icon class="iconfont icon-store_reduceLine" data-id="{{popCard.id}}" data-num="{{-1}}" catchtap="updateCartBtn"></icon>
|
||
<view class="label show">{{ popNum }}</view>
|
||
<icon class="iconfont icon-store_plus" data-id="{{popCard.id}}" data-num="{{1}}" catchtap="updateCartBtn"></icon>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</van-popup>
|
||
</view>
|
||
<!-- <view class="y5" catchtap="showToolbar" style="bottom: 230rpx;">
|
||
<view class="y6" wx:if="{{toolbar}}">
|
||
<view class="a y8" catchtap="gohome">
|
||
首页
|
||
</view>
|
||
<view class="a yb" catchtap="goorderlist" data-status="0">
|
||
订单
|
||
</view>
|
||
<view class="a yc" catchtap="gomember">
|
||
我的
|
||
</view>
|
||
<icon class="yd"></icon>
|
||
</view>
|
||
</view> -->
|
||
<!-- 换成组件 -->
|
||
<yz_homeButton datas="{{['home','orderlist','member']}}" wx:if="{{!storeAlone}}"></yz_homeButton>
|
||
<yz_homeButton datas="{{['o2oStore']}}" store_id="{{store_id}}" wx:if="{{storeAlone}}"></yz_homeButton>
|
||
</view>
|
||
<!-- <shopfoot></shopfoot> -->
|