Commit 8cf72ddf by sunchao

样式调整

parent 53d0e00d
...@@ -48,29 +48,30 @@ html, body { ...@@ -48,29 +48,30 @@ html, body {
#name { #name {
font-size: 22px; font-size: 22px;
} }
@media (min-width: 375px) {
@media (max-width: 320px) {
.content { .content {
font-size: 28px; font-size: 16px;
top: 52%; top: 48%;
} }
#fyp ,#name{ #fyp {
font-size: 40px; font-size: 36px;
} }
} }
@media (max-width: 375px) { @media (min-width: 375px) {
.content { .content {
font-size: 19px; font-size: 19px;
top: 50%; top: 50%;
} }
#fyp ,#name{
font-size: 40px;
}
} }
@media (max-width: 320px) { @media (min-width: 414px){
.content { .content {
font-size: 16px; font-size: 19px;
top: 48%; top: 47%;
}
#fyp {
font-size: 36px;
} }
} }
\ No newline at end of file
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
<!--id="goodNewsImg" class="img-responsive">--> <!--id="goodNewsImg" class="img-responsive">-->
<div class="content"> <div class="content">
<div id="insurerName"></div> <div id="insurerName"></div>
<div id="productName" style="margin: 3% 0;text-align: center"></div> <div id="productName" style="margin: 1.5% 0;text-align: center"></div>
<div id="paymentPeriod"></div> <div id="paymentPeriod"></div>
<div id="fyp" style="position: relative;color:#edff00;font-weight: bold;border-radius: 30px"></div> <div id="fyp" style="position: relative;color:#edff00;font-weight: bold;height: 45px;line-height: 45px;"></div>
<div id="belongToCompany" style="margin: 3% 0;"></div> <div id="belongToCompany" style="margin: 1.5% 0;"></div>
<div> <div>
<span id="subordinateName"></span> <span id="subordinateName"></span>
</div> </div>
......
$(function () { $(function () {
//var api = 'https://mdev.zuihuibi.cn'; var api = 'https://mdev.zuihuibi.cn';
var api = window.location.origin; // var api = window.location.origin;
function getToken() { function getToken() {
$.ajax({ $.ajax({
type: "POST", type: "POST",
...@@ -32,7 +32,7 @@ $(function () { ...@@ -32,7 +32,7 @@ $(function () {
}, },
success: function (res) { success: function (res) {
if (res['success']) { if (res['success']) {
$('.relativeContent').css({'background':'url(' + res['data']['xbUrl'] + ') no-repeat center center','background-size':'cover'}); // $('.relativeContent').css({'background':'url(' + res['data']['xbUrl'] + ') no-repeat center center','background-size':'cover'});
$('.content #productName').html(res['data']['orderInfo']['productName']); $('.content #productName').html(res['data']['orderInfo']['productName']);
$('.content #insurerName').html(res['data']['orderInfo']['insurerName']); $('.content #insurerName').html(res['data']['orderInfo']['insurerName']);
if (res['data']['orderInfo']['paymentPeriod'] && parseInt(res['data']['orderInfo']['paymentPeriod'], 0) > 0) { if (res['data']['orderInfo']['paymentPeriod'] && parseInt(res['data']['orderInfo']['paymentPeriod'], 0) > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment