zhaojs
2023-07-17 93eb06506cc784b0c206239156dca53300f93e2b
public/html/compareprice.html
@@ -119,15 +119,15 @@
        }
        .detail___3ZQFW {
        background-color: #fff;
        height: 2.2rem;
        height: 2.6rem;
        border-radius: .16rem;
        padding: .1rem;
        position: relative;
        box-sizing: border-box;
    }
    .picture___r4a1j {
        height: 2rem;
        width: 2rem;
        height: 2.4rem;
        width: 2.4rem;
        border-radius: .1rem;
        position: absolute;
        left: .1rem;
@@ -137,8 +137,8 @@
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding-left: 2.2rem;
        height: 2rem;
        padding-left: 2.5rem;
        width: 100%;
        overflow: hidden;
        -webkit-align-items: flex-start;
@@ -161,7 +161,7 @@
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        height: .4rem;
        height: .85rem;
        font-size: .28rem;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
@@ -203,7 +203,7 @@
    }
    .coupon___2SVZi {
        margin-top: 6px;
        margin-top: 3px;
        height: .28rem;
        background: linear-gradient(
                90deg, #ff8873, #ff4f4f);
@@ -268,19 +268,18 @@
        line-height: .32rem;
    }
    .detail___3ZQFW .choiceInfo___3ZuEa .price___dfbCD {
        margin-bottom: .16rem;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-align-items: baseline;
        -ms-flex-align: baseline;
        align-items: baseline;
        height: .24rem;
        font-size: .24rem;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #fe3738;
        line-height: .24rem;
        line-height: .54rem;
    }
    .detail___3ZQFW .choiceInfo___3ZuEa .operation___3KazI {
@@ -309,6 +308,19 @@
        font-size: .35rem;
        color: #fff;
        }
        .showshop
        {
            font-size: .26rem;
            color: #787070;
        }
        .goodtitle
        {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
    </style>
</head>
@@ -323,7 +335,7 @@
                        清空
                    </div>
                    <div class="content-txtarea">
                        <textarea class="txtarea" v-model="txtareatxt" :placeholder='txtplaceholder'></textarea>
                        <textarea enterkeyhint="search" onkeydown="onTextareaKeyDown()" class="txtarea" v-model="txtareatxt" :placeholder='txtplaceholder'></textarea>
                        <span class="copytxt" v-on:click="fromcopy()">粘贴</span>
                    </div>
                    <div class="mid-button-content">
@@ -346,17 +358,22 @@
                                <div class="choiceInfo___3ZuEa">
                                    <div class="other___2Mv8Q">
                                        <h2>
                                            <div class="shoplabel___1_Nv0"><img
                                            <!-- <div class="shoplabel___1_Nv0"><img
                                                    :src="g.labelImg">
                                            </div>
                                            <span>{{g.title}}</span></h2>
                                            </div> -->
                                            <div class="goodtitle">
                                                <img class="shoplabel___1_Nv0" :src="g.labelImg">
                                                {{g.title}}</div></h2>
                                        <div v-if="g.couponPrice" class="coupon___2SVZi" style="float: left; margin-right:10px"><span>券</span>{{g.couponPrice}}元</div>
                                        <div class="coupon___2SVZi" style="background: #A429F3;"><span style="color: #A429F3;">返</span>{{g.fanli}}元</div>
                                    </div>
                                    <div class="price___dfbCD">¥<span>{{g.actualPrice}}</span><u style="text-decoration:line-through">¥{{g.originalPrice}}</u></div>
                                    <div class="operation___3KazI">
                                    <div class="price___dfbCD">¥<span>{{g.actualPrice}}</span><u v-if="g.sourceType=='tb'||g.sourceType=='tm'" style="text-decoration:line-through">¥{{g.originalPrice}}</u></div>
                                   <!--  <div class="operation___3KazI">
                                        <button>立即购买</button>
                                    </div>
                                    </div> -->
                                    <div class="showshop">月销{{g.monthSales}}</div>
                                    <div class="showshop">{{g.shopName}}</div>
                                </div>
                            </div>
                        </a>
@@ -387,6 +404,15 @@
    {
        app.likeDataGet(data);
    }
    function onTextareaKeyDown()
    {
        if (event.keyCode == 13)
        {
            app.onTextareaKeyDown();
        }
    }
    Vue.use(VueLazyload, {
        preLoad: 1.3,//
        error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png',
@@ -397,15 +423,19 @@
        el: '#comprice',
        data:{
          //posturl:'http://dfg.shop.com',
          posturl:'http://appapitest.ushopvip.com',
          posturl:'https://appapitest.ushopvip.com',
          //posturl:'http://dfgapp.ushopvip.com',
          goodsItem:[],
          loading:false,
          txtareatxt:'',
          showTxt:'猜你喜欢',
          txtplaceholder:'1、支持淘宝、天猫、京东、抖音、拼多多等多家电商 \r\n 2、请粘贴您需要转换的分享文案/链接和口令/商品链接;不支持券链接'
          txtplaceholder:'1、支持淘宝、天猫、京东、抖音、拼多多等平台\r\n2、请粘贴您需要转换的分享文案/链接和口令/商品链接;不支持券链接'
        },
        methods:{
            onTextareaKeyDown:function(event)
            {
                alert('你点击了回车键')
            },
            //查询
            search:function()
            {
@@ -413,7 +443,7 @@
                {
                    return;
                }
                this.showTxt="查询排行";
                this.showTxt="查询结果";
                this.goodsItem=[];
                var that = this;
                this.loading = true
@@ -447,8 +477,9 @@
                switch(item.sourceType)
                {
                    case "tb":
                    case "tm":
                        uni.navigateTo({
                            url: '/pages/goods/goodsDetail?id=' + item.goodsId+'&frompage=freebuy'
                            url: '/pages/goods/goodsDetail?id=' + item.goodsId+'&frompage=compareprice'
                        });
                        break;
                    default: