|
@@ -46,6 +46,36 @@ var closeYy = function (){
|
|
modalZz.style.display = 'none'
|
|
modalZz.style.display = 'none'
|
|
}
|
|
}
|
|
window.onload = function(){
|
|
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(){
|
|
setTimeout(function(){
|
|
shareCls.getWxCofing(reqUrl)
|
|
shareCls.getWxCofing(reqUrl)
|