123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380 |
- <!-- 展示蒙层 显示推广画报 -->
- <view class="poster" wx:if="{{myqr_show}}">
- <view class="title">
- <text>推广文案</text>
- </view>
- <view class="ads">
- <view style="width:480rpx">{{myqr_ads}}</view>
- </view>
- <image src="{{myqr_url}}" mode="widthFix" style="width:480rpx" show-menu-by-longpress="true"></image>
- <view class="tool">
- <view bindtap="posterCopy" style="text-align:right">
- <image class="img" style="width:110rpx;height:130rpx" src="/static/images/share/p_copy.png"></image>
- </view>
- <button open-type='share' class="share-btn">
- <image class="img" style="width: 85rpx;height: 127rpx;" src="/static/images/share/p_wx.png"></image>
- </button>
- <view style="text-align:left">
- <image class="img" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
- </view>
- </view>
- <view style="text-align:center">
- <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
- </view>
- </view>
- <view class="container" style="filter:brightness({{myqr_blur}}%)">
- <image src="/static/images/new/isnew.png" wx:if="{{goods.isNew}}" class="isNew"></image>
- <swiper class="goodsimgs" indicator-dots="{{goods.gallery.length>1?true:false}}"
- indicator-color="rgba(0, 192, 255, .2)" indicator-active-color="rgba(0, 192, 255)" autoplay="true"
- interval="3000" duration="1000">
- <swiper-item wx:for="{{goods.gallery}}" wx:key="*this">
- <image src="{{item}}" mode="aspectFill"></image>
- </swiper-item>
- </swiper>
-
- <view class="share-pop-box" hidden="{{!openShare}}">
- <view class="share-pop">
- <view class="close" bindtap="closeShare">
- <van-icon class="icon" name="cross" />
- </view>
- </view>
- </view>
- <view class="goods-info">
-
-
- <view class="c">
- <view style="display: flex;flex-direction: column;">
- <view wx:if="{{!activited}}" class="price">
- <view class="retailPrice">{{checkedSku.newCus==true?'新客价':'到手价'}}¥<text class="checked-price">{{checkedSku.price}}</text> </view>
- <!-- wx:if="{{checkedSku.counterPrice!=checkedSku.price}}" -->
- <view class="counterPrice">原价¥<text>{{checkedSku.counterPrice}}</text></view>
- <view class="sale-num">
- 已售<text>{{countSalesNumber}}</text>份
- </view>
- </view>
- <view class="goods-name-wrapper">
- <view class='goods_name'>
- <!-- <image wx:if="{{activited}}" style="width: 79rpx;height:32rpx;margin-right: 4rpx;" src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"></image> -->
- <view class='goods_name_left'>{{goods.name}}</view>
- </view>
- <text class="desc sub-color" wx:if="{{goods.brief}}">{{goods.brief}}</text>
- </view>
-
- </view>
- <!-- 分享商品 -->
- <!-- <view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">
- <image class="img" src="/static/images/share.png" />
- </view> -->
- </view>
- </view>
-
- </view>
- <view class="buy-toast">
- <swiper autoplay="true" circular="true" interval="3000" duration="1000" vertical="true" class="toast-swiper">
- <swiper-item wx:for="{{goodsBuyTime}}" wx:key="index" class="toast-swiper-item">
- <view class="toast-item">
- <image src="{{item.cusHeadImg}}" mode="aspectFill"></image>
- <view>{{item.comment}}</view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <!-- 选择规格sku -->
- <view class="sku-info" bindtap="showSkuPopup" wx:if="{{goods.productType==2}}">
- <view class="sku-left">
- <view>已选</view>
- <view class="current-sku">{{checkedSku.specifications}}</view>
- </view>
- <view class="sku-right">
- <view>可选服务</view>
- <van-icon name="arrow" color="#00B4FF" />
- </view>
- </view>
- <!-- 推荐产品 -->
- <view class="recommend-product" wx:if="{{recGoodsNum>0}}">
- <view class="recommend-title">
- 推荐产品({{recGoodsNum}})
- </view>
- <scroll-view scroll-x="true" class="recommend-scroll">
- <view class="scroll-item-wrapper" wx:for="{{recGoodsList}}" wx:key="index">
- <navigator url="/pages/goods/goods?id={{item.id}}">
- <view class="scroll-item">
- <image src="{{item.picUrl}}" mode="aspectFill"></image>
- <view class="scroll-right">
- <view class="recommend-name">{{item.name}}</view>
- <view class="recommend-price">
- <text>¥{{item.retailPrice}}</text>/台
- </view>
- </view>
- </view>
- </navigator>
- </view>
- </scroll-view>
- </view>
- <!-- 加购数量 -->
- <view class="num-module" wx:if="{{checkedSku.isSupportAddbuy&&checkedSku.unitPrice&&checkedSku.unitPrice>0}}">
- <view class="plus-buy">
- <view class="title">加购</view>
- <view class="plus-name">{{checkedSku.unitDescribe}}<text>¥{{checkedSku.unitPrice}}</text>/{{checkedSku.unitArea}}</view>
- </view>
- <view class="plus-num" style="padding-left: 80rpx;">
- <view class="title" style="color:#000;width:160rpx;">加购数量</view>
- <view class="calc-counter">
- <view class="minus-btn {{plusNum==minNum?'disable':''}}" bindtap="minusNum">-</view>
- <input class="num-input" data-max='{{checkedSku.unitMaximum}}' bindinput="bindGoodsNumInput" type="number"
- maxlength="3" placeholder="" value="{{plusNum}}" />
- <!-- <view class="num-input">{{plusNum}}</view> -->
- <view class="plus-btn {{plusNum>=checkedSku.unitMaximum?'disable':''}}" bindtap="addNum">+</view>
- </view>
- </view>
- <view style="color:#FE2B54;margin:8rpx 0 0;" wx-if="{{plusNum!=0}}">
- 每份{{checkedSku.unitArea}},加购{{plusNum==null?0:plusNum}}份,合计{{addPurchaseAmount}}元</view>
- </view>
-
- <!-- 加购 -->
- <!-- wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}" -->
- <view class="num-module" wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}">
- <view class="plus-num">
- <view class="title" style="color:#000;width:160rpx;justify-content: flex-start;">购买数量</view>
- <view style="display: flex;align-items: center;">
- <view class="calc-counter" style="height: 62rpx;line-height:62rpx;">
- <input class="num-input" style="height: 62rpx;line-height:62rpx;width:140rpx;border:none;"
- bindinput="bindGoodsNumInput" type="number" maxlength="4" placeholder="" value="{{plusNum}}" />
- </view>
- <view style="margin-left:8rpx;">{{goods.unitArea}}</view>
- </view>
- </view>
- <view style="color:#FE2B54;margin:8rpx 0 0;">每增加1{{goods.unitArea}},增加{{goods.unitPrice}}元,服务人数根据实际购买量指派。</view>
- </view>
-
- <!-- 团购评价 -->
- <view class="group-evaluation">
- <view class="title" bindtap="goWholeEval">
- <view class="left">团购评价({{goodsCommentCount}}条)</view>
- <view class="right">
- <view>查看全部</view>
- <van-icon name="arrow" color="#85868A" />
- </view>
- </view>
- <view class="evaluation-item" wx:for="{{goodsComment}}" wx:key="index">
- <view class="item-left">
- <view class="eval-top">
- <image src="{{item.cusHeadImg}}" mode="aspectFill" class="avatar"></image>
- <view class="name">{{item.cusName}}</view>
- <view class="tag">{{item.cusLabel}}</view>
- <view class="hp">{{item.commentType}}</view>
- </view>
- <view class="eval-content">
- {{item.comment}}
- </view>
- </view>
- <view class="item-right">
- <image src="{{item.commentImg}}" mode="aspectFill"></image>
- </view>
- </view>
- </view>
- <view class="detail">
- <import src="/lib/wxParse/wxParse.wxml" />
- <template is="wxParse" data="{{wxParseData:goodsDetail.nodes}}" />
- </view>
-
- <!-- 大家都在看 -->
- <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
- <view class="h">
- <view class="line"></view>
- <text class="title">大家都在看</text>
- </view>
- <view class="b">
- <view class="item" wx:for="{{relatedGoods}}" wx:key="id">
- <navigator url="/pages/goods/goods?id={{item.id}}">
- <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
- <text class="name">{{item.name}}</text>
- <text class="price">¥{{item.retailPrice}}</text>
- </navigator>
- </view>
- </view>
- </view>
-
- <!-- 规格选择界面 -->
- <view class="attr-pop-box" hidden="{{!openshow}}">
- <view class="attr-pop">
- <view class="close" bindtap="closeAttr">
- <van-icon class="icon" name="cross" />
- </view>
- </view>
- </view>
- <!-- 规格选择界面 -->
- <view class="attr-pop-box" hidden="{{!openAttr}}">
- <view class="attr-pop">
- <view class="close" bindtap="closeAttr">
- <van-icon class="icon" name="cross" />
- </view>
- <view class="img-info">
- <image class="img" src="{{goods.picUrl}}"></image>
- <view class="info">
- <view class="c">
- <view class="p">价格:¥{{checkedSpecPrice}}</view>
- <view class="a">{{tmpSpecText}}</view>
- </view>
- </view>
- </view>
- <!-- 规格列表 -->
- <view class="spec-con">
- <view class="spec-item" wx:for="{{specificationList}}" wx:key="name">
- <view class="name">{{item.name}}</view>
- <view class="values">
- <view class="value {{vitem.checked ? 'selected' : ''}}" bindtap="clickSkuValue"
- wx:for="{{item.valueList}}" wx:for-item="vitem" wx:key="id" data-value-id="{{vitem.id}}"
- data-name="{{vitem.specification}}">
- {{vitem.value}}</view>
- </view>
- </view>
- <view class="spec-item" wx:if="{{groupon.length > 0}}">
- <view class="name">团购立减</view>
- <view class="values">
- <view class="value {{vitem.checked ? 'selected' : ''}}" bindtap="clickGroupon" wx:for="{{groupon}}"
- wx:for-item="vitem" wx:key="{{vitem.id}}" data-value-id="{{vitem.id}}"
- data-name="{{vitem.specification}}">
- ¥{{vitem.discount}} ({{vitem.discountMember}}人)</view>
- </view>
- </view>
- <!-- 数量 -->
- <view class="number-item">
- <view class="name">数量</view>
- <view class="selnum">
- <!-- <view class="cut" bindtap="cutNumber">-</view> -->
- <input value="{{number}}" class="number" disabled="true" type="number" />
- <!-- <view class="add" bindtap="addNumber">+</view> -->
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 联系客服
- <view class="contact">
- <contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="36">
- </contact-button>
- </view> -->
- <!-- 底部按钮 -->
- <view class="bottom-btn" style="position:{{myqr_bottom_btn}}">
- <view class="l l-collect" bindtap="addCollectOrNot" wx:if="{{!isGroupon}}">
- <view class="collect-wrapper">
- <van-icon class="icon" name="star" color="#09afff" wx:if="{{collect}}" size="22px" />
- <van-icon class="icon" size="22px" color="#09afff" name="star-o" wx:else />
- <text class="jz-color collect-text">收藏</text>
- </view>
- </view>
- <view class="l l-kefu">
- <view class="service-wrapper" bindtap="goIm">
- <view class="contact-block">
- <!-- <contact-button style="opacity:0;position:absolute; left:16rpx; top:0rpx;" type="default-dark"
- session-from="weapp" size="44">
- </contact-button> -->
- <van-icon name="service-o" color="#09afff" size="22px" />
- </view>
- <text class="jz-color">在线客服</text>
- </view>
- </view>
-
-
- <block wx:if="{{checkedSku.type==0}}"><!--买约一体-->
- <view class="c" bindtap="addFast" data-type='1' wx:if="{{!soldout||!hasLogin}}">立即预约</view>
- </block>
- <view class="dis-order-wrapper" wx:elif="{{checkedSku.type==3}}"><!--买约分离-->
- <view class="self-order" data-type='0' bindtap="addFast">
- <view class="buy-type">先买后约</view>
- </view>
- <view class="spread-order" data-type='1' bindtap="addFast">
- <view class="buy-type jz-color" style="overflow: hidden;">立即预约</view>
- </view>
- </view>
- <view class="dis-order-wrapper" wx:elif="{{checkedSku.type==2}}"><!--中介-->
- <view class="self-order" data-type='0' bindtap="addFast">
- <view class="buy-type">立即购买</view>
- </view>
- </view>
- <block wx:elif="{{checkedSku.type==6}}"><!--实物商品-->
- <view class="c" bindtap="addFast" data-type='1' wx:if="{{!soldout||!hasLogin}}">立即购买</view>
- </block>
- <block wx:else><!--其他-->
- <view class="c" bindtap="addFast" data-type='1' wx:if="{{!soldout||!hasLogin}}">立即预约</view>
- </block>
- </view>
-
-
- <!-- bind:click-overlay="onSkuClose" -->
- <!-- sku规格列表 -->
- <van-popup show="{{ chooseSkuVisible }}" round position="bottom" bind:click-overlay="onSkuClose">
- <view class="spu-popup">
- <view class="popup-good">
- <view class="left">
- <image src="{{currentSku.url}}" mode="aspectFill"></image>
- <view class="spu-price"><text style="font-size: 26rpx;">{{currentSku.newCus==true?'新客价':'到手价'}}¥</text><text>{{currentSku.price}}</text></view>
- <view class="spu-price-old">¥{{currentSku.counterPrice}}</view>
- </view>
- <image src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-close.png" mode="aspectFill"
- class="sku-close" bindtap="onSkuClose"></image>
- </view>
- <scroll-view scroll-y="true" class="sku-list-block">
- <view class="spu-title">
- 选择品类
- </view>
- <view style="padding-bottom:20rpx;">
- <view class="sku-item {{activeSku==item.id?'active-sku':''}}" wx:for="{{productList}}" wx:key="index"
- data-index="{{index}}" data-id="{{item.id}}" bindtap="selectSku">
- <view>
- {{item.specifications}}
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="sku-btn" bindtap="confSku">
- 确认
- </view>
- </view>
- </van-popup>
-
|