143 lines
5.5 KiB
Plaintext
143 lines
5.5 KiB
Plaintext
<import src="../../wxParse/wxParse.wxml" />
|
|
<!--轮播图-->
|
|
<view class="content">
|
|
<swiper class='u-wrp-bnr' autoplay='true' interval='8000' duration='1000' circular='true' bindchange="onSlideChange">
|
|
<block wx:for="{{bnrUrl}}" wx:key="index">
|
|
<swiper-item>
|
|
<image src='{{item}}' data-src="{{item}}" bindtap="previewImage" class='u-img-slide'></image>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
|
|
</view>
|
|
<view class="num display_J_C display_A_C" style="{{flash==1?'top:426rpx':''}}" wx:if="{{lunboindex>1}}">
|
|
<image src="/icon/goods-xj.png"></image>{{lunboindex}} / {{bnrUrl.length}}张
|
|
</view>
|
|
<view class="num display_J_C display_A_C" style="{{flash==1?'top:426rpx':''}}" wx:else>
|
|
<image src="/icon/goods-xj.png"></image>1 / {{bnrUrl.length}}张
|
|
</view>
|
|
|
|
<view class="detail-block">
|
|
<!-- 普通 -->
|
|
<view class="detail-title display_A_C" wx:if='{{!integral==1}}'>
|
|
<view class="detail-text">
|
|
<text>¥</text>{{goodsList.wisdGoodsSpecList[0].price}}
|
|
</view>
|
|
<view class="exchange-num-two">
|
|
<text>¥</text>{{goodsList.wisdGoodsSpecList[0].originalPrice}}
|
|
</view>
|
|
<view class="exchange-num-three">
|
|
团购价:¥{{goodsList.recommendedBulyPrice}}
|
|
</view>
|
|
</view>
|
|
<!-- 积分 -->
|
|
<view class="detail-title display_A_C" wx:if='{{integral==1}}'>
|
|
<view class="detail-text">
|
|
{{goodsList.wisdGoodsSpecList[0].price}}积分
|
|
</view>
|
|
</view>
|
|
|
|
<view class="detail-price">{{goodsList.goodsName}}</view>
|
|
<view class="detail-bottom display_J_B">
|
|
<view class="detail-bottom-l display_J_S">
|
|
<view class="detail-bottom-l__1">满¥{{goodsList.freightPrice}}包邮</view>
|
|
<view class="detail-bottom-l__2">分享得积分
|
|
<button open-type="share"></button>
|
|
</view>
|
|
</view>
|
|
<view class="detail-bottom-r">{{integral==1?'已兑换':'销量'}} {{goodsList.goodsSales}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- 加入购物车弹窗 -->
|
|
<view class="commodity_screen" bindtap="hideModal" wx:if="{{showModalStatus}}"></view>
|
|
<view animation="{{animationData}}" class="commodity_attr_box" wx:if="{{showModalStatus}}">
|
|
<text class="iconfont icon-icon- hideModal" bindtap="hideModal"></text>
|
|
<view class="choose-img display_A_C">
|
|
<image src="{{goodsList.goodsPhoto}}" />
|
|
<view class="choose-right">
|
|
<view class="detail-title display_A_C">
|
|
<!-- 普通商城 -->
|
|
<view wx:if="{{!integral==1}}" class="exchange-num-one">
|
|
¥{{goodsList.wisdGoodsSpecList[specsIndex].price}}
|
|
</view>
|
|
<!-- 积分 -->
|
|
<view wx:if="{{integral==1}}" class="exchange-num-one">
|
|
{{goodsList.wisdGoodsSpecList[specsIndex].price}}积分
|
|
</view>
|
|
</view>
|
|
<view>库存{{goodsList.wisdGoodsSpecList[specsIndex].specStock}}</view>
|
|
<view>{{goodsList.goodsName}}</view>
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height: 400rpx;">
|
|
<view class="standard-title ">规格</view>
|
|
<view class="standard-box display_J_S">
|
|
<view class="standard-text {{specsIndex==index?'active':''}}" wx:for="{{goodsList.wisdGoodsSpecList}}"
|
|
wx:key="index" data-index="{{index}}" bindtap='specsClick'>{{item.specName}}</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="standard-num-box">
|
|
<view>
|
|
<text class="num-title">数量</text>
|
|
</view>
|
|
<view class="standard-num display_J_A display_A_C">
|
|
<text class="reduce {{minusStatus}}" bindtap="clickReduce">-</text>
|
|
<input bindinput="standardNum" type="number" value="{{standardNum}}" disabled></input>
|
|
<text class="add" bindtap="clickAdd">+</text>
|
|
</view>
|
|
</view>
|
|
<view class="cart">
|
|
<text wx:if="{{choose==1}}" bindtap="hideModal" data-hide="1">加入购物车</text>
|
|
<text wx:if="{{choose==2}}" bindtap="hideModal" data-hide="2">立即购买</text>
|
|
<text wx:if="{{choose==3}}" bindtap="hideModal" data-hide="3">确认兑换</text>
|
|
<!-- <text class='cart_4' wx:if="{{choose==3}}" >积分不足</text> -->
|
|
</view>
|
|
</view>
|
|
<!-- 商品详情 -->
|
|
<view class="detImg-header">
|
|
<image src="/icon/goods_1.png" />
|
|
</view>
|
|
<view class="detImg-header" style="margin-top:30rpx;">
|
|
<image src="/icon/goods_2.png" />
|
|
</view>
|
|
<view class="detail-img">
|
|
<template is="wxParse" data="{{wxParseData:contents.nodes}}" />
|
|
</view>
|
|
<!-- 立即购买 -->
|
|
<view wx:if="{{login}}">
|
|
<view wx:if="{{!integral==1}}">
|
|
<view class="cartshop-block display_J_B">
|
|
<view class="cartshop-img-box" catchtap="toIndex">
|
|
<view class="display_J_C">
|
|
<image class="cartshop-img" src="/icon/goods-index.png" />
|
|
</view>
|
|
<view class="cartshop-img-name">首页</view>
|
|
</view>
|
|
<view class="cartshop-img-box" catchtap="toCar">
|
|
<view class="display_J_C">
|
|
<image class="cartshop-img" src="/icon/goods-cart.png" />
|
|
</view>
|
|
<view class="cartshop-img-name">购物车</view>
|
|
<text class="cartshop-img-num">{{goodsList.cartNum}}</text>
|
|
</view>
|
|
<view class="cartshop-img-box" catchtap="">
|
|
<view class="display_J_C">
|
|
<image class="cartshop-img" src="/icon/goods-fx.png" />
|
|
</view>
|
|
<view class="cartshop-img-name">分享</view>
|
|
<button plain="true" open-type="share"> </button>
|
|
</view>
|
|
<view class="cart-add">
|
|
<text bindtap="choose" data-choose="1">加入购物车</text>
|
|
<text bindtap="choose" data-choose="2">立即支付</text>
|
|
<!-- <text bindtap="choose" style="{{goodsList.type==1||flash==1?'border-radius: 40px;width: 380rpx;':''}}" data-choose="2">立即支付</text> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="wIntegral display_J_C display_A_C" bindtap="choose" data-choose="3" wx:if="{{integral==1}}">
|
|
<view>立即兑换</view>
|
|
</view>
|
|
</view>
|
|
<view class="wLogin" catchtap="login" wx:if="{{!login}}">授权登录</view>
|
|
|
|
<view class="height100"></view> |