Your Name 6 years ago
parent
commit
76a729d204
3 changed files with 20 additions and 14 deletions
  1. 5 5
      share/Invitation.html
  2. 8 8
      share/index.html
  3. 7 1
      share/weChatShare.js

+ 5 - 5
share/Invitation.html

224
 	}
224
 	}
225
 	
225
 	
226
 	$("#share").click(function () {
226
 	$("#share").click(function () {
227
-//		if(navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger"){
227
+		if(navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger"){
228
 			//微信
228
 			//微信
229
 			$(".shareWechat").css('display','block')
229
 			$(".shareWechat").css('display','block')
230
 			shareFriend ();
230
 			shareFriend ();
231
-//		}else{
232
-////			//app端
233
-//			$(".shareMask").css('display','block')
234
-//		}
231
+		}else{
232
+//			//app端
233
+			$(".shareMask").css('display','block')
234
+		}
235
 		share();
235
 		share();
236
 	})
236
 	})
237
 	$(".cancel").click(function () {
237
 	$(".cancel").click(function () {

+ 8 - 8
share/index.html

14
 		.red_packet .click{font-size:0.18rem;color:#FB3D38;text-align: center;padding-top: 0.2rem;padding-bottom: 0.2rem;}
14
 		.red_packet .click{font-size:0.18rem;color:#FB3D38;text-align: center;padding-top: 0.2rem;padding-bottom: 0.2rem;}
15
 		.red_packet .copy{width:0.94rem;height:0.26rem;margin:auto;color:#FFF;font-size:0.15rem;line-height: 0.26rem;text-align:center;background:#FB3D38;border-radius:0.075rem;box-shadow:0.02rem 0.045rem 0.05rem rgba(143,141,141,0.22);}
15
 		.red_packet .copy{width:0.94rem;height:0.26rem;margin:auto;color:#FFF;font-size:0.15rem;line-height: 0.26rem;text-align:center;background:#FB3D38;border-radius:0.075rem;box-shadow:0.02rem 0.045rem 0.05rem rgba(143,141,141,0.22);}
16
 		.red_packet .con{font-size:0.14rem;color:#666666;padding-top: 0.2rem;padding-bottom: 0.345rem;text-align: center;}
16
 		.red_packet .con{font-size:0.14rem;color:#666666;padding-top: 0.2rem;padding-bottom: 0.345rem;text-align: center;}
17
-		.already{height: 2rem;padding-left: 0.16rem;padding-right: 0.15rem;}
17
+		.already{height: 1.8rem;padding-left: 0.16rem;padding-right: 0.15rem;}
18
 		.already .num{font-size:0.15rem;color:#FB3D38;padding-bottom: 0.175rem;}
18
 		.already .num{font-size:0.15rem;color:#FB3D38;padding-bottom: 0.175rem;}
19
-		.already ul{height: 1.305rem;overflow-x:hidden;overflow-y: scroll;}
19
+		.already ul{}
20
 		.already ul li{float: left;padding-bottom: 0.08rem;color: #666666;line-height: 0.355rem;}
20
 		.already ul li{float: left;padding-bottom: 0.08rem;color: #666666;line-height: 0.355rem;}
21
 		.already ul li img{float: left;display: block;width: 0.355rem;height: 0.355rem;border:0;}
21
 		.already ul li img{float: left;display: block;width: 0.355rem;height: 0.355rem;border:0;}
22
 		.already ul li .username{ display: inline-block; float: left;padding-left: 0.075rem;width: 1.1rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
22
 		.already ul li .username{ display: inline-block; float: left;padding-left: 0.075rem;width: 1.1rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
28
 		.cooperation img{float:left;width: 0.46rem;margin-right: 0.57rem;}
28
 		.cooperation img{float:left;width: 0.46rem;margin-right: 0.57rem;}
29
 		.cooperation img:nth-child(3){margin-right: 0rem;}
29
 		.cooperation img:nth-child(3){margin-right: 0rem;}
30
 		.bottom{margin: auto;color: #FB3D38;text-align: center;font-size: 0.14rem;}
30
 		.bottom{margin: auto;color: #FB3D38;text-align: center;font-size: 0.14rem;}
31
-		.bottom p:nth-child(1){padding-top: 0.185rem;padding-bottom: 0.205rem;font-size: 0.15rem;} 
31
+		.bottom p:nth-child(1){padding-top: 0.185rem;padding-bottom: 0.15rem;font-size: 0.15rem;} 
32
 		#copy_1,#copy_2,#taokouling{position: absolute;left: -1000rem;}
32
 		#copy_1,#copy_2,#taokouling{position: absolute;left: -1000rem;}
33
 		.alert-info {position: absolute;top: 1.74rem;right: 0;left: 0;bottom: 0;text-align: center;}
33
 		.alert-info {position: absolute;top: 1.74rem;right: 0;left: 0;bottom: 0;text-align: center;}
34
 		.alert-info p {display: inline-block;color: #fff;font-size: 0.14rem;line-height: 0.38rem;padding: 0 0.10rem;background-color: rgba(0, 0, 0, 0.7);border-radius: 5px;}
34
 		.alert-info p {display: inline-block;color: #fff;font-size: 0.14rem;line-height: 0.38rem;padding: 0 0.10rem;background-color: rgba(0, 0, 0, 0.7);border-radius: 5px;}
91
 	for(var i = 0 ; i<brr.length; i++){
91
 	for(var i = 0 ; i<brr.length; i++){
92
     	if(brr[i].indexOf('userId') != -1){
92
     	if(brr[i].indexOf('userId') != -1){
93
     		userId = brr[i].split('=')[1];//用户id
93
     		userId = brr[i].split('=')[1];//用户id
94
-    		localStorage.setItem('userId', userId);
95
     	}
94
     	}
96
     }
95
     }
97
 		//页面加载,显示数据
96
 		//页面加载,显示数据
114
 				}else if(data.code == 4003){
113
 				}else if(data.code == 4003){
115
 					showMsg("领取失败")
114
 					showMsg("领取失败")
116
 				}else if(data.code == 4002){
115
 				}else if(data.code == 4002){
117
-					showMsg(data.message)
116
+//					showMsg(data.message)
117
+					copyPassword();//不限制新老用户
118
 				}
118
 				}
119
 			}
119
 			}
120
 		})
120
 		})
181
 	function scrollTxt(){
181
 	function scrollTxt(){
182
 	    var controls={},
182
 	    var controls={},
183
 	        values={},
183
 	        values={},
184
-	        t1=200, /*播放动画的时间*/
184
+	        t1=800, /*播放动画的时间*/
185
 	        t2=1500, /*播放时间间隔*/
185
 	        t2=1500, /*播放时间间隔*/
186
 	        si;
186
 	        si;
187
 	    controls.rollWrap=$("#roll-wrap");
187
 	    controls.rollWrap=$("#roll-wrap");
188
 	    controls.rollWrapUl=controls.rollWrap.children();
188
 	    controls.rollWrapUl=controls.rollWrap.children();
189
 	    controls.rollWrapLIs=controls.rollWrapUl.children();
189
 	    controls.rollWrapLIs=controls.rollWrapUl.children();
190
 	    values.liNums=controls.rollWrapLIs.length;
190
 	    values.liNums=controls.rollWrapLIs.length;
191
-	    values.liHeight=controls.rollWrapLIs.eq(0).height();
191
+	    values.liHeight=45;
192
 	    values.ulHeight=controls.rollWrap.height();
192
 	    values.ulHeight=controls.rollWrap.height();
193
 	    this.init=function(){
193
 	    this.init=function(){
194
 	        autoPlay();
194
 	        autoPlay();
196
 	    }
196
 	    }
197
 	    /*滚动*/
197
 	    /*滚动*/
198
 	    function play(){
198
 	    function play(){
199
-	        controls.rollWrapUl.animate({"margin-top" : "-"+values.liHeight}, t1, function(){
199
+	        controls.rollWrapUl.animate({"margin-top" : "-"+values.liHeight}, t1, 'linear',function(){
200
 	            $(this).css("margin-top" , "0").children().eq(0).appendTo($(this));
200
 	            $(this).css("margin-top" , "0").children().eq(0).appendTo($(this));
201
 	        });
201
 	        });
202
 	    }
202
 	    }

+ 7 - 1
share/weChatShare.js

15
 //let rawString = data.rawString;
15
 //let rawString = data.rawString;
16
 //let packages = data.package;
16
 //let packages = data.package;
17
 //let paySign = data.paySign;
17
 //let paySign = data.paySign;
18
+<<<<<<< HEAD
18
 //alert('appId,' + appId)
19
 //alert('appId,' + appId)
19
 //alert('timestamp,' + timestamp)
20
 //alert('timestamp,' + timestamp)
20
 //alert('nonceStr,' + nonceStr)
21
 //alert('nonceStr,' + nonceStr)
21
 //alert('signature,' + signature)
22
 //alert('signature,' + signature)
22
 //alert('url,' + data.url)
23
 //alert('url,' + data.url)
23
 
24
 
25
+=======
26
+>>>>>>> 82b201c6a2648a0ff4a7bbabea6e8d9ded02bcf1
24
   wx.config({
27
   wx.config({
25
     debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
28
     debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
26
     appId: appId, // 必填,公众号的唯一标识
29
     appId: appId, // 必填,公众号的唯一标识
33
     ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
36
     ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
34
   });
37
   });
35
   wx.ready(function(){
38
   wx.ready(function(){
36
-//		let imgUrl = shareImgUrl;
39
+		let imgUrl = shareImgUrl;
37
 //			if(imgUrl.indexOf("https") == -1){
40
 //			if(imgUrl.indexOf("https") == -1){
38
 //				imgUrl = imgUrl.replace('http', 'https');
41
 //				imgUrl = imgUrl.replace('http', 'https');
39
 //			}
42
 //			}
69
   wx.error(function(res) {
72
   wx.error(function(res) {
70
     // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
73
     // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
71
     alert(res.errMsg)
74
     alert(res.errMsg)
75
+<<<<<<< HEAD
72
 	showMsg(res)
76
 	showMsg(res)
73
 //  Toast({
77
 //  Toast({
74
 //		  message:res,
78
 //		  message:res,
75
 //		  duration: 15000
79
 //		  duration: 15000
76
 //		});
80
 //		});
81
+=======
82
+>>>>>>> 82b201c6a2648a0ff4a7bbabea6e8d9ded02bcf1
77
   });
83
   });
78
 }
84
 }
79
 //export default wexinPay;
85
 //export default wexinPay;