goods.wxml 11 KB

1
  1. <app-layout vue-id="576f0adc-1" class="data-v-61bdcc72" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!goods}}"><view class="u-goods-detail data-v-61bdcc72"></view></block><block wx:if="{{goods}}"><app-goods-banner vue-id="{{('576f0adc-2')+','+('576f0adc-1')}}" pic-list="{{goods.pic_url}}" share="{{goods.share}}" video-url="{{goods.video_url}}" goods_id="{{goodsId}}" class="data-v-61bdcc72" bind:__l="__l"></app-goods-banner><view class="data-v-61bdcc72"><bd-info vue-id="{{('576f0adc-3')+','+('576f0adc-1')}}" theme="{{getTheme}}" name="{{name}}" is-negotiable="{{is_negotiable}}" subtitle="{{subtitle}}" flash-sale="{{flash_sale}}" level-show="{{level_show}}" price="{{price}}" original-price="{{original_price}}" price-max="{{price_max}}" price-min="{{price_min}}" price-member-max="{{price_member_max}}" price-member-min="{{price_member_min}}" discount="{{discount}}" is-vip-card-user="{{is_vip_card_user}}" sales="{{sales}}" is-vip="{{is_vip}}" unit="{{unit}}" is-sales="{{is_sales}}" goods-id="{{goodsId}}" extra-quick-share="{{extra_quick_share}}" app-share-pic="{{app_share_pic?app_share_pic:goods.pic_url[0].pic_url}}" app-share-title="{{app_share_title?app_share_title:name}}" poster-config="{{poster_config+'&goods_id='+goodsId}}" poster-generate="{{poster_generate+'&goods_id='+goodsId}}" has-poster-nav="{{true}}" goods="{{goods}}" limit-buy="{{limit_buy}}" min-number="{{min_number}}" origin_icon="{{origin_icon}}" origin_name="{{origin_name}}" goods_type="{{goods_type}}" trade_name="{{trade_name}}" brand_logo="{{brand_logo}}" brand_name="{{brand_name}}" data-event-opts="{{[['^share',[['hShareAppMessage']]],['^quickShare',[['quickShare']]]]}}" bind:share="__e" bind:quickShare="__e" class="data-v-61bdcc72" bind:__l="__l"></bd-info></view><bd-coupon vue-id="{{('576f0adc-4')+','+('576f0adc-1')}}" theme="{{getTheme}}" coupons="{{goods_coupon_center}}" data-event-opts="{{[['^change',[['setCoupon']]]]}}" bind:change="__e" class="data-v-61bdcc72" bind:__l="__l"></bd-coupon><bd-xbc vue-id="{{('576f0adc-5')+','+('576f0adc-1')}}" coAttr="{{is_open==1&&exchangeStatus==null?1:0}}" attr-list="{{checked&&checked.attr_list}}" type="{{goodsType}}" guarantee-title="{{guarantee_title}}" guarantee-pic="{{guarantee_pic}}" param_content="{{param_content}}" param_name="{{param_name}}" services="{{services}}" attr-groups="{{attr_groups}}" goods-stock="{{goods_num}}" data-event-opts="{{[['^openAttr',[['clickAttr']]]]}}" bind:openAttr="__e" class="data-v-61bdcc72" bind:__l="__l"></bd-xbc><bd-hc vue-id="{{('576f0adc-6')+','+('576f0adc-1')}}" integral="{{goods_marketing_award.integral}}" coupon="{{goods_marketing_award.coupon}}" card="{{goods_marketing_award.card}}" balance="{{goods_marketing_award.balance}}" theme="{{getTheme}}" class="data-v-61bdcc72" bind:__l="__l"></bd-hc><bd-kb vue-id="{{('576f0adc-7')+','+('576f0adc-1')}}" limit="{{goods_marketing.limit}}" express="{{express}}" shipping="{{goods_marketing.shipping}}" pickup="{{goods_marketing.pickup}}" class="data-v-61bdcc72" bind:__l="__l"></bd-kb><block wx:if="{{composition&&composition.list.length>0}}"><view data-event-opts="{{[['tap',[['toComposition',['$event']]]]]}}" class="goods-composition data-v-61bdcc72" bindtap="__e"><view class="goods-composition-title data-v-61bdcc72">套餐组合</view><uni-swiper-dot vue-id="{{('576f0adc-8')+','+('576f0adc-1')}}" current="{{current}}" theme="{{getTheme}}" info="{{composition.list}}" mode="customize" class="data-v-61bdcc72" bind:__l="__l" vue-slots="{{['default']}}"><swiper class="goods-composition-swiper data-v-61bdcc72" current="{{current}}" autoplay="{{true}}" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><block wx:for="{{composition.list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><swiper-item class="data-v-61bdcc72"><app-composition vue-id="{{('576f0adc-9-'+__i0__)+','+('576f0adc-8')}}" theme="{{getTheme}}" item="{{item}}" data-event-opts="{{[['^click',[['toComposition',['$0'],[[['composition.list','id',item.id]]]]]],['^look',[['toComposition',['$0'],[[['composition.list','id',item.id]]]]]]]}}" bind:click="__e" bind:look="__e" class="data-v-61bdcc72" bind:__l="__l"></app-composition></swiper-item></block></swiper></uni-swiper-dot><view class="goods-composition-more main-between cross-center data-v-61bdcc72"><view class="data-v-61bdcc72">更多套餐组合</view><image src="/static/image/icon/arrow-right.png" class="data-v-61bdcc72"></image></view></view></block><bd-comments vue-id="{{('576f0adc-10')+','+('576f0adc-1')}}" goods-id="{{goodsId}}" class="data-v-61bdcc72" bind:__l="__l"></bd-comments><bd-detail vue-id="{{('576f0adc-11')+','+('576f0adc-1')}}" detail="{{detail}}" class="data-v-61bdcc72" bind:__l="__l"></bd-detail><app-goods-recommend vue-id="{{('576f0adc-12')+','+('576f0adc-1')}}" sureCart="{{true}}" theme="{{getTheme}}" goods-list="{{recommend_list}}" class="data-v-61bdcc72" bind:__l="__l"></app-goods-recommend><view class="safe-area-inset-bottom u-bottom data-v-61bdcc72"><view class="{{['u-bottom-height','data-v-61bdcc72',uBottomHeight]}}"></view></view><block wx:if="{{is_open==1}}"><view class="safe-area-inset-bottom u-bottom-fixed data-v-61bdcc72"><block wx:if="{{full_reduce&&exchangeStatus==null}}"><view class="data-v-61bdcc72"><app-goods-full-reduce vue-id="{{('576f0adc-13')+','+('576f0adc-1')}}" theme="{{getTheme}}" full_reduce="{{full_reduce}}" sign="{{goodsType==='goods'?'':1}}" class="data-v-61bdcc72" bind:__l="__l"></app-goods-full-reduce></view></block><block wx:if="{{exchangeStatus==null&&sell_time>0}}"><view class="data-v-61bdcc72"><app-sell-tip vue-id="{{('576f0adc-14')+','+('576f0adc-1')}}" time="{{sell_time}}" data-event-opts="{{[['^changeTime',[['changeTime']]]]}}" bind:changeTime="__e" class="data-v-61bdcc72" bind:__l="__l"></app-sell-tip></view></block><view class="bd-bottom u-bottom-height-0 cross-center dir-left-nowrap data-v-61bdcc72"><block wx:if="{{exchangeStatus==null}}"><view data-event-opts="{{[['tap',[['back',['$event']]]]]}}" class="bd-back dir-top-nowrap main-center cross-center box-grow-0 data-v-61bdcc72" bindtap="__e"><image class="bd-icon data-v-61bdcc72" src="../../static/image/icon/index.png"></image><text class="bd-text data-v-61bdcc72">首页</text></view><block wx:if="{{is_negotiable!==1}}"><bd-service vue-id="{{('576f0adc-15')+','+('576f0adc-1')}}" name="{{name}}" url="{{sendPath}}" class="data-v-61bdcc72" bind:__l="__l"></bd-service></block><view data-event-opts="{{[['tap',[['setFavorite',['$event']]]]]}}" class="bd-back dir-top-nowrap main-center cross-center box-grow-0 data-v-61bdcc72" bindtap="__e"><image class="bd-icon data-v-61bdcc72" src="{{favorite?'../../static/image/icon/icon-favorite-active.png':'../../static/image/icon/icon-favorite.png'}}"></image><text class="bd-text data-v-61bdcc72">收藏</text></view><block wx:if="{{is_negotiable!==1}}"><block wx:if="{{goods_num===0||is_finish_sell}}"><view class="{{['box-grow-1','bd-btn','bd-btn-color','','data-v-61bdcc72',disableBtn]}}">{{''+(is_finish_sell?'商品已下架':'已售罄')+''}}</view></block><block wx:else><view class="box-grow-1 dir-left-nowrap data-v-61bdcc72"><block wx:if="{{goods.type==='goods'}}"><view data-event-opts="{{[['tap',[['clickAttr',[0]]]]]}}" class="{{['data-v-61bdcc72','bd-btn',leftTip]}}" style="{{'background:'+(getTheme.background_s_gradient_btn)+';'+('color:'+(getTheme.secondary_text)+';')}}" bindtap="__e">加入购物车</view></block><block wx:if="{{!(isTip==0&&sell_time>0)}}"><view class="{{['data-v-61bdcc72',goods.type==='goods'?'bd-btn-right bd-btn-half':'box-grow-1']}}"><app-jump-button vue-id="{{('576f0adc-16')+','+('576f0adc-1')}}" form="{{true}}" class="data-v-61bdcc72" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['clickAttr',[1]]]]]}}" class="{{['data-v-61bdcc72','bd-btn','bd-btn-color','box-grow-1',goods.type==='goods'?'bd-btn-right':'']}}" style="{{'background:'+(getTheme.background_gradient_btn)+';'+('color:'+(getTheme.main_text)+';')}}" bindtap="__e">{{rightRemindText+''}}</view></app-jump-button></view></block></view></block></block><block wx:else><view class="box-grow-1 dir-left-nowrap bd-btn-tel data-v-61bdcc72"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-61bdcc72"><block wx:if="{{item.$orig==='contact_tel'}}"><view data-event-opts="{{[['tap',[['makePhoneCall',['$0'],['mall.setting.contact_tel']]]]]}}" class="{{['tel','data-v-61bdcc72',good_negotiable.length===1?'all-radius all-width text ':'',good_negotiable.length===3?'bd-three-one text ':'',good_negotiable.length===2?'bd-btn-half':'']}}" style="{{'background:'+(good_negotiable.length===1?getTheme.background_gradient_btn:getTheme.background_s_gradient_btn)+';'+('color:'+(good_negotiable.length===2?getTheme.color:'')+';')}}" bindtap="__e">联系电话</view></block><block wx:else><block wx:if="{{item.$orig==='contact'}}"><button class="{{['contact','data-v-61bdcc72',contactBtn]}}" style="{{(contactBtnStyle)}}" open-type="contact" show-message-card="{{true}}" send-message-title="{{name}}" send-message-path="{{sendPath}}">客服</button></block><block wx:else><block wx:if="{{item.$orig==='contact_web'}}"><view data-event-opts="{{[['tap',[['router',['/pages/web/web?url='+item.m0]]]]]}}" class="{{['service','data-v-61bdcc72',good_negotiable.length===3?'default-bakground bd-three-one ':good_negotiable.length===2?'bd-btn-half text ':' all-radius all-width ']}}" style="{{'background:'+(good_negotiable.length!==3?getTheme.background_gradient_btn:'')+';'+('color:'+(good_negotiable.length===1?getTheme.secondary_text:'')+';')}}" bindtap="__e">客服</view></block></block></block></block></block></view></block></block><block wx:else><block wx:if="{{exchangeStatus==0}}"><view data-event-opts="{{[['tap',[['toExchange',['$event']]]]]}}" class="box-grow-1 bd-exchange data-v-61bdcc72" style="{{'background:'+(getTheme.background_gradient_o)+';'}}" bindtap="__e">立即领取</view></block><block wx:else><block wx:if="{{exchangeStatus==1}}"><view class="box-grow-1 bd-exchange bd-over data-v-61bdcc72">已领取</view></block></block></block></view></view></block><app-quick-navigation vue-id="{{('576f0adc-17')+','+('576f0adc-1')}}" class="data-v-61bdcc72" bind:__l="__l"></app-quick-navigation><block wx:if="{{is_negotiable===0&&exchangeStatus==null}}"><u-attr vue-id="{{('576f0adc-18')+','+('576f0adc-1')}}" goods="{{goods}}" theme="{{getTheme}}" checked="{{checked}}" value="{{attrShow}}" data-event-opts="{{[['^check',[['check']]],['^input',[['__set_model',['','attrShow','$event',[]]]]]]}}" bind:check="__e" bind:input="__e" class="data-v-61bdcc72" bind:__l="__l"></u-attr></block></block><block wx:if="{{showClose}}"><app-close vue-id="{{('576f0adc-19')+','+('576f0adc-1')}}" modal="{{false}}" data-event-opts="{{[['^update',[['getMall']]]]}}" bind:update="__e" class="data-v-61bdcc72" bind:__l="__l"></app-close></block></app-layout>