diff --git a/src/main.py b/src/main.py index 6eb0e1a..c572037 100644 --- a/src/main.py +++ b/src/main.py @@ -114,4 +114,4 @@ def run(host, port, debug): if __name__ == '__main__': - run('localhost', 8080, True) + run('0.0.0.0', 8080, True) diff --git a/src/static/images/welcome.jpg b/src/static/images/welcome.jpg new file mode 100644 index 0000000..4cc1b18 Binary files /dev/null and b/src/static/images/welcome.jpg differ diff --git a/src/static/index.css b/src/static/index.css index df7f841..d360979 100644 --- a/src/static/index.css +++ b/src/static/index.css @@ -80,8 +80,8 @@ h4 { } .luckerList { - width: 800px; - height: 550px; + /*width: 800px;*/ + min-height: 550px; } .left ul { diff --git a/src/static/js/index.js b/src/static/js/index.js index bc113d6..c973466 100644 --- a/src/static/js/index.js +++ b/src/static/js/index.js @@ -247,17 +247,21 @@ class Index { let lisArray = award.data.map((data) => { return `
  • ${data.name}【${data.uid}】
  • ` }); - content += ` -
    -
    ${award.name}
    - -
    `; + if(lisArray.length!==0){ + content += ` +
    +
    ${award.name}
    + +
    + `; + } + } layer.open({ type: 1, - area: '800px', + area: '1024px', skin: 'layui-layer-lan', //样式类名 offset: [offset.top, offset.left], closeBtn: 1, //不显示关闭按钮 diff --git a/src/templates/index.html b/src/templates/index.html index f33b48e..54a251a 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -4,8 +4,6 @@ 运营技术中心2018年会抽奖 - - diff --git a/src/templates/welcome.html b/src/templates/welcome.html new file mode 100644 index 0000000..6c7631c --- /dev/null +++ b/src/templates/welcome.html @@ -0,0 +1,50 @@ + + + + + 运营技术中心2018年会 + + + + +

    运营技术中心
    2018年会

    +
    + 抽奖 + 管理 +
    + + + \ No newline at end of file