detail.wxml 7.3 KB

1
  1. <view class="detail data-v-3e159eb4"><view class="part1 data-v-3e159eb4"><view class="uni-margin-wrap data-v-3e159eb4"><swiper class="swiper data-v-3e159eb4" circular="{{true}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item class="data-v-3e159eb4"><image class="pictures data-v-3e159eb4" src="{{item}}" mode></image></swiper-item></block></swiper></view><van-divider vue-id="3db16520-1" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l"></van-divider><view class="main data-v-3e159eb4"><view class="left data-v-3e159eb4"><view class="title data-v-3e159eb4">{{''+prodList.prodName+''}}</view><view class="discribe data-v-3e159eb4">{{''+prodList.brief+''}}</view><view class="price data-v-3e159eb4">¥<text class="data-v-3e159eb4">{{prodList.price}}</text></view></view><view class="right data-v-3e159eb4"><block wx:if="{{isCollect}}"><van-icon vue-id="3db16520-2" name="like-o" size="24" data-event-opts="{{[['^click',[['addCollect']]]]}}" data-com-type="wx" bind:click="__e" class="data-v-3e159eb4" bind:__l="__l"></van-icon></block><block wx:if="{{!isCollect}}"><van-icon vue-id="3db16520-3" name="like" size="24" data-event-opts="{{[['^click',[['addCollect']]]]}}" data-com-type="wx" bind:click="__e" class="data-v-3e159eb4" bind:__l="__l"></van-icon></block><text class="data-v-3e159eb4">收藏</text></view></view></view><van-divider vue-id="3db16520-4" hairline="{{true}}" customStyle="border:12px solid #eee;" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l"></van-divider><view data-event-opts="{{[['tap',[['showDialog',['$event']]]]]}}" class="choose data-v-3e159eb4" bindtap="__e"><view class="left data-v-3e159eb4">已选<text class="data-v-3e159eb4">{{defaultStr.skuName}}</text></view><view class="right data-v-3e159eb4">...</view></view><van-divider vue-id="3db16520-5" hairline="{{true}}" customStyle="border:12px solid #eee;" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l"></van-divider><van-cell vue-id="3db16520-6" is-link="{{true}}" value="共0条" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['title']}}"><view class="van-cell-text data-v-3e159eb4" slot="title">{{"评价:好评"+evaluate.positiveRating+"%"}}</view></van-cell><view class="evaluate data-v-3e159eb4"><van-tag vue-id="3db16520-7" type="warning" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}">{{"全部:"+evaluate.number}}</van-tag><van-tag vue-id="3db16520-8" type="warning" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}">{{"好评:"+evaluate.praiseNumber}}</van-tag><van-tag vue-id="3db16520-9" type="warning" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}">{{"中评:"+evaluate.secondaryNumber}}</van-tag><van-tag vue-id="3db16520-10" type="warning" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}">{{"差评:"+evaluate.negativeNumber}}</van-tag><van-tag vue-id="3db16520-11" type="warning" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}">{{"有图:"+evaluate.picNumber}}</van-tag></view><view class="data-v-3e159eb4"><rich-text nodes="{{$root.m0}}"></rich-text></view><van-goods-action vue-id="3db16520-12" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}"><van-goods-action-icon vue-id="{{('3db16520-13')+','+('3db16520-12')}}" icon="cart-o" text="购物车" data-event-opts="{{[['^click',[['goToShop']]]]}}" data-com-type="wx" bind:click="__e" class="data-v-3e159eb4" bind:__l="__l"></van-goods-action-icon><van-goods-action-icon vue-id="{{('3db16520-14')+','+('3db16520-12')}}" icon="shop-o" text="店铺" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l"></van-goods-action-icon><van-goods-action-button vue-id="{{('3db16520-15')+','+('3db16520-12')}}" text="立即购买" data-event-opts="{{[['^click',[['onClickButton']]]]}}" data-com-type="wx" bind:click="__e" class="data-v-3e159eb4" bind:__l="__l"></van-goods-action-button></van-goods-action><van-action-sheet vue-id="3db16520-16" show="{{show}}" title="选择产品类别" data-event-opts="{{[['^clickOverlay',[['submitBtn']]],['^close',[['submitBtn']]]]}}" data-com-type="wx" bind:clickOverlay="__e" bind:close="__e" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{tagList[0].label!=''}}"><view class="choise data-v-3e159eb4"><block wx:for="{{tagList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="box data-v-3e159eb4"><view class="tit data-v-3e159eb4">{{''+item.label+''}}</view><view class="main data-v-3e159eb4"><block wx:for="{{item.option}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><text data-event-opts="{{[['tap',[['selectTag1',['$0','$1'],[[['tagList','',index,'label']],[['tagList','',index],['option','',index1]]]]]]]}}" class="{{['size','data-v-3e159eb4',(selectTag[item.label]===item1?true:false)?'selected':'']}}" bindtap="__e">{{''+item1+''}}</text></block></view></view></block></view></block><van-button class="btn data-v-3e159eb4" vue-id="{{('3db16520-17')+','+('3db16520-16')}}" disabled="{{defaultStr.skuName?false:true}}" type="danger" square="{{true}}" data-event-opts="{{[['^click',[['submitBtn']]]]}}" data-com-type="wx" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">确定</van-button></van-action-sheet><van-action-sheet vue-id="3db16520-18" show="{{isshow}}" data-event-opts="{{[['^clickOverlay',[['cancelShow']]]]}}" data-com-type="wx" bind:clickOverlay="__e" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['default']}}"><view class="cardMain data-v-3e159eb4"><van-card vue-id="{{('3db16520-19')+','+('3db16520-18')}}" num="{{confirm.orderItem.prodCount}}" price="{{defaultStr.price?defaultStr.price:prodList.price}}" desc="{{prodList.brief}}" title="{{defaultStr.skuName?defaultStr.skuName:prodList.prodName}}" thumb="{{defaultStr.pic?defaultStr.pic:prodList.pic}}" data-com-type="wx" class="data-v-3e159eb4" bind:__l="__l" vue-slots="{{['footer']}}"><view slot="footer" class="data-v-3e159eb4"><van-stepper vue-id="{{('3db16520-20')+','+('3db16520-19')}}" value="{{confirm.orderItem.prodCount}}" data-event-opts="{{[['^change',[['onChange']]]]}}" data-com-type="wx" bind:change="__e" class="data-v-3e159eb4" bind:__l="__l"></van-stepper></view></van-card></view><block wx:if="{{tagList[0].label!=''}}"><view class="choise news data-v-3e159eb4"><block wx:for="{{tagList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="box data-v-3e159eb4"><view class="tit data-v-3e159eb4">{{''+item.label+''}}</view><view class="newsMain data-v-3e159eb4"><block wx:for="{{item.option}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><text data-event-opts="{{[['tap',[['selectTag1',['$0','$1'],[[['tagList','',index,'label']],[['tagList','',index],['option','',index1]]]]]]]}}" class="{{['size','data-v-3e159eb4',(selectTag[item.label]===item1?true:false)?'selected':'']}}" bindtap="__e">{{''+item1+''}}</text></block></view></view></block></view></block><view class="footerBtn data-v-3e159eb4"><view data-event-opts="{{[['tap',[['addShop',['$event']]]]]}}" class="btn1 data-v-3e159eb4" bindtap="__e">加入购物车</view><view class="btn2 data-v-3e159eb4">立即购买</view></view></van-action-sheet></view>