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.
75 lines
2.3 KiB
75 lines
2.3 KiB
<view> |
|
<view> |
|
<image class="head-img" src="{{product['image-url']}}" mode="aspectFit" /> |
|
</view> |
|
|
|
<view class="product-name"><text>{{product.name}}</text></view> |
|
|
|
<view> |
|
<form> |
|
<view class="line"> |
|
<view class="section price"> |
|
<view wx:if="{{ accountType === '巴爷' }}"> |
|
<text id="price">巴爷价:¥{{product['baye-price']}}</text> |
|
</view> |
|
<view wx:else> |
|
<text id="price">¥{{product['member-price']}}</text> |
|
</view> |
|
</view> |
|
</view> |
|
<view class="btn-area"> |
|
<button bindtap="bindAddToCart" type="primary">加入购物车</button> |
|
</view> |
|
</form> |
|
</view> |
|
|
|
<view class="separate"></view> |
|
|
|
<view class="desc-container"> |
|
<block wx:for="{{product.desc}}" wx:for-item="desc" wx:key="id"> |
|
<view wx:if="{{desc[1] === '750'}}"> |
|
<image class="desc-image" src="{{desc[0]}}" style="height: {{desc[2]}}rpx; width: {{desc[1]}}rpx;" mode="aspectFit"/> |
|
</view> |
|
<view wx:else> |
|
<image class="desc-image" src="{{desc[0]}}" style="height: {{desc[2] / desc[1] * windowWidth}}px;" mode="aspectFit"/> |
|
</view> |
|
</block> |
|
</view> |
|
</view> |
|
|
|
<navigator id="back-to-home" url="/pages/index/index" open-type="switchTab" hover-class=""> |
|
<image src="../../images/back_to_home.png"></image> |
|
</navigator> |
|
|
|
|
|
|
|
|
|
<view class="mall_tan_content" animation="{{addProductAnimation}}"> |
|
<view class="mall_tan_color"> |
|
<!--<image class="head-img" src="{{product['image-url']}}" mode="aspectFit" />--> |
|
<view class="mall_bottom_word"> |
|
<view>{{product.name}}</view> |
|
<view wx:if="{{ accountType === '巴爷' }}"> |
|
<text id="price">巴爷价:¥{{product['baye-price']}}</text> |
|
</view> |
|
<view wx:else> |
|
<text id="price">¥{{product['member-price']}}</text> |
|
</view> |
|
</view> |
|
<!--<image class="head-img" src="../../images/1.png" mode="aspectFit" />--> |
|
|
|
<view wx:if="{{product['category-id'] === 18}}"> |
|
<view class="inventory_mold"> |
|
<text>商品类型</text> |
|
<view> |
|
<button>普通</button> |
|
<button>实体卡</button> |
|
</view> |
|
<view></view> |
|
</view> |
|
</view> |
|
<view class="mall_tan_num"> |
|
<text>购买数量:</text> |
|
</view> |
|
</view> |
|
</view> |