shop_detail.wxml 4.5 KB
<import src="/wxParse/wxParse.wxml" />

<view class='page{{mask?" active":""}}'>
    <concat />
    <view class='top'>
        <view class='current_box'>{{current+1}}/{{info.images.length}}</view>
        <swiper class='swiper' current='{{current}}' bindchange='getCurrent'>
            <swiper-item class='swiper-item' wx:for='{{info.images}}' wx:key='index'>
                <image src='{{item}}' mode="aspectFill" />
            </swiper-item>
        </swiper>
    </view>
    <view class='two'>
        <view class='two_one'>
            <!-- 2023-10-19 需求要将积分改为微信支付的金额 -->
            <!-- <view class='score'>积分</view> -->
            <view class='price'>¥{{info.price2==null?info.price:info.price2}}</view>
        </view>

        <!-- <view class="oldprice" wx:if="{{info.price2!=null}}">{{info.price}}</view> -->
        <view class='two_two'>{{info.name}}</view>
        <view class='two_three two_threek'>
            <view>库存:{{info.sold}}</view>
            <view>销量:{{info.paynum}}</view>
        </view>
    </view>
    <view class='three'>
        <view class='three_one'>
            <view class='three_one_item {{status==index?"active":""}}' wx:for='{{nav}}' wx:for-index='index' wx:key='{{index}}' bindtap='clickNav' data-index='{{index}}'>{{item}}</view>
        </view>
        <view class='three_two'>
            <template is="wxParse" data="{{wxParseData:contenta.nodes}}" wx:if="{{status==0}}" />
            <template is="wxParse" data="{{wxParseData:contenb.nodes}}" wx:elif="{{status==1}}" />
            <template is="wxParse" data="{{wxParseData:contenc.nodes}}" wx:elif="{{status==2}}" />
        </view>

    </view>
    <view class='bottom'>
        <view class='cart_box' catchtap="go_car">
            <view class='cart_img'>
                <view class='cart_count'>{{info.shop}}</view>
                <image src='/images/icon_51.png'></image>
            </view>
            <view class='cart_font'>购物车</view>
        </view>

        <view class="sc_box" catchtap="colloct">
            <image src="{{info.colloct?'/images/sc@.png':'/images/sc.png'}}" />
            <view class="{{info.colloct?'active':''}}">{{info.colloct?'已收藏':'收藏'}}</view>
        </view>

        <view class='left_btn' bindtap='change_cover' data-type="1">加入购物车</view>
        <view class='right_btn' bindtap='change_cover' data-type="2">立即购买</view>

        <!-- 遮罩 -->
        <view class="bottom_cover" catchtap="go_login" wx:if="{{no_login}}" />
    </view>
</view>
<!-- 弹框开始 -->
<view class='mask' wx:if='{{mask}}' bindtap="change_cover" catchtouchmove="true">
    <view class='mask_diceng'>
        <view class='mask_one'>
            <view class='mask_img'>
                <image src='{{info.images[0]}}'></image>
            </view>
            <view class='img_right'>
                <view class='info_title'>{{info.name}}</view>
                <view wx:if="{{info.price2!=null}}">
                    <view class='two_ones'>
                        <!-- 2023-10-19 需求要将积分改为微信支付的金额 -->
                        <!-- <view class='scores'>积分</view> -->
                        <view class='prices'>¥{{info.price2}}</view>
                    </view>
                    <!-- <view class="oldprice">{{info.price}}</view> -->
                </view>


                <view class='two_ones' wx:else>
                    <!-- 2023-10-19 需求要将积分改为微信支付的金额 -->
                    <!-- <view class='scores'>积分</view> -->
                    <view class='prices'>¥{{info.price}}</view>
                </view>
            </view>
        </view>
        <view class='mask_two'>
            <view class='mask_two_name'>购买数量</view>
            <view class='operation_box'>
                <view class='operation_btn' data-type="0" catchtap="num_change">
                    <image src='/images/reduce.png'></image>
                </view>
                <view class='operation_count'>{{num}}</view>
                <view class='operation_btn' data-type="1" catchtap="num_change">
                    <image src='/images/add.png'></image>
                </view>
            </view>
        </view>
        <view class='mask_three'>
            <view class='mask_btn1' bindtap='addshop' wx:if="{{btn_type == 1}}">加入购物车</view>
            <view class='mask_btn2' bindtap='purchaseNow' wx:elif="{{btn_type == 2}}">立即购买</view>
        </view>
    </view>

</view>
<!-- 弹框结束-->