zhaojs
2023-06-09 859358e3177166e87e29538a4df0cff5cdb3117e
public/html/freebuy.html
@@ -22,7 +22,7 @@
    <script type="text/javascript" src="https://public.ffquan.cn/lib/taobaoCode/taobaoCode.js?v=1.2.1"></script>
    <script type="text/javascript" src="https://public.ffquan.cn/lib/clipboard.min.js"></script>
    <script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
    <script type="text/javascript" src="https://img.ushopvip.com/js/uni-webview-js.js"></script>
    <title>新人专享</title>
    <script>
        
@@ -345,13 +345,15 @@
            getGoodsList:function(){
                var _this = this;
                this.loading=true;
                alert("进来了")
                alert(this.getUrlPar("token"))
                $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                    url:'http://dfg.shop.com/index.php/api/taoke/get_nine_goods',
                   // url:'http://dfgapp.ushopvip.com/api/taoke/get_nine_goods',
                   //url:'http://appapitest.ushopvip.com/api/taoke/get_nine_goods',
                    //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:{
@@ -360,6 +362,7 @@
                        pageSize:20,
                    }
                }).done(function(res){
                    alert(res)
                    var newlist=[];
                    res.data.list.map(function(r,k){
                        var buprice=r.actualPrice-r.topFanli;
@@ -374,6 +377,7 @@
            },
        },
        mounted: function () {
            alert("开始")
            this.getGoodsList();
            var that=this;
            document.addEventListener('UniAppJSBridgeReady', function() {