|
|
|
@ -1,12 +1,15 @@ |
|
|
|
<!--pages/info/hotelProductInfo/index.wxml--> |
|
|
|
<wxs src="../../../utils/filter.wxs" module="tool" /> |
|
|
|
<title title="产品详情"></title> |
|
|
|
<view class="iconfont icon-fenxiang" bindtap="share"></view> |
|
|
|
<view class="share-icon" bindtap="share"></view> |
|
|
|
<view class="swiper-bottom" wx:if="{{info}}"> |
|
|
|
<view class="swiper-bottom-item active">{{swiperCurrent+1}}/{{swiperRange.sku.max+1}}</view> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.video.min&&swiperCurrent<=swiperRange.video.max)?'active':''}}" wx:if="{{info.videourl}}">视频</view> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.picture.min&&swiperCurrent<=swiperRange.picture.max)?'active':''}}">图片</view> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.sku.min&&swiperCurrent<=swiperRange.sku.max)?'active':''}}">款式</view> |
|
|
|
<view class="swiper-bottom-item bottom-number active">{{swiperCurrent+1}}/{{swiperRange.sku.max+1}}</view> |
|
|
|
<view class="swuper-bottom-bg"> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.video.min&&swiperCurrent<=swiperRange.video.max)?'active':''}}" wx:if="{{info.videourl}}">视频</view> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.picture.min&&swiperCurrent<=swiperRange.picture.max)?'active':''}}">图片</view> |
|
|
|
<view class="swiper-bottom-item {{(swiperCurrent>=swiperRange.sku.min&&swiperCurrent<=swiperRange.sku.max)?'active':''}}">款式</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
@ -17,7 +20,7 @@ |
|
|
|
<swiper-item> |
|
|
|
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}" |
|
|
|
show-mute-btn="{{true}}" show-background-playback-button="{{false}}" |
|
|
|
show-progress="{{false}}"></video> |
|
|
|
show-progress="{{true}}" ></video> |
|
|
|
<!-- <image src="{{info.headimg}}" mode="aspectFill"></image> --> |
|
|
|
</swiper-item> |
|
|
|
</block> |
|
|
|
@ -51,19 +54,45 @@ |
|
|
|
<view style="padding: 20rpx 20rpx 20rpx 26rpx;"> |
|
|
|
<view class="select-img"> |
|
|
|
<image class="{{(swiperCurrent>=swiperRange.picture.min&&swiperCurrent<=swiperRange.picture.max)?'active':''}}" |
|
|
|
style="flex-shrink: 0;" src="{{info.headimg}}" bind:tap="changeSwiperCurrent" data-index="{{swiperRange.picture.min}}"></image> |
|
|
|
style="flex-shrink: 0;" src="{{info.headimg}}" bind:tap="changeSwiperCurrent" data-index="{{0}}"></image> |
|
|
|
<text style="flex-shrink: 0;" class="select-img-text">款式选择</text> |
|
|
|
<view class="other-imgs no-scrollbar"> |
|
|
|
<image wx:for="{{info.sku}}" wx:key="index" bind:tap="changeSwiperCurrent" data-index="{{swiperRange.picture.max+1+index}}" |
|
|
|
class="{{item.flag!='on'?'no-stock':''}} {{swiperCurrent==swiperRange.picture.max+1+index?'active':''}}" |
|
|
|
class="{{swiperCurrent==swiperRange.picture.max+1+index?'active':''}}" |
|
|
|
src="{{item.headimg}}"></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="select-sku">></view> |
|
|
|
<view class="select-sku" bind:tap="showOrder">></view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="title textOver2">{{info.title}}</view> |
|
|
|
<!-- <view class="hotel-custom" style="padding:26rpx 0"> |
|
|
|
<view class="tags-box textOver"> |
|
|
|
<view class="tag textOver" wx:for="{{info.display_tags}}">{{item}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="other-info-box" wx:if="{{info.is_package!=1}}"> |
|
|
|
<view class="other-info-item" style="align-items: flex-start;"bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{1}}"> |
|
|
|
<image style="margin-top: 6rpx;" src="https://static.ticket.sz-trip.com/uploads/20250826/c520e7e453443bfe19e27ea0e44e6b22.png"></image> |
|
|
|
<view class="other-content"> |
|
|
|
<view style="color: #0B898E;">预计48小时内发货</view> |
|
|
|
<view style="padding-top: 10rpx;">江苏苏州 | 快递:免运费</view> |
|
|
|
</view> |
|
|
|
<view style="margin-top: 6rpx;" class="view-arrow">></view> |
|
|
|
</view> |
|
|
|
<view class="other-info-item" bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{2}}"> |
|
|
|
<image src="https://static.ticket.sz-trip.com/uploads/20250826/30fc41c747c0126edd396ef92ff7ef62.png"></image> |
|
|
|
<view class="other-content">极速退款 | 未使用可退 | 客服售后</view> |
|
|
|
<view class="view-arrow">></view> |
|
|
|
</view> |
|
|
|
<view class="other-info-item" bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{3}}"> |
|
|
|
<image src="https://static.ticket.sz-trip.com/uploads/20250826/049b31024ee73e76f9612e8d8141bd66.png"></image> |
|
|
|
<view class="other-content">名称 鸡头米 | 产地 苏州 | 类型 机剥 | 重量 500g</view> |
|
|
|
<view class="view-arrow">></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="hotel-custom" style="padding:26rpx 0" wx:if="{{info.is_package===1}}"> |
|
|
|
<view class="hotel-custom-detail" wx:for="{{info.product_data}}" wx:key="item"> |
|
|
|
<view class="tip-info"> |
|
|
|
<view class="tip">{{index}}</view> |
|
|
|
@ -79,10 +108,6 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="tags-box textOver"> |
|
|
|
<view class="tag textOver" wx:for="{{info.display_tags}}">{{item}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -314,4 +339,38 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<code showModel="{{showQrCode}}" qrcode = "{{wxqrcode}}"> |
|
|
|
</code> |
|
|
|
</code> |
|
|
|
|
|
|
|
<view class="mask" wx:if="{{otherInfoShow>0}}"> |
|
|
|
<view class="mask-bg" bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{0}}"></view> |
|
|
|
<view class="mask-content"> |
|
|
|
<view class="iconfont icon-close" bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{0}}"></view> |
|
|
|
<view class="other-info-content"> |
|
|
|
<view class="title">{{otherInfoShow==3?"产品参数":otherInfoShow==2?"服务说明":"发货说明"}}</view> |
|
|
|
<view wx:if="{{otherInfoShow==1}}"> |
|
|
|
<view class="key-title">该商品预计13小时内发货</view> |
|
|
|
<view class="key-content">订单支付成功后48小时内发货,若未在48小时内发货消费者 可联系客服咨询催促发货。</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view wx:if="{{otherInfoShow==3}}"> |
|
|
|
<view class="prod-param"> |
|
|
|
<view class="prod-key">名称</view> |
|
|
|
<view class="prod-content">鸡头米</view> |
|
|
|
</view> |
|
|
|
<view class="prod-param"> |
|
|
|
<view class="prod-key">购买须知</view> |
|
|
|
<view class="prod-content">购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知购买须知</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="height:138rpx"></view> |
|
|
|
<view class="btn-box"> |
|
|
|
<view class="mask-btn" bindtap="changeSimpleVal" data-keyname="otherInfoShow" data-val="{{0}}">确定</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |