| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>商品资料页</title>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
- <style>
- .img-margin{
- margin: 60pt 0 30pt 30pt;
- }
- .title-div{
- width:100%;
- height:50px;
- margin:0 0 20pt 30pt
- }
- .title-font{
- font-size: 40pt;
- height:50px;
- line-height: 50px;
- vertical-align: auto;
- text-align: left;
- color: #333333;
- font-weight: bold
- }
- .margin-style{
- margin:0 30pt 20pt 30pt
- }
- .div-border{
- width: 100%;
- height: 150px;
- border-radius: 8pt;
- border: #cccccc solid 1px;
- display: flex;
- justify-content: left;
- }
- .img-style{
- width: 90px;
- height: 90px;
- margin: 28px 0 0 20px;
- }
- .content-style{
- font-size: 30px;
- color: #333333;
- margin: 30px 20px 0 20px;
- }
- </style>
- </head>
- <body>
- <img src="./img/bnBag.png" width="85%" height="180px" class="img-margin">
- <div class="title-div">
- <div class="title-font" >产品技术资料</div>
- </div>
- <div class="margin-style">
- <div class="div-border">
- <img src="./img/word.svg" class="img-style">
- <div class="content-style">BLGX支耳式蜗轮型中线蝶阀DN50-600 PN16送审图(自制整轴)</div>
- </div>
- </div>
- <div class="margin-style" id="boxContainer"></div>
- <script>
- window.onload = async function(){
- var loc=location.href;
- var n1=loc.length;
- var n2=loc.indexOf('=');
- var code=loc.slice(n2+1,n1)
- let that = this
- console.log(code)
- let param = {
- "id": 2025082515112802,
- "content": {
- "code": code
- },
- }
- axios.post('http://61.164.207.46:8000/yos/rest/index', param)
- .then(function (response) {
- console.log(response)
- console.log(response.data.data.length)
- for (var i=0;i<response.data.data.length -1;i++){
- a='<div class="div-border">';
- a += '<img src="./img/word.svg" class="img-style">';
- a += '<div class="content-style">'+response.data.data[i].remarks+'</div>';
- a+='</div>';
- $(".boxContainer").append(a);
- }
- })
- .catch(function (error) {
- console.log(error);
- });
- }
- </script>
- </body>
- </html>
|