zhaojs
2023-07-06 16bf4bbf03f7356a6e0b7a7f4752b817b2e7c228
public/html/freebuy.html
@@ -285,7 +285,6 @@
}
.appback
{
    width: 100%;
    height: 0.5rem;
    position: absolute;
    top: 0.5rem;
@@ -526,6 +525,7 @@
                        });
                        break;
                    case "dy":
                    case "jd":
                        var itemsStr=this.Infoformat(JSON.stringify(item));
                        uni.navigateTo({
                            url: '/pages/goods/goodsDetail?sourcefrom=freebuy&info=' + itemsStr+'&frompage=freebuy'
@@ -559,6 +559,23 @@
                if(r !=null)return unescape(r[2]);
                 return null;
            },
             //获取京东商品
             getJdGoodsList:function(){
                var _this=this;
                $.ajax({
                            headers:{
                                "token":_this.getUrlPar("token")
                            },
                            url:_this.posturl+'/api/taoke/get_first_free_jd_goods',
                            type:"post",
                                dataType:"json",
                            data:{
                            }
                            }).done(function(res){
                            _this.lists=[].concat([],res.data.list);
                            _this.loading = false;
                     })
            },
            //获取抖音商品
            getDyGoodsList:function(){
                var _this=this;
@@ -570,8 +587,6 @@
                            type:"post",
                                dataType:"json",
                            data:{
                                page: 1,
                                pageSize:40,
                            }
                            }).done(function(res){
                            _this.lists=[].concat([],res.data.list);
@@ -602,12 +617,15 @@
                {
                    switch(plat)
                        {
                        case "tb":
                            case "tb":
                                this.getTbGoodsList();
                                break;
                            case "dy":
                                this.getDyGoodsList();
                                break;
                            case"jd":
                                this.getJdGoodsList();
                                break;
                        }
                },
            //是否首单