Commit 67c6ccb6 by 郎靓静

移动端的投票

parent f3dab0be
......@@ -69,7 +69,7 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>http://cas.jfbrother.com:9003/cas-jfsso/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
<param-value>http://cas.jfbrother.com/cas-jfsso/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
</init-param>
<init-param>
<!-- 这里的server是服务端的IP -->
......@@ -89,7 +89,7 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://cas.jfbrother.com:9003/cas-jfsso</param-value><!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
<param-value>http://cas.jfbrother.com/cas-jfsso</param-value><!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
</init-param>
<init-param>
<param-name>serverName</param-name>
......
......@@ -82,8 +82,8 @@
clearInterval(timeid);
}
},10);*/
$input.next('label').click(function(){
$(this).prev("input").focus();
$input.next('label').click(function(){
$(this).prev().focus();
});
$input.bind({
focus:function(){
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<link rel="shortcut icon" type="image/x-icon" href="${ctx}/images/main/logo.ico" />
<link rel="stylesheet" href="${ctx}/lib/css/reset.css" type="text/css" />
<!-- bootstrap的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<!-- bootstrap-table的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/bootstrap-table-master/src/bootstrap-table.css">
<!-- 自定义样式 -->
<link rel="stylesheet" href="${ctx}/jfcas04_mobile/css/common.css" type="text/css" />
<!-- fancyBox的css -->
<link rel="stylesheet" type="text/css" href="${ctx}/lib/plug/fancyBox-2.1.5/source/jquery.fancybox.css" media="screen">
<!-- ztree的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" href="${ctx}/lib/plug/jqueryUi/jquery-ui-1.10.4/themes/base/jquery-ui.css">
<!-- xcConfirm的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/xcConfirm/css/xcConfirm.css">
<!-- spectrum(颜色)的css -->
<link rel="stylesheet" type="text/css" href="${ctx}/lib/plug/jqueryColour/spectrum.css">
<!-- fullcalendar(日历)的css -->
<link href='${ctx}/lib/plug/fullcalendar/fullcalendar.min.css' rel='stylesheet' />
<link href='${ctx}/lib/plug/fullcalendar/fullcalendar.print.min.css' rel='stylesheet' media='print' />
<link rel="stylesheet" href="${ctx}/lib/plug/jquery-easyui-1.5.3/themes/icon.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/custom/plug/webupload/css/webuploader.css" type="text/css"></link>
<!-- 时间插件的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/mobileTime/css/shijian.css" />
<!-- 弹出框插件的css -->
<link rel="stylesheet" href="${ctx}/lib/plug/sweetalert/css/sweetalert.css" />
<script type="text/javascript" src="${ctx}/lib/js/jquery-1.11.1.min.js"></script>
<!-- fancyBox的js -->
<script type="text/javascript" src="${ctx}/lib/plug/fancyBox-2.1.5/source/jquery.fancybox.js"></script>
<!-- ztree的js -->
<script type="text/javascript" src="${ctx}/lib/plug/zTree/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="${ctx}/lib/plug/zTree/js/jquery.ztree.exhide.min.js"></script>
<script type="text/javascript" src="${ctx}/lib/plug/zTree/js/jquery.ztree.exedit.min.js"></script>
<script type="text/javascript" src="${ctx}/lib/plug/zTree/js/jquery.ztree.excheck.min.js"></script>
<!-- 文本框的提示效果 -->
<script type="text/javascript" src="${ctx}/custom/plug/inputTips/inputTips.js"></script>
<!-- jquery ui的js -->
<!-- <script src="lib/plug/jqueryUi/jquery-ui-1.12.1.custom/jquery-ui.js"></script> -->
<script src="${ctx}/lib/plug/jqueryUi/jquery-ui-1.10.4/ui/jquery-ui.js"></script>
<!-- cookie的js -->
<script src="${ctx}/lib/js/jquery.cookie.js"></script>
<!-- xcConfirm的js -->
<script src="${ctx}/lib/plug/xcConfirm/js/xcConfirm.js"></script>
<!-- 百度地图 -->
<script src="http://api.map.baidu.com/api?v=2.0&ak=dk1fBEzU3QrGGFqauPP2kmXnA2P6mnOU"></script>
<!-- echarts的js -->
<script src="${ctx}/lib/js/echarts.js"></script>
<!-- 通用的js -->
<script src="${ctx}/custom/js/jquery.extend.js"></script>
<!-- fullcalendar(日历)的js -->
<script src='${ctx}/lib/plug/fullcalendar/lib/moment.min.js'></script>
<script src='${ctx}/lib/plug/fullcalendar/fullcalendar.min.js'></script>
<script src='${ctx}/lib/plug/fullcalendar/locale/zh-cn.js'></script>
<!-- spectrum(颜色)的js -->
<script type="text/javascript" src="${ctx}/lib/plug/jqueryColour/spectrum.js"></script>
<!-- mydate97的js -->
<script src='${ctx}/lib/plug/My97DatePicker/WdatePicker.js'></script>
<!-- 调用api时的js -->
<script type="text/javascript" src="${ctx}/jwapp/common/js/lang_json.js"></script>
<!-- bootstrap的js -->
<script src="${ctx}/lib/plug/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!-- bootstrap-table的js -->
<script src="${ctx}/lib/plug/bootstrap-table-master/src/bootstrap-table.js"></script>
<script src="${ctx}/lib/plug/bootstrap-table-master/src/locale/bootstrap-table-zh-CN.js"></script>
<script src="${ctx}/custom/plug/webupload/js/webuploader.js"></script>
<script src="${ctx}/custom/plug/webupload/js/webuploaderExtend.js"></script>
<!-- 时间插件的js -->
<script type="text/javascript" src="${ctx}/lib/plug/mobileTime/js/jquer_shijian.js"></script>
<!-- 弹出框插件的js -->
<script type="text/javascript" src="${ctx}/lib/plug/sweetalert/js/sweetalert.min.js"></script>
<script type="text/javascript">
var ctx='${pageContext.request.contextPath}';
</script>
<script type="text/javascript">
(function() {
//设置页面html的字体大小
var view = screen.width;
var fontSize = view / 16 + "px";
$('html').css("fontSize", fontSize);
})()
var ctx='${pageContext.request.contextPath}';
</script>
\ No newline at end of file
$(function(){
//初始化下来载列表
init_download_content();
})
function init_download_content(){
var download_list =[
{download_name:'会议资料1'},
{download_name:'会议资料2'},
{download_name:'会议资料3'},
{download_name:'会议资料4'},
{download_name:'会议资料5'},
];
//创建列表内的文字和图片
var $download_content = $('#download_content');
for(var i = 0 ;i<download_list.length;i++){
var $li_1 = $('<li></li>');
var $a_1 =$('<a></a>');
var $span_1 = $('<span></span>');
$span_1.text(download_list[i].download_name);
var $img_1=$('<img src="'+ctx+'/jfcas04_mobile/images/10@3x.png" onclick="alert('+i+')">');
$li_1.append($img_1);
$li_1.append($span_1);
$a_1.append($li_1);
$download_content.append($a_1);
}
}
\ No newline at end of file
$(function(){
$('#index_userName').inputTips('请输入用户名')
/*$('#index_userName').inputTips({
tip:{
}
})*/
/*$.fancybox('错误')*/
$('#index_phone').inputTips('请输入电话号码')
})
\ No newline at end of file
$(function(){
init_index_cg_photo_r();
})
function init_index_cg_photo_r(){
var index_cg_photo_list = [
{index_cg_photo_name: '欢迎您,',index_cg_photo_content:'黄草地'},
{index_cg_photo_name: '手机 :',index_cg_photo_content:'18736273627'},
{index_cg_photo_name: '状态 :',index_cg_photo_content:'已签到'},
{index_cg_photo_name: '位置 :',index_cg_photo_content:'三排四座'},
{index_cg_photo_name: '分组 :',index_cg_photo_content:'后勤部门'},
];
var $index_cg_photo_r = $('#index_cg_photo_r');
for(var i=0; i<index_cg_photo_list.length;i++){
//var $label_1 = $('<label></label>');
//$label_1.text('欢迎您,黄草地');
var $p_1 = $('<p></p>');
var $span_1 = $('<span></span>');
var $span_2 = $('<span style="font-weight: normal;"></span>');
$span_1.text(index_cg_photo_list[i].index_cg_photo_name);
$span_2.text(index_cg_photo_list[i].index_cg_photo_content);
$p_1.append($span_1);
$p_1.append($span_2);
//$index_cg_photo_r.append($label_1);
if(i==0){
$p_1.css({fontSize: '0.75rem',paddingTop: '0.8rem'});
$span_2.css({fontWeight: '700'});
}
$index_cg_photo_r.append($p_1);
}
}
\ No newline at end of file
$(function(){
//console.log(ctx)
init_two_content();
})
function init_two_content(){
var two_content_list=[
{two_content_name:'2018-08-14会议签到',two_content_wx:'微信扫码签到'},
{two_content_name:'2018-08-14资料下载',two_content_wx:'微信扫码下载'},
{two_content_name:'2018-08-14投票界面',two_content_wx:'微信扫码投票'},
{two_content_name:'2018-08-14抽奖界面',two_content_wx:'微信扫码抽奖'},
]
var $two_content = $('#two_content');
for(var i=0;i<two_content_list.length;i++){
var $div = $('<div class="two_main"></div>');
var $p_1 = $('<p></p>');
var $div_1 = $('<div></div>');
$div_1.attr('id','qrcodeCanvas'+i);
var $div_2 = $('<div class="two_main_wx"></div>');
var $label = $('<label></label');
$p_1.text(two_content_list[i].two_content_name);
$label.text(two_content_list[i].two_content_wx);
$div.append($p_1);
$div.append($div_1);
$div.append($div_2);
$div_2.append($label);
$two_content.append($div);
var id = $div_1.attr('id');
var link_text;
switch(two_content_list[i].two_content_wx){
case '微信扫码签到':
link_text = 'index.jsp';
break;
case '微信扫码下载':
link_text = 'download.jsp';
break;
case '微信扫码投票':
link_text = 'vote_topic.jsp';
break;
case '微信扫码抽奖':
link_text = 'lottery_draw.jsp';
break;
}
//二维码
jQuery('#'+id).qrcode({
render : "canvas", <!--二维码生成方式 -->
text : "http://192.168.1.171:8080/register/"+link_text, <!-- 二维码内容 -->
//text : 'http://192.168.1.160:8080/register/index.jsp',
width : "144", //二维码的宽度
height : "144",
//src:'down/'+id
});
//把画布转为图片
var canvas = $('#'+id).find('canvas');
var img = convertCanvasToImage(canvas[0]);
canvas.hide();
canvas.after(img);
}
}
// Converts canvas to an image
function convertCanvasToImage(canvas) {
var image = new Image();
image.src = canvas.toDataURL("image/png");
return image;
}
\ No newline at end of file
$(function(){
//初始化下来载列表
init_vote_editor_content();
fn();
$('#vote_editor_text').inputTips('输入投票主题,2-80字');
})
function init_vote_editor_content(){
if($.getUrlParam('voteId')==null){
var vote_editor_list=[
{vote_editor_name:'选项1'},
{vote_editor_name:'选项2'},
{vote_editor_name:'选项3'},
];
var $vote_editor_content = $('#vote_editor_content');
for( var i=0 ;i<vote_editor_list.length;i++){
var $li_2 = $('<li></li>');
var $img_2 = $('<img src="'+ctx+'/jfcas04_mobile/images/3@3x.png" >');
var $input_1 = $('<input type="text">');
$li_2.append($img_2);
$img_2.on('click',function(){
dele($(this));
})
if(i==0||i==1){ //隐藏第一,二行的图片
$img_2[0].style.visibility="hidden";
}
$li_2.append($input_1);
$input_1.val(vote_editor_list[i].vote_editor_name); //每个选项的名字
$input_1.focus(function(){
$(this).val('');
});
$vote_editor_content.append($li_2);
}
}
var results = voteModule.voteDataAction.listAll({
FIELD_UUID : $.getUrlParam('voteId')
}).rowSet;
console.log(results);
var v_jquery = {};
v_jquery.FIELD_MANAGE_ID = $.getUrlParam('voteId');
var infos = voteModule.voteDataAction.listItem(v_jquery).listItems;
console.log(infos);
//查看每个选项的被选情况
var $vote_editor_content = $('#vote_editor_content');
for( var i=0 ;i<infos.length;i++){
$('#vote_editor_text').val(results[0].CONTENT);
var $li_2 = $('<li></li>');
var $img_2 = $('<img src="'+ctx+'/jfcas04_mobile/images/3@3x.png" >');
var $input_1 = $('<input type="text">');
$li_2.append($img_2);
$img_2.on('click',function(){
dele($(this));
})
if(i==0||i==1){ //隐藏第一,二行的图片
$img_2[0].style.visibility="hidden";
}
$li_2.append($input_1);
$input_1.val(infos[i].CONTENT); //每个选项的名字
$vote_editor_content.append($li_2);
$('#vote_select').val(results[0].SUB_TITLE);
$('#vote_select1').val(results[0].MAX_COUNT);
$('#vote_select2').val(results[0].MIN_COUNT);
var ii = results[0].END_TIME;
ii = ii.substring(0, ii.length-3);
$('#input1').val(ii);
}
//最后一行的图片更换
var $img_3 = $('<img src="'+ctx+'/jfcas04_mobile/images/4@3x.png" style="margin:0.7rem 0.35rem;">');
var $span_2 = $('<span style="font-size:0.6rem;"></span>');
var $li_3 = $('<li></li>').appendTo($vote_editor_content);
$span_2.text('新增选项');
$li_3.append($img_3);
$li_3.append($span_2);
$img_3.on('click',function(){
addd($(this));
})
}
//新增选项
function addd(get){
var $add_li = $('<li></li>');
var $add_img = $('<img onClick="dele(this)" src="'+ctx+'/jfcas04_mobile/images/3@3x.png">');
var $add_input = $('<input type="text">');
var index = $('#vote_editor_content>li').length;
$add_input.val('新选项');
$add_input.focus(function(){
$(this).val('');
});
$add_li.append($add_img);
$add_li.append($add_input);
if(index<=15){
$(get).parent().before($add_li);
}
else{
$.fancybox('最多不得超出15个选项,每个选项不得超过40个字');
}
//numCheck();
}
//删除选项
function dele(handler){
$(handler).parent().remove();
//numCheck();
}
//新增或删除选项时,对选项文字的数字排序
function numCheck(){
        var num = $('#vote_editor_content>li').length;    
        for (var i = 0; i <= num; i++){        
        $('#vote_editor_content>li>input').eq(i).val('选项'+(i+1));
}
}
//匿名投票按钮
function fn(){
$("#anonymous").click(
function(){
if($(this).attr('src')==''+ctx+'/jfcas04_mobile/images/5@3x.png'){
$(this).attr('src',''+ctx+'/jfcas04_mobile/images/6@3x.png');
}
else{
$(this).attr('src',''+ctx+'/jfcas04_mobile/images/5@3x.png');
}
}
);
}
//发布投票
function savesend() {
var results = voteModule.voteDataAction.listAll({
FIELD_UUID : $.getUrlParam('voteId')
}).rowSet;
//判断投票是否结束
/*if(results[0].STATUS_FLAG==2){
$.fancybox.open('投票已结束!');
return;
}*/
var v_jquery = {};
v_jquery.FIELD_CONTENT = $('#vote_editor_text').val();
var index_letter =['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q'];
var contents = '';
var letter_array = [];
$('#vote_editor_content').find('li:not(:last)').each(function(index, element) {
var letter_obj = {};
var content = $(element).find('input').val();
letter_obj.INDEX_NAME=index_letter[index];
letter_obj.CONTENT = content;
letter_array.push(letter_obj);
})
v_jquery.FIELD_ITEMS = JSON.stringify(letter_array);
v_jquery.FIELD_SUB_TITLE = $('#vote_select').val();
v_jquery.FIELD_MIN_COUNT = $('#vote_select2').val();
v_jquery.FIELD_MAX_COUNT = $('#vote_select1').val();
v_jquery.FIELD_END_TIME = $('#input1').val();
console.log(v_jquery);
//判断发布的投票信息是否完整
if(v_jquery.FIELD_CONTENT=='' || v_jquery.FIELD_SUB_TITLE=='' || v_jquery.FIELD_MIN_COUNT=='' || v_jquery.FIELD_MAX_COUNT=='' || v_jquery.FIELD_END_TIME==''){
$('.vote_editor_judge').css('display','block');
$('.vote_editor_judge').text('请完整输入以下信息。');
return;
}
//判断最大投票数是否大于最小投票数
if(eval(v_jquery.FIELD_MIN_COUNT) > eval(v_jquery.FIELD_MAX_COUNT) ){
$('.vote_editor_judge').css('display','block');
$('.vote_editor_judge').text('最大投票数必须大于等于最小投票数');
return;
}else{
$('.vote_editor_judge').css('display','none');
}
//判断时间是否是之后的时间
var mydate = new Date();
//var time = mydate.toLocaleString('chinese', { hour12: false });
var year=mydate.getFullYear();
var month=mydate.getMonth()+1;
var day=mydate.getDate();
var hour=mydate.getHours();
var mins=mydate.getMinutes();
if(month<=9){
month="0"+month;
}
if(day<=9){
day="0"+day;
}
mydate=year+"-"+month+"-"+day+" "+hour+":"+mins;
var nowtime = $('#input1').val();
//对比日期大小
if(mydate>nowtime) {
$('.vote_editor_judge') .css('display', 'block');
$('.vote_editor_judge').text('结束时间必须大于实际时间');
return;
}
//判断发布的投票是新增的还是编辑
if($.getUrlParam('voteId')==null){
v_jquery.FIELD_OPETYPE = 'insert';
var result = voteModule.voteActAction.insertVote(v_jquery);
$.fancybox.open('新增成功!',{
//关闭之后触发
afterClose : function( instance, current ){
window.location.href='mobileVotemajor';
}
});
swal("Good!", "新增成功!", "success",function(){
alert()
});
console.log(result)
if(result.VALUE=='保存成功'){
swal({
title: "",
text: "新增成功!",
type: "success",
showCancelButton: false,
allowOutsideClick:true,
closeOnConfirm: false,
}, function() {
//点击确定后跳转页面
window.location.href='mobileVotemajor';
});
}else{
swal("", "新增失败!", "error");
}
}else{
v_jquery.FIELD_UUID = results[0].UUID;
v_jquery.FIELD_OPETYPE = 'updata';
var result = voteModule.voteActAction.updateVote(v_jquery);
console.log(result)
//$.fancybox.open('编辑成功!');
if(result.VALUE=='修改成功'){
swal({
title: "",
text: "编辑成功!",
type: "success",
showCancelButton: false,
allowOutsideClick:true,
closeOnConfirm: false,
}, function() {
//点击确定后跳转页面
window.location.href='mobileVotemajor';
});
}else{
swal("", "编辑失败!", "error");
}
}
}
$(function(){
init_vote_browse_content();
})
function init_vote_browse_content(){
$.ajax({
url:ctx+'/voteData_list_ongoing',
type:'post',
success:function(result){
//主容器
var $vote_browse_content = $('#vote_browse_content');
var infos = result.rowSet;
console.log(infos);
for(var j=0;j < infos.length;j++){
var options = [];
//已投票的主题
if(infos[j].VOTE_COUNT>0){
options = voteModule.voteDataAction.listUserChecked({
FIELD_MANAGE_ID : infos[j].UUID
}).listusercheckeds;
console.log(options);
}
//子容器
var $vote_browse_main = $('<div></div>').addClass('vote_browse_main').appendTo($vote_browse_content);
var $vote_browse_main_top = $('<div></div>').addClass('vote_browse_main_top').appendTo($vote_browse_main);
var $span_1 = $('<span></span>').text(infos[j].CREATE_ID).appendTo($vote_browse_main_top);
var $span_2 = $('<span></span>').text(infos[j].CREATE_TIME).appendTo($vote_browse_main_top);
//子容器中
var $vote_browse_main_middle = $('<div></div>').addClass('vote_browse_main_middle').appendTo($vote_browse_main);
var $p_1 = $('<p></p>').text(j+1+'.'+infos[j].CONTENT).appendTo($vote_browse_main_middle);
//选项内容
var infos_content ={};
infos_content.FIELD_MANAGE_ID = infos[j].UUID;
var vote_topic_content_list = voteModule.voteDataAction.listItem(infos_content).listItems;
//子容器尾
var $vote_browse_main_bottom = $('<div></div>').addClass('vote_browse_main_bottom').appendTo($vote_browse_main);
var $p_2 = $('<p></p>').text('选项预览').appendTo($vote_browse_main_bottom);
//选项的内容样式
var $ul_1 = $('<ul></ul>').appendTo($vote_browse_main_bottom);
//创建一个新的数组
var newArray = [];
for(var i=0; i < vote_topic_content_list.length;i++){
var flag = true;
/*var $li_1 = $('<li></li>').appendTo($ul_1);*/
for(var x =0;x <options.length;x++){
//判断选项是否被选
if(vote_topic_content_list[i].UUID==options[x].ITEM_ID){
var $li_1 = $('<li></li>').appendTo($ul_1);
$li_1.css('background-color','#E8F7FE');
var $span_3 = $('<span></span>').text(vote_topic_content_list[i].CONTENT).appendTo($li_1);
flag = false;
}
}
//将未选的选项放入新数组
if(flag==true){
newArray.push(vote_topic_content_list[i]);
}
}
//显示三条选项
for(var y=0; y < newArray.length;y++){
if($ul_1.find('li').length<3){
var $li_1 = $('<li></li>').appendTo($ul_1);
var $span_3 = $('<span></span>').text(newArray[y].CONTENT).appendTo($li_1);
}
}
//投票按钮
var $vote_browse_main_bottom_button = $('<div></div>').addClass('vote_browse_main_bottom_button').appendTo($vote_browse_main);
//判断主题是否已投
if(infos[j].VOTE_COUNT!=0){
var $a_1 = $('<a></a>').text('已投票,查看结果');
}else{
var $a_1 = $('<a></a>').text('立即投票');
}
$a_1.attr('onclick','window.location.href=\'mobileVotedetails?voteId='+ infos[j].UUID +'\'').appendTo($vote_browse_main_bottom_button);
}
}
})
}
$(function(){
//初始化下来载列表
init_vote_check_content();
})
function init_vote_check_content(){
var vote_content_list=[
{vote_content_name:'王大头',vote_content_time:'12分钟前'},
{vote_content_name:'王二头',vote_content_time:'12分钟前'},
{vote_content_name:'王三头',vote_content_time:'12分钟前'},
];
var $vote_check_content = $('#vote_check_content');
for(var i=0; i< vote_content_list.length;i++){
var $li_4 = $('<li></li>');
var $span_4 = $('<span class="vote_check_content_l"></span>');
var $span_5 = $('<span class="vote_check_content_r"></span>');
$span_4.text(vote_content_list[i].vote_content_name);
$span_5.text(vote_content_list[i].vote_content_time);
$li_4.append($span_4);
$li_4.append($span_5);
$vote_check_content.append($li_4);
}
}
\ No newline at end of file
$(function(){
init_vote_details_content();
})
function init_vote_details_content(){
if($.getUrlParam('voteId')==null){
return;
}
//主题
var results = voteModule.voteDataAction.listAll({
FIELD_UUID : $.getUrlParam('voteId')
}).rowSet;
console.log(results);
//主题选项
var v_jquery = {};
v_jquery.FIELD_MANAGE_ID = $.getUrlParam('voteId');
var infos = voteModule.voteDataAction.listItem(v_jquery).listItems;
console.log(infos);
//获取已投票选项
var options = voteModule.voteDataAction.listUserChecked({
FIELD_MANAGE_ID : $.getUrlParam('voteId')
}).listusercheckeds;
console.log(options);
//主容器
var $vote_details_content = $('#vote_details_content');
for(var j=0;j < results.length;j++){
//子容器
var $vote_details_main = $('<div></div>').addClass('vote_details_main').appendTo($vote_details_content);
//子容器头
var $vote_details_main_top = $('<div></div>').addClass('vote_details_main_top').appendTo($vote_details_main);
var $span_1 = $('<span></span>').text(results[j].CREATE_ID).appendTo($vote_details_main_top);
var $span_2 = $('<span></span>').text(results[j].CREATE_TIME).appendTo($vote_details_main_top);
//子容器中
var $vote_details_main_middle = $('<div></div>').addClass('vote_details_main_middle').appendTo($vote_details_main);
var $p_1 = $('<p></p>').text(j+1+'.'+results[j].CONTENT).appendTo($vote_details_main_middle);
//子容器尾
var $vote_details_main_bottom = $('<div></div>').addClass('vote_details_main_bottom').appendTo($vote_details_main);
var $p_2 = $('<p></p>').text(results[j].SUB_TITLE).appendTo($vote_details_main_bottom);
var $ul_1 = $('<ul></ul>').appendTo($vote_details_main_bottom);
for(var i=0; i < infos.length;i++){
//判断多选还是单选
if(results[0].MAX_COUNT=='1'){
var $input_1 = $('<input type="radio" name="vote_details_main_bottom_radio">');
$input_1.click(function(){
var voteChecked = $(this).prop("checked");
if(voteChecked==true){
$(this).parent().css('background-color','#E8F7FE');
$(this).parent().siblings().css('background-color','#f7f7f7');
}
});
}
else{
var $input_1 = $('<input type="checkbox" >');
//判断哪个选项被选中
var x=0;
$input_1.click(function(){
var voteChecked = $(this).prop("checked");
if(voteChecked==true){
$(this).parent().css('background-color','#E8F7FE');
x++;
}else{
$(this).parent().css('background-color','#f7f7f7');
x--;
}
//限制选中的选项个数
if(x>results[0].MAX_COUNT){
$(this).click();
swal("", '请选择'+results[0].MIN_COUNT+'到'+results[0].MAX_COUNT+'个选项', "error");
//$.fancybox.open('请选择'+results[0].MIN_COUNT+'到'+results[0].MAX_COUNT+'个选项');
}
});
}
var $li_1 = $('<li ></li>').appendTo($ul_1);
$li_1.data('info',infos[i]);
$li_1.append($input_1);
var $span_3 = $('<span></span>').text(infos[i].CONTENT).appendTo($li_1);
//判断主题是否已投票,已投票的选项不可再选
if(options.length!=0){
console.log(options.length)
for(var y=0;y<options.length;y++){
if(infos[i].UUID==options[y].ITEM_ID){
$input_1.prop("checked","checked");
$input_1.parent().css('background-color','#E8F7FE');
$input_1.prop("disabled","true");
}else{
$input_1.prop("disabled","true");
}
}
}
}
var $p_3 = $('<p></p>').appendTo($vote_details_main_bottom);
var $span_4 = $('<span style="padding:0;"></span>').text('截止时间').appendTo($p_3);
var $span_5 = $('<span></span>').text(results[j].UPDATE_TIME).appendTo($p_3);
}
var $vote_details_bottom_button = $('<div></div>').addClass('vote_details_bottom_button').appendTo($vote_details_content);
//判断主题是否已投
if(options.length!=0){
var $p_4 = $('<a href="mobileVotebrowse"></a>').text('返回');
}else{
var $p_4 = $('<a onclick="save(this)"></a>').text('投票');
$p_4.data('results',results[0]);
}
$p_4.appendTo($vote_details_bottom_button);
}
//发布按钮
function save(handler){
var uuids = '';
$('.vote_details_main_bottom').find('li').each(function(index,element){
var voteChecked = $(element).find('input').prop("checked");
if(voteChecked==true){
var uuid = $(element).data('info').UUID;
uuids = uuids + uuid + ',';
}
})
uuids = uuids.substring(0, uuids.length-1);
var results = $(handler).data('results');
var v_jquery = {};
v_jquery.FIELD_FLAG = '1';
v_jquery.FIELD_OPETYPE = 'update';
v_jquery.FIELD_UUID = results.UUID;
v_jquery.FIELD_STATUS_FLAG = results.STATUS_FLAG;
v_jquery.FIELD_MIN_COUNT = results.MIN_COUNT;
v_jquery.FIELD_MAX_COUNT = results.MAX_COUNT;
v_jquery.FIELD_UUIDS=uuids;
//选项数是否达到最少选项的要求
var x = 0;
$('.vote_details_main_bottom>ul').find('li').each(function(index,element){
var voteChecked = $(element).find('input').prop("checked");
if(voteChecked==true){
x++;
}
})
if(x<results.MIN_COUNT){
swal("", "请按要求选择", "error");
return;
}
var result = voteModule.voteActAction.insertUserVote(v_jquery);
console.log(v_jquery);
if(result.VALUE == '保存成功'){
//弹出框
swal({
title: "",
text: "投票成功!",
type: "success",
showCancelButton: false,
allowOutsideClick:true,
closeOnConfirm: true,
}, function() {
//点击确定后跳转页面
window.location.href='mobileVotebrowse';
$('.vote_details_bottom_button').find('a').text('返回').removeAttr('onclick').attr('href','mobileVotebrowse');
});
}
else{
swal("", "投票失败!请再次投票", "error");
}
}
$(function(){
init_vote_major_content();
})
function init_vote_major_content(){
var result = voteModule.voteDataAction.list({
FIELD_UUID : $.getUrlParam('voteId')
}).rowSet;
console.log(result);
var $vote_major_content = $('#vote_major_content');
var $ul_1 = $('<ul></ul>').appendTo($vote_major_content);
for(var i=0; i<result.length;i++){
var $li_1 = $('<li></li>').appendTo($ul_1);
$li_1.data('data_json',result[i]);
var $input_1 = $('<input type="checkbox">').appendTo($li_1);
var $vote_major_selection_top = $('<div></div>').addClass('vote_major_selection_top').appendTo($li_1);
var $div_1 = $('<div></div>').addClass('vote_major_selection_top_right').appendTo($vote_major_selection_top);
var $a_1 = $('<a></a>').text('编辑');
$a_1.attr('onclick','window.location.href=\'mobileVote?voteId='+ result[i].UUID +'\'').appendTo($vote_major_selection_top);
var $div_2 = $('<div></div>').addClass('vote_major_selection_top_img').appendTo($vote_major_selection_top);
//var $span_1 = $('<span></span>').text('进行中').appendTo($div_2);
if(result[i].STATUS_FLAG=='1'){
var $span_1 = $('<span></span>').text('进行中').appendTo($div_2);
}else{
var $span_1 = $('<span></span>').text('已结束').css('background-color','#ff0000db').appendTo($div_2);
}
var $p_1 = $('<p></p>').text(i+1+'.'+result[i].CONTENT).appendTo($div_1);
$p_1.data('data_json',result);
var $span_2 = $('<span></span>').text('发布于').appendTo($div_1);
var $span_3 = $('<span></span>').text(result[i].CREATE_TIME).appendTo($div_1);
}
var kk = $vote_major_content.next().children().val();
if(kk=='新增主题'){
$('.vote_major_content>ul>li').find('input').css('visibility','hidden');
}
}
//删除时,序号排序
function vote_major_sort(){
$('.vote_major_selection_top_right>p').each(function(index,element){
var kk = $(element).text().substring($(element).text().indexOf('.')+1)
$(element).text(index+1+'.'+kk);
})
}
//管理按钮的切换
function vote_major_manage(handler){
var $input_2 = $('.vote_major_footer>input').eq(0);
if($input_2.val()=='新增主题'){
$input_2.val('删除主题');
$('.vote_major_footer>input').eq(0).css('background-color','#ff0000db');
$(handler).val('取消');
$('.vote_major_content>ul>li').find('input').css('visibility','visible');
}else{
$input_2.val('新增主题');
$('.vote_major_footer>input').eq(0).css('background-color','#30a2dca1');
$(handler).val('管理主题');
$('.vote_major_content>ul>li').find('input').css('visibility','hidden');
}
}
//新增和删除按钮
function vote_major_dele_add(get){
var get = $(get).val();
var uuids = '';
var v_jquery = {};
if(get=='新增主题'){
window.location.href= 'mobileVote';
}else{
$('#vote_major_content>ul>li').each(function(index,element){
var data_json = $(element).data('data_json');
var gg = $(element).find('input').prop('checked');
if(gg==true){
var uuid = data_json.UUID;
uuids = uuids + uuid + ',';
}
})
uuids = uuids.substring(0, uuids.length-1);
v_jquery.FIELD_CODE=uuids;
swal({
title : "",
text : "您确定要删除吗?",
type : "warning",
confirmButtonText : "确定",
confirmButtonColor : "#ec6c62",
showCancelButton : true,
closeOnConfirm : false,
allowOutsideClick : true
}, function(isConfirm) {
if (isConfirm) {
var result = voteModule.voteActAction.deleteVote(v_jquery);
if (result.VALUE = '删除成功') {
$('#vote_major_content>ul>li').each(function(index, element) {
var gg = $(element).find('input').prop('checked');
if (gg == true) {
$(element).remove();
vote_major_sort();
}
})
swal("", "删除成功!", "success");
} else {
swal("", "删除失败!", "error");
}
}
});
}
}
\ No newline at end of file
$(function(){
init_vote_result_content();
})
function init_vote_result_content(){
var infos = voteModule.voteDataAction.listUserChecked();
console.log(infos);
}
/*var vote_result_content_list=[
{vote_result_content_name:'大兔子',vote_result_content_amount:'17人'},
{vote_result_content_name:'二兔子',vote_result_content_amount:'17人'},
{vote_result_content_name:'三兔子',vote_result_content_amount:'17人'},
{vote_result_content_name:'四兔子',vote_result_content_amount:'17人'},
{vote_result_content_name:'五兔子',vote_result_content_amount:'17人'},
]*/
//查看投票结果
/*var $vote_result_content = $('.vote_result_content');
for(var i=0; i< vote_result_content_list.length;i++){
var $span_4 = $('<span></span>');
var $li_3 = $('<li></li>');
$li_3.attr('onclick',"window.location.href='mobileVotecheck'");
$li_3.text(vote_result_content_list[i].vote_result_content_name); //每个主题的各个选项
$span_4.text(vote_result_content_list[i].vote_result_content_amount); //每个选项的选投人数
$li_3.append($span_4);
$vote_result_content.append($li_3);
}*/
\ No newline at end of file
$(function(){
init_vote_topic_content();
})
function init_vote_topic_content(){
$.ajax({
url:ctx+'/voteData_list_ongoing',
type:'post',
success:function(result){
//主容器
var $vote_topic_substance = $('.vote_topic_substance');
/*var infos = voteModule.voteDataAction.list().rowSet;*/
var infos = result.rowSet;
//页数
var $vote_topic_header_count = $('#vote_topic_header_count');
$vote_topic_header_count.text(1+'/'+infos.length);
//console.log();
for(var j=0;j < infos.length;j++){
//各页面容器
var $vote_topic_substance_chunk = $('<div></div>').addClass('vote_topic_substance_chunk');
//显示第一页,隐藏其他页
if(j!=0){
$vote_topic_substance_chunk.css('display','none');
}
$vote_topic_substance.append($vote_topic_substance_chunk);
//投票标题容器
var $vote_topic_main = $('<div></div>').addClass('vote_topic_main');
$vote_topic_substance_chunk.append($vote_topic_main);
//投票标题
var $title_p = $('<p></p>').text(j+1+'.'+infos[j].CONTENT).appendTo($vote_topic_main);
//选项内容
var infos_content ={};
infos_content.FIELD_MANAGE_ID = infos[j].UUID;
var vote_topic_content_list = voteModule.voteDataAction.listItem(infos_content).listItems;
//投票下部的容器
var $vote_topic_bottom = $('<div></div>').addClass('.vote_topic_bottom').appendTo($vote_topic_substance_chunk);
//选项内容的容器
var $vote_topic_content = $('<form></form>').attr('id','vote_topic_content').appendTo($vote_topic_bottom);
//选项的内容样式
for(var i=0; i < vote_topic_content_list.length;i++){
//判断多选还是单选
if(infos[j].MAX_COUNT=='1'){
var $input_2 = $('<input type="radio" name="single">');
}
else{
var $input_2 = $('<input type="checkbox" name="single">');
}
var $span_3 = $('<span></span>');
var $div_1 = $('<div class="select"></div>');
var $div = $('<div class="vote_topic_select"></div>');
//每个选项名
$span_3.text(vote_topic_content_list[i].CONTENT);
$div_1.append($span_3);
$div.append($input_2);
$div.append($div_1);
$vote_topic_content.append($div);
}
}
}
})
}
//下一条
function vote_topic_next(handler){
$('.vote_topic_substance_chunk').each(function(index,element){
if($(element).css('display')!='none'&&index<$('.vote_topic_substance_chunk').length-1){
$(element).hide();
$(element).next().show();
return false;
}
})
}
function vote_topic_prev(handler){
$('.vote_topic_substance_chunk').each(function(index,element){
if($(element).css('display')!='none'&&index >= 0){
$(element).hide();
$(element).prev().show();
return false;
}
})
}
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>会议相关资料下载</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/download.js"></script>
</head>
<body>
<div class="download_header">
<p>会议相关资料下载</p>
<span style="display:none;">全部下载</span>
</div>
<div class="download_main">
<ul id="download_content">
<!-- <a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a>
<a href="#"><li><span>会议资料1</span><img src="custom/images/10@3x.png"></li></a> -->
</ul>
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>会议签到</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<%-- <link rel="stylesheet" href="${ctx}/jfcas04_mobile/css/common.css" type="text/css" /> --%>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/index.js"></script>
</head>
<body>
<div class="index_header">
<img src="${ctx}/jfcas04_mobile/images/logo@2x.png">
<p><span>2018-8-14</span> 会议签到</p>
</div>
<div class="index">
<div class="index_name">
<input type="text" id="index_userName">
</div>
<div class="index_name">
<input type="text" id="index_phone">
</div>
<input type="submit" value="签到" onclick="window.location.href='mobileIndexcg'">
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>与会人员</title>
<!-- bootstrapºÍbootstrap-table µÄcss-->
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/index_cg.js"></script>
<script>
(function() {
//设置页面html的字体大小
var view = screen.width;
var fontSize = view / 16 + "px";
$('html').css("fontSize", fontSize);
})()
var ctx = '${pageContext.request.contextPath}';
</script>
</head>
<body>
<div class="header">
<p>已签到</p>
</div>
<div class="index_cg_photo">
<div class="index_cg_photo_l fl">
<img src="${ctx}/jfcas04_mobile/images/toux@3x.png">
</div>
<div class="index_cg_photo_r ">
<div id="index_cg_photo_r">
<!-- <label>欢迎您,黄草地</label>
<p><span>手机:</span>18736273627</p>
<p><span>状态:</span>已签到</p>
<p><span>座位:</span>三排四座</p>
<p><span>分组:</span>后勤部门</p> -->
</div>
</div>
</div>
<div class="index_cg_sj">
<div class="index_picture">
<img src="${ctx}/jfcas04_mobile/images/11@3x.png">
</div>
<span>与会总人员</span>
<div class="index_cg_sj_l fr">16<span></span></div>
</div>
<div class="index_cg_sj">
<div class="index_picture">
<img src="${ctx}/jfcas04_mobile/images/12@3x.png">
</div>
<span>已签到人员</span>
<div class="index_cg_sj_l fr">100<span></span></div>
</div>
<div class="index_cg_bottom">
<div class="index_cg_circle">
<a href="mobileDownload">
<img src="${ctx}/jfcas04_mobile/images/13@3x.png">
<p style="">会议纪要</p>
</a>
</div>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>抽奖页面</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<style type="text/css">
*{
padding: 0;margin:0;
}
html,body{
width: 100%;
height: 100%;
background: -webkit-radial-gradient(#f50607,#800807);
background: -moz-radial-gradient(#f50607,#800807);
background: -o-radial-gradient(#f50607,#800807);
background: radial-gradient(#f50607,#800807);
}
.container{
padding: 1.2rem 1.7rem;
margin:0 auto;
overflow: hidden;
}
.left{
width: 12.5rem;}
.left h2{
line-height: 2.5rem;
text-align: center;
color: #fff;}
.level,.result-box,button{
width: 12.5rem;
height: 2rem;}
.level{
border-radius: 0.2rem;
font-size:0.9rem;
}
.result-box{
margin:0.75rem 0;
border-radius: 0.2rem;
background-color:#fff;
text-align:center;
line-height:1.8rem;
font-size:0.9rem;
}
button{
border:none;
color:#fff;
font-size:0.9rem;
border-radius: 0.2rem;
cursor: pointer;
margin: 0.5rem 0;
}
button:focus{
outline:none;}
.start{
background-color:#428bca;}
.end{
background-color:#d9534f;}
.list{
width: 12.5rem;
min-height: 12.5rem;
background: #fff;
border-radius: 0.2rem;
padding: 0.5rem;
margin: 0.5rem 0;
}
.level option{
height: 0.75rem;
width: 80%;
}
</style>
<script>
(function() {
//设置页面html的字体大小
var view = screen.width;
var fontSize = view / 16 + "px";
$('html').css("fontSize", fontSize);
})()
var ctx = '${pageContext.request.contextPath}';
</script>
</head>
<body>
<div class="container">
<div class="left">
<h2>抽奖活动</h2>
<select class="level">
<option value="3">三等奖</option>
<option value="2">二等奖</option>
<option value="1">一等奖</option>
</select>
<div class="result-box">150****0000</div>
<button class="start" onClick="start()">开始抽奖</button>
</div>
<div class="list"></div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
var data = [02161606967, 13020266595, 13062886092, 13120856800, 13166203899, 13222286768, 13260155466, 13311859605, 13321953155, 13386035991, 13386279355, 13391041349, 13402005209, 13501955354, 13524377621, 13566884393, 13585583394, 13601652353, 13601750621, 13601957822, 13611717363, 13611808088, 13621842513, 13636608228, 13651744987, 13671548893, 13671715448, 13671743121, 13671938567, 13701612351, 13770050005, 13774415457, 13774468122, 13795220723, 13816648396, 13817074750, 13817603172, 13817864803, 13818156777, 13818478999, 13818608945, 13818676915, 13818708665, 13870620815, 13901647848, 13901757122, 13901765884, 13916054638, 13916130704, 13916230340, 13916320794, 13917046040, 13917082161, 13917376187, 13917519790, 13917822024, 13918015694, 15000239160, 15000858139, 15000863267, 15001966112, 15021654427, 15026688058, 15162775605, 15201931885, 15262790618, 15366970333, 15692116261, 15800762285, 15801777839, 15836932000, 15900711818, 15901868745, 15921081152, 15921913369, 17721460897, 18017628227, 18202119713, 18502746988, 18516214869, 18521502523, 18521531099, 18606387979, 18616988816, 18621373309, 18621607551, 18621768758, 18621831973, 18621939488, 18817373997, 18817619376, 18818010115, 18857881532, 18901731168, 18910877917, 18916172890, 18918588802, 18930362020, 18939786089, 15001963100, 15001963101, 15001963102, 15001963103, 15001963104, 15001963105, 15001963106, 15001963107, 15001963108, 15001963109, 15001963110, 15001963111, 15001963112, 15001963113, 15001963114, 15001963115, 15001963116, 15001963117, 15001963118, 15001963119, 15001963120, 15001963121, 15001963122, 15001963123, 15001963124, 15001963125, 15001963126, 15001963127, 15001963128, 15001963129, 15001963130, 15001963131, 15001963132, 15001963133, 15001963134, 15001963135, 15001963136, 15001963137, 15001963138, 15001963139, 15001963140, 15001963141, 15001963142, 15001963143, 15001963144, 15001963145, 15001963146, 15001963147, 15001963148, 15001963149, 15001963150, 15001963151, 15001963152, 15001963153, 15001963154, 15001963155, 15001963156, 15001963157, 15001963158, 15001963159, 15001963160, 15001963161, 15001963162, 15001963163, 15001963164, 15001963165, 15001963166, 15001963167, 15001963168, 15001963169, 15001963170, 15001963171, 15001963172, 15001963173, 15001963174, 15001963175, 15001963176, 15001963177, 15001963178, 15001963179, 15001963180, 15001963181, 15001963182, 15001963183, 15001963184, 15001963185, 15001963186, 15001963187, 15001963188, 15001963189, 15001963190, 15001963191, 15001963192, 15001963193, 15001963194, 15001963195, 15001963196, 15001963197, 15001963198, 15001963199, 15001963200, 15001963201, 15001963202, 15001963203, 15001963204, 15001963205, 15001963206, 15001963207, 15001963208, 15001963209, 15001963210, 15001963211, 15001963212, 15001963213, 15001963214, 15001963215, 15001963216, 15001963217, 15001963218, 15001963219, 15001963220, 15001963221, 15001963222, 15001963223, 15001963224, 15001963225, 15001963226, 15001963227, 15001963228, 15001963229, 15001963230, 15001963231, 15001963232, 15001963233, 15001963234, 15001963235, 15001963236, 15001963237, 15001963238, 15001963239, 15001963240, 15001963241, 15001963242, 15001963243, 15001963244, 15001963245, 15001963246, 15001963247, 15001963248, 15001963249, 15001963250, 15001963251, 15001963252, 15001963253, 15001963254, 15001963255, 15001963256, 15001963257, 15001963258, 15001963259, 15001963260, 15001963261, 15001963262, 15001963263, 15001963264, 15001963265, 15001963266, 15001963267, 15001963268, 15001963269, 15001963270, 15001963271, 15001963272, 15001963273, 15001963274, 15001963275, 15001963276, 15001963277, 15001963278, 15001963279, 15001963280, 15001963281, 15001963282, 15001963283, 15001963284, 15001963285, 15001963286, 15001963287, 15001963288, 15001963289, 15001963290, 15001963291, 15001963292, 15001963293];//参与人员
//内定中奖人员
var initP = [13870620815, 13901647848, 13901757122];
var p1Num = 3;//一等奖数量
var p2Num = 5;//二等奖数量
var p3Num = 10;//三等奖数量
var p1Winner = new Array();//一等奖中奖者
var p2Winner = new Array();//二等奖中奖者
var p3Winner = new Array();//三等奖中奖者
var btn =true;//按钮状态未开始还是结束
var key =0;//中奖下标
var time=0;//定时器
//点击按钮
function start(){
if(btn){
if((p1Num<=0) && (p2Num<=0) && (p3Num<=0)){
$("button").hide();
alert("所有抽奖已结束");
}else if($('select').val() == 3 && (p3Num<=0)){
alert('三等奖已抽取完毕,请选择其他奖项...');
}else if($('select').val() == 2 && (p2Num<=0)){
alert('二等奖已抽取完毕,请选择其他奖项...');
}else if($('select').val() == 1 && (p1Num<=0)){
alert("一等奖已抽取完毕,请选择其他奖项...");
}else{
btn = false;
$('button').removeClass('start').addClass('end').text("结束抽奖");
startTrun();
}
}else{
btn = true;
$('button').removeClass("end").addClass("start").text("开始抽奖");
endTrun();
console.log(p3Num,p2Num,p1Num);
}
}
function runTime(){
//$("button").show();
clearInterval(time);
time=setInterval('trunNum()',10);
}
function trunNum(){
key=Math.floor(Math.random()*(data.length));
if(data.length!=0){
var tel=data[key].toString().substr(0, 3)+'****'+data[key].toString().substr(7);
$(".result-box").text(tel);
}
}
function startTrun(){
runTime();
}
//停止转动数字
function endTrun(){
clearInterval(time);
if($("select").val() == 3){
$(".list").prepend("<p>第"+p3Num+"名:"+data[key]+"</p>");
data.splice(key,1);
p3Winner.push(data[key]);
p3Num--;
if(p3Num == 0){
$(".list").prepend("<p>三等奖获得者</p>");
}
}else if($('select').val() == 2){
$(".list").prepend("<p>第"+p2Num+"名:"+data[key]+"</p>");
data.splice(key,1);
p2Winner.push(data[key]);
p2Num--;
if(p2Num == 0){
$(".list").prepend("<p>二等奖获得者</p>");
}
}else{
$(".list").prepend("<p>第"+p1Num+"名:"+data[key]+"</p>");
data.splice(key,1);
p1Winner.push(data[key]);
p1Num--;
if(p1Num == 0){
$(".list").prepend("<p>一等奖获得者</p>");
}
}
}
</script>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>会议纪要</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script>
(function() {
//设置页面html的字体大小
var view = screen.width;
var fontSize = view / 16 + "px";
$('html').css("fontSize", fontSize);
})()
var ctx = '${pageContext.request.contextPath}';
</script>
</head>
<body>
<div class="summary_header">
<p>会议纪要</p>
<span>保存</span>
</div>
<div class="summary_main">
<div class="summary_main_top">
会议名称<input type="text" value="">
</div>
<div class="summary_main_top" style="margin:0.5rem 0;">
<span>会议主题</span><input type="text" value="">
</div>
<div class="summary_main_bottom">
<textarea id="summary_text"></textarea>
</div>
</body>
<script type="text/javascript">
$(function(){
$('#summary_text').inputTips({
tip:{
fontSize:'0.75rem',
text:'会议纪要',
}
})
})
</script>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>二维码界面</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/lib/plug/qrcode/js/jquery.qrcode.js" ></script>
<script type="text/javascript" src="${ctx}/lib/plug/qrcode/js/qrcode.js" ></script>
<script type="text/javascript" src="${ctx}/lib/plug/qrcode/js/utf.js" ></script>
<!-- <script type="text/javascript" src="custom/js/two.js"></script> -->
</head>
<body>
<div class="two_header">
<img src="${ctx}/jfcas04_mobile/images/logo1@2x.png" >
</div>
<div id="two_content">
<!--
<div class="two_main">
<p>2018-08-14会议签到</p>
<div id="qrcodeCanvas1"></div>
<div class="two_main_wx">
<label>微信扫码签到</label>
</div>
</div>
<div class="two_main">
<p>2018-08-14会议签到</p>
<div id="qrcodeCanvas2"></div>
<div class="two_main_wx">
<label>微信扫码签到</label>
</div>
</div>
-->
</div>
<div class="two_bottom">
<p>技术支持:浙江杰夫兄弟智慧科技有限公司</p>
</div>
<script>
$(function(){
init_two_content();
})
function init_two_content(){
var two_content_list=[
{two_content_name:'2018-08-14会议签到',two_content_wx:'微信扫码签到'},
{two_content_name:'2018-08-14资料下载',two_content_wx:'微信扫码下载'},
{two_content_name:'2018-08-14投票界面',two_content_wx:'微信扫码投票'},
{two_content_name:'2018-08-14抽奖界面',two_content_wx:'微信扫码抽奖'},
]
var $two_content = $('#two_content');
for(var i=0;i<two_content_list.length;i++){
var $div = $('<div class="two_main"></div>');
var $p_1 = $('<p></p>');
var $div_1 = $('<div></div>');
$div_1.attr('id','qrcodeCanvas'+i);
var $div_2 = $('<div class="two_main_wx"></div>');
var $label = $('<label></label');
$p_1.text(two_content_list[i].two_content_name);
$label.text(two_content_list[i].two_content_wx);
$div.append($p_1);
$div.append($div_1);
$div.append($div_2);
$div_2.append($label);
$two_content.append($div);
var id = $div_1.attr('id');
var link_text;
switch(two_content_list[i].two_content_wx){
case '微信扫码签到':
link_text = 'mobileIndex';
break;
case '微信扫码下载':
link_text = 'mobileDownload';
break;
case '微信扫码投票':
link_text = 'mobileVotebrowse';
break;
case '微信扫码抽奖':
link_text = 'mobileLotterydraw';
break;
}
(function(link_text){
$div.bind('click',function(){
location.href="<%=basePath%>"+link_text;
})
})(link_text)
//二维码
jQuery('#'+id).qrcode({
render : "canvas", <!--二维码生成方式 -->
text : "<%=basePath%>"+link_text, <!-- 二维码内容 -->
//text : 'http://192.168.1.160:8080/register/index.jsp',
width : "180", //二维码的宽度
height : "180",
//src:'down/'+id
});
//把画布转为图片
var canvas = $('#'+id).find('canvas');
var img = convertCanvasToImage(canvas[0]);
canvas.hide();
canvas.after(img);
}
}
// Converts canvas to an image
function convertCanvasToImage(canvas) {
var image = new Image();
image.src = canvas.toDataURL("image/png");
return image;
}
</script>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票主题编辑</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote.js"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
<script>
(function() {
//设置页面html的字体大小
var view = screen.width;
var fontSize = view / 16 + "px";
$('html').css("fontSize", fontSize);
})()
var ctx = '${pageContext.request.contextPath}';
</script>
</head>
<body>
<div class="vote">
<p>投票主题编辑</p>
<span onclick="savesend()">发布</span>
<!-- <a onclick="savesend()">按钮</a> -->
</div>
<div class="alert alert-danger vote_editor_judge" role="alert">错误</div>
<div class="vote_editor">
<div class="vote_editor_top">
<textarea id="vote_editor_text"></textarea>
</div>
<ul id="vote_editor_content">
<!--
<li><img src="custom/images/3@3x.png" style="visibility: hidden;"><input type="text" value="选项1"></li>
<li><img src="custom/images/3@3x.png" style="visibility: hidden;"><input type="text" value="选项2"></li>
<li><img src="custom/images/3@3x.png"><input type="text" value="选项3"></li>
<li><img src="custom/images/4@3x.png"><input type="text" value=""></li>
-->
</ul>
</div>
<div class="vote_little">最多不得超出15个选项,每个选项不得超过40个字</div>
<div class="vote_editor_bottom">
<ul>
<li>
<span>副标题</span>
<div>
<input type="text" class="vote_editor_bottom_select" id="vote_select" value="" />
<!-- <span class="arrow1">></span> -->
</div>
</li>
<li>
<span>最大投票数</span>
<div>
<input type="number" class="vote_editor_bottom_select" id="vote_select1" value="" />
<!-- <span class="arrow1">></span> -->
</div>
</li>
<li>
<span>最小投票数</span>
<div>
<input type="number" class="vote_editor_bottom_select" id="vote_select2" value="" />
<!-- <span class="arrow1">></span>-->
</div>
</li>
<li>
<span>结束时间</span>
<div>
<div>
<input type="text" id="input1" />
<span class="arrow1">></span>
</div>
</div>
</li>
<%-- <li>
<span>结束提醒</span>
<p class="btn-on2"><span id="selection2">十分钟</span><span class="arrow1">></span></p>
</li>
<li>
<span>匿名投票</span>
<img src="${ctx}/jfcas04_mobile/images/6@3x.png" id="anonymous" >
</li> --%>
</ul>
</div>
<div class="vote_major_footer">
<input type="button" value="返回" onclick="window.location.href='mobileVotemajor'">
</div>
<div class="masking">
<div class="masking-content">
<ul>
<li class="btn-off"><p>单选</p></li>
<li class="btn-off"><p>多选</p></li>
</ul>
</div>
</div>
<div class="masking1">
<div class="masking-content">
<ul>
<li class="btn-off1"><p>1</p></li>
<li class="btn-off1"><p>2</p></li>
<li class="btn-off1"><p>3</p></li>
</ul>
</div>
</div>
<!-- <div class="masking2">
<div class="masking-content">
<ul>
<li class="btn-off"><p>十分钟</p></li>
<li class="btn-off"><p>五分钟</p></li>
</ul>
</div>
</div> -->
<script type="text/javascript">
//默认点击显示
$("#input1").shijian()
</script>
</body>
<script>
/*点击按钮弹出蒙版框事件*/
$('.btn-on').click(function(event) {
$('.masking').css({display: 'block'});
$('.masking').find('ul').animate({'height':'80px'},'fast');
});
$('.masking li').bind('click',function(){
$('.masking').find('ul').animate({'height':'0px'},'fast',function(){
$('.masking').css({display: 'none'});
});
var check_text = $(this).find('p').text();
$('#selection').text(check_text);
})
$('.btn-on1').click(function(event){
$('.masking1').css({display: 'block'});
$('.masking1').find('ul').animate({'height':'120px'},'fast');
});
$('.masking1 li').bind('click',function(){
$('.masking1').find('ul').animate({'height':'0px'},'fast',function(){
$('.masking1').css({display: 'none'});
});
var check_text = $(this).find('p').text();
$('#selection1').text(check_text);
})
$('.btn-on2').click(function(event) {
$('.masking2').css({display: 'block'});
$('.masking2').find('ul').animate({'height':'80px'},'fast');
});
$('.masking2 li').bind('click',function(){
$('.masking2').find('ul').animate({'height':'0px'},'fast',function(){
$('.masking2').css({display: 'none'});
});
var check_text = $(this).find('p').text();
$('#selection2').text(check_text);
})
/*点击关闭按钮蒙版消失事件*/
/*$('.btn-off').click(function(event) {
$('.masking').css({
display: 'none'
});
$('.masking1').css({
display: 'none'
});
$('.masking2').css({
display: 'none'
});
});*/
</script>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票浏览界面</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_browse.js"></script>
</head>
<body>
<div id="vote_browse_content">
<!-- <div class="vote_browse_main">
<div class="vote_browse_main_top">
<span>李大嘴</span>
<span>08-29 10:00</span>
</div>
<div class="vote_browse_main_middle">
<p>大兔子病了,二兔子瞧,三兔子买药,四兔子熬,五兔子死了,
六兔子抬,七兔子挖坑,八兔子埋,九兔子坐在地上哭泣来,十
兔子问他为什么哭?九兔子说,五兔子一去不回来!</p>
</div>
<div class="vote_browse_main_bottom">
<p>选项预览ˆ</p>
<ul>
<li><span>大兔子</span></li>
<li><span>二兔子</span></li>
<li><span>三兔子</span></li>
</ul>
<div class="vote_browse_main_bottom_button">
<a href="#">立即投票</a>
</div>
</div>
</div> -->
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票详情</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_check.js"></script>
</head>
<body>
<div class="vote_check_header">
<label><span><</span>返回</label>
<p>投票详情</p>
</div>
<div class="vote_check_title">
大兔子
</div>
<div class="vote_check_middle">
共有3人选择此项
</div>
<div class="vote_check_result">
<ul id="vote_check_content">
<!--
<li>王大头<span>23分钟前</span></li>
<li>王二头<span>23分钟前</span></li>
<li>王三头<span>23分钟前</span></li>
-->
</ul>
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票详情ƒ…</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_details.js"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
</head>
<body>
<div id="vote_details_content">
<!-- <div class="vote_details_main">
<div class="vote_details_main_top">
<span>李大嘴</span>
<span>08-29 10:00</span>
</div>
<div class="vote_details_main_middle">
<p>大兔子病了,二兔子瞧,三兔子买药,四兔子熬,五兔子死了,六兔子抬,七兔子挖坑,八兔子埋,九兔子坐在地上哭泣来,十 兔子问他为什么哭?九兔子说,五兔子一去不回来!</p>
</div>
<div class="vote_details_main_bottom">
<p>单选€‰</p>
<ul>
<li><input type="radio" checked="checked" name="single"><span>大兔子</span></li>
<li><input type="radio" name="single"><span>大兔子</span></li>
<li><input type="radio" name="single"><span>大兔子</span></li>
</ul>
<p>截止时间<span>08-30 9:31</span></p>
</div>
</div>
<div class="vote_details_bottom_button">
<a href="#">投票</a>
</div>-->
</div>
<!-- <div class="vote_details_bottom_button">
<a href="#">投票</a>
</div> -->
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票主题浏览界面</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_major.js"></script>
</head>
<body>
<div class="vote_major_title">
<p>投票主题管理</p>
</div>
<div class="vote_major_main">
<div class="vote_major_content" id="vote_major_content">
<!-- <ul>
<li>
<input type="radio" >
<div class="vote_major_selection_top">
<div class="vote_major_selection_top_right">
<p>1.王大头的头到底大不大呢?</p>
<span>发布于</span><span>2018-9-7 14:23</span>
</div>
<a>编辑</a>
</div>
</li>
<li>
<input type="radio">
<div class="vote_major_selection_top">
<div>
<p>1.王大头的头到底大不大呢?</p>
<span>发布于</span><span>2018-9-7 14:23</span>
</div>
<a>编辑</a>
</div>
</li>
<li>
<input type="radio">
<div class="vote_major_selection_top">
<div>
<p>1.王大头的头到底大不大呢?</p>
<span>发布于</span><span>2018-9-7 14:23</span>
</div>
<a>编辑</a>
</div>
</li>
</ul> -->
</div>
<div class="vote_major_footer">
<input type="button" value="新增主题" onclick="vote_major_dele_add(this)">
<input type="button" value="管理主题" onclick="vote_major_manage(this)">
</div>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票结果</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_result.js"></script>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
</head>
<body>
<div class="vote_result_header">
<label><span><</span>返回投票</label>
<p>完成投票</p>
</div>
<div class="vote_result_select">
<div class="vote_result_select_tilte">
1.十只兔子你要做哪一只?
<p>(单选) 剩余时长:54分钟</p>
</div>
<ul class="vote_result_content">
<!--
<li>选项1<span>6人</span></li>
<li>选项2<span>6人</span></li>
<li>选项3<span>6人</span></li>
-->
</ul>
</div>
<div class="vote_result_select">
<div class="vote_result_select_tilte">
1.十只兔子你要做哪一只?
<p>(单选) 剩余时长:54分钟</p>
</div>
<ul class="vote_result_content">
<!--
<li>选项1<span>6人</span></li>
<li>选项2<span>6人</span></li>
<li>选项3<span>6人</span></li>
-->
</ul>
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>投票主题</title>
<jsp:include page="/jfcas04_mobile/header.jsp"></jsp:include>
<script type="text/javascript" src="${ctx}/jwapp/pages/vote/js/voteModule.js"></script>
<script type="text/javascript" src="${ctx}/jfcas04_mobile/js/vote_topic.js"></script>
</head>
<body>
<div class="vote_topic_header">
<span onclick="vote_topic_prev(this)">上一条</span>
<p id="vote_topic_header_count"></p>
<span onclick="vote_topic_next(this)">下一条</span>
</div>
<div class="vote_topic_substance">
<!-- <div class="vote_topic_substance_chunk">
<div class="vote_topic_main">
<p>
2.大兔子病了,二兔子瞧,三兔子买药,四兔子熬,五兔子死了,
六兔子抬,七兔子挖坑,八兔子埋,九兔子坐在地上哭泣来,十
兔子问他为什么哭?九兔子说,五兔子一去不回来!
</p>
</div>
<div class="vote_topic_bottom">
<form id="vote_topic_content">
</form>
</div>
</div> -->
</div>
</body>
</html>
\ No newline at end of file
......@@ -46,7 +46,6 @@ var is_column = [ [
{field : 'CONTENT',title : '主题内容',width : 150,align : 'center'},
{field : 'VOTE_COUNT',title : '状态',width : 150,align : 'center',
formatter:function(value,row,index){
return value>0?"已投":"未投";
}
},
......
.ov_hi{overflow:hidden}.alwaysShow td{position:relative}.alwaysShow td .df-class{position:absolute;z-index:1;top:50%;left:100%;transform:translate(-50%,-50%);}.df-persp,.persp-bg{position:fixed;width:100%;height:100%;top:0;left:0;z-index:6000;pointer-events:auto}.persp-bg{-webkit-opacity:.5;-moz-opacity:.5;-khtml-opacity:.5;opacity:.5;filter:alpha(opacity=50);-ms-filter:"alpha(opacity=50)";filter:alpha(opacity=50);width:100%;height:100%;background:#000;z-index:1}.df-box{font-weight: 700;min-width:170px;background:#fff;border-radius:10px;font-size:12px;text-shadow:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:2;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-ms-touch-action:none;overflow:hidden;text-align:center;-webkit-tap-highlight-color:transparent;top:50%;left:50%;transform:translate(-50%,-50%)}.df-main{}.df-item{position:relative;overflow:hidden}.df-item .G-bg{position:absolute;width:100%;height:100%;top:0;left:0}.G-top{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:linear-gradient(#fff 0%,rgba(255,255,255,.85)45%,rgba(255,255,255,.6) 75%,rgba(255,255,255,.4) 100%);background:-webkit-gradient(linear,left top,left bottom,from(#fff),color-stop(0.45,rgba(255,255,255,.85)),color-stop(0.75,rgba(255,255,255,.6)),to(rgba(255,255,255,.4)));background:-moz-linear-gradient(#fff 0%,rgba(255,255,255,.85) 45%,rgba(255,255,255,.6) 75%,rgba(255,255,255,.4) 100%);background:-o-linear-gradient(#fff 0%,rgba(255,255,255,.85) 45%,rgba(255,255,255,.6) 75%,rgba(255,255,255,.4) 100%)}.G-mid{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.G-btm{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:linear-gradient(rgba(255,255,255,.4) 0%,rgba(255,255,255,.6)25%,rgba(255,255,255,.85) 65%,#fff 100%);background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.4)),color-stop(0.25,rgba(255,255,255,.6)),color-stop(0.65,rgba(255,255,255,.85)),to(#fff));background:-moz-linear-gradient(rgba(255,255,255,.4) 0%,rgba(255,255,255,.6) 25%,rgba(255,255,255,.85) 48%,#fff 100%);background:-o-linear-gradient(rgba(255,255,255,.4) 0%,rgba(255,255,255,.6) 25%,rgba(255,255,255,.85) 48%,#fff 100%)}.df-ctn{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0 2px;position:relative;background:#000;zoom:1}.df-wrap{display:inline-block}.df-strip{position:relative;z-index:2}.df-ul{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-perspective:1e3;-webkit-backface-visibility:hidden;text-decoration:none;list-style:none;padding:0;margin:0}.df-li{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 5px;display:block;text-align:center;vertical-align:bottom;filter:Alpha(Opacity=90);font-size:18px;white-space:nowrap}.df-class{font-size:18px;text-align: center;}.df-btn{display:block}.df-btn div{display:inline-block;width:50%;cursor:pointer;border:1px solid #ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.df-btn div:active{background:#f60;color:#fff;border:1px solid #f60}.df-hide{visibility:hidden}
\ No newline at end of file
/* utf.js - UTF-8 <=> UTF-16 convertion
*
* Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp>
* Version: 1.0
* LastModified: Dec 25 1999
* This library is free. You can redistribute it and/or modify it.
*/
/*
* Interfaces:
* utf8 = utf16to8(utf16);
* utf16 = utf16to8(utf8);
*/
function utf16to8(str) {
var out, i, len, c;
out = "";
len = str.length;
for(i = 0; i < len; i++) {
c = str.charCodeAt(i);
if ((c >= 0x0001) && (c <= 0x007F)) {
out += str.charAt(i);
} else if (c > 0x07FF) {
out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F));
out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F));
out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F));
} else {
out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F));
out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F));
}
}
return out;
}
function utf8to16(str) {
var out, i, len, c;
var char2, char3;
out = "";
len = str.length;
i = 0;
while(i < len) {
c = str.charCodeAt(i++);
switch(c >> 4)
{
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:
// 0xxxxxxx
out += str.charAt(i-1);
break;
case 12: case 13:
// 110x xxxx 10xx xxxx
char2 = str.charCodeAt(i++);
out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F));
break;
case 14:
// 1110 xxxx 10xx xxxx 10xx xxxx
char2 = str.charCodeAt(i++);
char3 = str.charCodeAt(i++);
out += String.fromCharCode(((c & 0x0F) << 12) |
((char2 & 0x3F) << 6) |
((char3 & 0x3F) << 0));
break;
}
}
return out;
}
\ No newline at end of file
......@@ -90,7 +90,6 @@
method="officeDetail">
<result name="officeDetail">/jfcas04/officeDetail.jsp</result>
</action>
<action name="userchoiceData_*" class="com.jw.app.userchoice.action.dataAction" method="{1}">
<result name="json" type="json">
<param name="root">jsonObject</param>
......@@ -330,5 +329,70 @@
<action name="jfcas" class="com.gaowj.system.login.CasAction">
</action>
<!-- 移动端登录页 -->
<action name="mobileIndex" class="com.jw.app.portlet.action.viewAction"
method="mobileIndex">
<result name="mobileIndex">/jfcas04_mobile/mobileIndex.jsp</result>
</action>
<!-- 移动端登录成功页-->
<action name="mobileIndexcg" class="com.jw.app.portlet.action.viewAction"
method="mobileIndexcg">
<result name="mobileIndexcg">/jfcas04_mobile/mobileIndexcg.jsp</result>
</action>
<!-- 移动端下载页-->
<action name="mobileDownload" class="com.jw.app.portlet.action.viewAction"
method="mobileDownload">
<result name="mobileDownload">/jfcas04_mobile/mobileDownload.jsp</result>
</action>
<!-- 移动端抽奖页-->
<action name="mobileLotterydraw" class="com.jw.app.portlet.action.viewAction"
method="mobileLotterydraw">
<result name="mobileLotterydraw">/jfcas04_mobile/mobileLotterydraw.jsp</result>
</action>
<!-- 移动端会议纪要页-->
<action name="mobileSummary" class="com.jw.app.portlet.action.viewAction"
method="mobileSummary">
<result name="mobileSummary">/jfcas04_mobile/mobileSummary.jsp</result>
</action>
<!-- 移动端投票编辑页-->
<action name="mobileVote" class="com.jw.app.portlet.action.viewAction"
method="mobileVote">
<result name="mobileVote">/jfcas04_mobile/mobileVote.jsp</result>
</action>
<!-- 移动端投票详情页-->
<action name="mobileVotecheck" class="com.jw.app.portlet.action.viewAction"
method="mobileVotecheck">
<result name="mobileVotecheck">/jfcas04_mobile/mobileVotecheck.jsp</result>
</action>
<!-- 移动端投票结果页-->
<action name="mobileVoteresult" class="com.jw.app.portlet.action.viewAction"
method="mobileVoteresult">
<result name="mobileVoteresult">/jfcas04_mobile/mobileVoteresult.jsp</result>
</action>
<!-- 移动端投票主题页-->
<action name="mobileVotetopic" class="com.jw.app.portlet.action.viewAction"
method="mobileVotetopic">
<result name="mobileVotetopic">/jfcas04_mobile/mobileVotetopic.jsp</result>
</action>
<!-- 移动端二维码页-->
<action name="mobileTwo" class="com.jw.app.portlet.action.viewAction"
method="mobileTwo">
<result name="mobileTwo">/jfcas04_mobile/mobileTwo.jsp</result>
</action>
<!-- 移动端投票主题浏览页(用户)-->
<action name="mobileVotebrowse" class="com.jw.app.portlet.action.viewAction"
method="mobileVotebrowse">
<result name="mobileVotebrowse">/jfcas04_mobile/mobileVotebrowse.jsp</result>
</action>
<!-- 移动端投票页-->
<action name="mobileVotedetails" class="com.jw.app.portlet.action.viewAction"
method="mobileVotedetails">
<result name="mobileVotedetails">/jfcas04_mobile/mobileVotedetails.jsp</result>
</action>
<!-- 移动端投票主题浏览页(管理员)-->
<action name="mobileVotemajor" class="com.jw.app.portlet.action.viewAction"
method="mobileVotemajor">
<result name="mobileVotemajor">/jfcas04_mobile/mobileVotemajor.jsp</result>
</action>
</package>
</struts>
......@@ -262,7 +262,6 @@ public class VoteBusinessImpl implements VoteBusiness {
throws BusinessException {
// 计算起始记录
query.put("STATUS_FLAG", 1);
query.put("USER_ID", SessionUtil.getEmname());
int pageStart = (pageNo - 1) * pageSize;
// 获取列表
......
......@@ -63,4 +63,55 @@ public class viewAction extends BasicAction {
return "officeDetail";
}
public String mobileIndex() throws BusinessException {
return "mobileIndex";
}
public String mobileIndexcg() throws BusinessException {
return "mobileIndexcg";
}
public String mobileDownload() throws BusinessException {
return "mobileDownload";
}
public String mobileLotterydraw() throws BusinessException {
return "mobileLotterydraw";
}
public String mobileSummary() throws BusinessException {
return "mobileSummary";
}
public String mobileVote() throws BusinessException {
return "mobileVote";
}
public String mobileVotecheck() throws BusinessException {
return "mobileVotecheck";
}
public String mobileVoteresult() throws BusinessException {
return "mobileVoteresult";
}
public String mobileVotetopic() throws BusinessException {
return "mobileVotetopic";
}
public String mobileTwo() throws BusinessException {
return "mobileTwo";
}
public String mobileVotebrowse() throws BusinessException {
return "mobileVotebrowse";
}
public String mobileVotedetails() throws BusinessException {
return "mobileVotedetails";
}
public String mobileVotemajor() throws BusinessException {
return "mobileVotemajor";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment