You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<image class="head-img" src="{{product['image-url']}}" mode="aspectFit" />
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<text>{{product.name}}</text>
|
|
|
|
|
|
|
|
<view>
|
|
|
|
<form bindsubmit="formSubmit" data-sku="{{product.sku}}">
|
|
|
|
<view class="section quantity">
|
|
|
|
<view class="quantity">数量:</view>
|
|
|
|
<input id="quantity" name="quantity" bindinput="bindQuantityInput" value="1" />
|
|
|
|
</view>
|
|
|
|
<view class="section">
|
|
|
|
<text id="price" >¥{{product.price || '无法获取价格'}}</text>
|
|
|
|
</view>
|
|
|
|
<view class="btn-area">
|
|
|
|
<button formType="submit" type='primary'>立即购买</button>
|
|
|
|
<button bindtap="bindAddToCart">加入购物车</button>
|
|
|
|
</view>
|
|
|
|
</form>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<toast hidden="{{toastAddProduct}}" bindchange="toastChange" duration="1200">
|
|
|
|
<text style="font-size:28rpx">成功加入购物车</text>
|
|
|
|
</toast>
|
|
|
|
|
|
|
|
</view>
|