zhaojs
2023-07-04 58bae3024b9ecfc6ad197ea408b6b1629f03fe0f
public/html/freebuy.html
@@ -377,7 +377,7 @@
                goodsList:[],
                robbingNum:0,
            },
            sortNumber:0,
            sortNumber:'tb',
            sortId:0,
            fristOrderSort: [
                    {
@@ -385,21 +385,21 @@
                    bool: true,
                    max: "",
                    min: "",
                    number: 0
                    number: 'tb'
                    },
                    {
                    name: "抖音",
                    bool: true,
                    max: "",
                    min: "",
                    number: 1
                    number: 'dy'
                    },
                    {
                    name: "京东",
                    bool: true,
                    max: "",
                    min: "",
                    number: 3
                    number: 'jd'
                    }
              ],
            goodsItem: [],
@@ -411,8 +411,8 @@
            loading:true,
            isUniReady:false,
            plat:'dy',
            posturl:"http://dfg.shop.com"
            //posturl:"http://appapitest.ushopvip.com"
            //posturl:"http://dfg.shop.com"
            posturl:"http://appapitest.ushopvip.com"
            //posturl:"http://dfgapp.ushopvip.com"
        },
        methods: {
@@ -447,6 +447,7 @@
                    this.sortNumber = item.number;
                    this.sortId = item.max;
                }
                this.getgoodsSwitch(item.number);
            },
            getUrlPar:function(name)
            {
@@ -494,6 +495,18 @@
                            _this.loading = false;
                     })
            },
            getgoodsSwitch:function(plat)
                {
                    switch(plat)
                        {
                        case "tb":
                                this.getTbGoodsList();
                                break;
                            case "dy":
                                this.getDyGoodsList();
                                break;
                        }
                },
            //是否首单
            getIsSd:function(){
                var _this = this;
@@ -512,15 +525,7 @@
                }).done(function(res){
                    if(res.msg.info==1)
                    {
                        switch(_this.plat)
                        {
                            case "tb":
                                _this.getTbGoodsList();
                                break;
                            case "dy":
                                _this.getDyGoodsList();
                                break;
                        }
                        _this.getgoodsSwitch(_this.plat);
                    }
                    else{
                        alert("您已下过首单,不可再次购买,请浏览其他商品吧~");
@@ -539,6 +544,7 @@
                })
            },
        },
        mounted: function () {
            this.getIsSd();
            var that=this;