detail_1.wxml 5.0 KB
<!--pages/kind/detail_1/detail_1.wxml-->
<!-- 商品 -->
<view class='container'>
    <view class='ware_box'>
        <view class='ware_top'>
            <view class='ware_1'>
                <image src='{{detailCon.thumb}}'></image>
                <view class='ware_1_time'>
                    据结束{{detailCon.day}}天{{detailCon.hou}}时{{detailCon.min}}分{{detailCon.sec}}秒
                </view>
            </view>
            <view class='ware_text'>
                <view class='ware_2'>
                    <text class='ware_2Txt1'>{{detailCon.name}}</text>
                    <text class='ware_2Txt2'>产地:{{detailCon.origin}}</text>
                </view>
                <view class='ware_3'>
                    <progress percent="{{detailCon.percent}}" show-info color="#B5DE96" border-radius="8" font-size="24rpx" stroke-width="16rpx" />
                </view>
                <view class='ware_4'>
                    <text>已拼{{detailCon.numb}}份,目标{{detailCon.group}}份</text>
                </view>
                <view class='ware_5'>
                    <view>
                        <text class='ware5_t1'>¥{{detailCon.money_sale}}/</text>
                        <text class='ware5_t2'>{{detailCon.shop_type}}</text>
                    </view>
                    <view class='ware5_box'>
                        <view class='ware5_t3'>{{detailCon.text_table}}</view>
                        <view class='ware5_t4'>{{detailCon.text_content}}</view>
                    </view>
                    <view class='ware_6' bindtap='goConfirm'>
                        <view>立即参团</view>
                    </view>
                </view>
            </view>
        </view>
        <view class='ware_bot'>
            <view class='ware_bot_tit'>经典推荐</view>
            <view class='ware_bot_txt'>{{detailCon.recommend}}</view>
        </view>
    </view>
</view>
<!-- 商品规格 -->
<view class='spec'>
    <view class='spec_txt'>商品规格</view>
    <view class='spec_txt2'>1磅1份</view>
</view>
<!-- 商品详情 -->
<view class='ware_detail'>
    <view class='ware_detail_tit'>
        <view class="ware_detail_box {{index == 1 ? 'ware_active' : ''}}" bindtap='goy' data-id="1">商品详情</view>
        <view class="ware_detail_box {{index == 2 ? 'ware_active' : ''}}" bindtap='goy' data-id="2">用户评价</view>
    </view>
    <view class='ware_detailC'>
        <view class='ware_detailImg' wx:if="{{index == 1}}">
            <import src="../../../wxParse/wxParse.wxml" />
            <template is="wxParse" data="{{wxParseData:content.nodes}}" />
        </view>
        <!-- 用户评价 -->
        <view class='ware_assess' wx:if="{{index == 2}}">
            <view class='ware_assess_li' wx:for="{{assess}}" wx:key = "index">
                <view class='assess_header'>
                    <view class='assess_headerImg'>
                        <image src='{{item.avatar}}'></image>
                    </view>
                    <view class='assess_headerTxt'>{{item.user_nickname}}</view>
                </view>
                <view class='assess_say'>
                    {{item.text}}
                </view>
                <view class='ware_pic'>
                    <view class='ware_picBox'>
                        <image src='{{item.img}}'></image>
                    </view>
                </view>
                <view class='assess_time'>2019/07/01</view>
            </view>
            <view class='whole'>
                查看全部评价
            </view>
        </view>
    </view>
</view>
<!-- footer底部 -->
<view class='footer'>
    <view class='footer_add' bindtap='addFun'>加入收藏</view>
    <view class='footer_off' bindtap='goConfirm'>立即参团</view>
</view>
<!-- 遮罩层 -->
<view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
<!-- 弹出层 -->
<view class="modalDlg" wx:if="{{showModal}}">
    <view class='modalDlg_p'>
        <view class='m_top'>
            <view class='m_topImg'>
                <image src='{{detailCon.thumb}}'></image>
            </view>
            <view class='m_topTxt'>
                <view class='m_topTxt1'>
                    <view class='m_topName'>{{detailCon.name}}</view>
                    <image bindtap='m_close' src='../../../img/cha.png'></image>
                </view>
                <view class='m_topTxt2'>
                    <view class='m_topPrice'>¥{{detailCon.money_sale}}</view>
                    <view class='m_topHelf'>{{detailCon.shop_type}}</view>
                </view>
            </view>
        </view>
        <view class='m_number'>
            <view class='m_numTxt'>购买数量</view>
            <view class='minus_push'>
                <view class='minus' bindtap="bindMinus">-</view>
                <view class='num' bindchange="bindManual">{{num}}</view>
                <view class='push' bindtap="bindPlus">+</view>
            </view>
        </view>
        <button class='m_btn' bindtap='goFirm_order1' data-id="{{detailCon.shop_id}}">确认</button>
    </view>
</view>