Showing
5 changed files
with
196 additions
and
14 deletions
actions/passport/subscribe/cancel.html
0 → 100644
1 | +<!doctype html> | ||
2 | +<html lang="en"> | ||
3 | +<head> | ||
4 | +<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
5 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
6 | + <meta name="keywords" content="{{keywords}}" /> | ||
7 | + <meta name="description" content="{{description}}" /> | ||
8 | + <title>{{title}}</title> | ||
9 | + <meta name="author" content="yohogirls.com" /> | ||
10 | + <meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" /> | ||
11 | + <meta property="wb:webmaster" content="5ffc4cd75e724a17" /> | ||
12 | + <link rel="dns-prefetch" href="//img01.yohoboys.com" /> | ||
13 | + <link rel="dns-prefetch" href="//img02.yohoboys.com" /> | ||
14 | + <link rel="dns-prefetch" href="//video.yohoboys.com" /> | ||
15 | + <link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> | ||
16 | +</head> | ||
17 | +<body> | ||
18 | +{{# emailAddress}} | ||
19 | +<div class="emailBox"> | ||
20 | + <div class="webLogo"> | ||
21 | + <a href="/index.html"> <img src="<?php echo SITE_IMG; ?>/logo_girl.png" alt=""> | ||
22 | +</a> | ||
23 | + </div> | ||
24 | + <h1>取消订阅</h1> | ||
25 | + <p>请输入您的电子邮件地址,以取消订阅YOHO!Girls</p> | ||
26 | + <div class="cancelEmail"> | ||
27 | + <p><input id="email" type="text"></p> | ||
28 | + <a href="javascript:window.location.href = '<?php echo url("passport::subscribe/sendcancel");?>?email='+document.getElementById('email').value" class="cancelBtn">取消订阅</a> | ||
29 | + </div> | ||
30 | + <p class="black">NewPower Co. All Right Reserved</p> | ||
31 | +</div> | ||
32 | +<script type="text/javascript" src="<?php echo SITE_JS . '/lib/seajs.js'; ?>"></script> | ||
33 | +<script type="text/javascript"> | ||
34 | +seajs.use("jquery",function($) | ||
35 | + { | ||
36 | + $('.cancelBtn').click(function(){ | ||
37 | + var email_val = $('#email').val(); | ||
38 | + if(email_val.length === 0){ | ||
39 | + alert("<?php echo t('请输入邮箱地址!', $this->view->_language);?>"); | ||
40 | + return false; | ||
41 | + } | ||
42 | + var search_str = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/; | ||
43 | + if(!search_str.test(email_val)){ | ||
44 | + alert("<?php echo t('请输入正确的邮箱地址!', $this->view->_language);?>"); | ||
45 | + return false; | ||
46 | + } | ||
47 | + | ||
48 | + }); | ||
49 | + }); | ||
50 | +</script> | ||
51 | +{{/ emailAddress}} | ||
52 | + | ||
53 | + | ||
54 | +{{^ emailAddress}} | ||
55 | +<div class="emailBox"> | ||
56 | + <div class="webLogo"> | ||
57 | + <a href="<?php echo url('default::default', array('lang' => $this->view->_language, 'show' => 'web'), 'home'); ?>"><img src="<?php echo SITE_IMG; ?>/logo_girl.png" alt=""></a> | ||
58 | + </div> | ||
59 | + <h1><?php echo t('取消订阅成功', $this->view->_language);?></h1> | ||
60 | + <div class="cancelForm"> | ||
61 | + <p><?php echo t('你已取消订阅YOHO!Girls', $this->view->_language);?></p> | ||
62 | + <p><?php echo t('你将收到最后一封邮件,确认我们已为你取消订阅', $this->view->_language);?></p> | ||
63 | + <h3><?php echo t('如果你有时间,请告诉我们您为什么取消订阅:', $this->view->_language);?></h3> | ||
64 | + <div class="radioBox" val="<?php echo $this->view->email?>"> | ||
65 | + <p><label><input name="radio" type="radio" value="1"><?php echo t('我不再希望收到这些电子邮件', $this->view->_language);?></label></p> | ||
66 | + <p><label><input name="radio" type="radio" value="2"><?php echo t('我从未在这个邮件列表注册', $this->view->_language);?></label></p> | ||
67 | + <p><label><input name="radio" type="radio" value="3"><?php echo t('这些邮件是不合宜的', $this->view->_language);?></label></p> | ||
68 | + <p><label><input name="radio" type="radio" value="4"><?php echo t('这些邮件是垃圾邮件,应该予以报告', $this->view->_language);?></label></p> | ||
69 | + <p><label><input name="radio" type="radio" value="5"><?php echo t('其他原因(在下面填写原因)', $this->view->_language);?></label></p> | ||
70 | + <p><textarea name="" readonly="true"></textarea></p> | ||
71 | + <p class="pt10"><a class="submitEmail" href="javascript:void(0);"><?php echo t('提交', $this->view->_language);?></a></p> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + <p class="backYohoBoys"><a class="times" href="#"><< Back YOHO!Girls </a></p> | ||
75 | + <p class="black">NewPower Co. All Right Reserved</p> | ||
76 | +</div> | ||
77 | +<script type="text/javascript" src="<?php echo SITE_JS . '/lib/seajs.js'; ?>"></script> | ||
78 | +<script type="text/javascript"> | ||
79 | + seajs.use("jquery",function($) | ||
80 | + { | ||
81 | + | ||
82 | + $("input[name='radio']").click(function() | ||
83 | + { | ||
84 | + var index = $("input[name='radio']").index(this); | ||
85 | + if(index==4) | ||
86 | + { | ||
87 | + $("textarea").removeAttr("readonly"); | ||
88 | + } | ||
89 | + else | ||
90 | + { | ||
91 | + $("textarea").attr("readonly",true); | ||
92 | + $("textarea").val(''); | ||
93 | + } | ||
94 | + }); | ||
95 | + | ||
96 | + $(".submitEmail").click(function() | ||
97 | + { | ||
98 | + var type = $("input[name='radio']:checked").val(); | ||
99 | + var reson = $("textarea").val(); | ||
100 | + var email = $(".radioBox").attr("val"); | ||
101 | + $.ajax | ||
102 | + ({ | ||
103 | + url: common.U('passport::subscribe/callback'), | ||
104 | + data: {"refuse_type":type, "reson":reson, "email":email}, | ||
105 | + dataType: "JSON", | ||
106 | + type: "POST", | ||
107 | + success: function(response) | ||
108 | + { | ||
109 | + if (response.code == 200) | ||
110 | + { | ||
111 | + alert("取消订阅成功!"); | ||
112 | + history.go(-1); | ||
113 | + } | ||
114 | + else | ||
115 | + { | ||
116 | + alert("取消订阅失败!"); | ||
117 | + } | ||
118 | + } | ||
119 | + }); | ||
120 | + }); | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + }); | ||
125 | +</script> | ||
126 | +{{/ emailAddress}} | ||
127 | +</body> | ||
128 | +</html> |
1 | - | ||
2 | <!doctype html> | 1 | <!doctype html> |
3 | <html lang="en"> | 2 | <html lang="en"> |
3 | + | ||
4 | <head> | 4 | <head> |
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
7 | - <title>Yoho!Girls | No Fashion, No Life!</title> | ||
8 | - <meta name="keywords" content="yoho,yoho有货,yohogirl,yoho女生志,女装潮牌,it girl,lifestyle,女生街拍,免费试用申请,美容技巧,潮流视频,潮流GIF图片" /> | ||
9 | - <meta name="description" content="Yoho!Girls是一个时装地球村,坚守「No Fashion, No Life」的理念,突破二维与平面的结界,在这个平台上发布时装,美容,生活等方面的资讯。" /> | ||
10 | - <meta name="author" content="yohogirls.com" /> | ||
11 | - <link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> | 7 | + <meta name="keywords" content="{{keywords}}" /> |
8 | + <meta name="description" content="{{description}}" /> | ||
9 | + | ||
10 | + <title>{{title}}</title> | ||
11 | + | ||
12 | + <meta name="author" content="yohogirls.com" /> | ||
13 | + <meta name="google-site-verification" content="6IS8pD7H0L0FBqjE6XZIx-x02Pa2fmG0P2ZEb3xNiVY" /> | ||
14 | + <meta property="wb:webmaster" content="5ffc4cd75e724a17" /> | ||
15 | + <link rel="dns-prefetch" href="//img01.yohoboys.com" /> | ||
16 | + <link rel="dns-prefetch" href="//img02.yohoboys.com" /> | ||
17 | + <link rel="dns-prefetch" href="//video.yohoboys.com" /> | ||
18 | + <link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> | ||
12 | </head> | 19 | </head> |
20 | + | ||
13 | <body> | 21 | <body> |
14 | -<div class="emailBox"> | ||
15 | - <h1>就要完成了...</h1> | ||
16 | - <p class="mb5">我们需要对您的电子邮件地址进行确认!</p> | 22 | + <div class="emailBox"> |
23 | + <h1>就要完成了...</h1> | ||
24 | + <p class="mb5">我们需要对您的电子邮件地址进行确认!</p> | ||
17 | <p class="mb20">完成订阅过程,请点击我们刚刚发给您的电子邮件中的链接。</p> | 25 | <p class="mb20">完成订阅过程,请点击我们刚刚发给您的电子邮件中的链接。</p> |
18 | <p class="black">NewPower Co. All Right Reserved</p> | 26 | <p class="black">NewPower Co. All Right Reserved</p> |
19 | - <div class="btnGroup clearfix"> | ||
20 | - <a class="EmailBack" href="javascript:window.close();"><< Back</a> | ||
21 | - <a class="CheckEmail" href="{{emailServer}}">Check my email</a> | 27 | + <div class="btnGroup clearfix"> |
28 | + <a class="EmailBack" href="javascript:window.close();"><< Back</a> | ||
29 | + <a class="CheckEmail" href="{{emailServer}}">Check my email</a> | ||
30 | + </div> | ||
22 | </div> | 31 | </div> |
23 | -</div> | 32 | + |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + <div class="emailBox"> | ||
38 | + <div class="webLogo"> | ||
39 | + <a href="/index.html"> | ||
40 | + <img src="<?php echo SITE_IMG; ?>/logo_girl.png" alt=""> | ||
41 | + </a> | ||
42 | + </div> | ||
43 | + <h1>您已订阅!</h1> | ||
44 | + <p class="times yourEmail">mail: <span>{{emailAddress}}</span></p> | ||
45 | + <p class="mb20"> | ||
46 | + 一旦您希望停止接收我们的电子邮件,您可以 | ||
47 | + <a href="/passport/subscribe/cancel" class="underline"> | ||
48 | + 取消订阅 | ||
49 | + </a> | ||
50 | + </p> | ||
51 | + <p class="backYohoBoys"><a class="times" href="javascript:history.go(-1)"><< Back YOHO!Girls </a></p> | ||
52 | + <p class="black">NewPower Co. All Right Reserved</p> | ||
53 | + </div> | ||
54 | + | ||
55 | + | ||
56 | + | ||
24 | </body> | 57 | </body> |
25 | -</html> | ||
58 | + | ||
59 | +</html> | ||
60 | + |
partials/common/environment_css.html
0 → 100644
1 | +{{# WEnvironment}} | ||
2 | +<link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> | ||
3 | +{{/ WEnvironment}} | ||
4 | + | ||
5 | +{{^ WEnvironment}} | ||
6 | +<link rel="stylesheet" type="text/css" href="http://cmsres.test.yoho.cn/res/new/girls/css/girls.css" /> | ||
7 | +{{/ WEnvironment}} |
partials/common/environment_js.html
0 → 100644
1 | +{{# WEnvironment}} | ||
2 | + <script type="text/javascript" src="http://localhost:8000/js/util/seajs.js?nowrap"></script> | ||
3 | +{{/ WEnvironment}} | ||
4 | + | ||
5 | +{{^ WEnvironment}} | ||
6 | + <script type="text/javascript" src="http://cmsres.test.yoho.cn/res/new/girls/js/util/seajs_test.js"></script> | ||
7 | + <script type="text/javascript" src="http://cmsres.test.yoho.cn/res/new/girls/index.js"></script> | ||
8 | + <script type="text/javascript"> | ||
9 | + seajs.use("index"); | ||
10 | + </script> | ||
11 | +{{/ WEnvironment}} |
@@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
15 | <link rel="dns-prefetch" href="//img01.yohoboys.com" /> | 15 | <link rel="dns-prefetch" href="//img01.yohoboys.com" /> |
16 | <link rel="dns-prefetch" href="//img02.yohoboys.com" /> | 16 | <link rel="dns-prefetch" href="//img02.yohoboys.com" /> |
17 | <link rel="dns-prefetch" href="//video.yohoboys.com" /> | 17 | <link rel="dns-prefetch" href="//video.yohoboys.com" /> |
18 | + | ||
18 | <link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> | 19 | <link rel="stylesheet" type="text/css" href="http://localhost:8000/dist/yohogirls-frontend-web/0.0.1/girls.css" /> |
19 | </head> | 20 | </head> |
20 | <body> | 21 | <body> |
-
Please register or login to post a comment