|
@@ -9,7 +9,7 @@
|
|
|
var signature = {{.T.signature}};
|
|
|
var shareTitle = "{{.T.nickName}}在2016年{{.T.words}}";
|
|
|
var shareLink = "http://www.qimingxing.info/active/flop/share/{{.T.openid}}";
|
|
|
-var shareIcon = "http://www.qimingxing.info/images/flop/blessing.png";
|
|
|
+var shareIcon = "http://www.qimingxing.info/images/flop/min-blessing.png";
|
|
|
if(typeof(signature) != "undefined" && signature != null && signature.length == 4){
|
|
|
wx.config({
|
|
|
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
|
|
@@ -194,14 +194,18 @@ ul{
|
|
|
}
|
|
|
.page-before{
|
|
|
background-image: url("{{Msg "seo" "cdn"}}/images/flop/bg-1.png");
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position-x: center;
|
|
|
}
|
|
|
.page-after{
|
|
|
background-image: url("{{Msg "seo" "cdn"}}/images/flop/bg-2.png");
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position-x: center;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
-<img src="{{Msg "seo" "cdn"}}/images/flop/bubble.png" class="bubble"{{if eq .T.flag 1}} style="display: none;"{{end}}>
|
|
|
+<img src="{{Msg "seo" "cdn"}}/images/flop/bubble.png" class="bubble"{{if ne .T.flag 2}} style="display: none;"{{end}}>
|
|
|
<div class="page{{if eq .T.flag 1}} page-before{{else}} page-after{{end}}">
|
|
|
<div class="flop-notice">
|
|
|
<span>{{.T.nickName}}</span><div>,您的猴年福牌是:</div>
|
|
@@ -253,6 +257,14 @@ if({{.T.IsOver}}){
|
|
|
$(function(){
|
|
|
var windowWidth = $(window).width();
|
|
|
var windowHeight = $(window).height();
|
|
|
+ var rate=((5/3)/(windowHeight/windowWidth))*100
|
|
|
+ if(rate>120){
|
|
|
+ rate=120
|
|
|
+ $(".page").css({"background-position-y":"-"+(rate/100*12)+"px"})
|
|
|
+ }else if(rate<100){
|
|
|
+ rate=100
|
|
|
+ }
|
|
|
+ $(".page").css({"background-size":"100% "+rate+"%"})
|
|
|
var defaultWidth = 320;
|
|
|
var defaultHeight = 416;
|
|
|
var width = 250; // 625 706
|