123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <!-- 轮播 -->
- <view class="page-section">
- <swiper
- indicator-dots="{{true}}"
- indicator-color="rgba(130, 130, 130, 1)"
- indicator-active-color="#FFF"
- autoplay="{{false}}">
- <block
- wx:for="{{objProductDetail.product_rotation_img_list}}"
- wx:key="*this">
- <swiper-item>
- <view class="swiper-item">
- <image src="{{item}}"></image>
- </view>
- </swiper-item>
- </block>
- </swiper>
- </view>
- <view class="main-information">
- <view class="tag-list">
- <text>{{objProductDetail.product_category_name}}</text>
- </view>
- <text
- class="name"
- user-select>{{objProductDetail.product_title}}</text>
- <view class="unit-price">
- <text class="price">¥{{tools.fen2Yuan(objProductDetail.product_all_price)}}</text>
- <text class="unit">/ {{objProductDetail.product_unit}}</text>
- </view>
- </view>
- <customer-tab
- nav="{{nav}}"
- active="{{active}}"
- bind:change="handleNav"/>
- <!--描述-->
- <view
- class="goods-info"
- hidden="{{active === '2'}}">
- <text class="introduce" user-select>{{objProductDetail.product_desc}}</text>
- <block>
- <view class="subtitle">货号</view>
- <view
- class="date">{{objProductDetail.product_code}}
- </view>
- </block>
- <block>
- <view class="subtitle">规格</view>
- <view
- class="date">{{objProductDetail.product_spec}}
- </view>
- </block>
- <block>
- <view class="subtitle">{{objProductDetail.product_sale_at === 0 ? '预计' : ''}}上架时间</view>
- <view
- class="date">
- {{objProductDetail.product_sale_at === 0 ? '预售' : tools.formatTs(objProductDetail.product_sale_at * 1000, 'YYYY-MM-DD hh:mm')}}
- </view>
- </block>
- <block>
- <view class="subtitle">库存</view>
- <view
- class="date">{{objProductDetail.product_count}} {{objProductDetail.product_unit}}
- </view>
- </block>
- <!-- 暂时不做 -->
- <block wx:if="{{false}}">
- <view class="subtitle">相关产品</view>
- <scroll-view
- class="goods-scroll"
- scroll-x>
- <view
- class="item"
- wx:for="{{[1, 2, 3, 4]}}"
- wx:key="item">
- <view>
- <view class="photo">
- <image src=""></image>
- </view>
- <view class="info">
- <text
- class="name">名字名字名字名字名字名字名字名字</text>
- <view class="unit-price">
- <text class="price">¥23.00</text>
- <text class="unit">/ kg</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </block>
- </view>
- <view
- class="banner-box"
- hidden="{{active === '2'}}">
- <image
- class="banner"
- src="{{item}}"
- wx:for="{{objProductDetail.product_detail_img_list}}"
- wx:key="index"></image>
- </view>
- <view
- hidden="{{active === '1'}}">
- <business-detail-large
- shopDetail="{{shopDetail}}"/>
- </view>
- <view
- class="fixed-bottom"
- hidden="{{active === '2'}}">
- <view>
- <button
- class="btn-collection"
- type="primary"
- disabled="{{booLock}}"
- bind:tap="productCollect"
- wx:if="{{searchForm.type >= 1}}">{{searchForm.type === 2 ? '取消收藏' : '添加收藏'}}
- </button>
- </view>
- </view>
- <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>
|