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.
32 lines
989 B
32 lines
989 B
<view> |
|
<view> |
|
<image class="head-img" src="{{product.attributes['image-url']}}" mode="aspectFit" /> |
|
</view> |
|
|
|
<text>{{product.attributes.name}}</text> |
|
|
|
<view> |
|
<form bindsubmit="formSubmit" data-sku="{{product.attributes.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.attributes.price || '无法获取价格'}}</text> |
|
</view> |
|
<view class="btn-area"> |
|
<button formType="submit" type='primary'>立即购买</button> |
|
<button bindtap="bindAddToCart">加入购物车</button> |
|
</view> |
|
</form> |
|
</view> |
|
|
|
<view wx:if="{{ address > 0 }}" bindtap="bindTapAddress"> |
|
<text>{{address}}</text> |
|
<text>修改地址</text> |
|
</view> |
|
<view wx:else bindtap="bindTapAddress"> |
|
<text>add new address</text> |
|
</view> |
|
|
|
</view>
|
|
|