diff --git a/.vscode/sftp.json b/.vscode/sftp.json index 039096c..ff7b26d 100644 --- a/.vscode/sftp.json +++ b/.vscode/sftp.json @@ -3,10 +3,10 @@ "host": "47.100.47.158", "protocol": "sftp", "port": 21, + "secure": true, "username": "suzhou", - "remotePath": "/", + "remotePath": "/", + "password": "WEBY7SHSFdeEECj4", "uploadOnSave": false, - "useTempFile": false, - "openSsh": false, - "connectTimeout":10000 + "connect_timeout": 30 } diff --git a/css/style.css b/css/style.css index 8a2e2c5..3413bb0 100644 --- a/css/style.css +++ b/css/style.css @@ -48,7 +48,8 @@ a.more_white:hover{color: #fff; background: #fff; text-decoration: none;} .part .part-img{ width: 60%!important;margin-left: 20%;} .detail .content .time{ text-align: center;margin-bottom: 30px;} -.detail .content img{ text-align: center;width: 60%;height: auto; margin-left: 20%;} +/* .detail .content .text :not(p){text-align: center;} */ +.detail .content img{ text-align: center;width: 60%;height: auto;} .detail .content p{ font-size: 16px;} /*分页*/ diff --git a/images/banner-党建工作@2x.png b/images/banner-党建工作@2x.png index a1f8d16..a3c8162 100644 Binary files a/images/banner-党建工作@2x.png and b/images/banner-党建工作@2x.png differ diff --git a/news/detail.html b/news/detail.html index 1e26152..40f4424 100644 --- a/news/detail.html +++ b/news/detail.html @@ -19,7 +19,9 @@ - + @@ -77,16 +79,14 @@ var title = data.title; var content = data.content; var time = data.publish_time_text.substr(0,11); - - content.replace(/]*src=['"]([^'"]+)[^>]*>/gi, function (match, capture) { - $('.content img').css({'width':'30%'}); - }); html = "

" + title + "

"; html += "

日期:" + time + "

"; html += '
' + content + '
'; $('.content').append(html); + $('img').parents('p').css({'text-align':'center'}); + } }, error: function (err) { diff --git a/news/news01.html b/news/news01.html index d6243e8..e1c0c97 100644 --- a/news/news01.html +++ b/news/news01.html @@ -121,8 +121,8 @@ data:{ category_id:11, page:pageCurrent, - order:'asc', - sort:'weigh' + order:'desc', + sort:'publish_time' }, dataType: 'json', diff --git a/news/news02.html b/news/news02.html index 32949a0..488473f 100644 --- a/news/news02.html +++ b/news/news02.html @@ -118,8 +118,8 @@ data:{ category_id:13, page:pageCurrent, - order:'asc', - sort:'weigh' + order:'desc', + sort:'publish_time' }, dataType: 'json', @@ -140,7 +140,7 @@ var id = item[index].id; html += "
  • "; - html += "
    " + time.substr(0,4) + "
    " + time.substr(6,11) + "
    "; + html += "
    " + time.substr(0,4) + "
    " + time.substr(5,10) + "
    "; html += "
    " + title + "

    " + subtitle + "

    "; html += "了解更多 >"; html += "
    "; diff --git a/news/news03.html b/news/news03.html index 6b821eb..80f3b46 100644 --- a/news/news03.html +++ b/news/news03.html @@ -109,8 +109,8 @@ data:{ category_id:35, page:pageCurrent, - order:'asc', - sort:'weigh' + order:'desc', + sort:'publish_time' }, dataType: 'json', diff --git a/work/detail.html b/work/detail.html index 1f351b3..1e96d93 100644 --- a/work/detail.html +++ b/work/detail.html @@ -12,6 +12,7 @@ + @@ -19,7 +20,7 @@ @@ -28,19 +29,14 @@ -
    -
    -
    -
    -

    党建工作

    -

    PARTY BUILDING

    -
    -
    -
    - +
    + +
    +
    党建工作
    +
    PARTY BUILDING
    +
    -
    @@ -90,14 +86,17 @@ var content = data.content; var time = data.publish_time_text.substr(0,11); - content.replace(/]*src=['"]([^'"]+)[^>]*>/gi, function (match, capture) { - $('.content img').css({'width':'30%'}); - }); - - html = "

    " + title + "

    "; - html += "

    日期:" + time + "

    "; - html += '
    ' + content + '
    '; - $('.content').append(html); + // content.replace(/]*src=['"]([^'"]+)[^>]*>/gi, function (match, capture) { + // console.log($('.content:not(p)')).css({'text-align':'center'}); + + // }); + + html = "

    " + title + "

    "; + html += "

    日期:" + time + "

    "; + html += '
    ' + content + '
    '; + $('.content').append(html); + + $('img').parents('p').css({'text-align':'center'}); } }, diff --git a/work/work.html b/work/work.html index 48e7dbe..67de6e9 100644 --- a/work/work.html +++ b/work/work.html @@ -105,7 +105,7 @@