detail.wxml 7.6 KB

1
  1. <view class="detail"><view class="uni-margin-wrap"><swiper class="swiper" circular="{{true}}" indicator-dots="{{true}}" indicator-color="white" autoplay="{{3000}}" interval="{{2000}}" duration="{{500}}"><block wx:for="{{productList.imgs}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><image class="pictures" src="{{item}}" mode></image></swiper-item></block></swiper></view><van-viewider vue-id="3db16520-1" bind:__l="__l"></van-viewider><view class="message"><van-row vue-id="3db16520-2" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-col class="name" vue-id="{{('3db16520-3')+','+('3db16520-2')}}" span="18" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{''+prodList.prodName+''}}</van-col><van-col vue-id="{{('3db16520-4')+','+('3db16520-2')}}" span="6" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['addOrCancel',['$event']]]]]}}" bindtap="__e"><block wx:if="{{!isCollection}}"><van-icon vue-id="{{('3db16520-5')+','+('3db16520-4')}}" name="like-o" size="20" data-com-type="wx" bind:__l="__l"></van-icon></block><block wx:if="{{isCollection}}"><van-icon vue-id="{{('3db16520-6')+','+('3db16520-4')}}" name="like" size="20" data-com-type="wx" bind:__l="__l"></van-icon></block><text class="collect">收藏</text></view></van-col></van-row><van-row vue-id="3db16520-7" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-col class="tip" vue-id="{{('3db16520-8')+','+('3db16520-7')}}" span="20" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{''+prodList.brief+''}}</van-col><van-col vue-id="{{('3db16520-9')+','+('3db16520-7')}}" span="4" data-com-type="wx" bind:__l="__l"></van-col></van-row><van-row vue-id="3db16520-10" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-col class="price" vue-id="{{('3db16520-11')+','+('3db16520-10')}}" span="20" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">¥<text>{{''+prodList.price}}</text></van-col><van-col vue-id="{{('3db16520-12')+','+('3db16520-10')}}" span="4" data-com-type="wx" bind:__l="__l"></van-col></van-row></view><van-viewider vue-id="3db16520-13" customStyle="font-width: 3rpx;" bind:__l="__l"></van-viewider><view data-event-opts="{{[['tap',[['showMsg',['$event']]]]]}}" class="other" bindtap="__e"><text class="choose">已选:<text class="name">{{defaultSku.skuName}}</text></text><text class="space">...</text></view><van-viewider vue-id="3db16520-14" customStyle="font-width: 3rpx;" bind:__l="__l"></van-viewider><van-cell vue-id="3db16520-15" title-style="cell-title" center="{{true}}" value="共0条" is-link="{{true}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['title']}}"><view slot="title"><text>评价:</text><text class="total">{{'好评'+commData.positiveRating+'%'}}</text></view></van-cell><view class="word"><view><van-tag vue-id="3db16520-16" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"全部("+commData.number+")"}}</van-tag></view><view><van-tag vue-id="3db16520-17" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"好评("+commData.praiseNumber+")"}}</van-tag></view><view><van-tag vue-id="3db16520-18" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"中评("+commData.secondaryNumber+")"}}</van-tag></view><view><van-tag vue-id="3db16520-19" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"差评("+commData.negativeNumber+")"}}</van-tag></view><view><van-tag vue-id="3db16520-20" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"有图("+commData.picNumber+")"}}</van-tag></view></view><view><rich-text nodes="{{$root.m0}}"></rich-text></view><van-action-sheet class="tips" vue-id="3db16520-21" show="{{showDesc}}" data-event-opts="{{[['^clickOverlay',[['cancelDesc']]]]}}" data-com-type="wx" bind:clickOverlay="__e" bind:__l="__l" vue-slots="{{['default']}}"><van-card vue-id="{{('3db16520-22')+','+('3db16520-21')}}" num="{{confirm.orderItem.prodCount}}" price="{{defaultSku.price?defaultSku.price:prodData.price}}" desc="{{prodData.brief}}" title="{{defaultSku.skuName?defaultSku.skuName:prodData.prodName}}" thumb="{{defaultSku.pic?defaultSku.pic:prodData.pic}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['footer']}}"><van-stepper vue-id="{{('3db16520-23')+','+('3db16520-22')}}" value="{{confirm.orderItem.prodCount}}" integer="{{true}}" data-event-opts="{{[['^change',[['numChange']]]]}}" data-com-type="wx" bind:change="__e" slot="footer" bind:__l="__l"></van-stepper></van-card><view class="action-sheet-content"><view><block wx:for="{{tags}}" wx:for-item="tag" wx:for-index="idx" wx:key="idx"><view><view class="tagName">{{''+tag.label+''}}</view><view class="tagMenu"><block wx:for="{{tag.options}}" wx:for-item="t" wx:for-index="index" wx:key="index"><view class="{{['defaultSelect',(selectedTag[tag.label]===t.value?true:false)?'prop-selected':'']}}" type="danger" data-event-opts="{{[['tap',[['selectTag',['$0','$1'],[[['tags','',idx,'label']],[['tags','',idx],['options','',index,'value']]]]]]]}}" bindtap="__e">{{''+t.value+''}}</view></block></view></view></block></view><view style="margin-top:2rem;"></view><view class="shopcart-button"><van-button class="left" vue-id="{{('3db16520-24')+','+('3db16520-21')}}" disabled="{{defaultSku.price?false:true}}" type="danger" data-event-opts="{{[['^click',[['shopcartAdd']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">加入购物车</van-button><van-button class="right" vue-id="{{('3db16520-25')+','+('3db16520-21')}}" disabled="{{defaultSku.price?false:true}}" type="danger" data-event-opts="{{[['^click',[['buynow']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">立即购买</van-button></view></view></van-action-sheet><van-action-sheet vue-id="3db16520-26" show="{{showMain}}" description="选择产品类别" data-event-opts="{{[['^clickOverlay',[['cancelMain']]]]}}" data-com-type="wx" bind:clickOverlay="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="mainContent"><block wx:for="{{tags}}" wx:for-item="tag" wx:for-index="idx" wx:key="idx"><view><view class="tagName">{{''+tag.label+''}}</view><view class="tagMenu"><block wx:for="{{tag.options}}" wx:for-item="t" wx:for-index="index" wx:key="index"><view class="{{['defaultSelect',(selectedTag[tag.label]===t.value?true:false)?'prop-selected':'']}}" type="danger" data-event-opts="{{[['tap',[['selectTag',['$0','$1'],[[['tags','',idx,'label']],[['tags','',idx],['options','',index,'value']]]]]]]}}" bindtap="__e">{{''+t.value+''}}</view></block></view></view></block><van-button class="submitBtn" vue-id="{{('3db16520-27')+','+('3db16520-26')}}" disabled="{{defaultSku.skuName?false:true}}" type="danger" block="{{true}}" data-event-opts="{{[['^click',[['cancelMain']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</van-button></view></van-action-sheet><van-goods-action vue-id="3db16520-28" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-goods-action-icon vue-id="{{('3db16520-29')+','+('3db16520-28')}}" icon="cart-o" text="购物车" data-event-opts="{{[['^click',[['onClickShop']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-goods-action-icon><van-goods-action-icon vue-id="{{('3db16520-30')+','+('3db16520-28')}}" icon="shop-o" text="店铺" bind:click="onClickIcon" data-com-type="wx" bind:__l="__l"></van-goods-action-icon><van-goods-action-button vue-id="{{('3db16520-31')+','+('3db16520-28')}}" text="立即购买" data-event-opts="{{[['^click',[['onClickButton']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-goods-action-button></van-goods-action></view>