<view class="content"><view data-event-opts="{{[['tap',[['showImg']]]]}}" class="shop-banner" bindtap="__e"><swiper class="swiper" indicator-dots="{{false}}" circular="{{true}}" autoplay="{{true}}" interval="{{3000}}" duration="{{1000}}" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff" data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{banner}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="swiper-item"><image src="{{item}}" mode="aspectFill"></image></swiper-item></block></swiper><view class="banner-mask"></view><view class="num-box">{{activeBanner+"/"+$root.g0}}</view></view><view class="det-info"><view class="price-box"><view class="price"><text class="label">会员价</text><text class="unit">￥</text><text class="num">{{product.price}}</text><text class="label">零售价</text><text class="old">{{"¥"+product.otPrice}}</text></view></view><view class="name-box"><view class="tag">{{$root.g1}}</view>{{product.productName+''}}</view><view class="intro">{{''+product.productInfo+''}}</view><view class="safe-box"><image src="../../static/images/safe.png" mode></image><text class="text">品质保障</text><view class="line"></view><text class="text">药师服务</text><view class="line"></view><text class="text">隐私保护</text></view></view><view class="inventor"><view class="left"><view class="num-box">已有<text class="text">{{product.sales}}</text>人购买</view></view></view><view class="det-box"><view class="title">图文详情</view><view class="inner"><view style="font-size:0;"><rich-text nodes="{{product.description}}"></rich-text></view></view></view><view class="btn-foot"><view class="menu-box"><view data-event-opts="{{[['tap',[['goHome',['$event']]]]]}}" class="item" bindtap="__e"><image src="../../static/images/back_home.png" mode></image><text class="label">首页</text></view><view class="item" style="position:relative;"><image src="../../static/images/consult_small.png" mode></image><text class="label">咨询</text><button class="contact-btn" open-type="contact"></button></view><view data-event-opts="{{[['tap',[['navgetTo',['./cart']]]]]}}" class="item" bindtap="__e"><uni-badge vue-id="2e12a937-1" size="small" text="{{cartCount}}" absolute="rightTop" type="error" bind:__l="__l" vue-slots="{{['default']}}"><image src="../../static/images/cart36.png" mode></image></uni-badge><text class="label">购物车</text></view></view><view class="btn-box"><view data-event-opts="{{[['tap',[['addCart',['cart']]]]]}}" class="btn cart" bindtap="__e">加入购物车</view></view></view><popup-bottom class="vue-ref" vue-id="2e12a937-2" visible="{{specVisible}}" title=" " radius="32" maxHeight="1024" data-ref="popup" data-event-opts="{{[['^updateVisible',[['__set_sync',['$0','specVisible','$event'],['']]]]]}}" bind:updateVisible="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="product-spec"><view class="pro-info"><view class="img-box"><image src="{{productValueSelect.image==null||productValueSelect.image==''?product.image:productValueSelect.image}}" mode="aspectFill"></image></view><view class="info-text"><view class="price"><text class="unit">¥</text><text class="num">{{$root.g2}}</text></view><view class="desc-box"><text class="text">{{"已选："+productValueSelect.sku}}</text><text class="text">{{"库存"+(productValueSelect.stock?'充足':'售罄')}}</text></view></view></view><view class="spec-box"><block wx:for="{{attrs}}" wx:for-item="item" wx:for-index="index"><view><view class="title">{{item.attrName}}</view><view class="spec-list"><block wx:for="{{item.values}}" wx:for-item="subItem" wx:for-index="subindex" wx:key="subindex"><view data-event-opts="{{[['tap',[['choseSpec',[index,subindex]]]]]}}" class="{{[subindex==item.index?'item active':'item']}}" bindtap="__e">{{''+subItem+''}}</view></block></view></view></block></view><view class="price-num"><view class="label">数量</view><view class="num-box"><view data-event-opts="{{[['tap',[['lessNum']]]]}}" class="img-box" bindtap="__e"><block wx:if="{{specNum<=1}}"><image src="../../static/images/jian.png" mode></image></block><block wx:else><image src="../../static/images/jian2.png" mode></image></block></view><input type="text" data-event-opts="{{[['change',[['changeNum',['$event']]]],['input',[['__set_model',['','specNum','$event',[]]]]]]}}" value="{{specNum}}" bindchange="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['addNum']]]]}}" class="img-box" bindtap="__e"><image src="../../static/images/add.png" mode></image></view></view></view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="sub-btn" bindtap="__e">确定</view></view></popup-bottom></view>