lonecry

1.页面效果

2.Html页面

<div class="row center-align">

      <b>验证邮件已发送到您的电子邮箱:</b>

      <b class="blue-text text-darken-1" id="email">${login_info.user_email!}</b>

</div>

<div class="row center-align">

      <span>请收到后按提示操作,请在48小时内完成激活。</span>

   </div>

<div class="row center-align">

      <a id="goEmail" href="" class="btn waves-light bluewaves-effect" target="_blank">前往邮箱激活</a>

</div>

3.JS文件

var hash={  

         \'qq.com\': \'http://mail.qq.com\',  

         \'gmail.com\': \'http://mail.google.com\',  

         \'sina.com\': \'http://mail.sina.com.cn\',  

         \'163.com\': \'http://mail.163.com\',  

         \'126.com\': \'http://mail.126.com\',  

         \'yeah.net\': \'http://www.yeah.net/\',  

         \'sohu.com\': \'http://mail.sohu.com/\',  

         \'tom.com\': \'http://mail.tom.com/\',  

         \'sogou.com\': \'http://mail.sogou.com/\',  

         \'139.com\': \'http://mail.10086.cn/\',  

         \'hotmail.com\': \'http://www.hotmail.com\',  

         \'live.com\': \'http://login.live.com/\',  

         \'live.cn\': \'http://login.live.cn/\',  

         \'live.com.cn\': \'http://login.live.com.cn\',  

         \'189.com\': \'http://webmail16.189.cn/webmail/\',  

         \'yahoo.com.cn\': \'http://mail.cn.yahoo.com/\',  

         \'yahoo.cn\': \'http://mail.cn.yahoo.com/\',  

         \'eyou.com\': \'http://www.eyou.com/\',  

         \'21cn.com\': \'http://mail.21cn.com/\',  

         \'188.com\': \'http://www.188.com/\',  

         \'foxmail.coom\': \'http://www.foxmail.com\',

         }; 

   varurl = $("#email").text().split(\'@\')[1]; //获取邮箱域

   for (var j in hash){

       $("#goEmail").attr("href",hash[url]); //替换登陆链接

      }


分类:

技术点:

相关文章:

  • 2021-11-15
  • 2022-02-09
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-06-12
  • 2021-12-17
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2021-08-28
  • 2021-09-08
  • 2021-09-05
相关资源
相似解决方案