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

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

diff --git a/public/html/freebuy.html b/public/html/freebuy.html
index 1ddfc75..9fb1065 100644
--- a/public/html/freebuy.html
+++ b/public/html/freebuy.html
@@ -358,10 +358,9 @@
                     data:{
                     }
                 }).done(function(res){
-                    alert(res);
-                })
-
-                $.ajax({
+                    if(res.data=='棣栧崟瀹㈡埛')
+                    {
+                        $.ajax({
                     headers:{
                         "token":this.getUrlPar("token")
                     },
@@ -375,18 +374,35 @@
                         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;
+                      }).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;
+                     })
+                    }
+                    else{
+                        alert("鎮ㄥ凡涓嬭繃棣栧崟锛屼笉鍙啀娆¤喘涔帮紝璇锋祻瑙堝叾浠栧晢鍝佸惂~");
+                        setTimeout(function(){
+                            if(this.isUniReady)
+                            {
+                                uni.postMessage({
+                                data: {
+                                    action: 'back'
+                                }
+                                });
+                           }
+                        }, 3000 )
+                    }
                 })
+
+                
             },
         },
         mounted: function () {

--
Gitblit v1.9.3