• 上货软件增加脚本


    //保护套质地:
    document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[0]

    //款式
    document.querySelectorAll('#struct-bindProp .sell-catProp-struct i')[1].click()

    document.querySelectorAll('.sell-o-select-options .options-content .options-item').forEach((item)=>{
    if(item.innerText=='支架式')
    {
    item.click();
    }
    })


    //适用手机机型
    document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[2]


    //型号
    document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[3]


    //商品属性 功能
    document.querySelectorAll('#base-card i')[0].click()

    document.querySelectorAll('.sell-o-select-options .options-content .options-item').forEach((item)=>{
    if(item.innerText=='防水')
    {
    item.click();
    }
    })

    //所在地
    (
       async function(){
          const  delay=(ms)=> {
                return new Promise((res, rej) => {
                    setTimeout(() => {
                        res(true);
                    }, ms);
                });
            }
            //所在地 广东
            document.querySelectorAll('#deliver-card .area i')[0].click()
            await delay(1000)
            document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[5].click()
            await delay(1000)
            //深圳
            document.querySelectorAll('#deliver-card .area i')[1].click()
            await delay(1000)
            document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[2].click()
        }
    )()
    
    
    //透明素材图
    var ele=document.querySelector('#struct-whiteBgImage')
    document.documentElement.scrollTop=ele.getBoundingClientRect().top+document.documentElement.scrollTop-400
    
    //添加上传图片
    document.querySelector('#struct-whiteBgImage .tmall-o-image-add')
    

      

    //所在地(   async function(){      const  delay=(ms)=> {            return new Promise((res, rej) => {                setTimeout(() => {                    res(true);                }, ms);            });        }        //所在地 广东        document.querySelectorAll('#deliver-card .area i')[0].click()        await delay(1000)        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[5].click()        await delay(1000)        //深圳        document.querySelectorAll('#deliver-card .area i')[1].click()        await delay(1000)        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[2].click()    })()

    //透明素材图var ele=document.querySelector('#struct-whiteBgImage')document.documentElement.scrollTop=ele.getBoundingClientRect().top+document.documentElement.scrollTop-400
    //添加上传图片document.querySelector('#struct-whiteBgImage .tmall-o-image-add')

    人生旅途,边走边看...
  • 相关阅读:
    【转载】MongoDB 数据库的备份与恢复
    【转载】Vim命令合集
    【转载】Mac 让 iTerm2 记住用户名密码
    CSS 实现单行、多行文本溢出显示省略号
    【转载】如何在Vue2中实现组件props双向绑定
    JavaScript 获取当日在今年第几周
    CentOS 7 安装配置FTP服务器(vsftpd)
    CentOS 7 防火墙(firewall)常用命令
    Vs Code 之 实现右键打开文件夹
    git 报错
  • 原文地址:https://www.cnblogs.com/dming4/p/15269049.html
Copyright © 2020-2023  润新知