|
@@ -1,32 +1,31 @@
|
|
|
-<scroll-view class="container" scroll-y="true">
|
|
|
- <view wx:if="{{!openAttr}}">
|
|
|
- <swiper class="goodsimgs" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
|
|
|
- <swiper-item wx:for="{{gallery}}" wx:key="{{item.id}}">
|
|
|
- <image src="{{item.img_url}}" background-size="cover"></image>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- <view class="service-policy">
|
|
|
- <view class="item">30天无忧退货</view>
|
|
|
- <view class="item">48小时快速退款</view>
|
|
|
- <view class="item">满88元免邮费</view>
|
|
|
- </view>
|
|
|
- <view class="goods-info">
|
|
|
- <view class="c">
|
|
|
- <text class="name">{{goods.name}}</text>
|
|
|
- <text class="desc">{{goods.goods_brief}}</text>
|
|
|
- <text class="price">¥{{goods.retail_price}}</text>
|
|
|
- <view class="brand" wx:if="{{brand.name}}">
|
|
|
- <navigator url="../brandDetail/brandDetail?id={{brand.brandId}}">
|
|
|
- <text>{{brand.name}}</text>
|
|
|
- </navigator>
|
|
|
- </view>
|
|
|
+<view class="container">
|
|
|
+ <swiper class="goodsimgs" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
|
|
|
+ <swiper-item wx:for="{{gallery}}" wx:key="{{item.id}}">
|
|
|
+ <image src="{{item.img_url}}" background-size="cover"></image>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ <view class="service-policy">
|
|
|
+ <view class="item">30天无忧退货</view>
|
|
|
+ <view class="item">48小时快速退款</view>
|
|
|
+ <view class="item">满88元免邮费</view>
|
|
|
+ </view>
|
|
|
+ <view class="goods-info">
|
|
|
+ <view class="c">
|
|
|
+ <text class="name">{{goods.name}}</text>
|
|
|
+ <text class="desc">{{goods.goods_brief}}</text>
|
|
|
+ <text class="price">¥{{goods.retail_price}}</text>
|
|
|
+ <view class="brand" wx:if="{{brand.name}}">
|
|
|
+ <navigator url="../brandDetail/brandDetail?id={{brand.brandId}}">
|
|
|
+ <text>{{brand.name}}</text>
|
|
|
+ </navigator>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="section-nav section-attr" bindtap="switchAttrPop">
|
|
|
- <view class="t">请选择规格数量</view>
|
|
|
- <image class="i" src="../../static/images/address_right.png" background-size="cover"></image>
|
|
|
- </view>
|
|
|
- <!--<view class="section-nav section-act">
|
|
|
+ </view>
|
|
|
+ <view class="section-nav section-attr" bindtap="switchAttrPop">
|
|
|
+ <view class="t">请选择规格数量</view>
|
|
|
+ <image class="i" src="../../static/images/address_right.png" background-size="cover"></image>
|
|
|
+ </view>
|
|
|
+ <!--<view class="section-nav section-act">
|
|
|
<view class="t">
|
|
|
<view class="label">1个促销:</view>
|
|
|
<view class="tag">万圣趴</view>
|
|
@@ -34,86 +33,89 @@
|
|
|
</view>
|
|
|
<image class="i" src="../../static/images/address_right.png" background-size="cover"></image>
|
|
|
</view>-->
|
|
|
- <view class="comments" wx:if="{{comment.count > 0}}">
|
|
|
- <view class="h">
|
|
|
- <navigator url="../comment/comment?valueId={{goods.id}}&typeId=0">
|
|
|
- <text class="t">评价({{comment.count > 999 ? '999+' : comment.count}})</text>
|
|
|
- <text class="i">查看全部</text>
|
|
|
- </navigator>
|
|
|
- </view>
|
|
|
- <view class="b">
|
|
|
- <view class="item">
|
|
|
- <view class="info">
|
|
|
- <view class="user">
|
|
|
- <image src="{{comment.data.avatar}}"></image>
|
|
|
- <text>{{comment.data.nickname}}</text>
|
|
|
- </view>
|
|
|
- <view class="time">{{comment.data.add_time}}</view>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- {{comment.data.content}}
|
|
|
- </view>
|
|
|
- <view class="imgs" wx:if="{{comment.data.pic_list.length > 0}}">
|
|
|
- <image class="img" wx:for="{{comment.data.pic_list}}" wx:key="{{item.id}}" src="{{item.pic_url}}"></image>
|
|
|
+ <view class="comments" wx:if="{{comment.count > 0}}">
|
|
|
+ <view class="h">
|
|
|
+ <navigator url="../comment/comment?valueId={{goods.id}}&typeId=0">
|
|
|
+ <text class="t">评价({{comment.count > 999 ? '999+' : comment.count}})</text>
|
|
|
+ <text class="i">查看全部</text>
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ <view class="b">
|
|
|
+ <view class="item">
|
|
|
+ <view class="info">
|
|
|
+ <view class="user">
|
|
|
+ <image src="{{comment.data.avatar}}"></image>
|
|
|
+ <text>{{comment.data.nickname}}</text>
|
|
|
</view>
|
|
|
- <!-- <view class="spec">白色 2件</view> -->
|
|
|
+ <view class="time">{{comment.data.add_time}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="content">
|
|
|
+ {{comment.data.content}}
|
|
|
</view>
|
|
|
+ <view class="imgs" wx:if="{{comment.data.pic_list.length > 0}}">
|
|
|
+ <image class="img" wx:for="{{comment.data.pic_list}}" wx:key="{{item.id}}" src="{{item.pic_url}}"></image>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="spec">白色 2件</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="goods-attr">
|
|
|
- <view class="t">商品参数</view>
|
|
|
- <view class="l">
|
|
|
- <view class="item" wx:for="{{attribute}}" wx:key="{{item.name}}">
|
|
|
- <text class="left">{{item.name}}</text>
|
|
|
- <text class="right">{{item.value}}</text>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view class="goods-attr">
|
|
|
+ <view class="t">商品参数</view>
|
|
|
+ <view class="l">
|
|
|
+ <view class="item" wx:for="{{attribute}}" wx:key="{{item.name}}">
|
|
|
+ <text class="left">{{item.name}}</text>
|
|
|
+ <text class="right">{{item.value}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="detail">
|
|
|
- <import src="../../lib/wxParse/wxParse.wxml" />
|
|
|
- <template is="wxParse" data="{{wxParseData:goodsDetail.nodes}}" />
|
|
|
- </view>
|
|
|
+ <view class="detail">
|
|
|
+ <import src="../../lib/wxParse/wxParse.wxml" />
|
|
|
+ <template is="wxParse" data="{{wxParseData:goodsDetail.nodes}}" />
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
- <view class="common-problem">
|
|
|
- <view class="h">
|
|
|
- <view class="line"></view>
|
|
|
- <text class="title">常见问题</text>
|
|
|
- </view>
|
|
|
- <view class="b">
|
|
|
- <view class="item" wx:for="{{issueList}}" wx:key="{{item.id}}">
|
|
|
- <view class="question-box">
|
|
|
- <text class="spot"></text>
|
|
|
- <text class="question">{{item.question}}</text>
|
|
|
- </view>
|
|
|
- <view class="answer">
|
|
|
- {{item.answer}}
|
|
|
- </view>
|
|
|
+ <view class="common-problem">
|
|
|
+ <view class="h">
|
|
|
+ <view class="line"></view>
|
|
|
+ <text class="title">常见问题</text>
|
|
|
+ </view>
|
|
|
+ <view class="b">
|
|
|
+ <view class="item" wx:for="{{issueList}}" wx:key="{{item.id}}">
|
|
|
+ <view class="question-box">
|
|
|
+ <text class="spot"></text>
|
|
|
+ <text class="question">{{item.question}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="answer">
|
|
|
+ {{item.answer}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
|
|
|
- <view class="h">
|
|
|
- <view class="line"></view>
|
|
|
- <text class="title">大家都在看</text>
|
|
|
- </view>
|
|
|
- <view class="b">
|
|
|
- <view class="item" wx:for="{{relatedGoods}}" wx:key="{{item.id}}">
|
|
|
- <navigator url="/pages/goods/goods?id={{item.id}}">
|
|
|
- <image class="img" src="{{item.list_pic_url}}" background-size="cover"></image>
|
|
|
- <text class="name">{{item.name}}</text>
|
|
|
- <text class="price">¥{{item.retail_price}}</text>
|
|
|
- </navigator>
|
|
|
- </view>
|
|
|
+ <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
|
|
|
+ <view class="h">
|
|
|
+ <view class="line"></view>
|
|
|
+ <text class="title">大家都在看</text>
|
|
|
+ </view>
|
|
|
+ <view class="b">
|
|
|
+ <view class="item" wx:for="{{relatedGoods}}" wx:key="{{item.id}}">
|
|
|
+ <navigator url="/pages/goods/goods?id={{item.id}}">
|
|
|
+ <image class="img" src="{{item.list_pic_url}}" background-size="cover"></image>
|
|
|
+ <text class="name">{{item.name}}</text>
|
|
|
+ <text class="price">¥{{item.retail_price}}</text>
|
|
|
+ </navigator>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
- <view wx:if="{{openAttr}}" class="attr-pop">
|
|
|
+</view>
|
|
|
+<view class="attr-pop-box" hidden="{{!openAttr}}">
|
|
|
+ <view class="attr-pop">
|
|
|
+ <view class="close" bindtap="closeAttr">
|
|
|
+ <image class="icon" src="/static/images/icon_close.png"></image>
|
|
|
+ </view>
|
|
|
<view class="img-info">
|
|
|
- <image class="img" src="http://ac-3yr0g9cz.clouddn.com/6e5176bd6545b72e130a.png"></image>
|
|
|
+ <image class="img" src="{{gallery[0].img_url}}"></image>
|
|
|
<view class="info">
|
|
|
<view class="c">
|
|
|
<view class="p">价格:¥{{goods.retail_price}}</view>
|
|
@@ -139,18 +141,17 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="bottom-btn">
|
|
|
- <view class="l l-collect {{ openAttr ? 'back' : ''}}" bindtap="closeAttrOrCollect">
|
|
|
- <image class="icon" src="{{ collectBackImage }}"></image>
|
|
|
- </view>
|
|
|
- <view class="l l-cart">
|
|
|
- <view class="box">
|
|
|
- <text class="cart-count">{{cartGoodsCount}}</text>
|
|
|
- <image bindtap="openCartPage" class="icon" src="/static/images/ic_menu_shoping_nor.png"></image>
|
|
|
-
|
|
|
- </view>
|
|
|
+</view>
|
|
|
+<view class="bottom-btn">
|
|
|
+ <view class="l l-collect" bindtap="addCannelCollect">
|
|
|
+ <image class="icon" src="{{ collectBackImage }}"></image>
|
|
|
+ </view>
|
|
|
+ <view class="l l-cart">
|
|
|
+ <view class="box">
|
|
|
+ <text class="cart-count">{{cartGoodsCount}}</text>
|
|
|
+ <image bindtap="openCartPage" class="icon" src="/static/images/ic_menu_shoping_nor.png"></image>
|
|
|
</view>
|
|
|
- <view class="c">立即购买</view>
|
|
|
- <view class="r" bindtap="addToCart">加入购物车</view>
|
|
|
</view>
|
|
|
-</scroll-view>
|
|
|
+ <view class="c">立即购买</view>
|
|
|
+ <view class="r" bindtap="addToCart">加入购物车</view>
|
|
|
+</view>
|