mall-laonong/unpackage/dist/dev/mp-weixin/pagesB/shop-detail/shop-detail.wxml

1 line
3.1 KiB
Plaintext
Raw Normal View History

2022-07-31 02:14:22 +00:00
<view class="pad-x170"><block wx:if="{{scroolTop}}"><view class="scrool-top background-white" style="{{'height:'+(statusHeight+50+'px')+';'}}"></view></block><view data-event-opts="{{[['tap',[['backEv',['$event']]]]]}}" class="back-btn flex" style="{{'top:'+(statusHeight+'px')+';'}}" bindtap="__e"><view class="icon icon-return _i" style="{{'font-size:38rpx;'+('color:'+('#000000')+';')}}"></view></view><view class="shop-top-img"><image src="{{shopDetail.images[0]}}" mode="widthFix"></image></view><view class="shop-content pad-all20 background-white"><view class="shop-title font40 mar-x30">{{shopDetail.name}}</view><view class="shop-body"><view class="pull-title"><view class="txt font32 pad-sx10">详情介绍</view><view class="line background-orange"></view></view><view class="body-txt font30 color-48"><rich-text nodes="{{shopDetail.content}}"></rich-text></view></view></view><block wx:if="{{showSku}}"><view class="pull-bg"></view></block><block wx:if="{{showSku}}"><view class="shop-specs background-white border-box"><view class="specs-top flex"><view class="title font30">规格选择</view><view data-event-opts="{{[['tap',[['closeSpecs',['$event']]]]]}}" class="close" bindtap="__e"><image src="/static/icon/icon-close.png" mode="widthFix"></image></view></view><scroll-view class="specs-list" scroll-y="true"><block wx:for="{{shopSku}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeSpecs',[index]]]]]}}" class="{{['specs-item','border-box','radius20','mar-s20','pad-zy20','font36','flex',skuIndex==index?'active':'']}}" bindtap="__e"><text>{{item.title}}</text><text>{{"¥"+(vip_level>0?item.price:item.original_price)}}</text></view></block></scroll-view><view class="specs-btns flex"><view data-event-opts="{{[['tap',[['buyNow',['$event']]]]]}}" class="btn radius30 font36 color-ff background-orange flex" bindtap="__e">立即购买</view><view data-event-opts="{{[['tap',[['joinCart',['$event']]]]]}}" class="btn radius30 font36 color-ff background-grey flex" bindtap="__e">加入购物车</view></view></view></block><view class="shop-foot border-box background-white pad-all20"><view class="shop-footer background-grey pad-sx15 radius30 flex"><view data-event-opts="{{[['tap',[['goHome',['$event']]]]]}}" class="shop-nav font24 color-ff flex" bindtap="__e"><image src="/static/icon/icon-home.png" mode="widthFix"></image><text>首页</text></view><view data-event-opts="{{[['tap',[['goCart',['$event']]]]]}}" class="shop-cart background-white radius100 flex" bindtap="__e"><image src="/static/icon/icon-cart.png" mode="widthFix"></image><block wx:if="{{cartNum*1>=0&&cartNum*1<=99}}"><view class="shop-num radius100 font24 color-ff flex"><text>{{cartNum}}</text></view></block><block wx:if="{{cartNum*1>99}}"><view class="shop-num radius100 font24 color-ff flex"><text>99</text></view></block></view><view data-event-opts="{{[['tap',[['openSpecs',['$event']]]]]}}" class="shop-btn background-orange font36 color-48 radius30 flex" bindtap="__e">立即购买</view></view></view><share-coupon vue-id="b27c4170-1" spuId="{{shopDetail.id}}" bind:__l="__l"></share-coupon></view>