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>
|
|
|
|
<image src="{{product.attributes['image-url']}}" mode="aspectFill"/>
|
|
|
|
<text>{{product.attributes.name}}</text>
|
|
|
|
|
|
|
|
<view wx:if="{{ address > 0 }}" bindtap="bindTapAddress">
|
|
|
|
<text>{{address}}</text>
|
|
|
|
<text>edit</text>
|
|
|
|
</view>
|
|
|
|
<view wx:else bindtap="bindTapAddress">
|
|
|
|
<text>add new address</text>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view>
|
|
|
|
<form bindsubmit="formSubmit" bindreset="formReset" data-sku="{{product.attributes.sku}}">
|
|
|
|
<view class="section">
|
|
|
|
<text class="">数量</text>
|
|
|
|
<input name="quantity" value="1" />
|
|
|
|
</view>
|
|
|
|
<view class="section">
|
|
|
|
<text>¥{{product.attributes.price || '无法获取价格'}}</text>
|
|
|
|
</view>
|
|
|
|
<view class="btn-area">
|
|
|
|
<button formType="submit">buy it!</button>
|
|
|
|
<button formType="reset">Reset</button>
|
|
|
|
</view>
|
|
|
|
</form>
|
|
|
|
</view>
|
|
|
|
</view>
|