纯静态微信小程序零售商贩项目

购物细节代码

    
        <image src="{{goods.image}}" >
        
        
            
                
                <text  wx:if="{{hasCarts}}">{{totalNum}}
            
        
        
        
            数量  {{num}}
            +
            加入购物车
            
        
        <image wx:if="{{show}}" src="/image/cart1.png" >
        {{goods.stock}}
        {{goods.title}}
        ¥ {{goods.price}}
    
    
        商品详情
        产品参数
        售后保障
        
            <view wx:if="{{curIndex === 0}}">{{goods.detail}}
            <view wx:if="{{curIndex === 1}}">{{goods.parameter}}
            <view wx:if="{{curIndex === 2}}">{{goods.service}}
        
    

购物车代码

    <view wx:if="{{hasList}}">
        
            <view  wx:for="{{carts}}" wx:key="{{index}}">
                <icon wx:if="{{item.selected}}" type="success" color="red" data-index="{{index}}"   bindtap="selectList"/>
                <icon wx:else type="circle"  data-index="{{index}}" bindtap="selectList"/>
                <navigator url="../details/details?id={{item.id}}"><image  src="{{item.image}}">
                {{item.title}}
                ¥{{item.price}}
                
                    <text  bindtap="minusCount" data-obj="{{obj}}" data-index="{{index}}">-
                    {{item.num}}
                    <text  bindtap="addCount" data-index="{{index}}">+
                
                <text  bindtap="deleteList" data-index="{{index}}">×
            
        

        
            <icon wx:if="{{selectAllStatus}}" type="success_circle" color="#fff"  bindtap="selectAll"/>
            
            
                
            
            全选
            ¥{{totalPrice}}
        
    
    
        购物车是空的哦~
    

私聊获取源码

运行部分截图

纯静态微信小程序零售商贩项目纯静态微信小程序零售商贩项目纯静态微信小程序零售商贩项目

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/ff22cc6f6f.html