Commit f2fdf0da authored by 黄奎's avatar 黄奎

意见调查调整

parent 92ae0741
...@@ -131,7 +131,9 @@ ...@@ -131,7 +131,9 @@
if (res.resultCode === 1) { if (res.resultCode === 1) {
$('.name').html(res.data.customerName) $('.name').html(res.data.customerName)
$('.address').html(res.data.address) $('.address').html(res.data.address)
$('.top_content .left').html(`<img class="photo" src="${res.data.businessCardPhotos ? res.data.businessCardPhotos[0] : '../images/default_head_img.jpg'}" alt="">`) $('.top_content .left').html(
`<img class="photo" src="${res.data.businessCardPhotos ? res.data.businessCardPhotos[0] : '../images/default_head_img.jpg'}" alt="">`
)
} }
}, },
error: function (res) { error: function (res) {
...@@ -139,6 +141,7 @@ ...@@ -139,6 +141,7 @@
} }
}); });
getDataList(1, true) getDataList(1, true)
function getDataList(type, clear) { // 获取数据 function getDataList(type, clear) { // 获取数据
let issuingState = true let issuingState = true
if (clear) { if (clear) {
...@@ -166,7 +169,6 @@ ...@@ -166,7 +169,6 @@
issuingState2 = ''; issuingState2 = '';
} }
let data = res.data.pageData; let data = res.data.pageData;
console.log("data",data)
if (data.length < 1) { if (data.length < 1) {
$('.nothing').show() $('.nothing').show()
return return
...@@ -246,21 +248,26 @@ ...@@ -246,21 +248,26 @@
} }
}); });
} }
function openDetail(id) { function openDetail(id) {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: `${getApiUrl().urlJava}api/sell/coupon/getLotteryCoupon`, url: `${getApiUrl().urlJava}api/sell/coupon/getLotteryCoupon`,
contentType: "application/json", contentType: "application/json",
data: getJavaData({ couponId: id }), data: getJavaData({
async: false,//使用同步的方式,true为异步方式 couponId: id
}),
async: false, //使用同步的方式,true为异步方式
success: function (res) { success: function (res) {
if (res.resultCode === 1) { if (res.resultCode === 1) {
let d = res.data let d = res.data
$('.lct_name').html(d.couponName); $('.lct_name').html(d.couponName);
if (d.couponsType === 1) { // 抵用券 if (d.couponsType === 1) { // 抵用券
$('.useCondition').html(`下单 ${d.lineteanName}${d.useCondition}元,抵用<span class="sale">${d.denomination}</span>元。`) $('.useCondition').html(
`下单 ${d.lineteanName}${d.useCondition}元,抵用<span class="sale">${d.denomination}</span>元。`)
} else if (d.couponsType === 2) { } else if (d.couponsType === 2) {
$('.useCondition').html(`下单 ${d.lineteanName}${d.useCondition}元,享受<span class="sale">${d.denomination}</span>折。`) $('.useCondition').html(
`下单 ${d.lineteanName}${d.useCondition}元,享受<span class="sale">${d.denomination}</span>折。`)
} }
$('.layer_time').html(d.effectDate + '-' + d.expirationDate) $('.layer_time').html(d.effectDate + '-' + d.expirationDate)
$('.remark').html(d.remark) $('.remark').html(d.remark)
...@@ -272,6 +279,7 @@ ...@@ -272,6 +279,7 @@
} }
}); });
} }
function loginOut() { function loginOut() {
clearLocalStorage() clearLocalStorage()
setTimeout(() => { setTimeout(() => {
......
This diff is collapsed.
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" /> <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />
<meta name="screen-orientation" content="portrait"> <meta name="screen-orientation" content="portrait">
</meta> </meta>
<meta name="x5-orientation" content="portrait"> <meta name="x5-orientation" content="portrait">
...@@ -32,6 +33,7 @@ ...@@ -32,6 +33,7 @@
opacity: 1; opacity: 1;
text-align: center; text-align: center;
} }
/* .main .box.nomove { /* .main .box.nomove {
top: 40%; top: 40%;
opacity: 1; opacity: 1;
...@@ -220,7 +222,9 @@ ...@@ -220,7 +222,9 @@
<div class="xieyiTitle">11.18活动说明</div> <div class="xieyiTitle">11.18活动说明</div>
<div class="xieyiNei"> <div class="xieyiNei">
<div>1、所有印象同业会员均可参加本次活动</div> <div>1、所有印象同业会员均可参加本次活动</div>
<div>2、活动期间内,每天更新1118张面额为200的散拼跟团游优惠券,用户需要进入活动页面进行抢购,抢到优惠券的用户需要在1分钟内完成支付,若未完成支付系统将自动取消订单;用户完成付款后,系统将自动发放优惠券,可前往APP“我的优惠券”页面进行查看。</div> <div>
2、活动期间内,每天更新1118张面额为200的散拼跟团游优惠券,用户需要进入活动页面进行抢购,抢到优惠券的用户需要在1分钟内完成支付,若未完成支付系统将自动取消订单;用户完成付款后,系统将自动发放优惠券,可前往APP“我的优惠券”页面进行查看。
</div>
<div>3、本次活动的优惠券只能用于印象之旅的散拼跟团游产品,每团限定使用一张。</div> <div>3、本次活动的优惠券只能用于印象之旅的散拼跟团游产品,每团限定使用一张。</div>
<div>4、本次活动商品为APP专享优惠券,只能在印象同业APP中使用,优惠券有效期为:2019-11-18 至 2020-11-17。</div> <div>4、本次活动商品为APP专享优惠券,只能在印象同业APP中使用,优惠券有效期为:2019-11-18 至 2020-11-17。</div>
<div>5、本次优惠券不能与其他优惠券叠加使用,但可以与其他活动一起组合使用。例如:幸福存折等。</div> <div>5、本次优惠券不能与其他优惠券叠加使用,但可以与其他活动一起组合使用。例如:幸福存折等。</div>
...@@ -241,7 +245,8 @@ ...@@ -241,7 +245,8 @@
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script> <script>
let param = window.location.href.split('?')[1].split("&") ? window.location.href.split('?')[1].split("&") : null; let param = window.location.href.split('?')[1].split("&") ? window.location.href.split('?')[1].split("&") :
null;
let price = param ? param[0].split('=')[1] : 0; let price = param ? param[0].split('=')[1] : 0;
let couponId = param ? param[1].split('=')[1] : 0; let couponId = param ? param[1].split('=')[1] : 0;
let platform = param ? param[2].split('=')[1] : 0; let platform = param ? param[2].split('=')[1] : 0;
...@@ -269,14 +274,14 @@ ...@@ -269,14 +274,14 @@
if (t === 1) { if (t === 1) {
$('.box').addClass('nomove') $('.box').addClass('nomove')
} else { } else {
setTimeout(function() { setTimeout(function () {
$('.box').addClass('move') $('.box').addClass('move')
}, 500) }, 500)
} }
} }
var isChecke = true; var isChecke = true;
$('.readXieyi').click(function() { $('.readXieyi').click(function () {
isChecke = !isChecke isChecke = !isChecke
if (!isChecke) { if (!isChecke) {
$('.rushNocheckTwo').css({ $('.rushNocheckTwo').css({
...@@ -295,29 +300,29 @@ ...@@ -295,29 +300,29 @@
} }
}) })
//点击本次协议弹出窗 //点击本次协议弹出窗
$(".benciXieyi").click(function(e) { $(".benciXieyi").click(function (e) {
e.stopPropagation(); e.stopPropagation();
$('.activeXieyi').css({ $('.activeXieyi').css({
'display': 'block' 'display': 'block'
}); });
}); });
//关闭弹窗 //关闭弹窗
$('.readBtn').click(function() { $('.readBtn').click(function () {
$('.activeXieyi').css({ $('.activeXieyi').css({
'display': 'none' 'display': 'none'
}); });
}) })
var that=this var that = this
console.log(noClick) if (noClick == 1) { //0不执行 1为执行点击事件
if(noClick == 1){ //0不执行 1为执行点击事件
that.btnClick() that.btnClick()
} }
$('.anniu').click(function() { $('.anniu').click(function () {
that.btnClick() that.btnClick()
}) })
function btnClick() { function btnClick() {
if (!isChecke) { if (!isChecke) {
layer.msg('请同意活动说明'); layer.msg('请同意活动说明');
...@@ -349,7 +354,7 @@ ...@@ -349,7 +354,7 @@
productName: '印象之旅-200元线路产品优惠券' productName: '印象之旅-200元线路产品优惠券'
}), }),
async: false, async: false,
success: function(res) { success: function (res) {
if (platform == 'app') { if (platform == 'app') {
window.postMessage(JSON.stringify({ window.postMessage(JSON.stringify({
'action': 'dismissHud' 'action': 'dismissHud'
...@@ -390,7 +395,7 @@ ...@@ -390,7 +395,7 @@
data.sProductName = title; data.sProductName = title;
data.productId = res.data.couponId; data.productId = res.data.couponId;
data.dTotalPrice = res.data.preferPrice; data.dTotalPrice = res.data.preferPrice;
wx.miniProgram.getEnv(function(res) { wx.miniProgram.getEnv(function (res) {
window.wx.miniProgram.navigateTo({ window.wx.miniProgram.navigateTo({
url: `/pages/Home/pay/pay?data=` + JSON.stringify(data), url: `/pages/Home/pay/pay?data=` + JSON.stringify(data),
}); });
...@@ -419,9 +424,10 @@ ...@@ -419,9 +424,10 @@
})); }));
} else { } else {
layer.msg('登录已过期,请重新登录'); layer.msg('登录已过期,请重新登录');
setTimeout(function() { setTimeout(function () {
localStorage.removeItem("u"); localStorage.removeItem("u");
window.location.href = `https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=opfr12123`; window.location.href =
`https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=opfr12123`;
// window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`; // window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`;
}, 2000) }, 2000)
...@@ -431,7 +437,7 @@ ...@@ -431,7 +437,7 @@
} }
}, },
error: function(res) { error: function (res) {
if (platform == 'app') { if (platform == 'app') {
window.postMessage(JSON.stringify({ window.postMessage(JSON.stringify({
'action': 'dismissHud' 'action': 'dismissHud'
...@@ -439,9 +445,10 @@ ...@@ -439,9 +445,10 @@
} else if (platform == 'H5') { } else if (platform == 'H5') {
layer.close(loadingFlag); layer.close(loadingFlag);
layer.msg('登录已过期,请重新登录'); layer.msg('登录已过期,请重新登录');
setTimeout(function() { setTimeout(function () {
localStorage.removeItem("u"); localStorage.removeItem("u");
window.location.href = `https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=eiu12123`; window.location.href =
`https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=eiu12123`;
// window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`; // window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`;
}, 2000) }, 2000)
} }
......
This diff is collapsed.
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<head>
<title>十周年签到墙-机器人</title> <title>十周年签到墙-机器人</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="../../css/initcss.css"> <link rel="stylesheet" href="../../css/initcss.css">
<style> <style>
.main{ .main {
height: 100%; height: 100%;
width: 100%; width: 100%;
background: url(../../images/texiao/info_bg.png); background: url(../../images/texiao/info_bg.png);
...@@ -14,7 +15,8 @@ ...@@ -14,7 +15,8 @@
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
.dingguang{
.dingguang {
height: 100%; height: 100%;
width: 100%; width: 100%;
background: url(../../images/texiao/dengguang.png); background: url(../../images/texiao/dengguang.png);
...@@ -24,17 +26,19 @@ ...@@ -24,17 +26,19 @@
left: 0; left: 0;
top: 0; top: 0;
} }
.robot{
.robot {
width: 36%; width: 36%;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform:translate(-50%,-23%); transform: translate(-50%, -23%);
box-sizing: border-box; box-sizing: border-box;
} }
</style> </style>
</head> </head>
<body>
<body>
<div class="main"> <div class="main">
<div class="dingguang"></div> <div class="dingguang"></div>
<img class="robot" src="../../images/texiao/robot.png" alt=""> <img class="robot" src="../../images/texiao/robot.png" alt="">
...@@ -60,45 +64,50 @@ ...@@ -60,45 +64,50 @@
audio.addEventListener('ended', function () { audio.addEventListener('ended', function () {
showSignln() showSignln()
}, false); }, false);
function sendMsg() { function sendMsg() {
proxy.invoke("Hello", '1').done(msg => { proxy.invoke("Hello", '1').done(msg => {
console.log(msg)
}); });
} }
function getMsg() { function getMsg() {
proxy.on("clientMethod", data => { proxy.on("clientMethod", data => {
console.log(data)
}); });
proxy.on("updateUsersOnlineCount",data=>{ proxy.on("updateUsersOnlineCount", data => {
console.log(data)
}) })
proxy.on("notifySignin", data=>{ proxy.on("notifySignin", data => {
var newData = JSON.parse(data) var newData = JSON.parse(data)
dataList.push(newData) dataList.push(newData)
}) })
} }
function sleep(ms) { function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms)); return new Promise(resolve => setTimeout(resolve, ms));
} }
showSignln() showSignln()
async function showSignln(){ async function showSignln() {
console.log(dataList)
if (dataList.length == 0) { if (dataList.length == 0) {
await sleep(1000); await sleep(1000);
showSignln() showSignln()
} else { } else {
$("#audio").attr('src', 'http://tsn.baidu.com/text2audio?tex=%E6%9D%A5%E8%87%AA%E5%BE%AE%E9%80%94%E7%A7%91%E6%8A%80%E7%9A%84%E7%BD%97%E8%B6%85&tok=24.825b6abe0dddd567466b9daef6fd5c5c.2592000.1579746727.282335-15369296&cuid=00-E0-4C-01-80-B4&ctp=1&lan=zh&spd=5&pit=5&vol=5&per=0&aue=3'); $("#audio").attr('src',
if(audio.paused){ 'http://tsn.baidu.com/text2audio?tex=%E6%9D%A5%E8%87%AA%E5%BE%AE%E9%80%94%E7%A7%91%E6%8A%80%E7%9A%84%E7%BD%97%E8%B6%85&tok=24.825b6abe0dddd567466b9daef6fd5c5c.2592000.1579746727.282335-15369296&cuid=00-E0-4C-01-80-B4&ctp=1&lan=zh&spd=5&pit=5&vol=5&per=0&aue=3'
);
if (audio.paused) {
audio.play(); audio.play();
} }
$('.robot').attr('src', '../../images/texiao/robot.gif'); $('.robot').attr('src', '../../images/texiao/robot.gif');
// 更改展示的图片 // 更改展示的图片
setTimeout(function(){ setTimeout(function () {
$('.robot').attr('src', '../../images/texiao/robot.png'); $('.robot').attr('src', '../../images/texiao/robot.png');
dataList.splice(0, 1); dataList.splice(0, 1);
},2000); }, 2000);
} }
} }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" /> <meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta content="yes" name="mobile-web-app-capable"> <meta content="yes" name="mobile-web-app-capable">
<meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="yes" name="apple-mobile-web-app-capable" />
...@@ -17,10 +19,12 @@ ...@@ -17,10 +19,12 @@
overflow-x: hidden; overflow-x: hidden;
height: 100%; height: 100%;
} }
p{
p {
margin: 0; margin: 0;
} }
.Box{
.Box {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: url('../../images/aM/prize_bg.png'); background-image: url('../../images/aM/prize_bg.png');
...@@ -32,7 +36,7 @@ ...@@ -32,7 +36,7 @@
} }
.Box_top{ .Box_top {
width: 90%; width: 90%;
height: 0.3rem; height: 0.3rem;
display: flex; display: flex;
...@@ -40,30 +44,35 @@ ...@@ -40,30 +44,35 @@
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.Box_top p{
.Box_top p {
color: white; color: white;
font-size: 0.14rem; font-size: 0.14rem;
} }
.rank_mask{ .rank_mask {
position: absolute; position: absolute;
left: 0; left: 0;
top:0; top: 0;
width: 100%;height: 100%; width: 100%;
height: 100%;
display: none; display: none;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.zhezao{
width: 100%;height: 100%; .zhezao {
width: 100%;
height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
background: #111111; background: #111111;
opacity: 0.5; opacity: 0.5;
} }
.prize_box{
.prize_box {
width: 100%; width: 100%;
height: 2rem; height: 2rem;
background: white; background: white;
...@@ -72,7 +81,8 @@ ...@@ -72,7 +81,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.prize_Close{
.prize_Close {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: -0.5rem; bottom: -0.5rem;
...@@ -83,12 +93,14 @@ ...@@ -83,12 +93,14 @@
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.bttoom_center{
.bttoom_center {
width: 90%; width: 90%;
height: 92%; height: 92%;
overflow: auto; overflow: auto;
} }
.b_box{
.b_box {
width: 90%; width: 90%;
height: 0.4rem; height: 0.4rem;
background-image: url('../../images/aM/votes_c.png'); background-image: url('../../images/aM/votes_c.png');
...@@ -101,7 +113,8 @@ ...@@ -101,7 +113,8 @@
justify-content: space-between; justify-content: space-between;
margin-top: 0.15rem; margin-top: 0.15rem;
} }
.box_l{
.box_l {
width: 55%; width: 55%;
/*height: 0.35rem;*/ /*height: 0.35rem;*/
display: flex; display: flex;
...@@ -109,20 +122,23 @@ ...@@ -109,20 +122,23 @@
justify-content: space-between; justify-content: space-between;
} }
.box_l p{
.box_l p {
color: #B31D2E; color: #B31D2E;
font-size: 0.14rem; font-size: 0.14rem;
font-weight: bold; font-weight: bold;
overflow-x: hidden; overflow-x: hidden;
height: 0.2rem; height: 0.2rem;
} }
.box_l span{
.box_l span {
color: #B31D2E; color: #B31D2E;
font-size: 0.10rem; font-size: 0.10rem;
overflow-x: hidden; overflow-x: hidden;
height: 0.2rem; height: 0.2rem;
} }
.box_r{
.box_r {
width: 45%; width: 45%;
height: 0.45rem; height: 0.45rem;
/*background-image: url('../../images/aM/fuz.png');*/ /*background-image: url('../../images/aM/fuz.png');*/
...@@ -134,18 +150,21 @@ ...@@ -134,18 +150,21 @@
align-items: flex-end; align-items: flex-end;
} }
.copy{
.copy {
width: 0.65rem; width: 0.65rem;
height: 0.23rem; height: 0.23rem;
background-image: url('../../images/aM/fuz.png'); background-image: url('../../images/aM/fuz.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.copy2{
.copy2 {
width: 0.65rem; width: 0.65rem;
height: 0.23rem; height: 0.23rem;
} }
.box_r p{
.box_r p {
color: #B31D2E; color: #B31D2E;
font-size: 0.1rem; font-size: 0.1rem;
height: 0.18rem; height: 0.18rem;
...@@ -154,24 +173,16 @@ ...@@ -154,24 +173,16 @@
} }
</style> </style>
</head> </head>
<body> <body>
<div class="Box"> <div class="Box">
<div class="Box_top"> <div class="Box_top">
<!-- <p>签到奖品</p>--> <!-- <p>签到奖品</p>-->
</div> </div>
<div class="bttoom_center"> <div class="bttoom_center">
</div> </div>
<input style="opacity: 0;position: absolute;left: 0;top:0" id="tokenReadPackage" readonly="readonly" value="" /> <input style="opacity: 0;position: absolute;left: 0;top:0" id="tokenReadPackage" readonly="readonly" value="" />
</div>
</div>
</body> </body>
<script src="../../js/moveJs/jquery.min.js"></script> <script src="../../js/moveJs/jquery.min.js"></script>
<script src="../../js/moveJs/jquery.signalR.min.js"></script> <script src="../../js/moveJs/jquery.signalR.min.js"></script>
...@@ -193,57 +204,54 @@ ...@@ -193,57 +204,54 @@
}).fail(data => {}); }).fail(data => {});
// getMsg() // getMsg()
function sendMsg() { function sendMsg() {
proxy.invoke("GetMyLottery",activity.EmployeeId).done(data => { proxy.invoke("GetMyLottery", activity.EmployeeId).done(data => {
console.log(data)
prizelist(data) prizelist(data)
}) })
} }
function prizelist(list){ function prizelist(list) {
for(var i=0 ;i<list.length ;i++){ for (var i = 0; i < list.length; i++) {
var Password; var Password;
var source = list[i].w; var source = list[i].w;
if(list[i].st ==1){ if (list[i].st == 1) {
Password = 'AR扫码' Password = 'AR扫码'
}else if(list[i].st ==2){ } else if (list[i].st == 2) {
Password = '数钞票游戏' Password = '数钞票游戏'
} } else if (list[i].st == 3) {
else if(list[i].st ==3){
Password = '答题游戏' Password = '答题游戏'
} } else if (list[i].st == 4) {
else if(list[i].st ==4){
Password = '打地鼠游戏' Password = '打地鼠游戏'
} } else if (list[i].st == 5) {
else if(list[i].st ==5){
Password = '抽奖' Password = '抽奖'
source = list[i].su source = list[i].su
} }
var html = '' var html = ''
if(list[i].st ==5){ if (list[i].st == 5) {
html+=' <div class="b_box">\n' + html += ' <div class="b_box">\n' +
' <div class="box_l">\n' + ' <div class="box_l">\n' +
' <p>'+source+'</p>\n' + ' <p>' + source + '</p>\n' +
' <span>来源:'+Password+'</span>\n' + ' <span>来源:' + Password + '</span>\n' +
' </div>\n' + ' </div>\n' +
' <div class="box_r">\n' + ' <div class="box_r">\n' +
' <div class="copy2"></div>\n' + ' <div class="copy2"></div>\n' +
' <p>'+list[i].c+'</p>\n' + ' <p>' + list[i].c + '</p>\n' +
' </div>\n' + ' </div>\n' +
' </div>' ' </div>'
}else { } else {
html+=' <div class="b_box">\n' + html += ' <div class="b_box">\n' +
' <div class="box_l">\n' + ' <div class="box_l">\n' +
' <p>'+source+'</p>\n' + ' <p>' + source + '</p>\n' +
' <span>来源:'+Password+'</span>\n' + ' <span>来源:' + Password + '</span>\n' +
' </div>\n' + ' </div>\n' +
' <div class="box_r">\n' + ' <div class="box_r">\n' +
' <div class="copy" onclick="copy(\''+source+'\',)" data-clipboard-action="copy" data-clipboard-target="#tokenReadPackage"></div>\n' + ' <div class="copy" onclick="copy(\'' + source +
' <p>'+list[i].c+'</p>\n' + '\',)" data-clipboard-action="copy" data-clipboard-target="#tokenReadPackage"></div>\n' +
' <p>' + list[i].c + '</p>\n' +
' </div>\n' + ' </div>\n' +
' </div>' ' </div>'
} }
...@@ -255,18 +263,15 @@ ...@@ -255,18 +263,15 @@
} }
function copy(Password){ function copy(Password) {
$('#tokenReadPackage').val(Password); $('#tokenReadPackage').val(Password);
setTimeout(function(){ setTimeout(function () {
let data = { let data = {
'action': 'Linking', 'action': 'Linking',
} }
window.postMessage(JSON.stringify(data)); window.postMessage(JSON.stringify(data));
},500); }, 500);
} }
</script> </script>
</html> </html>
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" /> <meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta content="yes" name="mobile-web-app-capable"> <meta content="yes" name="mobile-web-app-capable">
<meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="yes" name="apple-mobile-web-app-capable" />
...@@ -17,10 +19,12 @@ ...@@ -17,10 +19,12 @@
overflow-x: hidden; overflow-x: hidden;
height: 100%; height: 100%;
} }
p{
p {
margin: 0; margin: 0;
} }
.Box{
.Box {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -28,7 +32,8 @@ ...@@ -28,7 +32,8 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.box_top{
.box_top {
width: 100%; width: 100%;
height: 40%; height: 40%;
background-image: url('../../images/aM/allVote_top.png'); background-image: url('../../images/aM/allVote_top.png');
...@@ -36,7 +41,8 @@ ...@@ -36,7 +41,8 @@
background-repeat: no-repeat; background-repeat: no-repeat;
position: relative; position: relative;
} }
.top_center{
.top_center {
position: absolute; position: absolute;
left: 5%; left: 5%;
bottom: 0; bottom: 0;
...@@ -46,20 +52,23 @@ ...@@ -46,20 +52,23 @@
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
} }
.runnerUp{
.runnerUp {
width: 33%; width: 33%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.runnerUp span{
.runnerUp span {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #893630; color: #893630;
font-size: 0.1rem; font-size: 0.1rem;
height: 0.16rem; height: 0.16rem;
} }
.box_bttoom{
.box_bttoom {
width: 100%; width: 100%;
height: 60%; height: 60%;
background-image: url('../../images/aM/allVote_bottom.png'); background-image: url('../../images/aM/allVote_bottom.png');
...@@ -70,7 +79,8 @@ ...@@ -70,7 +79,8 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.bttoom_title{
.bttoom_title {
width: 90%; width: 90%;
height: 15%; height: 15%;
display: flex; display: flex;
...@@ -79,23 +89,27 @@ ...@@ -79,23 +89,27 @@
justify-content: center; justify-content: center;
} }
.bttoom_title img{
.bttoom_title img {
width: 0.21rem; width: 0.21rem;
height: 0.1rem; height: 0.1rem;
margin-bottom: 0.1rem; margin-bottom: 0.1rem;
} }
.bttoom_title span{
.bttoom_title span {
color: #FED5B0; color: #FED5B0;
font-size: 0.22rem; font-size: 0.22rem;
margin: 0 0.1rem; margin: 0 0.1rem;
} }
.bttoom_center{
.bttoom_center {
width: 90%; width: 90%;
height: 96%; height: 96%;
margin-left: 5%; margin-left: 5%;
overflow: auto; overflow: auto;
} }
.b_box{
.b_box {
width: 2.8rem; width: 2.8rem;
height: 0.4rem; height: 0.4rem;
background-image: url('../../images/aM/votes_c.png'); background-image: url('../../images/aM/votes_c.png');
...@@ -108,7 +122,8 @@ ...@@ -108,7 +122,8 @@
justify-content: space-between; justify-content: space-between;
margin-top: 0.1rem; margin-top: 0.1rem;
} }
.b_ranking{
.b_ranking {
width: 0.4rem; width: 0.4rem;
height: 0.4rem; height: 0.4rem;
display: flex; display: flex;
...@@ -116,57 +131,66 @@ ...@@ -116,57 +131,66 @@
justify-content: center; justify-content: center;
position: relative; position: relative;
} }
.b_ranking img{
.b_ranking img {
width: 0.4rem; width: 0.4rem;
height: 0.4rem; height: 0.4rem;
position: absolute; position: absolute;
left: 0; left: 0;
top:0; top: 0;
} }
.b_ranking span{
.b_ranking span {
color: #FFFFFF; color: #FFFFFF;
font-size: 0.22rem; font-size: 0.22rem;
font-weight: bold; font-weight: bold;
position: relative; position: relative;
} }
.b_content{
.b_content {
width: 1.6rem; width: 1.6rem;
height: 0.4rem; height: 0.4rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.b_content span:nth-child(1){
.b_content span:nth-child(1) {
color: #B31D2E; color: #B31D2E;
font-size: 0.14rem; font-size: 0.14rem;
overflow: hidden; overflow: hidden;
height: 0.2rem; height: 0.2rem;
} }
.b_content span:nth-child(2){
.b_content span:nth-child(2) {
color: #B31D2E; color: #B31D2E;
font-size: 0.1rem; font-size: 0.1rem;
overflow: hidden; overflow: hidden;
height: 0.2rem; height: 0.2rem;
} }
.b_votes{
.b_votes {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: flex-end; align-items: flex-end;
} }
.b_votes span:nth-child(1){
.b_votes span:nth-child(1) {
color: #B31D2E; color: #B31D2E;
font-size: 0.2rem; font-size: 0.2rem;
} }
.b_votes span:nth-child(2){
.b_votes span:nth-child(2) {
color: #B31D2E; color: #B31D2E;
font-size: 0.11rem; font-size: 0.11rem;
margin-left: 0.05rem; margin-left: 0.05rem;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="Box"> <div class="Box">
<div class="box_top"> <div class="box_top">
<div class="top_center"> <div class="top_center">
<div class="runnerUp" id="dier" style="margin-top: 0.1rem"> <div class="runnerUp" id="dier" style="margin-top: 0.1rem">
...@@ -190,15 +214,9 @@ ...@@ -190,15 +214,9 @@
<img src="../../images/aM/r_yun.png" alt=""> <img src="../../images/aM/r_yun.png" alt="">
</div> </div>
<div class="bttoom_center"> <div class="bttoom_center">
</div> </div>
</div> </div>
</div>
</div>
</body> </body>
<script src="../../js/moveJs/jquery.min.js"></script> <script src="../../js/moveJs/jquery.min.js"></script>
<script src="../../js/moveJs/jquery.signalR.min.js"></script> <script src="../../js/moveJs/jquery.signalR.min.js"></script>
...@@ -216,53 +234,49 @@ ...@@ -216,53 +234,49 @@
sendMsg() sendMsg()
}).fail(data => {}); }).fail(data => {});
getMsg() getMsg()
function sendMsg() { function sendMsg() {
proxy.invoke("SendVoteProgarm",'1',activity.EmployeeId).done(data => { proxy.invoke("SendVoteProgarm", '1', activity.EmployeeId).done(data => {
console.log(data)
RankingList(data) RankingList(data)
}) })
} }
function getMsg() { function getMsg() {
// //节目单
// proxy.on('getPrograms', function (data) {
// console.log(data)
// });
} }
function RankingList(list){ function RankingList(list) {
var html = '' var html = ''
for(var i=0 ;i<list.length ;i++){ for (var i = 0; i < list.length; i++) {
var img ='../../images/aM/qita.png' var img = '../../images/aM/qita.png'
if(i==0){ if (i == 0) {
img ='../../images/aM/diyi.png' img = '../../images/aM/diyi.png'
$('#diyi span:eq(0)').html(list[i].t) $('#diyi span:eq(0)').html(list[i].t)
$('#diyi span:eq(1)').html(list[i].p) $('#diyi span:eq(1)').html(list[i].p)
} }
if(i==1){ if (i == 1) {
img ='../../images/aM/dier.png' img = '../../images/aM/dier.png'
$('#dier span:eq(0)').html(list[i].t) $('#dier span:eq(0)').html(list[i].t)
$('#dier span:eq(1)').html(list[i].p) $('#dier span:eq(1)').html(list[i].p)
} }
if(i==2){ if (i == 2) {
img ='../../images/aM/disan.png' img = '../../images/aM/disan.png'
$('#disan span:eq(0)').html(list[i].t) $('#disan span:eq(0)').html(list[i].t)
$('#disan span:eq(1)').html(list[i].p) $('#disan span:eq(1)').html(list[i].p)
} }
html+=`<div class="b_box"> html += `<div class="b_box">
<div class="b_ranking"> <div class="b_ranking">
<img src=`+img+` alt=""> <img src=` + img + ` alt="">
<span>`+(i >2?i+1:'')+`</span> <span>` + (i > 2 ? i + 1 : '') + `</span>
</div> </div>
<div class="b_content"> <div class="b_content">
<span>`+list[i].t+`</span> <span>` + list[i].t + `</span>
<span>`+list[i].p+`</span> <span>` + list[i].p + `</span>
</div> </div>
<div class="b_votes"> <div class="b_votes">
<span>`+list[i].vc+`</span> <span>` + list[i].vc + `</span>
<span>票</span> <span>票</span>
</div> </div>
</div>` </div>`
...@@ -272,7 +286,6 @@ ...@@ -272,7 +286,6 @@
$(".bttoom_center").append(html); $(".bttoom_center").append(html);
} }
</script> </script>
</html> </html>
\ No newline at end of file
This diff is collapsed.
...@@ -112,15 +112,8 @@ ...@@ -112,15 +112,8 @@
let clock=null; let clock=null;
let isWinning=false; let isWinning=false;
var EmployeeId = userInfo.id + '_Money'; var EmployeeId = userInfo.id + '_Money';
// clipboard.on('success', function(e) {
// console.log(e);
// });
// clipboard.on('error', function(e) {
// console.log(e);
// });
function getMyRank(){ function getMyRank(){
proxy.invoke('GetUserRank','Money',EmployeeId).done(r=>{ proxy.invoke('GetUserRank','Money',EmployeeId).done(r=>{
console.log(r);
if(r.r!=-1){ if(r.r!=-1){
$('#myTop').html(r.r); $('#myTop').html(r.r);
}else{ }else{
...@@ -199,7 +192,6 @@ ...@@ -199,7 +192,6 @@
var Count=3; var Count=3;
var Count2=30; var Count2=30;
proxy.on("notifyGamerResult",function(d){ proxy.on("notifyGamerResult",function(d){
console.log(d)
var html='' var html=''
if(d && d.length>0){ if(d && d.length>0){
for (var i=0;i<d.length;i++) { for (var i=0;i<d.length;i++) {
...@@ -210,16 +202,6 @@ ...@@ -210,16 +202,6 @@
$("#rankBox").html(html); $("#rankBox").html(html);
getMyRank(); getMyRank();
}); });
// proxy.on("notifyGamerResult",function(d){
// var html=''
// if(d && d.length>0){
// for (var i=0;i<d.length;i++) {
// html+='<div class="rank-row"><span class="rank-num num'+(i+1)+'">'+(i>2?i+"":"")+'</span><img src="'+d[i].p+'"/>'
// html+='<span class="rank-name">'+d[i].n+'</span><span class="rank-score">'+d[i].s+'</span></div>'
// }
// }
// $("#rankBox").html(html);
// });
//点击关闭统计弹窗 //点击关闭统计弹窗
$('.close').click(function(){ $('.close').click(function(){
$('#smm').css('display','none'); $('#smm').css('display','none');
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" /> <meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta content="yes" name="mobile-web-app-capable"> <meta content="yes" name="mobile-web-app-capable">
<meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="yes" name="apple-mobile-web-app-capable" />
...@@ -11,8 +13,9 @@ ...@@ -11,8 +13,9 @@
<script type="text/javascript" src="../../js/autosize2.js"></script> <script type="text/javascript" src="../../js/autosize2.js"></script>
<link rel="stylesheet" href="css/vote.css"> <link rel="stylesheet" href="css/vote.css">
</head> </head>
<body> <body>
<div class="Box"> <div class="Box">
<div class="content"> <div class="content">
<span class="programName"></span> <span class="programName"></span>
<span class="department"></span> <span class="department"></span>
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
<img src="../../images/aM/ranging.png" alt="" class="ranging"> <img src="../../images/aM/ranging.png" alt="" class="ranging">
</div> </div>
</div> </div>
...@@ -54,7 +57,6 @@ ...@@ -54,7 +57,6 @@
}); });
var proxy = conn.createHubProxy("annualLeaveHub"); var proxy = conn.createHubProxy("annualLeaveHub");
conn.start().done(data => { conn.start().done(data => {
console.log('链接成功')
sendMsg() sendMsg()
}).fail(data => {}); }).fail(data => {});
getMsg() getMsg()
...@@ -63,20 +65,19 @@ ...@@ -63,20 +65,19 @@
var giveUp = false; //是否放弃投票 var giveUp = false; //是否放弃投票
var CastOver = false; //是否投票过 var CastOver = false; //是否投票过
function sendMsg() { function sendMsg() {
proxy.invoke("GetProgarm",).done(data => { proxy.invoke("GetProgarm", ).done(data => {
console.log(data) if (data != '') {
if(data!=''){
list = JSON.parse(data) list = JSON.parse(data)
// {"Id":5,"Title":"《舞动青春》","Performer":"印象之旅","BranchName":"","StartTime":"2020-01-17 17:30:00","ParentId":1,"Type":1,"MusicUrl":"","BackgroundUrl":"","VoteState":0} // {"Id":5,"Title":"《舞动青春》","Performer":"印象之旅","BranchName":"","StartTime":"2020-01-17 17:30:00","ParentId":1,"Type":1,"MusicUrl":"","BackgroundUrl":"","VoteState":0}
$('.programName').html(list.Title+'节目投票'); $('.programName').html(list.Title + '节目投票');
$('.department').html(list.BranchName); $('.department').html(list.BranchName);
$('.personnel').html('参与人员:'+list.Performer); $('.personnel').html('参与人员:' + list.Performer);
if(list.VoteState == 1){ if (list.VoteState == 1) {
$('.vote_s').css('display','flex') $('.vote_s').css('display', 'flex')
} }
}else { } else {
$('.programName').html('暂无节目投票'); $('.programName').html('暂无节目投票');
$('.vote_s').css('display','none') $('.vote_s').css('display', 'none')
} }
...@@ -85,66 +86,57 @@ ...@@ -85,66 +86,57 @@
} }
function getMsg() { function getMsg() {
proxy.on('progarmVote', function (data) { proxy.on('progarmVote', function (data) {
console.log(data) if (data != '') {
if(data!=''){
list = JSON.parse(data) list = JSON.parse(data)
$('.programName').html(list.Title+'节目投票'); $('.programName').html(list.Title + '节目投票');
$('.department').html(list.BranchName); $('.department').html(list.BranchName);
$('.personnel').html('参与人员:'+list.Performer); $('.personnel').html('参与人员:' + list.Performer);
if(list.VoteState == 1){ if (list.VoteState == 1) {
$('.vote_s').css('display','flex') $('.vote_s').css('display', 'flex')
}else { } else {
$('.vote_s').css('display','none') $('.vote_s').css('display', 'none')
} }
}else { } else {
$('.programName').html('暂无节目投票'); $('.programName').html('暂无节目投票');
$('.vote_s').css('display','none') $('.vote_s').css('display', 'none')
} }
}); });
} }
function vote(type) { function vote(type) {
if(type==1){ // 1位放弃投票 2 为确定投票 if (type == 1) { // 1位放弃投票 2 为确定投票
giveUp=true; giveUp = true;
$('.vote_s').css('display','none') $('.vote_s').css('display', 'none')
$('.popup').css('display','block') $('.popup').css('display', 'block')
$('.popup_bg img').attr('src','../../images/aM/fangqi.png') $('.popup_bg img').attr('src', '../../images/aM/fangqi.png')
$('.popup_bg span').html('放弃投票成功') $('.popup_bg span').html('放弃投票成功')
setTimeout(function () { setTimeout(function () {
$('.popup').css('display','none') $('.popup').css('display', 'none')
},5000) }, 5000)
}else { } else {
proxy.invoke("UserVoteProgarm",activity.EmployeeId).done(data => { proxy.invoke("UserVoteProgarm", activity.EmployeeId).done(data => {
console.log(data) if (data == 2) {
if(data == 2){
layer.msg('您已对本节目投过票了'); layer.msg('您已对本节目投过票了');
$('.vote_s').css('display','none') $('.vote_s').css('display', 'none')
} else {
}else { $('.vote_s').css('display', 'none')
$('.vote_s').css('display','none') $('.popup').css('display', 'block')
$('.popup').css('display','block') $('.popup_bg img').attr('src', '../../images/aM/toupiao.png')
$('.popup_bg img').attr('src','../../images/aM/toupiao.png')
$('.popup_bg span').html('恭喜你!投票成功') $('.popup_bg span').html('恭喜你!投票成功')
setTimeout(function () { setTimeout(function () {
$('.popup').css('display','none') $('.popup').css('display', 'none')
},5000) }, 5000)
} }
}) })
} }
} }
$('.close').click(function () { $('.close').click(function () {
$('.popup').css('display','none') $('.popup').css('display', 'none')
}) })
$('.return').click(function () { $('.return').click(function () {
//返回首页 //返回首页
...@@ -155,4 +147,5 @@ ...@@ -155,4 +147,5 @@
}) })
</script> </script>
</html> </html>
\ No newline at end of file
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
...@@ -10,63 +11,159 @@ ...@@ -10,63 +11,159 @@
</meta> </meta>
<title>意见调查详情</title> <title>意见调查详情</title>
<style> <style>
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0; } body,
h1, h2, h3, h4, h5, h6{ font-size:100%; } h1,
address, cite, dfn, em, var { font-style:normal; } h2,
code, kbd, pre, samp { font-family:couriernew, courier, monospace; } h3,
small{ font-size:12px; } h4,
ul, ol { list-style:none; } h5,
a { text-decoration:none; } h6,
a:hover { text-decoration:underline; } hr,
sup { vertical-align:text-top; } p,
sub{ vertical-align:text-bottom; } blockquote,
legend { color:#000; } dl,
fieldset, img { border:0; } dt,
button, input, select, textarea { font-size:100%; } dd,
table { border-collapse:collapse; border-spacing:0; } ul,
*{ ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
}
address,
cite,
dfn,
em,
var {
font-style: normal;
}
code,
kbd,
pre,
samp {
font-family: couriernew, courier, monospace;
}
small {
font-size: 12px;
}
ul,
ol {
list-style: none;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
legend {
color: #000;
}
fieldset,
img {
border: 0;
}
button,
input,
select,
textarea {
font-size: 100%;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
* {
color: #5b5653; color: #5b5653;
} }
.main{
.main {
padding: 1.5rem; padding: 1.5rem;
} }
.tit{
.tit {
font-size: 2rem; font-size: 2rem;
text-align: center; text-align: center;
margin-bottom: .5rem; margin-bottom: .5rem;
} }
.sub_tit{
.sub_tit {
font-size: 1.4rem; font-size: 1.4rem;
margin-bottom: .4rem; margin-bottom: .4rem;
} }
.indet_2{
.indet_2 {
text-indent: 2.4rem; text-indent: 2.4rem;
} }
.tit_det{
.tit_det {
text-indent: 2.4rem; text-indent: 2.4rem;
font-size: 1rem; font-size: 1rem;
} }
table{
table {
margin-top: .5rem; margin-top: .5rem;
} }
tr td{
tr td {
padding: .5rem; padding: .5rem;
border: 1px solid #5b5653; border: 1px solid #5b5653;
font-size: 1rem; font-size: 1rem;
} }
#LeaderName{
#LeaderName {
width: 2rem; width: 2rem;
} }
.qianming{
.qianming {
margin-top: .5rem; margin-top: .5rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.qianming label{
.qianming label {
margin-right: .2rem; margin-right: .2rem;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="main"> <div class="main">
<p class="tit">印象旅游服务意见表</p> <p class="tit">印象旅游服务意见表</p>
...@@ -115,18 +212,19 @@ ...@@ -115,18 +212,19 @@
<script type="text/javascript" src="../js/autosize.js"></script> <script type="text/javascript" src="../js/autosize.js"></script>
<script> <script>
var str = location.href; //取得整个地址栏 var str = location.href; //取得整个地址栏
var param = str.substr(str.indexOf("?")+1); var param = str.substr(str.indexOf("?") + 1);
let html = ''; let html = '';
param = param.split('&') param = param.split('&')
let ID = param[0].split('=')[1], let ID = param[0].split('=')[1],
name = decodeURI(param[1].split('=')[1]), name = decodeURI(param[1].split('=')[1]),
phone = param[2].split('=')[1]; phone = param[2].split('=')[1];
console.log(ID,name,phone)
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: `${getApiUrl().urlPost}`, url: `${getApiUrl().urlPost}`,
contentType: "application/json", contentType: "application/json",
data: getAjaxData('survey_post_GetGuestSurveyDetails', {SurveyID: ID}), data: getAjaxData('survey_post_GetGuestSurveyDetails', {
SurveyID: ID
}),
async: false, async: false,
success: function (res) { success: function (res) {
if (res.resultCode === 1) { if (res.resultCode === 1) {
...@@ -138,7 +236,7 @@ ...@@ -138,7 +236,7 @@
$("#ContactName").text(data.obj.ContactName.split('(')[1].split(')')[0]) $("#ContactName").text(data.obj.ContactName.split('(')[1].split(')')[0])
$("#name").text(name) $("#name").text(name)
$("#phone").text(phone) $("#phone").text(phone)
$("#day").text(data.surverList[0].CreateDate.split('T')[0].replace(/-/g,'.')) $("#day").text(data.surverList[0].CreateDate.split('T')[0].replace(/-/g, '.'))
let SurveyType1 = [], let SurveyType1 = [],
SurveyType2 = [] SurveyType2 = []
for (let i = 0; i < data.surverList.length; i++) { for (let i = 0; i < data.surverList.length; i++) {
...@@ -215,4 +313,5 @@ ...@@ -215,4 +313,5 @@
}); });
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="UTF-8"/> <head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" /> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta content="yes" name="mobile-web-app-capable"> <meta content="yes" name="mobile-web-app-capable">
...@@ -13,11 +14,11 @@ ...@@ -13,11 +14,11 @@
<script type="text/javascript" src="../js/autosize2.js"></script> <script type="text/javascript" src="../js/autosize2.js"></script>
<link rel="stylesheet" href="../css/huikui.css"> <link rel="stylesheet" href="../css/huikui.css">
<style> <style>
.rule-page{ .rule-page {
width: 100%; width: 100%;
height: 100%; height: 100%;
background:url('../images/huikui/bg-img.png'); background: url('../images/huikui/bg-img.png');
font-size:.12rem; font-size: .12rem;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
padding: 12.34% .2rem; padding: 12.34% .2rem;
...@@ -25,14 +26,17 @@ ...@@ -25,14 +26,17 @@
font-family: 'PingFangR'; font-family: 'PingFangR';
color: #475165; color: #475165;
} }
.rule-page>p{
.rule-page>p {
font-size: .18rem; font-size: .18rem;
margin-bottom: .1rem; margin-bottom: .1rem;
} }
.content-box .item{
.content-box .item {
padding-top: .1rem; padding-top: .1rem;
} }
.content-box .item .progress-bg{
.content-box .item .progress-bg {
width: 100%; width: 100%;
background-color: #ebeef5; background-color: #ebeef5;
position: relative; position: relative;
...@@ -40,7 +44,8 @@ ...@@ -40,7 +44,8 @@
height: .2rem; height: .2rem;
margin-top: .05rem; margin-top: .05rem;
} }
.content-box .item .progress-bg .progress-line{
.content-box .item .progress-bg .progress-line {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
...@@ -53,28 +58,28 @@ ...@@ -53,28 +58,28 @@
transition: width .6s ease; transition: width .6s ease;
} }
</style> </style>
</head> </head>
<body>
<body>
<div class="rule-page"> <div class="rule-page">
<p>预计红包金额:<span class="red" id="price"></span></p > <p>预计红包金额:<span class="red" id="price"></span></p>
<div class="content-box"> <div class="content-box">
</div> </div>
</div> </div>
</body> </body>
<script type="text/javascript" src="../js/jquery-1.10.2.js"></script> <script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
<script> <script>
var dataObj = localStorage.dataObj ? JSON.parse(localStorage.dataObj) : '' var dataObj = localStorage.dataObj ? JSON.parse(localStorage.dataObj) : ''
$("#price").text(dataObj.yearTotalPrice) $("#price").text(dataObj.yearTotalPrice)
var CommissionRatioList = dataObj.CommissionRatioList var CommissionRatioList = dataObj.CommissionRatioList
var html = '' var html = ''
console.log(dataObj) $.each(CommissionRatioList, function (index, item) {
$.each(CommissionRatioList, function(index, item){
var width = 0 var width = 0
if (dataObj.TotalPrice/item.Money>1) { if (dataObj.TotalPrice / item.Money > 1) {
width = 100 width = 100
} else { } else {
width = (dataObj.TotalPrice/item.Money)*100 width = (dataObj.TotalPrice / item.Money) * 100
} }
if (item.ActivateState == 0) { if (item.ActivateState == 0) {
width = 0 width = 0
...@@ -82,11 +87,12 @@ ...@@ -82,11 +87,12 @@
if (item.ActivateState == 2) { if (item.ActivateState == 2) {
width = 100 width = 100
} }
html += ' <div class="item"> '+ html += ' <div class="item"> ' +
' <p class="name">年交易额已达¥'+ item.Money +'返'+ item.Ratio +'‰</p> '+ ' <p class="name">年交易额已达¥' + item.Money + '返' + item.Ratio + '‰</p> ' +
' <div class="progress-bg"> ' + ' <div class="progress-bg"> ' +
' <div class="progress-line" style="width: '+ width +'%;"></div></div></div>' ' <div class="progress-line" style="width: ' + width + '%;"></div></div></div>'
}) })
$('.content-box').html(html) $('.content-box').html(html)
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
},3000) },3000)
$('.text_6 img').click(function () { $('.text_6 img').click(function () {
console.log('点击')
}) })
setTimeout(function () { setTimeout(function () {
$('.bg_12').removeClass('fadeInUp').addClass('flipInY') $('.bg_12').removeClass('fadeInUp').addClass('flipInY')
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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