detail.wxml 7.6 KB

1
  1. <view><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-divider vue-id="3db16520-1" hairline="{{true}}" data-com-type="wx" bind:__l="__l"></van-divider><view class="list"><van-row class="product_name" vue-id="3db16520-2" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-col vue-id="{{('3db16520-3')+','+('3db16520-2')}}" span="18" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{''+productList.prodName+''}}</van-col><van-col vue-id="{{('3db16520-4')+','+('3db16520-2')}}" span="6" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!isCollection}}"><van-icon vue-id="{{('3db16520-5')+','+('3db16520-4')}}" name="like-o" size="24" data-event-opts="{{[['^click',[['addCollect']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-icon></block><block wx:if="{{isCollection}}"><van-icon vue-id="{{('3db16520-6')+','+('3db16520-4')}}" name="like" size="24" data-event-opts="{{[['^click',[['addCollect']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-icon></block><text class="content_word">收藏</text></van-col></van-row><van-row class="product_desc" vue-id="3db16520-7" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-col vue-id="{{('3db16520-8')+','+('3db16520-7')}}" span="20" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{''+productList.brief+''}}</van-col><van-col vue-id="{{('3db16520-9')+','+('3db16520-7')}}" span="4" data-com-type="wx" bind:__l="__l"></van-col></van-row><view class="price">¥<text>{{productList.price}}</text></view></view><van-divider vue-id="3db16520-10" hairline="{{true}}" customStyle="border:12px solid #eee;" data-com-type="wx" bind:__l="__l"></van-divider><view data-event-opts="{{[['tap',[['showPart2',['$event']]]]]}}" class="choose" bindtap="__e"><view class="left">已选:<text>{{defaultStr.skuName}}</text></view><view class="right">...</view></view><van-divider vue-id="3db16520-11" hairline="{{true}}" customStyle="border:12px solid #eee;" data-com-type="wx" bind:__l="__l"></van-divider><van-cell-group vue-id="3db16520-12" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-cell vue-id="{{('3db16520-13')+','+('3db16520-12')}}" value="共0条" is-link="{{true}}" border="{{true}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['title']}}"><view slot="title">评价:<text>{{"好评:"+common.positiveRating+"%"}}</text></view></van-cell></van-cell-group><view class="other"><view><van-tag vue-id="3db16520-14" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"全部"+common.number}}</van-tag></view><view><van-tag vue-id="3db16520-15" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"好评"+common.praiseNumber}}</van-tag></view><view><van-tag vue-id="3db16520-16" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"中评"+common.secondaryNumber}}</van-tag></view><view><van-tag vue-id="3db16520-17" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"差评"+common.negativeNumber}}</van-tag></view><view><van-tag vue-id="3db16520-18" type="warning" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}">{{"有图"+common.picNumber}}</van-tag></view></view><view><rich-text nodes="{{$root.m0}}"></rich-text></view><van-action-sheet vue-id="3db16520-19" show="{{showPart1}}" data-event-opts="{{[['^clickOverlay',[['cancelPart']]]]}}" data-com-type="wx" bind:clickOverlay="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="shop_main"><van-card vue-id="{{('3db16520-20')+','+('3db16520-19')}}" num="{{comfirm.orderItem.prodCount}}" price="{{defaultStr.price?defaultStr.price:productList.price}}" desc="{{productList.brief}}" title="{{defaultStr.skuName?defaultStr.skuName:productList.prodName}}" thumb="{{defaultStr.pic?defaultStr.pic:productList.pic}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['footer']}}"><view slot="footer"><van-stepper vue-id="{{('3db16520-21')+','+('3db16520-20')}}" value="{{comfirm.orderItem.prodCount}}" data-event-opts="{{[['^change',[['onChange']]]]}}" data-com-type="wx" bind:change="__e" bind:__l="__l"></van-stepper></view></van-card><block wx:if="{{tags[0].label!=''}}"><view class="choice"><block wx:for="{{tags}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="main"><view class="news">{{''+item.label+''}}</view><view class="select"><block wx:for="{{item.options}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['selectTag',['$0','$1'],[[['tags','',index,'label']],[['tags','',index],['options','',index1,'value']]]]]]]}}" class="{{['word',(selectedTag[item.label]===item1.value?true:false)?'prop_select':'']}}" bindtap="__e">{{''+item1.value+''}}</view></block></view></view></block></view></block><view class="shopcart-button"><van-button class="left" vue-id="{{('3db16520-22')+','+('3db16520-19')}}" disabled="{{defaultStr.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-23')+','+('3db16520-19')}}" disabled="{{defaultStr.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-24" show="{{showMain}}" description="选择产品类别" data-event-opts="{{[['^clickOverlay',[['cancelMain']]]]}}" data-com-type="wx" bind:clickOverlay="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="choice"><block wx:for="{{tags}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{tags[0].label!=''}}"><view class="main"><view class="news">{{''+item.label+''}}</view><view class="select"><block wx:for="{{item.options}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['selectTag',['$0','$1'],[[['tags','',index,'label']],[['tags','',index],['options','',index1,'value']]]]]]]}}" class="{{['word',(selectedTag[item.label]===item1.value?true:false)?'prop_select':'']}}" bindtap="__e">{{''+item1.value+''}}</view></block></view></view></block></block><van-button class="submitBtn" vue-id="{{('3db16520-25')+','+('3db16520-24')}}" disabled="{{defaultStr.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-26" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-goods-action-icon vue-id="{{('3db16520-27')+','+('3db16520-26')}}" icon="cart-o" text="购物车" data-event-opts="{{[['^click',[['onClickIcon']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-goods-action-icon><van-goods-action-icon vue-id="{{('3db16520-28')+','+('3db16520-26')}}" icon="shop-o" text="店铺" data-com-type="wx" bind:__l="__l"></van-goods-action-icon><van-goods-action-button vue-id="{{('3db16520-29')+','+('3db16520-26')}}" text="立即购买" data-event-opts="{{[['^click',[['onClickBtn']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l"></van-goods-action-button></van-goods-action></view>