goods.wxml 9.2 KB

1
  1. <app-layout vue-id="f201edda-1" class="data-v-ff8c7b5a" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!goods}}"><view class="u-goods-detail data-v-ff8c7b5a"></view></block><block wx:if="{{goods}}"><app-goods-banner vue-id="{{('f201edda-2')+','+('f201edda-1')}}" pic-list="{{goods.pic_url}}" share="{{goods.share}}" goods_id="{{id}}" sign="mch" video-url="{{goods.video_url}}" class="data-v-ff8c7b5a" bind:__l="__l"></app-goods-banner><view class="data-v-ff8c7b5a"><bd-info vue-id="{{('f201edda-3')+','+('f201edda-1')}}" theme="{{getTheme}}" name="{{goods.name}}" subtitle="{{goods.subtitle}}" level-show="{{goods.level_show}}" flash-sale="{{flash_sale}}" price="{{goods.price}}" original-price="{{goods.original_price}}" price-max="{{goods.price_max}}" price-min="{{goods.price_min}}" price-member-max="{{goods.price_member_max}}" price-member-min="{{goods.price_member_min}}" sales="{{goods.sales}}" unit="{{goods.unit}}" is-sales="{{goods.is_sales}}" goods-id="{{goods.id}}" extra-quick-share="{{goods.extra_quick_share}}" app-share-pic="{{goods.app_share_pic}}" app-share-title="{{goods.app_share_title}}" poster-config="{{poster_config+'&goods_id='+goods.id+'&mch_id='+goods.mch_id}}" poster-generate="{{poster_generate+'&goods_id='+goods.id+'&mch_id='+goods.mch_id}}" has-poster-nav="{{true}}" share-url="{{poster+'&goods_id='+goods.id+'&mch_id='+goods.mch_id}}" goods="{{goods}}" limit-buy="{{goods.limit_buy}}" min-number="{{goods.min_number}}" data-event-opts="{{[['^share',[['hShareAppMessage']]]]}}" bind:share="__e" class="data-v-ff8c7b5a" bind:__l="__l"></bd-info></view><block wx:if="{{mch_store}}"><view class="shop-info dir-left-nowrap cross-center data-v-ff8c7b5a" clas="{{mch_store.distance?'shop-info-2':'shop-info-1'}}"><image class="box-grow-0 data-v-ff8c7b5a" src="{{mch_store.store.cover_url}}" data-event-opts="{{[['tap',[['navShop',['$event']]]]]}}" bindtap="__e"></image><view data-event-opts="{{[['tap',[['navShop',['$event']]]]]}}" class="dir-top-nowrap box-grow-1 data-v-ff8c7b5a" bindtap="__e"><view class="store-name t-omit data-v-ff8c7b5a">{{mch_store.store.name}}</view><view class="dir-left-nowrap data-v-ff8c7b5a"><view class="store-num data-v-ff8c7b5a">{{"商品数量: "+mch_store.goods_count}}</view><view class="data-v-ff8c7b5a">{{"已售: "+mch_store.order_goods_count}}</view></view></view><view class="box-grow-0 data-v-ff8c7b5a"><block wx:if="{{mch_setting.is_web_service}}"><view data-event-opts="{{[['tap',[['navService',['$event']]]]]}}" class="contain main-center cross-center dir-top-nowrap data-v-ff8c7b5a" bindtap="__e"><image class="store-icon-contain data-v-ff8c7b5a" src="{{mch_setting.web_service_pic?mch_setting.web_service_pic:'../image/goods-contact.png'}}"></image><view class="store-contain data-v-ff8c7b5a">客服</view></view></block><block wx:else><view class="main-center store-btn data-v-ff8c7b5a"><view data-event-opts="{{[['tap',[['navShop',['$event']]]]]}}" class="shop-btn data-v-ff8c7b5a" bindtap="__e">进店逛逛</view></view></block></view></view><block wx:if="{{mch_store.distance}}"><view class="shop-address dir-left-nowrap cross-top data-v-ff8c7b5a"><view class="dir-top-nowrap box-grow-1 data-v-ff8c7b5a"><view class="address data-v-ff8c7b5a">{{mch_store.store.address}}</view><view class="km data-v-ff8c7b5a">{{"距离"+mch_store.distance}}</view></view><view data-event-opts="{{[['tap',[['navMap',['$event']]]]]}}" class="box-grow-0 icon-address main-center data-v-ff8c7b5a" bindtap="__e"><image src="../image/summary-address.png" class="data-v-ff8c7b5a"></image></view></view></block></block><bd-xbc vue-id="{{('f201edda-4')+','+('f201edda-1')}}" coAttr="{{is_open}}" attr-list="{{selectAttr&&selectAttr.attr_list}}" type="{{goods.type}}" guarantee-title="{{goods.guarantee_title}}" guarantee-pic="{{goods.guarantee_pic}}" param_content="{{param_content}}" param_name="{{goods.param_name}}" services="{{goods.services}}" attr-groups="{{goods.attr_groups}}" goods-stock="{{goods.goods_stock}}" data-event-opts="{{[['^openAttr',[['clickAttr']]]]}}" bind:openAttr="__e" class="data-v-ff8c7b5a" bind:__l="__l"></bd-xbc><bd-hc vue-id="{{('f201edda-5')+','+('f201edda-1')}}" integral="{{goods.goods_marketing_award.integral}}" coupon="{{goods.goods_marketing_award.coupon}}" card="{{goods.goods_marketing_award.card}}" balance="{{goods.goods_marketing_award.balance}}" theme="{{getTheme}}" class="data-v-ff8c7b5a" bind:__l="__l"></bd-hc><bd-kb vue-id="{{('f201edda-6')+','+('f201edda-1')}}" limit="{{goods.goods_marketing.limit}}" express="{{goods.express}}" shipping="{{goods.goods_marketing.shipping}}" pickup="{{goods.goods_marketing.pickup}}" class="data-v-ff8c7b5a" bind:__l="__l"></bd-kb><bd-comments vue-id="{{('f201edda-7')+','+('f201edda-1')}}" goods-id="{{goods.id}}" class="data-v-ff8c7b5a" bind:__l="__l"></bd-comments><bd-detail vue-id="{{('f201edda-8')+','+('f201edda-1')}}" detail="{{goods.detail}}" class="data-v-ff8c7b5a" bind:__l="__l"></bd-detail><view class="recommend data-v-ff8c7b5a"><view class="recommend-title dir-left-nowrap main-center data-v-ff8c7b5a"><view class="dir-left-nowrap cross-center data-v-ff8c7b5a"><view class="border data-v-ff8c7b5a"></view><image src="../../../static/image/icon/icon-favorite.png" class="data-v-ff8c7b5a"></image><view style="color:#353535;" class="data-v-ff8c7b5a">您或许喜欢</view><view class="border data-v-ff8c7b5a"></view></view></view><view class="recommend-list data-v-ff8c7b5a"><u-ordinary-list vue-id="{{('f201edda-9')+','+('f201edda-1')}}" is-under-line-price="{{isListUnderlinePrice==1?true:false}}" isShowAttr="{{true}}" list="{{recommend_list}}" theme="{{getTheme}}" list-style="{{2}}" class="data-v-ff8c7b5a" bind:__l="__l"></u-ordinary-list></view></view><view class="safe-area-inset-bottom data-v-ff8c7b5a"><view class="{{['u-bottom-height','data-v-ff8c7b5a',uBottomHeight]}}"></view></view><block wx:if="{{is_open==1}}"><view class="safe-area-inset-bottom u-bottom-fixed data-v-ff8c7b5a"><block wx:if="{{full_reduce}}"><view class="data-v-ff8c7b5a"><app-goods-full-reduce vue-id="{{('f201edda-10')+','+('f201edda-1')}}" theme="{{getTheme}}" full_reduce="{{full_reduce}}" class="data-v-ff8c7b5a" bind:__l="__l"></app-goods-full-reduce></view></block><block wx:if="{{goods.sell_time>0}}"><view class="data-v-ff8c7b5a"><app-sell-tip vue-id="{{('f201edda-11')+','+('f201edda-1')}}" time="{{goods.sell_time}}" data-event-opts="{{[['^changeTime',[['changeTime']]]]}}" bind:changeTime="__e" class="data-v-ff8c7b5a" bind:__l="__l"></app-sell-tip></view></block><view class="bd-bottom dir-left-nowrap data-v-ff8c7b5a"><view data-event-opts="{{[['tap',[['navShop',['$event']]]]]}}" class="bd-back dir-top-nowrap main-center cross-center box-grow-0 data-v-ff8c7b5a" bindtap="__e"><image class="bd-icon data-v-ff8c7b5a" src="../../../static/image/icon/icon-mch.png"></image><text class="data-v-ff8c7b5a">店铺</text></view><view data-event-opts="{{[['tap',[['back',['$event']]]]]}}" class="bd-back dir-top-nowrap main-center cross-center box-grow-0 data-v-ff8c7b5a" bindtap="__e"><image class="bd-icon data-v-ff8c7b5a" src="../../../static/image/icon/index.png"></image><text class="data-v-ff8c7b5a">首页</text></view><view data-event-opts="{{[['tap',[['favorite',['$event']]]]]}}" class="bd-back dir-top-nowrap main-center cross-center box-grow-0 data-v-ff8c7b5a" bindtap="__e"><image class="bd-icon data-v-ff8c7b5a" src="{{goods.favorite?'../../../static/image/icon/icon-favorite-active.png':'../../../static/image/icon/icon-favorite.png'}}"></image><text class="data-v-ff8c7b5a">收藏</text></view><view class="box-grow-1 dir-left-nowrap data-v-ff8c7b5a"><block wx:if="{{goods.goods_stock>0&&!goods.is_finish_sell}}"><view data-event-opts="{{[['tap',[['clickAttr',['$event']]]]]}}" class="{{['bd-button','data-v-ff8c7b5a',leftTip]}}" style="{{'background:'+(!goods||goods.buy_goods_auth?getTheme.background_s_gradient_btn:'#999999')+';'+('color:'+(!goods||goods.buy_goods_auth?getTheme.secondary_text:'')+';')}}" bindtap="__e">加入购物车</view><block wx:if="{{!(isTip==0&&goods.sell_time>0)}}"><view class="bd-button data-v-ff8c7b5a"><app-jump-button vue-id="{{('f201edda-12')+','+('f201edda-1')}}" form="{{true}}" class="data-v-ff8c7b5a" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['buyClick',['$event']]]]]}}" class="bd-btn-right box-grow-1 data-v-ff8c7b5a" style="{{'background:'+(goods.buy_goods_auth?getTheme.background_gradient_btn:'#999999')+';'+('color:'+(goods.buy_goods_auth?getTheme.main_text:'')+';')+('width:'+('100%')+';')}}" bindtap="__e">{{rightRemindText+''}}</view></app-jump-button></view></block></block><block wx:else><view class="{{['bd-btn','data-v-ff8c7b5a',disableBtn]}}">{{goods.is_finish_sell?'商品已下架':'已售罄'}}</view></block></view></view></view></block><u-attr vue-id="{{('f201edda-13')+','+('f201edda-1')}}" goods="{{goods}}" theme="{{getTheme}}" checked="{{selectAttr}}" value="{{attrShow}}" data-event-opts="{{[['^check',[['onAttr']]],['^input',[['__set_model',['','attrShow','$event',[]]]]]]}}" bind:check="__e" bind:input="__e" class="data-v-ff8c7b5a" bind:__l="__l"></u-attr></block><block wx:if="{{showClose}}"><app-close vue-id="{{('f201edda-14')+','+('f201edda-1')}}" mch_id="{{mch_id}}" modal="{{false}}" data-event-opts="{{[['^update',[['getMall']]]]}}" bind:update="__e" class="data-v-ff8c7b5a" bind:__l="__l"></app-close></block></app-layout>