浏览代码

冬季活动

lilei 4 年之前
父节点
当前提交
7923197b0e
共有 64 个文件被更改,包括 1778 次插入0 次删除
  1. 46 0
      新模板/新年活动 - new/clz -冬季活动/alert.js
  2. 二进制
      新模板/新年活动 - new/clz -冬季活动/clz -冬季活动.zip
  3. 二进制
      新模板/新年活动 - new/clz -冬季活动/example.jpg
  4. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/arrow-down.png
  5. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/arrow-up.png
  6. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/logo.png
  7. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p1.jpg
  8. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p10.jpg
  9. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p11.jpg
  10. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p12.jpg
  11. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p13.jpg
  12. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p14.jpg
  13. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p15.jpg
  14. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p16.jpg
  15. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p17.jpg
  16. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p2.jpg
  17. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p3.jpg
  18. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p4.jpg
  19. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p5.jpg
  20. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p6.jpg
  21. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p7.jpg
  22. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p8.jpg
  23. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/p9.jpg
  24. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/star.png
  25. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/tit1.png
  26. 二进制
      新模板/新年活动 - new/clz -冬季活动/img/tit2.png
  27. 194 0
      新模板/新年活动 - new/clz -冬季活动/index.html
  28. 339 0
      新模板/新年活动 - new/clz -冬季活动/script.js
  29. 二进制
      新模板/新年活动 - new/clz -冬季活动/shareThumb.jpg
  30. 102 0
      新模板/新年活动 - new/clz -冬季活动/shareWx.js
  31. 0 0
      新模板/新年活动 - new/clz -冬季活动/spin.min.js
  32. 158 0
      新模板/新年活动 - new/clz -冬季活动/tpl.html
  33. 46 0
      新模板/新年活动 - new/qbyc - 冬季活动/alert.js
  34. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/example.jpg
  35. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/arrow-down.png
  36. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/arrow-up.png
  37. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/logo.png
  38. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p1.jpg
  39. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p10.jpg
  40. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p11.jpg
  41. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p12.jpg
  42. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p13.jpg
  43. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p14.jpg
  44. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p15.jpg
  45. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p16.jpg
  46. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p17.jpg
  47. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p2.jpg
  48. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p3.jpg
  49. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p4.jpg
  50. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p5.jpg
  51. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p6.jpg
  52. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p7.jpg
  53. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p8.jpg
  54. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/p9.jpg
  55. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/star.png
  56. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/tit1.png
  57. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/img/tit2.png
  58. 194 0
      新模板/新年活动 - new/qbyc - 冬季活动/index.html
  59. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/qbyc - 冬季活动.zip
  60. 439 0
      新模板/新年活动 - new/qbyc - 冬季活动/script.js
  61. 二进制
      新模板/新年活动 - new/qbyc - 冬季活动/shareThumb.jpg
  62. 102 0
      新模板/新年活动 - new/qbyc - 冬季活动/shareWx.js
  63. 0 0
      新模板/新年活动 - new/qbyc - 冬季活动/spin.min.js
  64. 158 0
      新模板/新年活动 - new/qbyc - 冬季活动/tpl.html

+ 46 - 0
新模板/新年活动 - new/clz -冬季活动/alert.js

@@ -0,0 +1,46 @@
+window.alert = function(msg, callback) {
+    var div = document.createElement("div");
+    div.innerHTML = "<style type=\"text/css\">"
+            + ".nbaMask { position: fixed; z-index: 10001; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); }                                                                                                                                                                       "
+            + ".nbaMaskTransparent { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; bottom: 0; }                                                                                                                                                                                            "
+            + ".nbaDialog { position: fixed; z-index: 10001; width: 80%; max-width: 300px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background-color: #fff; text-align: center; border-radius: 8px; overflow: hidden; opacity: 1; color: white; }"
+            + ".nbaDialog .nbaDialogHd { padding: 1.2rem .27rem .08rem .27rem; }                                                                                                                                                                                                                         "
+            + ".nbaDialog .nbaDialogHd .nbaDialogTitle { font-size: 17px; font-weight: 400; }                                                                                                                                                                                                           "
+            + ".nbaDialog .nbaDialogBd { padding: 0 .27rem; font-size: 15px; line-height: 1.3; word-wrap: break-word; word-break: break-all; color: #000000; }                                                                                                                                          "
+            + ".nbaDialog .nbaDialogFt { position: relative; line-height: 48px; font-size: 17px; display: -webkit-box; display: -webkit-flex; display: flex; }                                                                                                                                          "
+            + ".nbaDialog .nbaDialogFt:after { content: \" \"; position: absolute; left: 0; top: 0; right: 0; height: 1px; border-top: 1px solid #e6e6e6; color: #e6e6e6; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); }               "
+            + ".nbaDialog .nbaDialogBtn { display: block; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; color: #09BB07; text-decoration: none; -webkit-tap-highlight-color: transparent; position: relative; margin-bottom: 0; }                                                                       "
+            + ".nbaDialog .nbaDialogBtn:after { content: \" \"; position: absolute; left: 0; top: 0; width: 1px; bottom: 0; border-left: 1px solid #e6e6e6; color: #e6e6e6; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleX(0.5); transform: scaleX(0.5); }             "
+            + ".nbaDialog a { text-decoration: none; -webkit-tap-highlight-color: transparent; }"
+            + "</style>"
+            + "<div id=\"dialogs2\" style=\"display: none\">"
+            + "<div class=\"nbaMask\"></div>"
+            + "<div class=\"nbaDialog\">"
+            + "    <div class=\"nbaDialogHd\">"
+            + "        <strong class=\"nbaDialogTitle\"></strong>"
+            + "    </div>"
+            + "    <div class=\"nbaDialogBd\" id=\"dialog_msg2\">弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内</div>"
+            + "    <div class=\"nbaDialogHd\">"
+            + "        <strong class=\"nbaDialogTitle\"></strong>"
+            + "    </div>"
+            + "    <div class=\"nbaDialogFt\">"
+            + "        <a href=\"javascript:;\" class=\"nbaDialogBtn nbaDialogBtnPrimary\" id=\"dialog_ok2\">确定</a>"
+            + "    </div></div></div>";
+    document.body.appendChild(div);
+ 
+    var dialogs2 = document.getElementById("dialogs2");
+    dialogs2.style.display = 'block';
+ 
+    var dialog_msg2 = document.getElementById("dialog_msg2");
+    dialog_msg2.innerHTML = msg;
+ 
+    // var dialog_cancel = document.getElementById("dialog_cancel");
+    // dialog_cancel.onclick = function() {
+    // dialogs2.style.display = 'none';
+    // };
+    var dialog_ok2 = document.getElementById("dialog_ok2");
+    dialog_ok2.onclick = function() {
+        dialogs2.style.display = 'none';
+        // callback();
+    };
+};

二进制
新模板/新年活动 - new/clz -冬季活动/clz -冬季活动.zip


二进制
新模板/新年活动 - new/clz -冬季活动/example.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/arrow-down.png


二进制
新模板/新年活动 - new/clz -冬季活动/img/arrow-up.png


二进制
新模板/新年活动 - new/clz -冬季活动/img/logo.png


二进制
新模板/新年活动 - new/clz -冬季活动/img/p1.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p10.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p11.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p12.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p13.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p14.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p15.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p16.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p17.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p2.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p3.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p4.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p5.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p6.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p7.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p8.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/p9.jpg


二进制
新模板/新年活动 - new/clz -冬季活动/img/star.png


二进制
新模板/新年活动 - new/clz -冬季活动/img/tit1.png


二进制
新模板/新年活动 - new/clz -冬季活动/img/tit2.png


文件差异内容过多而无法显示
+ 194 - 0
新模板/新年活动 - new/clz -冬季活动/index.html


+ 339 - 0
新模板/新年活动 - new/clz -冬季活动/script.js

@@ -0,0 +1,339 @@
+var getNode = function(id){
+	return document.getElementById(id)
+}
+var yuyue = getNode("yuyue")  //  预约按钮
+var modal = getNode("zy-h5-modal")  //  预约弹框
+var modalZz = getNode("zy-h5-fix-z")  //  弹框遮罩层
+var submitModal = getNode("submitModal")  //  提交预约
+var canselModal = getNode("canselModal")  //  取消预约
+var userPhone = getNode("userPhone")  //  预约手机号
+var joinerNum = getNode("joinerNum")  //  参与人数
+var store = getNode("store")  //  门店
+var storeId = getQueryString('orgId') || 0  //  门店id
+var companyId = ''
+// test,  测试     local、dev:本地开发环境     pre :预发布      pro:生产
+if(baseType == 'test'){
+	var reqUrl = 'http://192.168.16.100:9110/saas/clz/'
+}else if(baseType == 'local'){
+	var reqUrl = 'http://192.168.16.104:9110/saas/clz/'
+}else if(baseType == 'dev'){
+	var reqUrl = 'http://192.168.16.104:9110/saas/clz/'
+}else if(baseType == 'pre'){
+	var reqUrl = 'http://md.test.zyucgj.com/saas/clz/'
+}else if(baseType == 'pro'){
+	var reqUrl = 'http://md.chelingzhu.com/saas/clz/'
+}else if(baseType == 'qbx'){
+	var reqUrl = 'https://md.qiubcar.com/saas/clz/'
+}
+
+// 正则获取地址栏参数
+function getQueryString(name) {
+	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i")
+	var r = window.location.search.substr(1).match(reg)
+	if (r != null) {
+		return unescape(r[2])
+	}
+	return null
+}
+
+//  门店活动统计(参与者轮播)
+function joinerList(companyId){
+	var obj = JSON.stringify({
+		activeId: activeId,  //  活动id
+		tenantId: storeId,  //  门店id
+		companyId: companyId,  //  公司id
+		status: 9  //  9是假数据的标识
+	})
+	//  获取门店信息
+	$.ajax({
+		url: reqUrl + 'cross/active/joinerByActive/1/1000',
+		type: 'post',
+		contentType: 'application/json;charset=UTF-8',
+		// 设置的是请求参数
+		data: obj,
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				var data = res.data.list
+				var html = `<div class="kh-list-tr kh-list-tr-head">
+						<div class="kh-list-td">手机号</div>
+						<div class="kh-list-td">报名状态</div>
+					</div>`
+				for(var i = 0; i < data.length; i++){
+					html += `<div class="kh-list-tr">
+						<div class="kh-list-td">${data[i].joinerMobile}</div>
+						<div class="kh-list-td">已报名</div>
+					</div>`
+				}
+				document.getElementById("kh-list").innerHTML = html
+				joinerNum.innerHTML = data.length
+			}
+		},
+	})
+}
+// 隐藏预约弹框
+var closeYy = function (){
+	userPhone.value = ''
+	modal.style.display = 'none'
+	modalZz.style.display = 'none'
+}
+//  校验活动是否还在进行
+function checkActiveValid(){
+	$.ajax({
+		url: reqUrl + 'zycar-mgr/active/checkActiveValid/' + activeId,
+		type: 'get',
+		header: { contentType: 'application/json;charset=UTF-8' },
+		// 设置的是请求参数
+		data: {},
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				if(res.data){
+					getActivityData()  //  获取活动信息
+				}else{
+					closeLoading()  //  关闭加载状态
+					$("#zy-h5-bf-bar").hide()
+					alert('该活动已经结束!')
+				}
+			}
+		}
+	})
+}
+//  获取活动信息
+function getActivityData(){
+	//  获取活动信息 (海报和门店二维码)
+	$.ajax({
+		url: reqUrl + 'active/findActiveAttach/' + activeId,
+		type: 'get',
+		header: { contentType: 'application/json;charset=UTF-8' },
+		// 设置的是请求参数
+		data: {},
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				var data = res.data
+				if(staticHtmlPath){  //  发布
+					// var joinerNumVal = parseInt(data.initBuyNum) + parseInt(data.joinerNum)
+					// joinerNum.innerHTML = joinerNumVal
+					$('.zy-h5-store-info').show()
+				}
+				//  根据门店id处理对应页面展示
+				if(storeId){  //  门店端发布活动会传有门店id参数
+					//  获取门店信息
+					$.ajax({
+						url: reqUrl + 'cross/store/' + storeId,
+						type: 'get',
+						header: { contentType: 'application/json;charset=UTF-8' },
+						// 设置的是请求参数
+						data: {},
+						dataType: 'json',
+						success: function (result) {
+							if(result.status == 200){
+								var data = result.data
+								companyId = data.companyId
+								joinerList(companyId)  //  参与人列表数据
+							}
+						},
+					})
+				}else{  //  运营端发布活动无门店id参数
+					joinerList()  //  参与人列表数据
+				}
+				closeLoading()  //  关闭加载状态
+			}
+		},
+	})
+}
+//  关闭加载状态
+function closeLoading(){
+	if(staticHtmlPath){  //  发布
+		// 关闭加载状态
+		document.getElementById('foo').style.display = 'none'
+		modalZz.style.display = 'none'
+		// 不是微信端打开的页面
+		if(!browser.versions.weixin){
+			document.querySelector('.zy-h5-bf-bar').style.display = 'none'
+			document.querySelector('.zy-h5-fx-bar').style.display = 'none'
+		}else{
+			document.querySelector('.zy-h5-bf-bar').style.display = 'flex'
+			document.querySelector('.zy-h5-fx-bar').style.display = 'block'
+		}
+	}
+}
+// 加载中
+function onLoading(){
+	// 隐藏参与和分享按钮
+	document.querySelector('.zy-h5-bf-bar').style.display = 'none'
+	document.querySelector('.zy-h5-fx-bar').style.display = 'none'
+	modalZz.style.display = 'block'  //  遮罩层
+	var opts = {
+		lines: 9, // The number of lines to draw
+		length: 0, // The length of each line
+		width: 10, // The line thickness
+		radius: 15, // The radius of the inner circle
+		corners: 1, // Corner roundness (0..1)
+		rotate: 0, // The rotation offset
+		color: '#2979ff', // #rgb or #rrggbb
+		speed: 1, // Rounds per second
+		trail: 60, // Afterglow percentage
+		shadow: false, // Whether to render a shadow
+		hwaccel: false, // Whether to use hardware acceleration
+		className: 'spinner', // The CSS class to assign to the spinner
+		zIndex: 2e9, // The z-index (defaults to 2000000000)
+		top: 'auto', // Top position relative to parent in px
+		left: 'auto' // Left position relative to parent in px
+	};
+	var target = document.getElementById('foo');
+	var spinner = new Spinner(opts).spin(target);
+}
+
+// 门店列表数据
+var storeList = [
+	{
+		name: '门店名称:西安-常青二路店',
+		phone: '17629203724',
+		address: '陕西省西安市未央区常青二路与贞观路十字向东 150米'
+	},
+	{
+		name: '门店名称:西安-人寿大厦店',
+		phone: '17602914632',
+		address: '陕西省西安市雁塔区唐延南路中国人寿大厦负 三层'
+	},
+	{
+		name: '门店名称:西安-保利金香槟店',
+		phone: '13759975044',
+		address: '陕西省西安市未央区世纪大道与建章路十字西南 角地下车库负二'
+	},
+	{
+		name: '门店名称:西安-保利拉菲店',
+		phone: '13131390721',
+		address: '陕西省西安市未央区保利拉菲公馆地下负一层'
+	},
+	{
+		name: '门店名称:兰州-通达街店',
+		phone: '15353566044',
+		address: '甘肃省兰州市安宁区阳光怡园5幢103号'
+	}
+	]
+
+$(function(){
+	// 适用门店
+	var storeHtml = ''
+	for(var i=0;i<storeList.length;i++){
+		var item = storeList[i]
+		storeHtml = storeHtml + '<div>'+
+						'<div class="store-info-names">'+
+							'<span id="store">'+ 
+							 item.name +
+							'</span>'+
+						'</div>'+
+						'<div class="store-info-s">'+
+							'<div class="store-info-box">'+
+								'<span>门店电话:</span>'+
+								'<span>'+
+									'<a href="tel:'+item.phone+'">'+
+										'<i class="tel">'+
+											item.phone + 
+										'</i>'+
+										'<svg t="1589357171261" class="icon" style="vertical-align: sub;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1184" width="16" height="16"><path d="M1020.765599 154.386263C1020.765599 89.326865 987.28345 57.088501 913.487954 37.054507 839.692583 17.020526 777.566181 3.165394 777.566181 3.165394 720.824641-10.981854 663.169494 23.635711 649.003341 80.452889L610.800805 233.675027C596.617668 290.560389 631.183258 348.098737 688.030695 362.272396 688.030695 362.272396 702.326846 366.678777 743.500477 375.919969 674.660513 559.358011 527.497727 691.361427 377.214242 745.028871 373.701051 730.938506 366.674793 702.757788 366.674793 702.757788 352.511387 645.951274 294.943405 611.289315 238.125689 625.455569L80.380247 664.785939C23.668179 678.925831-10.99544 736.57873 3.169215 793.389915L35.742252 923.532923C45.473616 980.250012 94.753824 1022.287923 152.863901 1022.287923 632.192772 1022.287923 1020.765599 633.715134 1020.765599 154.386263ZM121.897793 908.750484 87.987187 772.24241C85.504739 762.285654 91.648609 752.067042 101.527703 749.603912L259.273145 710.273542C269.212555 707.795389 279.364257 713.907789 281.856821 723.90528L302.608163 807.134381C309.284388 833.911333 336.103424 849.229037 358.537622 842.533069L358.537622 842.533069C590.664487 773.249875 773.382895 589.859611 841.784663 357.448461L841.784663 357.448461C848.891716 333.300864 827.631247 306.988082 794.011982 298.605863L709.17815 277.454424C699.177799 274.961048 693.114226 264.867589 695.618778 254.82252L733.821313 101.600394C736.30501 91.639055 746.508662 85.512531 756.418601 87.983366L902.466976 119.420589C919.560643 123.34343 933.351039 137.26732 933.351039 154.386263 933.351039 585.437409 583.914959 934.873401 152.863901 934.873401 137.544 934.873401 124.465783 923.717081 121.897793 908.750484Z" p-id="1185" fill="#1396dc"></path></svg>'+
+									'</a>'+
+								'</span>'+
+							'</div>'+
+							'<div class="store-info-box">'+
+								'<span>门店地址:</span>'+
+								'<span class="address">'+
+									item.address +
+								'</span>'+
+							'</div>'+
+						'</div>'+
+					'</div> '
+	}
+	$(".store-info-card").html(storeHtml)
+	
+	// 单击查看门店
+	$("#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)
+	},500)
+	
+	if(staticHtmlPath){  //  发布
+		onLoading()  //  加载中
+		checkActiveValid()
+	}else{  //  预览
+		getActivityData()  //  获取活动信息
+	}
+	
+	// 打开预约弹框
+	yuyue.onclick = function(){
+		modal.style.display = 'block'
+		modalZz.style.display = 'block'
+	}
+	// 关闭预约弹框
+	canselModal.onclick = function(){
+		closeYy()
+	}
+	// 提交预约
+	submitModal.onclick = function(){
+		// 提交代码到后台
+		var mobile = userPhone.value
+		if(mobile==''){
+			alert("请输入手机号码");
+			return false; 
+		}
+		if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(mobile))){ 
+			alert("手机号码错误,请重填");  
+			return false; 
+		}
+		var obj = JSON.stringify({
+			"joinerMobile": mobile,  //  参与手机号
+			"activeId": activeId,  //  活动id
+			"tenantId": storeId,  //  门店id
+			"companyId": companyId  //  公司id
+		})
+		//  立即参与
+		$.ajax({
+			url: reqUrl + 'active/signUp',
+			type: 'post',
+			contentType: 'application/json;charset=UTF-8',
+			// 设置的是请求参数
+			data: obj,
+			dataType: 'json',
+			success: function (res) {
+				if(res.status == 200){
+					closeYy()
+				}
+				alert(res.message)
+			}
+		})
+	}
+})
+ 

二进制
新模板/新年活动 - new/clz -冬季活动/shareThumb.jpg


+ 102 - 0
新模板/新年活动 - new/clz -冬季活动/shareWx.js

@@ -0,0 +1,102 @@
+// 分享模块
+var shareCls = {
+	getWxCofing (shareBaseUrl){
+		var url = location.href.split('#')[0];
+		var activeTitle = $("#activeTitle").text()
+		// appid 
+		var appid = baseUrl.indexOf('qiubcar.com') >= 0 ? '!z2Yc.aes|6RQI2+w0x2IGaPEw0OrPMrUkJmxBuX/24QMvaWcGjCA=' : '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
+		// 分享内容
+		var shareObj = {
+			  title: activeTitle, // 分享标题
+			  desc: '网罗海量优质养车项目,超值套餐应有尽有', // 分享描述
+			  link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
+			  imgUrl: baseUrl + '/shareThumb.jpg', // 分享图标
+			  success : function() {
+				  // 用户确认分享后执行的回调函数
+				  console.log("用户确认分享后执行的回调函数")
+			  }
+		};
+		//二次分享处理函数调用
+		this.shareAgainFn(shareObj.link);
+		
+		$.ajax({
+			url: "https://wx.chelingzhu.com/clzwx/redirect/jsapi",
+			type:'get',
+			dataType:'json',
+			data: {
+				url: url
+			},
+			headers:{
+				'X-HEADER-APPID': appid
+			},
+			success:function(res){
+				 var wxData = res
+				 wx.config({
+				   debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
+				   appId: wxData.appId, // 必填,公众号的唯一标识
+				   timestamp: wxData.timestamp, // 必填,生成签名的时间戳
+				   nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
+				   signature: wxData.signature,// 必填,签名
+				   jsApiList: [
+				 	  'checkJsApi',
+				 	  'onMenuShareAppMessage',
+				 	  'onMenuShareTimeline',
+				 	  'updateAppMessageShareData',
+				 	  'updateTimelineShareData',
+					  'getLocation',
+					  'openLocation'
+				   ] // 必填,需要使用的JS接口列表
+				 });
+				 
+				 // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
+				 wx.error(function(res){
+				 	console.log(res,'wx error')
+				 }); 
+				 //需在用户可能点击分享按钮前就先调用
+				 wx.ready(function () {
+				   if(wx.onMenuShareAppMessage){
+					  shareObj.title = activeTitle
+				 	  //分享给朋友
+				 	  wx.onMenuShareAppMessage(shareObj);
+				   }
+				   if(wx.onMenuShareTimeline){
+				 	  // 分享到朋友圈
+					  shareObj.title = shareObj.desc
+				 	  wx.onMenuShareTimeline(shareObj);
+				   }
+				   if(wx.updateAppMessageShareData){
+					  shareObj.title = activeTitle
+				 	  // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容
+				 	  wx.updateAppMessageShareData(shareObj)
+				   }
+				   if(wx.updateTimelineShareData){
+					  shareObj.title = shareObj.desc
+				 	  // 自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
+				 	  wx.updateTimelineShareData(shareObj)
+				   }
+				 });
+			},
+			error: function(err,status,msg){
+				console.log(err,'jsapi error')
+			}
+		})
+	},
+	getQueryString(name){
+	        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+	        var r = window.location.search.substr(1).match(reg);
+	        if (r != null)
+	            return unescape(r[2]);
+	        return null;
+	    },
+	shareAgainFn(url){
+		var from = this.getQueryString('from');
+		var appinstall = this.getQueryString('appinstall');
+		var sec = this.getQueryString('sec');
+		var timekey = this.getQueryString('timekey');
+		if (from || appinstall || sec || timekey) {
+			window.location.href = url;
+		}
+	}
+}
+
+

文件差异内容过多而无法显示
+ 0 - 0
新模板/新年活动 - new/clz -冬季活动/spin.min.js


文件差异内容过多而无法显示
+ 158 - 0
新模板/新年活动 - new/clz -冬季活动/tpl.html


+ 46 - 0
新模板/新年活动 - new/qbyc - 冬季活动/alert.js

@@ -0,0 +1,46 @@
+window.alert = function(msg, callback) {
+    var div = document.createElement("div");
+    div.innerHTML = "<style type=\"text/css\">"
+            + ".nbaMask { position: fixed; z-index: 10001; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); }                                                                                                                                                                       "
+            + ".nbaMaskTransparent { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; bottom: 0; }                                                                                                                                                                                            "
+            + ".nbaDialog { position: fixed; z-index: 10001; width: 80%; max-width: 300px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background-color: #fff; text-align: center; border-radius: 8px; overflow: hidden; opacity: 1; color: white; }"
+            + ".nbaDialog .nbaDialogHd { padding: 1.2rem .27rem .08rem .27rem; }                                                                                                                                                                                                                         "
+            + ".nbaDialog .nbaDialogHd .nbaDialogTitle { font-size: 17px; font-weight: 400; }                                                                                                                                                                                                           "
+            + ".nbaDialog .nbaDialogBd { padding: 0 .27rem; font-size: 15px; line-height: 1.3; word-wrap: break-word; word-break: break-all; color: #000000; }                                                                                                                                          "
+            + ".nbaDialog .nbaDialogFt { position: relative; line-height: 48px; font-size: 17px; display: -webkit-box; display: -webkit-flex; display: flex; }                                                                                                                                          "
+            + ".nbaDialog .nbaDialogFt:after { content: \" \"; position: absolute; left: 0; top: 0; right: 0; height: 1px; border-top: 1px solid #e6e6e6; color: #e6e6e6; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); }               "
+            + ".nbaDialog .nbaDialogBtn { display: block; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; color: #09BB07; text-decoration: none; -webkit-tap-highlight-color: transparent; position: relative; margin-bottom: 0; }                                                                       "
+            + ".nbaDialog .nbaDialogBtn:after { content: \" \"; position: absolute; left: 0; top: 0; width: 1px; bottom: 0; border-left: 1px solid #e6e6e6; color: #e6e6e6; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleX(0.5); transform: scaleX(0.5); }             "
+            + ".nbaDialog a { text-decoration: none; -webkit-tap-highlight-color: transparent; }"
+            + "</style>"
+            + "<div id=\"dialogs2\" style=\"display: none\">"
+            + "<div class=\"nbaMask\"></div>"
+            + "<div class=\"nbaDialog\">"
+            + "    <div class=\"nbaDialogHd\">"
+            + "        <strong class=\"nbaDialogTitle\"></strong>"
+            + "    </div>"
+            + "    <div class=\"nbaDialogBd\" id=\"dialog_msg2\">弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内</div>"
+            + "    <div class=\"nbaDialogHd\">"
+            + "        <strong class=\"nbaDialogTitle\"></strong>"
+            + "    </div>"
+            + "    <div class=\"nbaDialogFt\">"
+            + "        <a href=\"javascript:;\" class=\"nbaDialogBtn nbaDialogBtnPrimary\" id=\"dialog_ok2\">确定</a>"
+            + "    </div></div></div>";
+    document.body.appendChild(div);
+ 
+    var dialogs2 = document.getElementById("dialogs2");
+    dialogs2.style.display = 'block';
+ 
+    var dialog_msg2 = document.getElementById("dialog_msg2");
+    dialog_msg2.innerHTML = msg;
+ 
+    // var dialog_cancel = document.getElementById("dialog_cancel");
+    // dialog_cancel.onclick = function() {
+    // dialogs2.style.display = 'none';
+    // };
+    var dialog_ok2 = document.getElementById("dialog_ok2");
+    dialog_ok2.onclick = function() {
+        dialogs2.style.display = 'none';
+        // callback();
+    };
+};

二进制
新模板/新年活动 - new/qbyc - 冬季活动/example.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/arrow-down.png


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/arrow-up.png


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/logo.png


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p1.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p10.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p11.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p12.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p13.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p14.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p15.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p16.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p17.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p2.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p3.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p4.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p5.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p6.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p7.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p8.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/p9.jpg


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/star.png


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/tit1.png


二进制
新模板/新年活动 - new/qbyc - 冬季活动/img/tit2.png


文件差异内容过多而无法显示
+ 194 - 0
新模板/新年活动 - new/qbyc - 冬季活动/index.html


二进制
新模板/新年活动 - new/qbyc - 冬季活动/qbyc - 冬季活动.zip


+ 439 - 0
新模板/新年活动 - new/qbyc - 冬季活动/script.js

@@ -0,0 +1,439 @@
+var getNode = function(id){
+	return document.getElementById(id)
+}
+var yuyue = getNode("yuyue")  //  预约按钮
+var modal = getNode("zy-h5-modal")  //  预约弹框
+var modalZz = getNode("zy-h5-fix-z")  //  弹框遮罩层
+var submitModal = getNode("submitModal")  //  提交预约
+var canselModal = getNode("canselModal")  //  取消预约
+var userPhone = getNode("userPhone")  //  预约手机号
+var joinerNum = getNode("joinerNum")  //  参与人数
+var store = getNode("store")  //  门店
+var storeId = getQueryString('orgId') || 0  //  门店id
+var companyId = ''
+// test,  测试     local、dev:本地开发环境     pre :预发布      pro:生产
+if(baseType == 'test'){
+	var reqUrl = 'http://192.168.16.100:9110/saas/clz/'
+}else if(baseType == 'local'){
+	var reqUrl = 'http://192.168.16.104:9110/saas/clz/'
+}else if(baseType == 'dev'){
+	var reqUrl = 'http://192.168.16.104:9110/saas/clz/'
+}else if(baseType == 'pre'){
+	var reqUrl = 'http://md.test.zyucgj.com/saas/clz/'
+}else if(baseType == 'pro'){
+	var reqUrl = 'http://md.chelingzhu.com/saas/clz/'
+}else if(baseType == 'qbx'){
+	var reqUrl = 'https://md.qiubcar.com/saas/clz/'
+}
+
+// 正则获取地址栏参数
+function getQueryString(name) {
+	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i")
+	var r = window.location.search.substr(1).match(reg)
+	if (r != null) {
+		return unescape(r[2])
+	}
+	return null
+}
+
+//  门店活动统计(参与者轮播)
+function joinerList(companyId){
+	var obj = JSON.stringify({
+		activeId: activeId,  //  活动id
+		tenantId: storeId,  //  门店id
+		companyId: companyId,  //  公司id
+		status: 9  //  9是假数据的标识
+	})
+	//  获取门店信息
+	$.ajax({
+		url: reqUrl + 'cross/active/joinerByActive/1/1000',
+		type: 'post',
+		contentType: 'application/json;charset=UTF-8',
+		// 设置的是请求参数
+		data: obj,
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				var data = res.data.list
+				var html = `<div class="kh-list-tr kh-list-tr-head">
+						<div class="kh-list-td">手机号</div>
+						<div class="kh-list-td">报名状态</div>
+					</div>`
+				for(var i = 0; i < data.length; i++){
+					html += `<div class="kh-list-tr">
+						<div class="kh-list-td">${data[i].joinerMobile}</div>
+						<div class="kh-list-td">已报名</div>
+					</div>`
+				}
+				document.getElementById("kh-list").innerHTML = html
+				joinerNum.innerHTML = data.length
+			}
+		},
+	})
+}
+// 隐藏预约弹框
+var closeYy = function (){
+	userPhone.value = ''
+	modal.style.display = 'none'
+	modalZz.style.display = 'none'
+}
+//  校验活动是否还在进行
+function checkActiveValid(){
+	$.ajax({
+		url: reqUrl + 'zycar-mgr/active/checkActiveValid/' + activeId,
+		type: 'get',
+		header: { contentType: 'application/json;charset=UTF-8' },
+		// 设置的是请求参数
+		data: {},
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				if(res.data){
+					getActivityData()  //  获取活动信息
+				}else{
+					closeLoading()  //  关闭加载状态
+					$("#zy-h5-bf-bar").hide()
+					alert('该活动已经结束!')
+				}
+			}
+		}
+	})
+}
+//  获取活动信息
+function getActivityData(){
+	//  获取活动信息 (海报和门店二维码)
+	$.ajax({
+		url: reqUrl + 'active/findActiveAttach/' + activeId,
+		type: 'get',
+		header: { contentType: 'application/json;charset=UTF-8' },
+		// 设置的是请求参数
+		data: {},
+		dataType: 'json',
+		success: function (res) {
+			if(res.status == 200){
+				var data = res.data
+				if(staticHtmlPath){  //  发布
+					// var joinerNumVal = parseInt(data.initBuyNum) + parseInt(data.joinerNum)
+					// joinerNum.innerHTML = joinerNumVal
+					$('.zy-h5-store-info').show()
+				}
+				//  根据门店id处理对应页面展示
+				if(storeId){  //  门店端发布活动会传有门店id参数
+					//  获取门店信息
+					$.ajax({
+						url: reqUrl + 'cross/store/' + storeId,
+						type: 'get',
+						header: { contentType: 'application/json;charset=UTF-8' },
+						// 设置的是请求参数
+						data: {},
+						dataType: 'json',
+						success: function (result) {
+							if(result.status == 200){
+								var data = result.data
+								companyId = data.companyId
+								joinerList(companyId)  //  参与人列表数据
+							}
+						},
+					})
+				}else{  //  运营端发布活动无门店id参数
+					joinerList()  //  参与人列表数据
+				}
+				closeLoading()  //  关闭加载状态
+			}
+		},
+	})
+}
+//  关闭加载状态
+function closeLoading(){
+	if(staticHtmlPath){  //  发布
+		// 关闭加载状态
+		document.getElementById('foo').style.display = 'none'
+		modalZz.style.display = 'none'
+		// 不是微信端打开的页面
+		if(!browser.versions.weixin){
+			document.querySelector('.zy-h5-bf-bar').style.display = 'none'
+			document.querySelector('.zy-h5-fx-bar').style.display = 'none'
+		}else{
+			document.querySelector('.zy-h5-bf-bar').style.display = 'flex'
+			document.querySelector('.zy-h5-fx-bar').style.display = 'block'
+		}
+	}
+}
+// 加载中
+function onLoading(){
+	// 隐藏参与和分享按钮
+	document.querySelector('.zy-h5-bf-bar').style.display = 'none'
+	document.querySelector('.zy-h5-fx-bar').style.display = 'none'
+	modalZz.style.display = 'block'  //  遮罩层
+	var opts = {
+		lines: 9, // The number of lines to draw
+		length: 0, // The length of each line
+		width: 10, // The line thickness
+		radius: 15, // The radius of the inner circle
+		corners: 1, // Corner roundness (0..1)
+		rotate: 0, // The rotation offset
+		color: '#2979ff', // #rgb or #rrggbb
+		speed: 1, // Rounds per second
+		trail: 60, // Afterglow percentage
+		shadow: false, // Whether to render a shadow
+		hwaccel: false, // Whether to use hardware acceleration
+		className: 'spinner', // The CSS class to assign to the spinner
+		zIndex: 2e9, // The z-index (defaults to 2000000000)
+		top: 'auto', // Top position relative to parent in px
+		left: 'auto' // Left position relative to parent in px
+	};
+	var target = document.getElementById('foo');
+	var spinner = new Spinner(opts).spin(target);
+}
+
+// 门店列表数据
+var storeList = [
+	{
+		name: '门店名称:成都绿地·468公馆店',
+		phone: '15828127428',
+		address: '成都市锦江区枫树街1380号喆啡酒店 地下停车场负一楼'
+	},
+	{
+		name: '门店名称:成都绿地·绿地城店',
+		phone: '15308191276',
+		address: '成都市新都区大丰镇大天路877号 (绿地城售楼部旁)'
+	},
+	{
+		name: '门店名称:成都融创·凯旋公馆店',
+		phone: '13547140131',
+		address: '成都市新都区四川省成都市新都区润丰路与萃杰路交叉口'
+	},
+	{
+		name: '门店名称:成都锦巷兰台店',
+		phone: '13540110656',
+		address: '成都市郫都区金粮路五粮二街-锦巷兰 台99号'
+	},
+	{
+		name: '门店名称:成都高新中德店',
+		phone: '18982072756',
+		address: '成都市双流区观东三街600号'
+	},
+	{
+		name: '门店名称:成都绿地伊藤店',
+		phone: '13608012280',
+		address: '成都市锦江区喜树街35号'
+	},
+	{
+		name: '门店名称:成都武海美丽南庭店',
+		phone: '15682008564',
+		address: '成都市武侯区成都市招商银行火车南 站东路支行边'
+	},
+	{
+		name: '门店名称:成都鹭岛国际店',
+		phone: '15828253229',
+		address: '成都市武侯区成都市武侯区栖霞路9号 魔方公寓'
+	},
+	{
+		name: '门店名称:成都华熙528店',
+		phone: '13683444731',
+		address: '成都市锦江区雨树巷28号M空间'
+	},
+	{
+		name: '门店名称:成都观玺台店',
+		phone: '15390017856',
+		address: '成都市青羊区万花二路'
+	},
+	{
+		name: '门店名称:成都北湖国际城',
+		phone: '18811217445',
+		address: '成都市成华区湖秀二路36号附144号'
+	},
+	{
+		name: '门店名称:成都果壳里店',
+		phone: '15884425259',
+		address: '成都市龙泉驿区桃都大道中段888号 西南方向30米'
+	},
+	{
+		name: '门店名称:成都佳年华店',
+		phone: '15828240413',
+		address: '成都市温江区四川省成都市温江区公 平镇江平路351号'
+	},
+	{
+		name: '门店名称:西安融创宸院店',
+		phone: '17735999701',
+		address: '西安市雁塔区西沣四路融创天朗陇府 二期3单元106号'
+	},
+	{
+		name: '门店名称:西安绿地生态城店',
+		phone: '17791603702',
+		address: '西安市雁塔区绿地生态城三期47栋 10106号商铺'
+	},
+	{
+		name: '门店名称:南昌融创文旅城店',
+		phone: '15970424022',
+		address: '南昌市东湖区九龙湖南龙潘街'
+	},
+	{
+		name: '门店名称:南昌象湖店',
+		phone: '15070087991',
+		address: '南昌市南昌县象湖新城东连路与金沙 二路交叉口'
+	},
+	{
+		name: '门店名称:重庆国博城店',
+		phone: '18225194261',
+		address: '重庆城区渝北区重庆市渝北区悦融二 路123号'
+	},
+	{
+		name: '门店名称:重庆涪陵一号店',
+		phone: '15223859181',
+		address: '重庆市涪陵区滨江大道二段96号'
+	},
+	{
+		name: '门店名称:重庆融创凡尔赛店',
+		phone: '15696190424',
+		address: '重庆城区渝北区星融路11号附34号'
+	},
+	{
+		name: '门店名称:长沙保利香槟店',
+		phone: '13278848088',
+		address: '长沙市长沙县长沙市星沙县保利香槟 国际C6栋101号'
+	},
+	{
+		name: '门店名称:长沙润和又一城店',
+		phone: '15907309957',
+		address: '长沙市望城区月亮岛路润和又一城底 商12/13栋115-118号'
+	},
+	{
+		name: '门店名称:长沙楚天逸品店',
+		phone: '18373056961',
+		address: '长沙市开福区湘江北路三段48号楚天 逸品底商1516-1517号'
+	},
+	{
+		name: '门店名称:长沙梅溪湖金茂悦店',
+		phone: '15399987130',
+		address: '长沙市岳麓区梅溪湖麓云路268号金茂 悦底商11栋105-110号'
+	},
+	{
+		name: '门店名称:长沙北大资源店',
+		phone: '13278879588',
+		address: '长沙市岳麓区洋湖街道北大资源时光小 区8/9栋101-103号'
+	}
+	]
+
+$(function(){
+	// 适用门店
+	var storeHtml = ''
+	for(var i=0;i<storeList.length;i++){
+		var item = storeList[i]
+		storeHtml = storeHtml + '<div>'+
+						'<div class="store-info-names">'+
+							'<span id="store">'+ 
+							 item.name +
+							'</span>'+
+						'</div>'+
+						'<div class="store-info-s">'+
+							'<div class="store-info-box">'+
+								'<span>门店电话:</span>'+
+								'<span>'+
+									'<a href="tel:'+item.phone+'">'+
+										'<i class="tel">'+
+											item.phone + 
+										'</i>'+
+										'<svg t="1589357171261" class="icon" style="vertical-align: sub;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1184" width="16" height="16"><path d="M1020.765599 154.386263C1020.765599 89.326865 987.28345 57.088501 913.487954 37.054507 839.692583 17.020526 777.566181 3.165394 777.566181 3.165394 720.824641-10.981854 663.169494 23.635711 649.003341 80.452889L610.800805 233.675027C596.617668 290.560389 631.183258 348.098737 688.030695 362.272396 688.030695 362.272396 702.326846 366.678777 743.500477 375.919969 674.660513 559.358011 527.497727 691.361427 377.214242 745.028871 373.701051 730.938506 366.674793 702.757788 366.674793 702.757788 352.511387 645.951274 294.943405 611.289315 238.125689 625.455569L80.380247 664.785939C23.668179 678.925831-10.99544 736.57873 3.169215 793.389915L35.742252 923.532923C45.473616 980.250012 94.753824 1022.287923 152.863901 1022.287923 632.192772 1022.287923 1020.765599 633.715134 1020.765599 154.386263ZM121.897793 908.750484 87.987187 772.24241C85.504739 762.285654 91.648609 752.067042 101.527703 749.603912L259.273145 710.273542C269.212555 707.795389 279.364257 713.907789 281.856821 723.90528L302.608163 807.134381C309.284388 833.911333 336.103424 849.229037 358.537622 842.533069L358.537622 842.533069C590.664487 773.249875 773.382895 589.859611 841.784663 357.448461L841.784663 357.448461C848.891716 333.300864 827.631247 306.988082 794.011982 298.605863L709.17815 277.454424C699.177799 274.961048 693.114226 264.867589 695.618778 254.82252L733.821313 101.600394C736.30501 91.639055 746.508662 85.512531 756.418601 87.983366L902.466976 119.420589C919.560643 123.34343 933.351039 137.26732 933.351039 154.386263 933.351039 585.437409 583.914959 934.873401 152.863901 934.873401 137.544 934.873401 124.465783 923.717081 121.897793 908.750484Z" p-id="1185" fill="#1396dc"></path></svg>'+
+									'</a>'+
+								'</span>'+
+							'</div>'+
+							'<div class="store-info-box">'+
+								'<span>门店地址:</span>'+
+								'<span class="address">'+
+									item.address +
+								'</span>'+
+							'</div>'+
+						'</div>'+
+					'</div> '
+	}
+	$(".store-info-card").html(storeHtml)
+	
+	// 单击查看门店
+	$("#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)
+	},500)
+	
+	if(staticHtmlPath){  //  发布
+		onLoading()  //  加载中
+		checkActiveValid()
+	}else{  //  预览
+		getActivityData()  //  获取活动信息
+	}
+	
+	// 打开预约弹框
+	yuyue.onclick = function(){
+		modal.style.display = 'block'
+		modalZz.style.display = 'block'
+	}
+	// 关闭预约弹框
+	canselModal.onclick = function(){
+		closeYy()
+	}
+	// 提交预约
+	submitModal.onclick = function(){
+		// 提交代码到后台
+		var mobile = userPhone.value
+		if(mobile==''){
+			alert("请输入手机号码");
+			return false; 
+		}
+		if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(mobile))){ 
+			alert("手机号码错误,请重填");  
+			return false; 
+		}
+		var obj = JSON.stringify({
+			"joinerMobile": mobile,  //  参与手机号
+			"activeId": activeId,  //  活动id
+			"tenantId": storeId,  //  门店id
+			"companyId": companyId  //  公司id
+		})
+		//  立即参与
+		$.ajax({
+			url: reqUrl + 'active/signUp',
+			type: 'post',
+			contentType: 'application/json;charset=UTF-8',
+			// 设置的是请求参数
+			data: obj,
+			dataType: 'json',
+			success: function (res) {
+				if(res.status == 200){
+					closeYy()
+				}
+				alert(res.message)
+			}
+		})
+	}
+})
+ 

二进制
新模板/新年活动 - new/qbyc - 冬季活动/shareThumb.jpg


+ 102 - 0
新模板/新年活动 - new/qbyc - 冬季活动/shareWx.js

@@ -0,0 +1,102 @@
+// 分享模块
+var shareCls = {
+	getWxCofing (shareBaseUrl){
+		var url = location.href.split('#')[0];
+		var activeTitle = $("#activeTitle").text()
+		// appid 
+		var appid = baseUrl.indexOf('qiubcar.com') >= 0 ? '!z2Yc.aes|6RQI2+w0x2IGaPEw0OrPMrUkJmxBuX/24QMvaWcGjCA=' : '!z2Yc.aes|j/r6hk33Kyyfehctv+KGW0HnQCXBK61W5sJRNoN9JqM='
+		// 分享内容
+		var shareObj = {
+			  title: activeTitle, // 分享标题
+			  desc: '网罗海量优质养车项目,超值套餐应有尽有', // 分享描述
+			  link: url, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
+			  imgUrl: baseUrl + '/shareThumb.jpg', // 分享图标
+			  success : function() {
+				  // 用户确认分享后执行的回调函数
+				  console.log("用户确认分享后执行的回调函数")
+			  }
+		};
+		//二次分享处理函数调用
+		this.shareAgainFn(shareObj.link);
+		
+		$.ajax({
+			url: "https://wx.chelingzhu.com/clzwx/redirect/jsapi",
+			type:'get',
+			dataType:'json',
+			data: {
+				url: url
+			},
+			headers:{
+				'X-HEADER-APPID': appid
+			},
+			success:function(res){
+				 var wxData = res
+				 wx.config({
+				   debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
+				   appId: wxData.appId, // 必填,公众号的唯一标识
+				   timestamp: wxData.timestamp, // 必填,生成签名的时间戳
+				   nonceStr: wxData.nonceStr, // 必填,生成签名的随机串
+				   signature: wxData.signature,// 必填,签名
+				   jsApiList: [
+				 	  'checkJsApi',
+				 	  'onMenuShareAppMessage',
+				 	  'onMenuShareTimeline',
+				 	  'updateAppMessageShareData',
+				 	  'updateTimelineShareData',
+					  'getLocation',
+					  'openLocation'
+				   ] // 必填,需要使用的JS接口列表
+				 });
+				 
+				 // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
+				 wx.error(function(res){
+				 	console.log(res,'wx error')
+				 }); 
+				 //需在用户可能点击分享按钮前就先调用
+				 wx.ready(function () {
+				   if(wx.onMenuShareAppMessage){
+					  shareObj.title = activeTitle
+				 	  //分享给朋友
+				 	  wx.onMenuShareAppMessage(shareObj);
+				   }
+				   if(wx.onMenuShareTimeline){
+				 	  // 分享到朋友圈
+					  shareObj.title = shareObj.desc
+				 	  wx.onMenuShareTimeline(shareObj);
+				   }
+				   if(wx.updateAppMessageShareData){
+					  shareObj.title = activeTitle
+				 	  // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容
+				 	  wx.updateAppMessageShareData(shareObj)
+				   }
+				   if(wx.updateTimelineShareData){
+					  shareObj.title = shareObj.desc
+				 	  // 自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
+				 	  wx.updateTimelineShareData(shareObj)
+				   }
+				 });
+			},
+			error: function(err,status,msg){
+				console.log(err,'jsapi error')
+			}
+		})
+	},
+	getQueryString(name){
+	        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
+	        var r = window.location.search.substr(1).match(reg);
+	        if (r != null)
+	            return unescape(r[2]);
+	        return null;
+	    },
+	shareAgainFn(url){
+		var from = this.getQueryString('from');
+		var appinstall = this.getQueryString('appinstall');
+		var sec = this.getQueryString('sec');
+		var timekey = this.getQueryString('timekey');
+		if (from || appinstall || sec || timekey) {
+			window.location.href = url;
+		}
+	}
+}
+
+

文件差异内容过多而无法显示
+ 0 - 0
新模板/新年活动 - new/qbyc - 冬季活动/spin.min.js


文件差异内容过多而无法显示
+ 158 - 0
新模板/新年活动 - new/qbyc - 冬季活动/tpl.html


部分文件因为文件数量过多而无法显示