view.wxml 4.0 KB

1
  1. <view class="data-v-c4037812"><navbar vue-id="21cabbef-1" scroll="{{scrollNum}}" iSimmersive="{{true}}" title="商品详情" class="data-v-c4037812" bind:__l="__l"></navbar><mescroll-body vue-id="21cabbef-2" up="{{upOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]]]}}" bind:init="__e" bind:down="__e" class="data-v-c4037812 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!isLoading}}"><view class="data-v-c4037812"><view id="swiper-inner-box" class="data-v-c4037812"><swiper class="swiper-box data-v-c4037812" circular="{{true}}" current="{{current}}" data-event-opts="{{[['change',[['onSwiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{images}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{images}}"><swiper-item class="have-none data-v-c4037812"><image src="{{item}}" mode="scaleToFill" class="data-v-c4037812"></image></swiper-item></block></block></swiper><block wx:if="{{images}}"><view class="custom-indicator data-v-c4037812">{{''+(current+1)+" / "+$root.g0+''}}</view></block></view><view class="goods-price data-v-c4037812"><view class="price data-v-c4037812"><view class="data-v-c4037812">¥<text class="data-v-c4037812">{{products.sell_price||''}}</text></view><view class="data-v-c4037812">原价格<text class="data-v-c4037812">{{"¥"+(products.market_price||'')}}</text></view></view></view><view class="goods-info clear data-v-c4037812"><view class="title data-v-c4037812"><view class="goods-name data-v-c4037812">{{''+(products.title||'')+''}}</view><block wx:if="{{$root.g1}}"><view class="goods-name data-v-c4037812" style="{{'font-size:29rpx;'+('color:'+($root.g2?products.briefly_color:'#333')+';')}}">{{''+(products.briefly||'')+''}}</view></block></view><view class="goods-info-box data-v-c4037812"><text class="data-v-c4037812">{{"库存: "+(products.store_nums||'')+"件"}}</text><text class="data-v-c4037812">{{"销量: "+(products.sale||'0')+"件"}}</text></view></view><view class="goods-content clear data-v-c4037812"><view class="clear data-v-c4037812"><rich-text nodes="{{products.content}}"></rich-text></view></view></view></block></mescroll-body><sku-action vue-id="21cabbef-3" goods="{{products}}" attribute="{{attribute}}" item="{{item}}" goods-info="{{selectedGoodsInfo}}" fields="{{fields}}" value="{{isSkuStatus}}" data-event-opts="{{[['^updateGoodsInfo',[['__set_sync',['$0','selectedGoodsInfo','$event'],['']]]],['^updateGoodsInfo',[['__set_sync',['$0','selectedGoodsInfo','$event'],['']]]],['^sku',[['updateSku']]],['^input',[['__set_model',['','isSkuStatus','$event',[]]]]]]}}" bind:updateGoodsInfo="__e" bind:sku="__e" bind:input="__e" class="data-v-c4037812" bind:__l="__l"></sku-action><view class="goods-action data-v-c4037812"><goods-action-icon vue-id="21cabbef-4" icon="online" text="客服" data-event-opts="{{[['^click',[['e0']]]]}}" bind:click="__e" class="data-v-c4037812" bind:__l="__l"></goods-action-icon><goods-action-icon vue-id="21cabbef-5" icon="cart" text="购物车" count="{{cartCount}}" data-event-opts="{{[['^click',[['e1']]]]}}" bind:click="__e" class="data-v-c4037812" bind:__l="__l"></goods-action-icon><goods-action-icon vue-id="21cabbef-6" icon="collect" text="收藏" active="{{collect}}" data-event-opts="{{[['^click',[['favorite']]]]}}" bind:click="__e" class="data-v-c4037812" bind:__l="__l"></goods-action-icon><view data-event-opts="{{[['tap',[['onAddCartClicked',['$event']]]]]}}" class="goods-action-button button-cart data-v-c4037812" bindtap="__e">加入购物车</view><view data-event-opts="{{[['tap',[['onBuyClicked',['$event']]]]]}}" class="goods-action-button button-buy data-v-c4037812" bindtap="__e">立即购买</view></view><block wx:if="{{isLoading}}"><loading vue-id="21cabbef-7" color="rgba(255,255,255,1)" layer="{{true}}" class="data-v-c4037812" bind:__l="__l"></loading></block><authorize bind:input="__e" vue-id="21cabbef-8" value="{{isAuthShow}}" data-event-opts="{{[['^input',[['__set_model',['','isAuthShow','$event',[]]]]]]}}" class="data-v-c4037812" bind:__l="__l"></authorize></view>