2024-08-29 14:36:16 +08:00
|
|
|
<view class="main">
|
|
|
|
<view class="goods-box">
|
|
|
|
<!-- <image src="{{goods.image}}" class="goods-thumb"></image> -->
|
|
|
|
<swiper class="banner" indicator-dots="true" autoplay="true" interval="{{interval}}" duration="{{duration}}" circular="true">
|
2024-08-31 17:33:35 +08:00
|
|
|
<block wx:for="{{goods.goodImage}}" wx:key="index">
|
2024-08-29 14:36:16 +08:00
|
|
|
<swiper-item>
|
|
|
|
<image src="{{item}}" class="slide-image" width="100%" />
|
|
|
|
</swiper-item>
|
|
|
|
</block>
|
|
|
|
</swiper>
|
|
|
|
<!-- <navigator open-type="switchTab" url="../cart/cart">
|
|
|
|
<view class="carts-icon {{scaleCart?'on':''}}">
|
|
|
|
<image src="/image/cart2.png"></image>
|
|
|
|
<text class="carts-icon-num" wx:if="{{hasCarts}}">{{totalNum}}</text>
|
|
|
|
</view>
|
|
|
|
</navigator> -->
|
|
|
|
|
2024-08-31 17:33:35 +08:00
|
|
|
<!-- <view class="goods-operation"> -->
|
|
|
|
<view class="goods-info">
|
|
|
|
<view class="left-section">
|
|
|
|
<view class="goods-price">¥ {{goods.goodPrice}}</view>
|
|
|
|
<view class="goods-title">{{goods.goodName}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="right-section">
|
|
|
|
<t-button open-type="share" t-class="shareBtn" variant="text">
|
|
|
|
<view class="btn-icon">
|
|
|
|
<t-icon name="share" size="40rpx" color="#000" />
|
|
|
|
</view>
|
|
|
|
<view class="share-text">分享</view>
|
|
|
|
</t-button>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="goods-buy">
|
|
|
|
<navigator>
|
|
|
|
<t-icon class="left-return" name="home"></t-icon>
|
|
|
|
<view>首页</view>
|
2024-08-29 14:36:16 +08:00
|
|
|
</navigator>
|
2024-08-31 17:33:35 +08:00
|
|
|
<t-button class="right-buy" theme="light" variant="outline" size="large" shape="round">立即购买</t-button>
|
2024-08-29 14:36:16 +08:00
|
|
|
</view>
|
2024-08-31 17:33:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <text class="goods-operation-add" bindtap="reduceCount">-</text>
|
|
|
|
<text class="goods-operation-num">数量 {{num}}</text>
|
|
|
|
<text class="goods-operation-add" bindtap="addCount">+</text> -->
|
|
|
|
<!-- <navigator url="javascript:void(0);" open-type="false">
|
|
|
|
<button class="goods-to-buy" bindtap="onBuyClick">购买</button>
|
|
|
|
</navigator> -->
|
|
|
|
<!-- <text class="goods-to-cart" bindtap="addToBuy">购买</text> -->
|
|
|
|
<!-- <image src="/image/cart1.png" class="goods-cart-img" bindtap="addToCart"></image> -->
|
|
|
|
<!-- </view> -->
|
2024-08-29 14:36:16 +08:00
|
|
|
<image wx:if="{{show}}" src="/image/cart1.png" class="to-carts-icon"></image>
|
|
|
|
<!-- <view class="goods-stock">{{goods.stock}}</view> -->
|
|
|
|
</view>
|
2024-08-31 17:33:35 +08:00
|
|
|
<!-- <view class="goods-tab-box">
|
2024-08-29 14:36:16 +08:00
|
|
|
<view class="goods-tab-nav {{curIndex === 0 ?'on':''}}" bindtap="bindTap" data-index="0">商品详情</view>
|
|
|
|
<view class="goods-tab-nav {{curIndex === 1 ?'on':''}}" bindtap="bindTap" data-index="1">产品参数</view>
|
|
|
|
<view class="goods-tab-nav {{curIndex === 2 ?'on':''}}" bindtap="bindTap" data-index="2">售后保障</view>
|
|
|
|
<view class="goods-content">
|
2024-08-29 23:54:16 +08:00
|
|
|
<view wx:if="{{curIndex === 0}}">{{goods.goodDetail}}</view>
|
2024-08-29 14:36:16 +08:00
|
|
|
<view wx:if="{{curIndex === 1}}">{{goods.parameter}}</view>
|
|
|
|
<view wx:if="{{curIndex === 2}}">{{goods.service}}</view>
|
|
|
|
</view>
|
2024-08-31 17:33:35 +08:00
|
|
|
</view> -->
|
2024-08-29 14:36:16 +08:00
|
|
|
</view>
|