1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
epp/weixin-miniprogram/pages/shop/goodDetail.wxml

49 lines
1.8 KiB
Plaintext

<!--pages/shop/goodDetail.wxml-->
<view class="good-wapper">
<image class="good-image" src="{{goodinfo.picUrl}}" />
<view class="good-detail">
<view class="good-price good-price-retail">
<!-- 售价 -->
<view class="good-price-symbol">¥</view>
<view class="good-price-number">{{ goodinfo.retailPrice }}</view>
</view>
<view class="good-price good-price-counter">
<!-- 原价 -->
<view style="height:0.12em;" class="good-price-line"></view>
<view class="good-price-symbol">¥</view>
<view class="good-price-number">{{ goodinfo.counterPrice }}</view>
</view>
<!-- 商品标题 -->
<view class="good-title line-wrap">
{{ goodinfo.brief || goodinfo.goodsName }}
</view>
<!-- 商品详情 -->
<view class="good-breif line-wrap">
<view>
商品名称:{{ goodinfo.goodsName }}
</view>
<view>
商品描述:{{ goodinfo.brief || "暂无" }}
</view>
<view>
商品介绍:{{ goodinfo.detail || "暂无" }}
</view>
</view>
<view class="no-more">没有更多啦</view>
</view>
</view>
<view class="bottom-controlbox">
<!-- 屏幕底部 -->
<view class="bottom-inputs">
<button class="buy-count-btn" bindtap="btnSubtractCount" size="mini" disabled="{{ buyGoodCount <= 1 }}">-</button>
<input class="buy-count-input" type="number" value="{{buyGoodCount}}" placeholder="购买数量" bindinput="bindCountInput" bindblur="bindCountInput" bindconfirm="bindCountInput" />
<button class="buy-count-btn" bindtap="btnAddCount" size="mini">+</button>
</view>
<view class="bottom-buttons">
<view class="btn" id="btn-addcart" bindtap="btnAddCartTap" style="filter: grayscale(1);">加入购物车</view>
<view class="btn" id="btn-buy" bindtap="btnBuyTap">立即下单</view>
</view>
</view>