examination.html 19.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="css/base.css" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <link rel="stylesheet" href="css/weui.css">
    <link rel="stylesheet" type="text/css" href="css/navigator.css" />
    <link rel="stylesheet" type="text/css" href="css/navigator.iscroll.css" />
    <script src="js/base.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="js/sroll/zepto.js"></script>
    <script type="text/javascript" src="js/sroll/zepto.extend.js"></script>
    <script type="text/javascript" src="js/sroll/zepto.ui.js"></script>
    <script type="text/javascript" src="js/sroll/zepto.iscroll.js"></script>
    <script type="text/javascript" src="js/sroll/widget/navigator.js"></script>
    <script type="text/javascript" src="js/sroll/widget/navigator.iscroll.js"></script>
    <title>上门体检</title>
    <script>
        function tab(pid) {
            var tabs = ["tab1", "tab2", "tab3", "tab4", "tab5"];
            for (var i = 0; i < 5; i++) {
                if (tabs[i] == pid) {
                    var div = document.getElementById(tabs[i]);
                    div.setAttribute("class", "block exammg");
                } else {
                    var div = document.getElementById(tabs[i]);
                    div.setAttribute("class", "none exammg");
                }
            }
        }
    </script>
    <style>
        #tab2,
        #tab3,
        #tab4,
        #tab5 {
            display: none;
        }

        .cur {
            border-bottom: 0.02rem solid #d8b25f;
            color: #d8b25f !important;
            padding-bottom: 0.13rem;
        }

        .block {
            display: block !important;
        }

        .none {
            display: none !important;
        }

        .corigt p {
            text-overflow: ellipsis;
            overflow: hidden;
            width: 4rem;
            white-space: nowrap;
        }

        .exammg ul li {
            height: 2rem;
            display: flex;
            align-items: center;
        }
    </style>
</head>

<body>
    <div class="header center">
        <div class="left back">
            <a href="#" onClick="javascript:history.back(-1);">
                <img src="images/care_03.jpg" />
            </a>
        </div>
        <div class="headertext">上门体检</div>
        <div class="banner">
            <img src="images/exambanner_02.jpg" />
        </div>
    </div>

    <div class="capart1">
        <div class="minbox">
            <div class="examnav" id="nav-smartSetup">
                <ul>
                    <!-- <li>
                        <a onclick="tab('tab1')" href="#">特惠产品</a>
                    </li>
                    <li>
                        <a onclick="tab('tab2')" href="#">肿瘤检测</a>
                    </li>
                    <li>
                        <a onclick="tab('tab3')" href="#">基因检测</a>
                    </li>
                    <li>
                        <a onclick="tab('tab4')" href="#">健康体检</a>
                    </li>
                    <li>
                        <a onclick="tab('tab5')" href="#">好孕妇儿</a>
                    </li> -->
                </ul>
            </div>
            <script type="text/javascript">
                (function () {
                    /*组件初始化js begin*/
                    $('#nav-smartSetup').navigator();    //smart setup方式创建 推荐方式
                })();
            </script>


            <div class="body">


            </div>
            <!-- <div class="exammg" id="tab1">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>三高疾病基因风险评估(3项)</span>
                                <p>评估患高血压、高血脂、II型糖尿病风险3种疾...

                                </p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥500
                                <span class="through">¥900</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_06.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>结直肠癌基因早筛</span>
                                <p>肠道健康才能常健康,中国每年新发病例高达...</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥3000
                                <span class="through">¥6000</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_08.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>产前筛查</span>
                                <p>更准确、安全的产前检查,有效降低异常患儿...</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">专业方法</span>
                                <span>
                                    <img src="images/rebmin_05.png">医学康复</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥1700
                                <span class="through">¥2500</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_10.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>小儿微量元素检测</span>
                                <p>反映短时间内身体微量元素状况,预防微量元...</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">专业方法</span>
                                <span>
                                    <img src="images/rebmin_05.png">医学康复</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥150
                                <span class="through">¥220</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_12.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>女士精选13项易感肿瘤基因检测</span>
                                <p>全面关爱幸福一家</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">专业方法</span>
                                <span>
                                    <img src="images/rebmin_05.png">医学康复</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥1900
                                <span class="through">¥3700</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_14.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>应酬族系列</span>
                                <p>智享健康护全家</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">专业方法</span>
                                <span>
                                    <img src="images/rebmin_05.png">医学康复</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥850
                                <span class="through">¥1700</span>
                            </p>
                        </div>
                    </li>

                    <li>
                        <a href="#">
                            <img src="images/examli_16.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>男士精选10项易感肿瘤基因检测</span>
                                <p>指导改善肺功能训练、提高健康质量</p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">专业方法</span>
                                <span>
                                    <img src="images/rebmin_05.png">医学康复</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥1900
                                <span class="through">¥3700</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="exammg" id="tab2">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>三高疾病基因风险评估(3项)</span>
                                <p>评估患高血压、高血脂、II型糖尿病风险3种疾...

                                </p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥500
                                <span class="through">¥900</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="exammg" id="tab3">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>三高疾病基因风险评估(3项)</span>
                                <p>评估患高血压、高血脂、II型糖尿病风险3种疾...

                                </p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥500
                                <span class="through">¥900</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="exammg" id="tab4">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>三高疾病基因风险评估(3项)</span>
                                <p>评估患高血压、高血脂、II型糖尿病风险3种疾...

                                </p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥500
                                <span class="through">¥900</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="exammg" id="tab5">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>三高疾病基因风险评估(3项)</span>
                                <p>评估患高血压、高血脂、II型糖尿病风险3种疾...

                                </p>
                            </a>
                            <p class="minute">
                                <span>
                                    <img src="images/rebmin_03.png">可测1人</span>
                                <span>
                                    <img src="images/rebmin_05.png">需空腹</span>
                                <span>
                                    <img src="images/mindate_03.jpg">10-15个工作日</span>
                            </p>
                            <p class="price">¥500
                                <span class="through">¥900</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div> -->
        </div>
    </div>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/common.js"></script>
    <script src="js/weui.js"></script>
    <script>
        $(function () {
            let loading = weui.loading("加载中")
            sendAjax('post', 'portal/Goods/getCatInfo3', {
                cid: 4
            }, function (res) {
                if (res.code == 1) {
                    loading.hide();
                    var data = res.data
                    console.log(data)
                    $(".headertext").html(data.name)
                    $(".banner").find("img").attr("src", data.img)
                    //    选项卡分类
                    var html = ""
                    var htmls = ""
                    var htmlTwo = ""
                    for (var n in data.goods) {
                        html += `<li>
                        <a onclick="tab('tab${ parseInt(n) + 1}')" href="#">${data.goods[n].name}</a>
                    </li>`
                        for (var j in data.goods[n].goods) {
                            for (var x in data.goods[n].goods[j].tag) {
                                htmlTwo += `<span>
                                    <img src="${data.goods[n].goods[j].tag[x].url}">${data.goods[n].goods[j].tag[x].text}</span>`
                            }
                            htmls += `<div class="exammg" id="tab${n}">
                <ul>
                    <li>
                        <a href="#">
                            <img src="images/examli_03.jpg" class="left mari" />
                        </a>
                        <div class="corigt left">
                            <a href="#">
                                <span>${data.goods[n].goods[j].other_title}</span>
                                <p>${data.goods[n].goods[j].post_title}

                                </p>
                            </a>
                            <p class="minute">
                                 ${htmlTwo}
                            </p>
                            <p class="price">¥500
                                <span class="through">¥${data.goods[n].goods[j].real_price}</span>
                            </p>
                        </div>
                    </li>
                </ul>
            </div>`
                            htmlTwo = ""
                        }

                    }
                    $("#nav-smartSetup ul").html(html)
                    $(".body").html(htmls)
                } else if (res.code == 0) {
                    let loading = weui.loading(res.msg)
                    setTimeout(function () {
                        loading.hide();
                    }, 1500);
                }

            });
        })

    </script>


</body>