123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <div class="panel panel-default panel-intro">
- <div class="form-group">
- <label for="c-message_type" class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <!-- 内容展示区 -->
- <div class="message_type_container"
- style=" width: 100%;
- padding: 6px 12px;
- text-align: center;
- font-size: 12px;
- line-height: 1.42857143;
- color: #555555;
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;"
- >
- <div class="message_type_content_contianer"
- style="
- width: 100%;
- min-height: 30px;
- background: #F1EFEF;
- margin-bottom: 12px;
- "
- >
- <!--文本-->
- {if $row.message_type==1}
- {foreach name="row.message_content_arr" item="vo"}
- <div class="msg_preview_text" data-index="{$key}">
- <div class="preview_handler" >
- <p class="msg_preview_title3">{$vo.content}</p>
- </div>
- </div>
- {/foreach}
- {/if}
- <!--图文-->
- {if $row.message_type==2}
- {foreach name="row.message_content_arr" item="vo"}
- {if $key==0}
- <div class="msg_preview h180" data-index="{$key}">
- <img class="preview_img_imgtext" src="{$vo.cover}" alt="" >
- <div class="preview_handler" style="background: rgba(0,0,0,.3);">
- <h3 class="preview_imgtext_title" >{$vo.title}</h3>
- </div>
- </div>
- {/if}
- {if $key!=0}
- <div class="msg_preview h180" data-index="{$key}">
- <img class="msg_preview_img2" src="{$vo.cover}" alt="" style="float: right;">
- <h3 class="msg_preview_title2" >{$vo.title}</h3>
- <div class="preview_handler" >
- </div>
- </div>
- {/if}
- {/foreach}
- {/if}
- <!--纯图-->
- {if $row.message_type==3}
- {foreach name="row.message_content_arr" item="vo"}
- <div class="msg_preview" data-index="{$key}">
- <img class="msg_preview_img3" src="{$vo.img_path}" alt="" >
- <div class="preview_handler" >
- </div>
- </div>
- {/foreach}
- {/if}
- </div>
- </div>
- </div>
- </div>
- <input id="message_content" type="hidden" name="row[message_content]" value="" />
- </div>
- <style>
- .msg_preview{
- width: 100%;
- position: relative;
- border: 1px solid #ccc;
- margin-bottom: 3px;
- }
- .h180{
- height: 180px;
- }
- .preview_img_imgtext{
- width: 100%;
- height: 100%;
- display: block;
- }
- .preview_handler{
- position: absolute;
- width: 100%;
- height: 50px;
- /* background: rgba(0,0,0,.3); */
- bottom: 0;
- }
- .preview_imgtext_title{
- margin: 0;
- float: left;
- height: 50px;
- line-height: 50px;
- padding: 0;
- width: 80%;
- overflow: hidden;
- text-align: left;
- color:#fff;
- font-weight: 400;
- }
- .preview_del{
- float: right;
- width: 8%;
- line-height: 30px;
- height: 30px;
- margin-top: 10px;
- border: none;
- border-radius: 5px;
- margin-right: 3px;
- color:#fff;
- background: #333333;
- font-weight: 500;
- }
- .preview_edit{
- float: right;
- width: 8%;
- line-height: 30px;
- height: 30px;
- margin-top: 10px;
- border: none;
- border-radius: 5px;
- margin-right: 3px;
- color:#fff;
- background: #333333;
- font-weight: 500;
- }
- .msg_preview_title2{
- overflow: hidden;
- padding: 0;
- padding-right: 120px;
- padding-left: 30px;
- height: 120px;
- text-align: left;
- line-height: 120px;
- margin: 0;
- background: #fff;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- line-height: 60px;
- }
- .msg_preview_img2{
- width: 120px;
- height: 120px;
- }
- .msg_preview_text{
- min-height: 50px;
- position: relative;
- margin-bottom: 3px;
- background-color: #f3f0f0;
- }
- .msg_preview_title3{
- display: inline-block;
- min-height: 50px;
- line-height: 50px;
- width: 80%;
- color:#000;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- text-align: left;
- }
- .msg_preview_img3{
- width: 100%;
- height: 100%;
- }
- </style>
|