<view><view class="banner"><swiper class="swiper-box"><block wx:for="{{details.images}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><view class="swiper-item"><image src="{{item}}" mode="aspectFill"></image></view></swiper-item></block></swiper></view><view class="text-details fsz36"><view>{{details.name}}</view><view class="qishu fsz28"><view class="fsz36 tprice">{{details.point+"积分+"+details.price+"元"}}</view><view style="font-size:12px;position:absolute;right:25px;">{{"库存:"+details.stock}}</view></view></view><view class="fr" style="height:40px;width:100%;"><view style="float:right;"><uni-number-box vue-id="5304c3d2-1" min="1" max="99" background="#eee" value="{{numbers}}" data-event-opts="{{[['^change',[['changeValue']]],['^input',[['__set_model',['','numbers','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-number-box></view></view><view class="product"><view class="mainwidth2"><uni-segmented-control vue-id="5304c3d2-2" current="{{tab}}" values="{{items}}" styleType="text" activeColor="#f50" data-event-opts="{{[['^clickItem',[['onClickItem']]]]}}" bind:clickItem="__e" bind:__l="__l"></uni-segmented-control><view class="content fsz30"><rich-text nodes="{{strings}}"></rich-text></view></view></view><view class="button-bottom"><block wx:if="{{user_point<details.point}}"><button class="btn btn-primary">积分不足</button></block><block wx:else><block wx:if="{{details.stock==0}}"><button class="btn btn-primary">库存不足</button></block><block wx:else><button data-event-opts="{{[['tap',[['exchange']]]]}}" class="btn btn-success" bindtap="__e">兑换</button></block></block></view></view>