You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
5.8 KiB
Plaintext

9 months ago
<view class="cy-product-detail-container" style='--color--:{{color}}'>
<nav-bar navbar-data='{{nvabarData}}'></nav-bar>
<view class="cy-product-image">
<image src="{{detail.linkUrl}}" mode="scaleToFill"></image>
</view>
<view class="cy-product-message">
<view class="cy-product-message-item">
<view class="cy-product-name">{{detail.productName}}</view>
<view class="cy-product-sell">月售<text style="padding-left:5rpx;">{{detail.monthSaleCount}}</text> <text style="padding-left:30rpx;">好评度 <block wx:if="{{detail.praise==0}}">100</block> <block wx:else>{{detail.praise}}</block> </text>%</view>
</view>
<view class="cy-product-message-item" style="margin-top:-25rpx;">
<view class="cy-product-price">
<text class="cy-product-currentPrice" wx:if="{{busMode==0}}">
<block wx:if="{{detail.specList[0].discountRule}}">
<text >¥{{detail.specList[0].promotionPrice}}</text>
</block>
<block wx:else>
<text>{{detail.specList[0].price}}</text>
</block>
</text>
<text class="cy-product-currentPrice" wx:if="{{busMode==3}}">
<block wx:if="{{detail.specList[0].discountRule}}">
<text >¥{{detail.specList[0].promotionPrice}}</text>
</block>
<block wx:else>
<text >{{detail.wprice}}</text>
</block>
</text>
<text class="cy-product-originalPrice">¥{{detail.marketPrice}}</text>
</view>
<view class="cy-product-memberPrice">
<text>
<block wx:if="{{busMode==0}}">会员价¥{{detail.memberPrice}} </block>
<block wx:if="{{busMode==3}}">会员价¥{{detail.wmemberPrice}} </block>
</text>
2 months ago
<text style="padding-left:30rpx;">剩余{{detail.stock}}份</text>
9 months ago
</view>
<view class="cy-product-add-shop {{detail.specList.length<=1 && detail.specList[0].stock<=0?'cy-product-sell-out':'' }}" bindtap="{{detail.specList.length<=1 && detail.specList[0].stock<=0?'cy_changeSpecSellOut':'cy_selectProductSpec' }}">
<image src="/images/icon-add.png" class="cy-add-shop"></image>
2 months ago
<view class="cy-add-shop-text" wx:if="{{detail.specList.length <= 1 && detail.specList[0].stock <= 0 }}">已售罄</view>
9 months ago
<view class="cy-add-shop-text" wx:else>加入购物车</view>
<view class="cy-cart-count" style="margin-top:-20rpx;width:10rpx;" wx:if="{{detail.sumCount!='' && detail.sumCount >0 }}"> {{detail.sumCount}}</view>
</view>
</view>
</view>
<view class="cy-product-view">
<view class="cy-product-detail-text">商品详情</view>
<view class="cy-product-detail" wx:if="{{detail.description !=null && detail.description!='' }}">{{detail.description}}</view>
<view class="cy-product-detail" wx:else>暂无商品描述~</view>
</view>
<view class="cy-product-comment">
<view class="cy-product-comment-title">
<view class="cy-product-comment-title-left">商品评价</view>
<view class="cy-product-comment-title-right">
<block wx:if="{{evaluateList!='' && evaluateList.length>0}}">{{evaluateList.length}}条评价</block>
<block wx:else>0条评价</block>
<image src="/images/icon-left.png"></image>
</view>
</view>
<view class="cy-product-body">
<block wx:if="{{evaluateList!='' && evaluateList.length>0}}" wx:for="{{evaluateList}}" wx:key="evaluateList">
<view class="cy-product-body-item">
<view class="cy-product-comment-item-title">
<view class="cy-product-comment-image">
<image src="{{item.touxiang}}"></image>
</view>
<view class="cy-product-comment-name">
<view class="comment-name"> {{item.memberName}}</view>
<view class="comment-zan"><text class="iconfont icondianzan" style="color:{{color}}"></text> 赞了该商品</view>
</view>
<view class="cy-product-comment-time">{{item.tickingTime}}</view>
</view>
<view class="cy-comment-flex">
<view class="cy-comment-flex-left" />
<view class="comment-message">{{item.memo}}</view>
</view>
</view>
</block>
<block wx:if="{{evaluateList==''}}">
<view class="comment-message" style="margin-left:40rpx;margin-top:30rpx;"> 暂无商品评论哦~ 快下单评论吧 </view>
</block>
<view class="cy-product-item-d"></view>
</view>
</view>
<view class="cy-product-detail-buttom">
<view class='cy-content-cart-image'>
<view class='cy-cart-image cy-global-bg-color' bindtap='cy_cart'>
<image class='cy-cart-view-image' src='http://pos.juweiyun.cn/373001/file/wechatAppicon_shopping%20cart%402x.png'></image>
</view>
<view class='cy-cart-count'>{{count}}</view>
</view>
<view class='cy-content-cart-total down-center'>
<text>¥</text>
<text class='cy-sum-money'><block wx:if="{{money>0}}">
<block wx:if="{{promotionMoney>0}}">
<text> {{promotionMoney}}</text>
<text class="cy-product-originalPrice" style="color: rgba(153, 153, 153, 1);"> {{money}}</text>
</block>
<block wx:else>
<text> {{money}}</text>
</block>
</block>
<block wx:else>0</block>
</text>
</view>
<view class="cy-content-cart-right" bindtap="cy_placeOrder">去结算</view>
</view>
<showSpecAndMake promotionPrice="{{promotionPrice}}" isSpec="{{isSpec}}" specList="{{detail.specList}}" shopName="{{shopName}}" spec="{{spec}}" makeList="{{makeList}}" specPrice="{{specPrice}}" showSpec="{{showSpec}}" productCount="{{productCount}}" selectProduct="{{selectProduct}}" color="{{color}}" bind:cy_hide="cy_hide" bind:cy_changeSpecSellOut="cy_changeSpecSellOut" bind:cy_changeSpec="cy_changeSpec" bind:cy_changeMake="cy_changeMake" bind:cy_addCart="cy_addCart" bind:cy_subSpecItem="cy_subSpecItem" bind:cy_addSpecItem="cy_addSpecItem" />
<cart cartFlag="{{cartFlag}}" list="{{list}}" color="{{color}}" bind:cy_hide="cy_hide" bind:cy_clearCart="cy_clearCart" bind:cy_subCartItem="cy_subCartItem" bind:cy_addCartItem="cy_addCartItem" />
</view>