Browse Source

bug 修复

lilei 4 years ago
parent
commit
505ea69acf

BIN
新模板/新年活动/新年活动.zip → 新模板/新年活动/clz-theme.zip


BIN
新模板/新年活动/example.jpg


BIN
新模板/新年活动/example2.jpg


BIN
新模板/新年活动/img/logo.png


BIN
新模板/新年活动/img/logo1.png


BIN
新模板/新年活动/qbyc-theme.zip


+ 3 - 1
新模板/新年活动/script.js

@@ -36,7 +36,9 @@ var closeYy = function (){
 }
 }
 window.onload = function(){
 window.onload = function(){
 	// 分享初始化
 	// 分享初始化
-	shareCls.getWxCofing(reqUrl)
+	setTimeout(function(){
+		shareCls.getWxCofing(reqUrl)
+	},500)
 	
 	
 	if(staticHtmlPath){  //  发布
 	if(staticHtmlPath){  //  发布
 		onLoading()  //  加载中
 		onLoading()  //  加载中

+ 7 - 5
新模板/新年活动/shareWx.js

@@ -21,17 +21,16 @@ var shareCls = {
 			url: "https://wx.test.chelingzhu.com/clzwx/redirect/jsapi",
 			url: "https://wx.test.chelingzhu.com/clzwx/redirect/jsapi",
 			type:'get',
 			type:'get',
 			dataType:'json',
 			dataType:'json',
-			headers: {
-				'X-HEADER-APPID': '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
-			},
 			data: {
 			data: {
 				url: url
 				url: url
 			},
 			},
+			headers:{
+				'X-HEADER-APPID': '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
+				},
 			success:function(res){
 			success:function(res){
-				 console.log(res,'jsapi')
 				 var wxData = res
 				 var wxData = res
 				 wx.config({
 				 wx.config({
-				   //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
+				   debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
 				   appId: wxData.appId, // 必填,公众号的唯一标识
 				   appId: wxData.appId, // 必填,公众号的唯一标识
 				   timestamp: wxData.timestamp, // 必填,生成签名的时间戳
 				   timestamp: wxData.timestamp, // 必填,生成签名的时间戳
 				   nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
 				   nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
@@ -72,6 +71,9 @@ var shareCls = {
 				 	  wx.updateTimelineShareData(shareObj)
 				 	  wx.updateTimelineShareData(shareObj)
 				   }
 				   }
 				 });
 				 });
+			},
+			error: function(err,status,msg){
+				console.log(err,'jsapi error')
 			}
 			}
 		})
 		})
 	},
 	},

File diff suppressed because it is too large
+ 1 - 1
新模板/新年活动/tpl.html


Some files were not shown because too many files changed in this diff