You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
10 KiB
1 lines
10 KiB
<view class="wanl-goods"><view class="swiper-box" id="swiper"><swiper circular="true" autoplay="true" data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l0}}" wx:for-item="swiper" wx:for-index="index" wx:key="index"><swiper-item><image src="{{swiper.g0}}" mode="aspectFill"></image></swiper-item></block></swiper><view class="indicator">{{currentSwiper+1+"/"+$root.g1}}</view></view><view class="bg-white"><block wx:if="{{goodsData.activity_type==='seckill'}}"><view class="price-rush bg-gradual-red margin-bottom-sm"><view class="price align-center padding-lr-bj"><view><view class="text-price text-white text-xxl text-bold margin-right-xs">0<text class="text-lg">.00</text><text class="margin-left-sm text-sm">已抢<text class="amount">0</text>件</text></view><view class="text-sm text-white text-price"><text class="text-dec">0.00</text></view></view><view><view class="text-xs margin-bottom-xs">距结束还剩:</view><wanl-countdown vue-id="5b33e719-1" time="{{1}}" height="{{40}}" width="{{40}}" size="{{28}}" colonsize="{{32}}" color="#ec008c" bcolor="#ffffff" bgcolor="#ffffff" coloncolor="#ffffff" bind:__l="__l"></wanl-countdown></view></view></view></block><block wx:else><view class="price margin-bottom-sm padding-lr-bj padding-top-bj align-start"><view><view class="text-price wanl-orange text-xxl margin-right-xs">{{''+$root.m0+''}}</view><view class="text-sm wanl-gray text-dec">市场价<text class="text-price margin-left-xs ">{{goodsData.market_price||0.0}}</text></view></view><block wx:if="{{goodsData.follow}}"><view data-event-opts="{{[['tap',[['follow',['$event']]]]]}}" class="follow wanl-black" bindtap="__e"><text class="wlIcon-yiguanzhu1 text-red"></text><text class="text-xs">取关</text></view></block><view data-event-opts="{{[['tap',[['showModal',['share']]]]]}}" class="share" style="margin-top:20rpx;" bindtap="__e"><view class="button wanl-gray-light margin-bottom"><text class="wlIcon-fenxiangcopy margin-right-xs"></text><text class="text-sm">分享</text></view></view></view></block><view class="title padding-lr-bj padding-bottom-bj"><view class="name wanl-black text-lg text-cut-2">{{''+(goodsData.title||'加载中...')+''}}</view></view></view><view class="choice margin-bottom-bj padding-bj text-sm bg-white"><view data-event-opts="{{[['tap',[['showModal',['option']]]]]}}" class="commodity margin-bottom-bj" bindtap="__e"><view class="opt"><view class="title wanl-gray">选择</view><view class="option"><view class="selected"><block wx:if="{{canCount}}"><view>选择<block wx:for="{{goodsData.spu}}" wx:for-item="item" wx:for-index="index" wx:key="id"><text class="margin-lr-xs">{{item.name}}</text></block></view></block><block wx:else><view>已选<text>{{$root.g2}}</text></view></block></view><view class="option-list"><block wx:for="{{goodsData.spu}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view><block wx:for="{{item.item}}" wx:for-item="tag" wx:for-index="__i0__" wx:key="name"><block wx:if="{{index==0}}"><text class="cu-tag">{{tag.name}}</text></block></block><block wx:if="{{index==0}}"><text class="cu-tag">更多规格可选</text></block></view></block></view></view></view><view class="text-sm wanl-gray"><text class="wlIcon-fanhui2"></text></view></view></view><wanl-divider vue-id="5b33e719-2" width="60%" bind:__l="__l" vue-slots="{{['default']}}">产品详情</wanl-divider><view class="wanl-goods-content bg-white" id="details"><rich-text nodes="{{goodsData.content}}"></rich-text></view><uni-load-more vue-id="5b33e719-3" status="{{status}}" content-text="{{contentText}}" bind:__l="__l"></uni-load-more><view class="safeAreaBottom"></view><view data-event-opts="{{[['touchmove',[['moveHandle',['$event']]]]]}}" class="WANL-MODAL text-sm" catchtouchmove="__e"><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal','top-modal',modalName=='menu'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="wanl-modal-menu cu-dialog" catchtap="__e"><wanl-direct bind:change="__e" vue-id="5b33e719-4" data-event-opts="{{[['^change',[['hideModal']]]]}}" bind:__l="__l"></wanl-direct></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal','bottom-modal',modalName=='promotion'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog" catchtap="__e"><view class="wanl-modal"><view class="head padding-bj"><view class="content"><view class="text-lg">促销</view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="close wlIcon-31guanbi" bindtap="__e"></view></view></view></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal','bottom-modal',modalName=='attribute'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog" catchtap="__e"><view class="wanl-modal"><view class="head padding-bj"><view class="content"><view class="text-lg">产品参数</view></view></view><scroll-view class="scroll-y" scroll-y="true"><view class="table solid-bottom"><view class="name wanl-gray">品牌</view><view class="value">{{goodsData.brand.name}}</view></view><block wx:for="{{goodsData.category_attribute}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="table solid-bottom"><view class="name wanl-gray">{{index}}</view><view class="value">{{item}}</view></view></block></scroll-view><view class="foot padding-lr-bj"><button data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="cu-btn bg-gradual-orange round text-bold complete" bindtap="__e">完成</button></view></view></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal','bottom-modal',modalName=='share'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog" catchtap="__e"><wanl-share vue-id="5b33e719-5" scrollAnimation="{{scrollAnimation}}" shareTitle="{{goodsData.title}}" shareText="{{goodsData.description}}" image="{{$root.g3}}" href="{{common.appConfig.domain+'/pages/product/goods?fenxiangid='+this.user.id+'&id='+goodsData.id+'&QRtype=goods'}}" isReport="{{true}}" data-event-opts="{{[['^change',[['wanlShare']]]]}}" bind:change="__e" bind:__l="__l"></wanl-share></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal','bottom-modal',modalName=='option'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog" catchtap="__e"><view class="option wanl-modal"><view class="head text-left padding-bj solid-bottom"><view class="cu-avatar radius-bock margin-right" style="{{'background-image:'+('url('+$root.g4+')')+';'}}"></view><view><view class="text-price wanl-orange text-xl margin-bottom-xs">{{''+$root.m1+''}}</view><block wx:if="{{$root.g5}}"><view class="wanl-gray margin-bottom-xs">库存<text class="margin-lr-xs">{{selectshop.stock||0}}</text>件</view></block><view class="text-sm"><block wx:if="{{$root.g6}}"><view>{{"已选择:"+$root.g7}}</view></block><block wx:else><view>请选择:<block wx:for="{{goodsData.spu}}" wx:for-item="item" wx:for-index="index" wx:key="id"><text class="wanl-gray-light"><block wx:if="{{index!=0}}"><block>-</block></block>{{''+item.name+''}}</text></block></view></block></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="close wlIcon-31guanbi" bindtap="__e"></view></view><scroll-view style="{{'max-height:'+(wanlsys.screenHeight/2+'px')+';'}}" scroll-y="true"><block wx:for="{{goodsData.spu}}" wx:for-item="value" wx:for-index="spukey" wx:key="id"><view class="opt text-left padding-bj solid-bottom"><view class="text-df">{{value.name}}</view><view class="tag"><block wx:for="{{value.item}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['skuClick',['$0',spukey,'$event',index],[[['goodsData.spu','id',value.id],['item','',index]]]]]]]}}" class="{{['cu-tag','text-sm',item.ishow?'':'noactive',subIndex[spukey]==index?'active':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view></view></block><view class="number padding-bj"><view class="text-df">购买数量</view><uni-number-box vue-id="5b33e719-6" min="{{1}}" max="{{selectshop.stock}}" value="{{selectNum}}" disabled="{{canCount}}" data-event-opts="{{[['^change',[['changeNum']]]]}}" bind:change="__e" bind:__l="__l"></uni-number-box></view></scroll-view><view class="foot padding-lr-bj"><block wx:if="{{isChoice}}"><button data-event-opts="{{[['tap',[['completeSelection',['$event']]]]]}}" class="cu-btn bg-gradual-orange round text-bold complete" bindtap="__e">完成</button></block><block wx:else><block><button data-event-opts="{{[['tap',[['SubmitData',['addToCart',1]]]]]}}" class="cu-btn bg-gradual-yellow round-left text-bold" bindtap="__e">加入购物车</button><button data-event-opts="{{[['tap',[['SubmitData',['placeOrder',1]]]]]}}" class="cu-btn bg-gradual-orange round-right text-bold" bindtap="__e">立即订购</button></block></block></view></view></view></view></view><view class="wanlian cu-bar tabbar shop solid-top foot"><button class="action" plKain="true" open-type="contact" data-event-opts="{{[['contact',[['contact',['$event']]]]]}}" bindcontact="__e"><view class="wlIcon-kefu"></view>客服</button><view data-event-opts="{{[['tap',[['shoucang1',['$event']]]]]}}" class="action" bindtap="__e"><block wx:if="{{shoucang}}"><view class="wlIcon-gerenguanzhu wanl-orange"></view></block><block wx:else><view class="wlIcon-gerenguanzhu"></view></block>收藏</view><view data-event-opts="{{[['tap',[['toCart',['$event']]]]]}}" class="action" style="margin-left:0;" bindtap="__e"><view class="wlIcon-gouwuche"><block wx:if="{{cart.cartnum>0}}"><view class="cu-tag badge">{{cart.cartnum}}</view></block></view>购物车</view><view data-event-opts="{{[['tap',[['toChat',['$0',['o',['id',goodsData.id],['title',goodsData.title],['image',goodsData.image],['price',goodsData.price]]],['goodsData.shop_id']]]]]}}" class="action" style="height:0;overflow-y:hidden;" bindtap="__e"><view class="wlIcon-kefu"><view class="cu-tag badge"></view></view>客服</view><view class="btn-group"><button data-event-opts="{{[['tap',[['SubmitData',['addToCart']]]]]}}" class="cu-btn bg-gradual-yellow round-left" bindtap="__e">加入购物车</button><button data-event-opts="{{[['tap',[['SubmitData',['placeOrder']]]]]}}" class="cu-btn bg-gradual-orange round-right" bindtap="__e">立即购买</button></view></view></view> |