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.
46 lines
1.8 KiB
46 lines
1.8 KiB
<!--pages/detail/detail.wxml-->
|
|
<!-- banner -->
|
|
<view wx:for="{{book}}" wx:for-item="books">
|
|
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
|
|
<block>
|
|
<swiper-item>
|
|
<image src="https://hunjianghu.xuanjis.com/web/BookImage/{{books.BookName}}.jpg" data-src="{{item}}" bindtap="previewImage"></image>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
<scroll-view scroll-y="true">
|
|
<view class="detail">
|
|
<text class="title">{{books.BookName}}</text>
|
|
<text class="price">¥{{books.Price}}</text>
|
|
</view>
|
|
<view class="separate"></view>
|
|
<!-- sku选择 -->
|
|
<text bindtap="toggleDialog">数量:1</text>
|
|
<!--
|
|
<view class='stepper'>
|
|
<view class='subtract {{book.Count == 1 ? "disabled": ""}}' data-index='{{index}}' catchtap='subtracttap'>-</view>
|
|
<input class='count' type='number' value='1'></input>
|
|
<view class='add' data-index="{{index}}" catchtap='addtap'>+</view>
|
|
</view>-->
|
|
|
|
<view class="separate"></view>
|
|
<view class="introduce">
|
|
<text>商品评价:{{books.Introduce}}</text>
|
|
</view>
|
|
<view class="separate"></view>
|
|
<view>
|
|
<text>商品详情</text>
|
|
<image class="image_detail" src="https://hunjianghu.xuanjis.com/web/BookImage/{{books.BookName}}.jpg" />
|
|
</view>
|
|
<!--<block wx:for-items="{{detailImg}}" wx:key="name">
|
|
<image class="image_detail" src="{{item}}" />
|
|
</block>-->
|
|
<view class="temp"></view>
|
|
</scroll-view>
|
|
</view>
|
|
<!-- 底部悬浮栏 -->
|
|
<view class="detail-nav">
|
|
<view class="line_nav"></view>
|
|
<button class="button-green" bindtap="addCar" formType="submit">加入购物车</button>
|
|
<button class="button-red" bindtap="immeBuy" formType="submit">立即购买</button>
|
|
</view> |