| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link href="${webBasePath}/plug-in/weui/weui.css" rel="stylesheet">
- <link href="${webBasePath}/plug-in/weui/jquery-weui.css" rel="stylesheet">
- <c:if test="${!back_view}">
- <link href="${webBasePath}/h5/css/common.css" rel="stylesheet">
- <script type="text/javascript" src="${webBasePath}/plug-in/jquery/jquery-2.1.1.min.js"></script>
- <script type="text/javascript" src="${webBasePath}/plug-in/weui/jquery-weui.js"></script>
- <script type="text/javascript" src="${webBasePath}/plug-in/vue/vue2.min.js"></script>
- <script type="text/javascript" src="${webBasePath}/h5/js/common.js"></script>
- <script type="text/javascript" src="${webBasePath}/webpage/cn/com/lzt/message/file_preview.js?v=2"></script>
- </c:if>
- <title>查看消息</title>
- <script>
- $(function(){
- /*var width = $(document.body).width();
- if(width<800){
- $('#con').width(width);
- }*/
- })
- </script>
- <style>
- *{
- margin: 0;
- padding: 0;
- }
- #con{
- width:100%;
- margin:0 auto;
- word-break:break-all;
- }
- .title{
- width:100%;
- text-align: center;
- }
- .content{
- padding:10px 10px;
- }
- .flex_item{
- flex:1;
- text-align: center;
- padding: 8px 0px;
- box-sizing: border-box;
- /*font-weight: 700;*/
- font-size: 17px;
- text-align: center;
- border-radius: 4px;
- }
- p{
- color:#000000;
- }
- .canjia{
- background-color: #C54B3B ;
- color:#ffffff;
- }
- .bucanjia{
- background-color: #F2F2F2;
- }
- <c:if test="${empty message.status or message.status!=1}">
- body {
- background-color: #ffffff;
- color:#000000;
- }
- </c:if>
- <c:if test="${message.status==1}">
- body {
- background-color: #ECECEC;
- font-family: 'Open Sans', sans-serif;
- font-size: 14px;
- color: #3c3c3c;
- }
- .demo p:first-child {
- text-align: center;
- font-family: cursive;
- font-size: 40px;
- font-weight: bold;
- line-height: 80px;
- letter-spacing: 5px;
- color: #fff;
- }
- .demo p:first-child span {
- color:red;
- cursor: pointer;
- text-shadow: 0px 0px 2px #686868,
- 0px 1px 1px #ddd,
- 0px 2px 1px #d6d6d6,
- 0px 3px 1px #ccc,
- 0px 4px 1px #c5c5c5,
- 0px 5px 1px #c1c1c1,
- 0px 6px 1px #bbb,
- 0px 7px 1px #777,
- 0px 8px 3px rgba(100, 100, 100, 0.4),
- 0px 9px 5px rgba(100, 100, 100, 0.1),
- 0px 10px 7px rgba(100, 100, 100, 0.15),
- 0px 11px 9px rgba(100, 100, 100, 0.2),
- 0px 12px 11px rgba(100, 100, 100, 0.25),
- 0px 13px 15px rgba(100, 100, 100, 0.3);
- -webkit-transition: all .1s linear;
- transition: all .1s linear;
- }
- .demo p:first-child span:hover {
- text-shadow: 0px 0px 2px #686868,
- 0px 1px 1px #fff,
- 0px 2px 1px #fff,
- 0px 3px 1px #fff,
- 0px 4px 1px #fff,
- 0px 5px 1px #fff,
- 0px 6px 1px #fff,
- 0px 7px 1px #777,
- 0px 8px 3px #fff,
- 0px 9px 5px #fff,
- 0px 10px 7px #fff,
- 0px 11px 9px #fff,
- 0px 12px 11px #fff,
- 0px 13px 15px #fff;
- -webkit-transition: all .1s linear;
- transition: all .1s linear;
- }
- .demo p:not(:first-child) {
- text-align: center;
- color: #666;
- font-family: cursive;
- font-size: 16px;
- text-shadow: 0 1px 0 #fff;
- letter-spacing: 1px;
- line-height: 2em;
- margin-top: -50px;
- }
- </c:if>
- .mui-popup-button-bold{
- background-color: #C54B3B !important;
- color:#ffffff;
- }
- </style>
- </head>
- <body >
- <c:choose><%--撤回choose start--%>
- <c:when test="${message.status==1}"><%--撤回显示--%>
- <div class="demo">
- <p><span>消</span><span> 息</span><span> 已</span><span> 撤</span><span> 回</span></p>
- <%--<p> <br><br>无此审批任务<br></p>--%>
- </div>
- </c:when>
- <c:otherwise><%--撤回otherwise start--%>
- <div id="con">
- <%--<div class="title">
- ${message.title}
- </div>--%>
- <div class="content">
- ${message.sendText}
- <c:if test="${fn:length(fileRows)>0}">
- <hr/>
- <div>
- <c:forEach items="${fileRows}" var="file" varStatus="i">
- <div>
- <%--<a href="javascript:void(0)" onclick="openFile('${file.fileUrl}')">附件${i.count}:${file.fileName}</a>--%>
- <a href="javascript:void(0)" onclick="showFile('${file.id}','${file.fileName}','${file.fileUrl}')">附件${i.count}:${file.fileName}</a>
- </div>
- </c:forEach>
- </div>
- </c:if>
- </div>
- <div style="height: 20px"> </div>
- <c:choose><%--预览start--%>
- <c:when test="${back_view==true}"><%--后台预览--%>
- <div style="position: fixed;bottom: 20px;width:100%;text-align: center">
- 以实际发送消息内容为准
- </div>
- </c:when>
- <c:when test="${empty user}"><%--审批预览--%>
- <div class="bottom-bar" id="txtBottom" >
- <div class="bottom-bar-item" style="border: none">
- <a href="javascript:;" class="close-popup btn" style="background: #C54B3B;" onclick="history.go(-1)">
- <span class="item-label">返回</span>
- </a>
- </div>
- </div>
- <script>
- $(function(){
- $('body').css('margin-bottom',$('#txtBottom').height());
- })
- </script>
- </c:when>
- <c:when test="${not empty user}"><%--用户预览start--%>
- <%--<div style="display:flex;position: fixed;bottom: 20px;width:100%;">
- <div class="flex_item canjia" id="canjia">
- 回复
- </div>
- <div class="flex_item bucanjia" id="myReply">
- 我的回复
- </div>
- </div>--%>
- <%--new--%>
- <div class="page page-nav-bottom" id="task-operate">
- <div class="bottom-bar" style="bottom:20px;">
- <a href="javascript:;" class="bottom-bar-item work-type" @click="toreply()">
- <%--<i class="item-icon icon-work" alt=""></i>--%>
- <span class="item-label">回复</span>
- </a>
- <a href="javascript:;" class="bottom-bar-item work-type" @click="myreply()">
- <%--<i class="item-icon icon-work" alt=""></i>--%>
- <span class="item-label">我的回复</span>
- </a>
- </div>
- <div class="bottom-bar" style="height:20px;border-top:0px;"> </div>
- <div class="weui-popup__container" id="dialog-audit">
- <div class="weui-popup__overlay"></div>
- <div class="weui-popup__modal">
- <div class="weui-cells weui-cells_form">
- <div class="weui-cell" style="margin-top: 8px;">
- <div class="weui-cell__bd">
- <textarea class="weui-textarea" id="dealOption" placeholder="请输入回复内容"
- rows="15"></textarea>
- </div>
- </div>
- </div>
- <div class="bottom-bar">
- <div class="bottom-bar-item" style="border: none">
- <a href="javascript:;" class="close-popup btn" style="background: #ccc;">
- <span class="item-label">取消</span>
- </a>
- </div>
- <div class="bottom-bar-item" style="text-align: center;">
- <a href="javascript:;" @click="doreply()" class="btn flex-grow-1"
- style="margin: 0 0 0 0px;">提交</a>
- </div>
- </div>
- </div>
- </div>
- <div class="weui-popup__container" id="myreplyDiv">
- <div class="weui-popup__overlay"></div>
- <div class="weui-popup__modal">
- <div class="weui-cells weui-cells_form">
- <div class="weui-cell" style="margin-top: 8px;">
- <div class="weui-cell__bd" id="myreplytxt">
- </div>
- </div>
- </div>
- <div class="bottom-bar">
- <div class="bottom-bar-item" style="border: none">
- <a href="javascript:;" class="close-popup btn" style="background: #ccc;">
- <span class="item-label">返回</span>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <%--new--%>
- <script>
- function scrollBody(){
- $(document.body).scrollTop(0);
- }
- $(function(){
- var taskOperateVm = new Vue({
- el: '#task-operate',
- data: {
- loading: false,
- taskData: {}
- },
- methods: {
- toreply: function () {
- $('#dealOption').val('');
- $('#dialog-audit').popup();
- },
- doreply: function () {
- var dealOption = $('#dealOption').val()
- if(!dealOption || dealOption == '') {
- $.alert('请输入回复内容');
- return
- }
- var url = 'mMessageReplyController.do?doAdd';
- var pdata={userId:'${user.id}',messageId:'${message.id}',reply:dealOption};
- apiPost(url,pdata,function(d){
- $.closePopup();
- $.alert('回复成功');
- },1,true,false);
- }
- ,myreply:function(){
- var url = 'mMessageReplyController.do?datagrid&field=id,createDate,reply';
- var pdata={messageId:'${message.id}',userId:'${user.id}'}
- apiPost(url,pdata,function(d){
- var msg = '';
- for(var i =0;i<d.rows.length;i++){
- var one =d.rows[i];
- if(!one.reply) continue;
- var cdate = one.createDate;
- if(cdate) {
- cdate = cdate.substring(5,cdate.length-5);
- }
- msg+=one.reply+"( "+cdate+" )";
- if(i!=d.rows.length-1){
- msg+='<br>';
- }
- }
- if(!msg){
- msg='无';
- }
- $('#myreplytxt').html(msg);
- $('#myreplyDiv').popup();
- },1,true,false);
- }
- },
- })
- })
- </script>
- </c:when><%--用户预览end--%>
- </c:choose><%--预览end--%>
- </div>
- </c:otherwise><%--撤回otherwise end--%>
- </c:choose><%--撤回choose end--%>
- <script>
- var webBasePath='${webBasePath}';
- function showFile(id,filename,fileUrl){
- <%--var url = 'http://test.shenqin.work/hgl/${showAndDownUrl}' + fileUrl;--%>
- var url = '${host}/${showAndDownUrl}'+fileUrl;
- filePreviewForMobile(id,filename,url);
- }
- var u =window.navigator.userAgent;
- var ua =u.toLowerCase();
- function isWeiXin(){
- if(ua.match(/MicroMessenger/i) == 'micromessenger'){
- return true;
- }else{
- return false;
- }
- }
- var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
- $(function(){
- var windowWidth = $(document.body).width();
- $('img').each(function(){
- var $t = $(this);
- var thisWidth= $t.width();
- var p = (thisWidth/800)*100;
- if(p>100) p=100;
- $t.removeAttr('height');
- $t.removeAttr('style');
- $t.width(p+'%');
- });
- })
- </script>
- </body>
- </html>
|