photo.htm 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  6. <title>测测代表你的英伦歌</title>
  7. <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  8. <script src="/static/ishow/js/jquery-3.2.1.min.js"></script>
  9. <style type="text/css">
  10. *{
  11. margin: 0;
  12. padding: 0;
  13. }
  14. body{
  15. width: 100%;
  16. height: 100%;
  17. }
  18. img{
  19. display: block;
  20. margin: 0 auto;
  21. width: 100%;
  22. max-width: 640px;
  23. }
  24. </style>
  25. <script>
  26. var POSTTEXTS = [
  27. [
  28. "The Beatles", "《Yesterday》", "《Imagine》", "《Let It Be》","《Hey Jude》","《While My Guitar Gently Weeps》"
  29. ],
  30. [
  31. "Radiohead", "《No Surprises》", "《Creep》", "《Karma Police》", "《Fake Plastic Trees》", "《High And Dry》", "《Thinking About You》"
  32. ],
  33. [
  34. "Muse", "《Unintended》", "《Supermassive Black Hole》", "《Take A Bow》", "《Starlight》", "《Soldier’s Poem》"
  35. ],
  36. [
  37. "Coldplay", "《Viva La Vida》", "《Fix You》", "《Yellow》", "《The Scientist》", "《Magic》", "《A Sky Full of Stars》"
  38. ],
  39. [
  40. "Blur", "《Song2》", "《Coffee & TV》", "《She is So High》", "《Charmless》", "《Sweet Song》"
  41. ],
  42. [
  43. "Travis", "《Quicksand》", "《Closer》", "《Turn》", "《Sing》", "《Walking In The Sun》", "《Selfish Jean》"
  44. ],
  45. [
  46. "Oasis", "《Wonderwall》", "《Liveforever》", "《Supersonic》", "《Stop Crying Your Heart Out》", "《Stand By Me》"
  47. ]
  48. ];
  49. var params = {
  50. x: <!--{echo $fx;}-->,
  51. y: <!--{echo $fy;}-->,
  52. angle: <!--{echo $fa;}-->,
  53. scale: <!--{echo $fs;}-->,
  54. bname: <!--{echo $fbname;}-->,
  55. mname: <!--{echo $fmname;}-->,
  56. fk: "<!--{echo $fk;}-->",
  57. fnick: "<!--{echo $fnick;}-->"
  58. };
  59. wx.config({
  60. debug: false,
  61. appId: "<!--{echo $we_appid;}-->",
  62. timestamp: <!--{echo $we_timestamp;}-->,
  63. nonceStr: "<!--{echo $we_nonceStr;}-->",
  64. signature: "<!--{echo $we_signature;}-->",
  65. jsApiList: ['onMenuShareTimeline',
  66. 'onMenuShareAppMessage', ]
  67. });
  68. wx.ready(function () {
  69. var shareConfig = {
  70. title: '测测代表你的英伦歌',
  71. desc: '测测代表你的英伦歌',
  72. link: window.location.href,
  73. imgUrl: "http://www.radio1964.com/static/ishow/img/title.png",
  74. };
  75. wx.onMenuShareAppMessage(shareConfig);
  76. wx.onMenuShareTimeline(shareConfig);
  77. wx.error(function (res) {
  78. alert(res.errMsg);
  79. });
  80. });
  81. </script>
  82. </head>
  83. <body>
  84. <img id="photo" src=""/>
  85. <script>
  86. var ele = document.getElementById('photo');
  87. ele.src = '/ishow/design/photo1?x=' + params.x + '&y=' + params.y + '&angle=' + params.angle +
  88. '&scale=' + params.scale + '&bname=' + params.bname + '&mname=' + params.mname + '&k=' + params.fk + '&fnick='
  89. + params.fnick;
  90. </script>
  91. </body>
  92. </html>