From bc8c520f7766c66e4644c6e1e43e74da76be8e0c Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期五, 09 六月 2023 11:32:04 +0800
Subject: [PATCH] no message

---
 public/html/freebuy.html |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/public/html/freebuy.html b/public/html/freebuy.html
index 9fb1065..366cdf7 100644
--- a/public/html/freebuy.html
+++ b/public/html/freebuy.html
@@ -348,7 +348,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 +358,30 @@
                     data:{
                     }
                 }).done(function(res){
-                    if(res.data=='棣栧崟瀹㈡埛')
+                    if(res.msg.info==2)
                     {
                         $.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;

--
Gitblit v1.9.3