lilei 4 سال پیش
والد
کامیت
d3482c43cc
3فایلهای تغییر یافته به همراه76 افزوده شده و 114 حذف شده
  1. 43 113
      新模板/新年活动 - new/index.html
  2. 30 0
      新模板/新年活动 - new/script.js
  3. 3 1
      新模板/新年活动 - new/shareWx.js

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 43 - 113
新模板/新年活动 - new/index.html


+ 30 - 0
新模板/新年活动 - new/script.js

@@ -46,6 +46,36 @@ var closeYy = function (){
 	modalZz.style.display = 'none'
 }
 window.onload = function(){
+	// 适用门店
+	$("#showStore").click(function(){
+		var _this = this
+		$(".mask").show()
+		$(".store-info-list").animate({bottom:'0em'},"slow",function(){
+			$("body").css({'height':'100%','overflow':'hidden'})
+			$(_this).hide()
+		})
+	})
+	$("#close-store,.mask").click(function(e){
+		e.stopPropagation()
+		$(".store-info-list").animate({bottom:'-1000em'},"slow")
+		$("body").css({'height':'auto','overflow':'auto'})
+		$("#showStore").show()
+		$(".mask").hide()
+	})
+	
+	// 查看地址
+	$(".address").click(function(e){
+		e.stopPropagation()
+		wx.openLocation({
+		    latitude: item.lat, // 纬度,浮点数,范围为90 ~ -90
+		    longitude: item.lng, // 经度,浮点数,范围为180 ~ -180。
+		    name: item.name, // 位置名
+		    address: item.addrDetail, // 地址详情说明
+		    scale: 26, // 地图缩放级别,整形值,范围从1~28。默认为最大
+		    infoUrl: '' // 在查看位置界面底部显示的超链接,可点击跳转
+		});
+	})
+	
 	// 分享初始化
 	setTimeout(function(){
 		shareCls.getWxCofing(reqUrl)

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

@@ -42,7 +42,9 @@ var shareCls = {
 				 	  'onMenuShareAppMessage',
 				 	  'onMenuShareTimeline',
 				 	  'updateAppMessageShareData',
-				 	  'updateTimelineShareData'
+				 	  'updateTimelineShareData',
+					  'getLocation',
+					  'openLocation'
 				   ] // 必填,需要使用的JS接口列表
 				 });
 				 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است