| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <view class="goods-container">
- <wxs src="../../utils/filter.wxs" module="filter" />
- <!-- 轮播图 -->
- <view class="swiper">
- <swiper duration="600" bindchange="setPicIndex">
- <swiper-item wx:for="{{ goodsData.picUrl }}" wx:key="index" data-current="{{ goodsData.picUrl[index] }}" data-urls="{{ goodsData.picUrl }}" bindtap="previewImage">
- <image src="{{ item }}" />
- </swiper-item>
- </swiper>
- <view class="dots">{{ swiper_index + 1 }}/{{ goodsData.picUrl.length }}</view>
- </view>
- <view class="goods-content">
- <!-- 商品详情 -->
- <view class="goods-detail jhx_bg0">
- <view class="top acea-row row-between-wrapper">
- <view class="price">¥<text>{{ goodsData.curSpec.price }}</text></view>
- <button class="share-btn" open-type="share">
- <image src="/packageGoods/detail/icon_share.png" />
- </button>
- </view>
- <view class="acea-row row-between">
- <view class="name line1 line2">{{ goodsData.name }}</view>
- <view wx:if="{{ collectId }}" class="collect">
- <van-icon custom-class="collect-icon" name="goods-collect" color="#D32D2F" bindtap="toggleCollect" />
- <view>已收藏</view>
- </view>
- <view wx:else class="collect">
- <van-icon custom-class="collect-icon" name="goods-collect-o" color="#767a81" bindtap="toggleCollect" />
- <view>收藏</view>
- </view>
- </view>
- </view>
- <!-- 相关信息 -->
- <view class="information jhx_bg0">
- <view class="default acea-row row-middle" bindtap="showSpec">
- <view class="label">已选</view>
- <view style="flex: 1" class="acea-row row-between">
- <view>{{ filter.getCartSpec(goodsData.curSpec.specifications) }}</view>
- <van-icon name="arrow" size="14" color="#8e8e8e" />
- </view>
- </view>
- </view>
- </view>
-
- <view class="introduce acea-row row-center-wrapper">详情介绍</view>
- <!-- 详情图 -->
- <view class="detail-drawing jhx_bg0">
- <import src="/lib/wxParse/wxParse.wxml" />
- <template is="wxParse" data="{{ wxParseData: goodsDetail.nodes }}" />
- </view>
- <!-- 商品规格弹出框 -->
- <spec-popup show="{{ show_spec }}" goods="{{ goodsData }}" bindhideSpec="hideSpec" />
- </view>
|