|
@@ -5,10 +5,12 @@
|
|
|
indicator-color="rgba(130, 130, 130, 1)"
|
|
|
indicator-active-color="#FFF"
|
|
|
autoplay="{{false}}">
|
|
|
- <block wx:for="{{background}}" wx:key="*this">
|
|
|
+ <block
|
|
|
+ wx:for="{{objProductDetail.product_rotation_img_list}}"
|
|
|
+ wx:key="*this">
|
|
|
<swiper-item>
|
|
|
- <view class="swiper-item {{item}}">
|
|
|
- <image src=""></image>
|
|
|
+ <view class="swiper-item">
|
|
|
+ <image src="{{item}}"></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</block>
|
|
@@ -16,14 +18,14 @@
|
|
|
</view>
|
|
|
<view class="main-information">
|
|
|
<view class="tag-list">
|
|
|
- <text>蔬菜</text>
|
|
|
+ <text>{{objProductDetail.product_category_name}}</text>
|
|
|
</view>
|
|
|
<text
|
|
|
class="name"
|
|
|
- user-select>名字</text>
|
|
|
+ user-select>{{objProductDetail.product_title}}</text>
|
|
|
<view class="unit-price">
|
|
|
- <text class="price">¥23.00</text>
|
|
|
- <text class="unit">/ kg</text>
|
|
|
+ <text class="price">¥{{tools.fen2Yuan(objProductDetail.product_price)}}</text>
|
|
|
+ <text class="unit">/ {{objProductDetail.product_unit}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<customer-tab
|
|
@@ -32,14 +34,18 @@
|
|
|
bind:change="handleNav"/>
|
|
|
<!--描述-->
|
|
|
<view
|
|
|
- class="business-info"
|
|
|
+ class="goods-info"
|
|
|
hidden="{{active === '2'}}">
|
|
|
- <text class="introduce" user-select>一段描述</text>
|
|
|
+ <text class="introduce" user-select>{{objProductDetail.product_desc}}</text>
|
|
|
<block wx:if="{{false}}">
|
|
|
<view class="subtitle">预计上架时间</view>
|
|
|
- <view class="date">2022年09月10日</view>
|
|
|
+ <view
|
|
|
+ class="date">
|
|
|
+ {{objProductDetail.product_sale_at === 0 ? '预售' : tools.formatTs(objProductDetail.product_sale_at, 'YYYY-MM-DD hh:mm')}}
|
|
|
+ </view>
|
|
|
</block>
|
|
|
- <block wx:if="{{true}}">
|
|
|
+ <!-- TODO 暂时不做 -->
|
|
|
+ <block wx:if="{{false}}">
|
|
|
<view class="subtitle">相关产品</view>
|
|
|
<scroll-view
|
|
|
class="goods-scroll"
|
|
@@ -67,9 +73,9 @@
|
|
|
</view>
|
|
|
<!-- todo 供应商-->
|
|
|
<view
|
|
|
- class="business-info"
|
|
|
hidden="{{active === '1'}}">
|
|
|
- 供应商
|
|
|
+ <business-detail-large
|
|
|
+ shopDetail="{{objShopDetail}}"/>
|
|
|
</view>
|
|
|
|
|
|
<view
|
|
@@ -78,18 +84,8 @@
|
|
|
<view>
|
|
|
<button
|
|
|
class="btn-collection"
|
|
|
- type="primary"
|
|
|
- wx:if="{{false}}">预约并收藏
|
|
|
+ type="primary">添加收藏夹
|
|
|
</button>
|
|
|
- <block wx:if="{{true}}">
|
|
|
- <button
|
|
|
- class="btn-collection"
|
|
|
- type="primary">添加购物车
|
|
|
- </button>
|
|
|
- <button
|
|
|
- class="btn-collection"
|
|
|
- type="primary">添加收藏夹
|
|
|
- </button>
|
|
|
- </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
+<wxs src="../../components/wxs/index.wxs" module="tools"></wxs>
|