goodtail.wxml
5.3 KB
<view class="content"><view class="goodtailtop"><image src="{{item.image}}" mode></image></view><block wx:if="{{type==1}}"><view class="tailbox boxsizing"><view class="tailname">{{''+goodtail.name+''}}</view><view class="tailhezi flextwo"><view class="tailhezileft flexone"><view class="saleprice">{{"¥"+goodtail.goods_price}}</view><view class="huiyuanprice">{{"会员价:¥"+goodtail.vip_price}}</view></view><view class="heziright flexone"><view class="heziprice stock">{{"库存:"+goodtail.flour_goods_spec.stock_num+"件"}}</view><view class="heziprice">{{"已售"+goodtail.sales+"件"}}</view></view></view></view></block><block wx:else><view class="tailbox boxsizing"><view class="tailname"><text class="miaobox">限时秒杀</text>商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view><view class="tailhezi flextwo"><view class="tailhezileft flexone"><view class="saleprice">¥288</view><view class="oldprice">¥450</view></view></view><view class="miaodu flextwo"><view class="miaoduleft"><view class="miaotiao">已抢购60%</view></view><view class="miaoright flexone"><view class="distance">距离结束还剩</view><view class="remaintime">23</view><view class="dian">:</view><view class="remaintime">53</view><view class="dian">:</view><view class="remaintime">42</view></view></view></view></block><view class="send">{{''+item.postage+''}}</view><view class="tapnav flextwo"><view class="{{['tapnavitem ',selnav==1?'tapnavactive':'']}}" data-id="{{1}}" data-event-opts="{{[['tap',[['navtap',['$event']]]]]}}" bindtap="__e">详情</view><view class="{{['tapnavitem',selnav==2?'tapnavactive':'']}}" data-id="{{2}}" data-event-opts="{{[['tap',[['navtap',['$event']]]]]}}" bindtap="__e">评论(200)</view></view><block wx:if="{{selnav==1}}"><view class="goodetailbox"><rich-text nodes="{{goodtail.content}}"></rich-text></view></block><block wx:else><view class="goodcomment"><view class="goodcommentop flexone"><view class="topitem">全部(60万)</view><view class="topitem">好评(16万)</view><view class="topitem">中评(10万)</view><view class="topitem">差评(600)</view></view><view class="commentlist"><view class="jianintro photobox" bindtap="comdetail"><view class="comtop flextwo"><view class="comleft"><image src="../../static/userpic.png"></image></view><view class="comright"><view class="comrtop"><view class="usertop flextwo"><view class="comrname">皖湘情</view><view class="comdate">2019年10月12日</view></view><view class="star starone flexone"><view class="staritem"><image src="../../static/starredk.png"></image></view><view class="staritem"><image src="../../static/starredk.png"></image></view><view class="staritem"><image src="../../static/starredk.png"></image></view><view class="staritem"><image src="../../static/starredk.png"></image></view><view class="staritem"><image src="../../static/starredk.png"></image></view><view class="staritem"><image src="../../static/starred.png"></image></view></view></view></view></view><view class="commenttext">太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊太给力了!!要加紧学习了啊</view><view class="commentimg flexone"><view class="commentimgitem"><image src="../../static/shop.png" mode></image></view><view class="commentimgitem"><image src="../../static/shop.png" mode></image></view><view class="commentimgitem"><image src="../../static/shop.png" mode></image></view></view></view></view></view></block><view class="cartbot flextwo"><view class="cartbotleft"><view class="cartimg"><image src="../../static/cartche.png" mode></image><view class="cartnum">32</view></view></view><view class="cartbotright flexone"><view class="addcarbtn">加入购物车</view><view class="buynowbtn">立即抢购</view></view></view><block wx:if="{{shuwrap}}"><view class="register"><view class="shuxingwrap"><view class="goodtailtopk flex"><view class="shuxingimg"><view class="shusmallimg"><image src="../../static/goodtailtop.png" mode></image></view></view><view class="shuright"><view class="shutop flex"><view class="shuname">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称</view><view data-event-opts="{{[['tap',[['hideshu',['$event']]]]]}}" class="shucha" bindtap="__e"><image src="../../static/goodtaicha.png" mode></image></view></view><view class="saleprice">¥288</view></view></view><view class="weightbox"><view class="weight">重量</view><view class="weightlsit flexone"><view class="weightlsititem witemactive">160/84A/M</view><view class="weightlsititem">160/84A/M</view><view class="weightlsititem">160/84A/M</view><view class="weightlsititem">160/84A/M</view></view></view><view class="weightbox"><view class="weight">颜色</view><view class="weightlsit flexone"><view class="weightlsititem">红色</view><view class="weightlsititem">绿色</view></view></view><view class="weightbox flextwo"><view class="weight">数量</view><view class="weightnumk flexone"><view class="weightnumkleft leftk"><image src="../../static/addimg.png" mode></image></view><view class="detailnum">1</view><view class="weightnumkleft rightk"><image src="../../static/reduceimg.png" mode></image></view></view></view><view class="addcarbtnk flextwo"><view class="addcarbtnkleft">加入购物车</view><view class="addcarbtnkright">立即购买</view></view></view></view></block></view>