zhaojs
2023-07-13 9f2e8c07d5c64967bc56d60d4067e7174598825d
public/html/compareprice.html
@@ -369,7 +369,11 @@
    })();
    function scanCode(str)
    {
        app.coptest(str);
        app.copytxt(str);
    }
    function likeDataGet(data)
    {
        app.likeDataGet(data);
    }
    Vue.use(VueLazyload, {
        preLoad: 1.3,//
@@ -388,13 +392,42 @@
          txtplaceholder:'1、支持淘宝、天猫、京东、抖音、拼多多等多家电商 \r\n 2、请粘贴您需要转换的分享文案/链接和口令/商品链接;不支持券链接'
        },
        methods:{
            likeDataGet:function(postData)
            {
                $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                    url:_this.posturl+'/api/activity/cmsGet',
                    type:"post",
                    dataType:"json",
                    async: false,
                    data:{
                        deviceType:postData.postData,
                        deviceValue:postData.deviceValue,
                        pageId:1,
                        pageSize:10,
                        type:1
                    }
                }).done(function(res){
                    console.log(res);
                })
            },
            getLikeGoods:function()
            {
                uni.postMessage({
                    data: {
                        action: 'getlike'
                    }
                })
            },
            clear:function()
            {
                this.txtareatxt='';
            },
            copytxt(str)
            {
                alert(str.data);
                if(str&&str.data&&str.data.length>0)
                {
                    this.txtareatxt=str.data;
@@ -415,7 +448,6 @@
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                    url:_this.posturl+'/api/activity/cmsGet',
                    type:"post",
                    dataType:"json",
@@ -458,7 +490,7 @@
            },
        },
        mounted:function(){
            this.getGoodsList();
            this.getLikeGoods();
        }
    })
</script>