zhaojs
2023-06-09 cd9b584bc9b41a4c30ea1c230f44c09275ecdecf
public/html/freebuy.html
@@ -254,9 +254,7 @@
                                    </div>
                                    <div class="productInfo">
                                        <div class="title">
                                            <div class="shoplabel ">
                                                <img src="">
                                            </div>
                                            <span>{{data.dtitle}}</span>
                                        </div>
                                        
@@ -348,7 +346,7 @@
                //判断是否首单
                $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                        "token":_this.getUrlPar("token")
                    },
                    //url:'http://dfg.shop.com/index.php/api/user/check_isfirst_free', 
                   //url:'http://dfgapp.ushopvip.com/api/user/check_isfirst_free',
@@ -358,30 +356,30 @@
                    data:{
                    }
                }).done(function(res){
                    if(res.data=='首单客户')
                    if(res.msg.info==1)
                    {
                        $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                    //url:'http://dfg.shop.com/index.php/api/taoke/get_first_free_goods',
                   //url:'http://dfgapp.ushopvip.com/api/taoke/get_first_free_goods',
                   url:'http://appapitest.ushopvip.com/api/taoke/get_first_free_goods',
                   type:"post",
                    dataType:"json",
                    data:{
                        nineCid:1,
                        page: 1,
                        pageSize:20,
                    }
                      }).done(function(res){
                            var newlist=[];
                            res.data.list.map(function(r,k){
                                var buprice=r.actualPrice-r.topFanli;
                                if(buprice<=3)
                                {
                                    newlist.push(r);
                                }
                            headers:{
                                "token":_this.getUrlPar("token")
                            },
                                //url:'http://dfg.shop.com/index.php/api/taoke/get_first_free_goods',
                            //url:'http://dfgapp.ushopvip.com/api/taoke/get_first_free_goods',
                            url:'http://appapitest.ushopvip.com/api/taoke/get_first_free_goods',
                            type:"post",
                                dataType:"json",
                            data:{
                                nineCid:1,
                                page: 1,
                                pageSize:20,
                            }
                            }).done(function(res){
                                    var newlist=[];
                                    res.data.list.map(function(r,k){
                                        var buprice=r.actualPrice-r.topFanli;
                                        if(buprice<=3)
                                        {
                                            newlist.push(r);
                                        }
                            })
                            _this.lists=[].concat(_this.lists,newlist);
                            _this.loading = false;
@@ -389,8 +387,9 @@
                    }
                    else{
                        alert("您已下过首单,不可再次购买,请浏览其他商品吧~");
                        setTimeout(function(){
                            if(this.isUniReady)
                            if(_this.isUniReady)
                            {
                                uni.postMessage({
                                data: {
@@ -398,7 +397,7 @@
                                }
                                });
                           }
                        }, 3000 )
                        }, 1000 )
                    }
                })