Merge pull request '优化仅yunyingbu能看到公告' (#574) from hotfix/change_tgnotie_user into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/574
master
廖金灵 3 years ago
commit 9582f96b92

@ -304,7 +304,13 @@ class PromoteController extends BaseController
}
public function getIndexTip()
{
$data = M("promote_notice","tab_")->where("is_open = 1")->getField('content');
$where = [
"_string"=>"1=1"
];
if(session('promote_auth')['account'] != 'yunyingbu'){
$where['_string'] .= " AND is_open = 1";
}
$data = M("promote_notice","tab_")->where($where)->getField('content');
if($data){
$this->assign('index_tip',$data);
}

@ -217,14 +217,14 @@
<notempty name="index_tip">
<div id="TestingTipShow" style="display: none;">
<div style="width: 100vw;height:100%;padding: 0;position: absolute;top: 0;z-index: 9999;background-color:rgba(0,0,0,.6);margin: -1.9%;">
<div class="layui-layer layui-layer-hui" style="width:800px;height:auto;z-index: 19891015; top:18%; left:50%;margin-left: -400px;border-radius: 2%;background-color:white;color: #0a001f;">
<div class="layui-layer layui-layer-hui" style="width:600px;height:auto;z-index: 19891015; top:10%; left:50%;margin-left: -400px;border-radius: 2%;background-color:white;color: #0a001f;">
<!-- <div style="padding: 15px 30px 15px 20px;font-size: 18px;text-align: center;border-bottom: 1px dashed #999;">系统公告</div> -->
<div style="padding: 5px 25px;height: auto;max-height: 500px;overflow-x:hidden;overflow-y:auto">
<div style="padding: 5px;height: auto;max-height: 950px;overflow-x:hidden;overflow-y:auto;text-align: center;">
{$index_tip}
</div>
<div style="text-align: right;margin-top: 20px;margin-right: 30px;padding-bottom: 55px;">
<div style="text-align: right;margin-right: 30px;padding-bottom: 55px;">
<div class="form-group normal_space fr">
<input type="button" id="closeTip" class="submit" value="同意此协议">
<input type="button" id="closeTip" class="submit" value="同意">
</div>
<!-- <div class="form-group normal_space fr">
<input type="button" id="ignoreTip" class="submit" value="今日不再提醒" style="background-color: #fff;border: 1px solid #333;color: #333;">

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Loading…
Cancel
Save