zhaojs
2023-07-04 68800d44faf87431e6b2fd4ecf7b80403542a0a6
public/html/freebuy.html
@@ -410,10 +410,29 @@
            //posturl:"http://dfgapp.ushopvip.com"
        },
        methods: {
            Infoformat: function(info){
            let formatObj = info.replace(/\%/g,"%25")
            formatObj = info.replace(/\#/g,"%23")
            formatObj = info.replace(/\&/g,"%26")
            formatObj = info.replace(/\?/g,"%3F")
            return formatObj;
            },
            targetItem:function(item){
                switch(this.plat)
                {
                    case "tb":
                uni.navigateTo({
                  url: '/pages/goods/goodsDetail?id=' + item.goodsId+'&frompage=freebuy'
                });
                        break;
                    case "dy":
                        var itemsStr=this.Infoformat(JSON.stringify(items));
                        uni.navigateTo({
                            url: '/pages/goods/goodsDetail?sourcefrom=freebuy&info=' + itemsStr+'&frompage=freebuy'
                        });
                        break;
                }
                /* if(this.isUniReady)
                {
                    uni.postMessage({
@@ -425,23 +444,13 @@
                } */
            },
            handleSort: function(item) {
                if(this.sortNumber == item.number) {
                    if(item.min === item.max) {
                    return;
                    }
                    if(item.bool) {
                    this.sortId = item.min;
                    item.bool = false;
                    } else {
                    this.sortId = item.max;
                    item.bool = true;
                    }
                } else {
                    item.bool = true;
                    this.sortNumber = item.number;
                    this.sortId = item.max;
                }
                if(this.sortNumber != item.number) {
                    this.loading=true;
                    this.lists=[];
                this.getgoodsSwitch(item.number);
                    this.sortNumber = item.number;
                    this.plat=item.number;
                }
            },
            getUrlPar:function(name)
            {