lilei 4 anni fa
parent
commit
38f8bed813
36 ha cambiato i file con 860 aggiunte e 0 eliminazioni
  1. 46 0
      新模板/新年活动 - new/alert.js
  2. BIN
      新模板/新年活动 - new/example.jpg
  3. BIN
      新模板/新年活动 - new/example0.jpg
  4. BIN
      新模板/新年活动 - new/img/logo.png
  5. BIN
      新模板/新年活动 - new/img/logo0.png
  6. BIN
      新模板/新年活动 - new/img/p1.jpg
  7. BIN
      新模板/新年活动 - new/img/p10.jpg
  8. BIN
      新模板/新年活动 - new/img/p11.jpg
  9. BIN
      新模板/新年活动 - new/img/p12.jpg
  10. BIN
      新模板/新年活动 - new/img/p13.jpg
  11. BIN
      新模板/新年活动 - new/img/p14.jpg
  12. BIN
      新模板/新年活动 - new/img/p15.jpg
  13. BIN
      新模板/新年活动 - new/img/p16.jpg
  14. BIN
      新模板/新年活动 - new/img/p17.jpg
  15. BIN
      新模板/新年活动 - new/img/p2.jpg
  16. BIN
      新模板/新年活动 - new/img/p3.jpg
  17. BIN
      新模板/新年活动 - new/img/p4.jpg
  18. BIN
      新模板/新年活动 - new/img/p5.jpg
  19. BIN
      新模板/新年活动 - new/img/p6.jpg
  20. BIN
      新模板/新年活动 - new/img/p7.jpg
  21. BIN
      新模板/新年活动 - new/img/p8.jpg
  22. BIN
      新模板/新年活动 - new/img/p9.jpg
  23. BIN
      新模板/新年活动 - new/img/qche.jpg
  24. BIN
      新模板/新年活动 - new/img/star.png
  25. BIN
      新模板/新年活动 - new/img/tit1.png
  26. BIN
      新模板/新年活动 - new/img/tit2.png
  27. 293 0
      新模板/新年活动 - new/index.html
  28. 6 0
      新模板/新年活动 - new/leftTime.min.js
  29. 254 0
      新模板/新年活动 - new/script.js
  30. BIN
      新模板/新年活动 - new/shareThumb.jpg
  31. 100 0
      新模板/新年活动 - new/shareWx.js
  32. 0 0
      新模板/新年活动 - new/spin.min.js
  33. 161 0
      新模板/新年活动 - new/tpl.html
  34. BIN
      新模板/新年活动 - new/车/双品牌海报1-2.2.jpg
  35. BIN
      新模板/新年活动 - new/车/双品牌海报1-2.jpg
  36. BIN
      新模板/新年活动 - new/车/双品牌海报1-2.psd

+ 46 - 0
新模板/新年活动 - new/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();
+    };
+};

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


BIN
新模板/新年活动 - new/example0.jpg


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


BIN
新模板/新年活动 - new/img/logo0.png


BIN
新模板/新年活动 - new/img/p1.jpg


BIN
新模板/新年活动 - new/img/p10.jpg


BIN
新模板/新年活动 - new/img/p11.jpg


BIN
新模板/新年活动 - new/img/p12.jpg


BIN
新模板/新年活动 - new/img/p13.jpg


BIN
新模板/新年活动 - new/img/p14.jpg


BIN
新模板/新年活动 - new/img/p15.jpg


BIN
新模板/新年活动 - new/img/p16.jpg


BIN
新模板/新年活动 - new/img/p17.jpg


BIN
新模板/新年活动 - new/img/p2.jpg


BIN
新模板/新年活动 - new/img/p3.jpg


BIN
新模板/新年活动 - new/img/p4.jpg


BIN
新模板/新年活动 - new/img/p5.jpg


BIN
新模板/新年活动 - new/img/p6.jpg


BIN
新模板/新年活动 - new/img/p7.jpg


BIN
新模板/新年活动 - new/img/p8.jpg


BIN
新模板/新年活动 - new/img/p9.jpg


BIN
新模板/新年活动 - new/img/qche.jpg


BIN
新模板/新年活动 - new/img/star.png


BIN
新模板/新年活动 - new/img/tit1.png


BIN
新模板/新年活动 - new/img/tit2.png


File diff suppressed because it is too large
+ 293 - 0
新模板/新年活动 - new/index.html


+ 6 - 0
新模板/新年活动 - new/leftTime.min.js

@@ -0,0 +1,6 @@
+//  倒计时
+(function(y,g){Date.prototype.format=function(a){var d={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var c in d)(new RegExp("("+c+")")).test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?d[c]:("00"+d[c]).substr((""+d[c]).length)));return a};g.leftTime=function(a,d,c){function w(a){return-1!=
+a.indexOf("-")||-1!=a.indexOf("/")?!0:!1}function g(a){return/^(20|21|22|23|[0-1]\d):[0-5]\d$/.test(y.trim(a))?!0:!1}function r(a){10>a&&c&&(a="0"+a);return a}function z(){if("string"===typeof a||"number"===typeof a){var b=(new Date).getTime(),c;"string"===typeof a||12<=a.toString().length?(a="string"===typeof a&&1==w(a)?a.replace(/-/g,"/"):a,c=(new Date(a)).getTime(),b=c-b):(c=a-A.count,b=1E3*c,A.count++);0<b?(h=Math.floor(b/1E3/60/60/24),k=Math.floor(b/1E3/60/60%24),l=Math.floor(b/1E3/60%60),m=
+Math.floor(b/1E3%60),n=!0):(window.clearInterval(e),m=l=k=h=0,n=!1)}else"object"===typeof a&&(b=(new Date).getTime()+(0<t?-1*t:Math.abs(t)),c=0,u<f?(c=f,v=1):u>=f&&u<p?(c=p,v=2):u>=p&&(v=3),b=c-b,0<b?(h=Math.floor(b/1E3/60/60/24),k=Math.floor(b/1E3/60/60%24),l=Math.floor(b/1E3/60%60),m=Math.floor(b/1E3%60),n=!0):(window.clearInterval(e),m=l=k=h=0,n=!1));b={d:r(h),h:r(k),m:r(l),s:r(m)};b.status=n;b.step=v;if(d&&"function"===typeof d)return d(b)}var e=this.timer;c||0==c||(c=!0);var A={count:0},h=0,
+k=0,l=0,m=0,v=0,n=!1;if("object"===typeof a){a.init||1==a.init||(a.init=!1);var t=0,x,q=0;if(0!=a.setday||"0"!=a.setday)q=864E5*parseInt(a.setday);a.nowdate&&null!=a.nowdate&&void 0!=a.nowdate&&"undefined"!=a.nowdate?(t=(new Date).getTime()-parseInt(a.nowdate),x=new Date(a.nowdate)):(a.nowdate=(new Date).getTime(),x=new Date);var q=new Date(parseInt(a.nowdate)+q),f=0,p=0;0==a.startdate||"0"==a.startdate||a.init||("string"===typeof a.startdate?w(a.startdate)?f=(new Date(a.startdate.replace(/-/g,"/"))).getTime():
+g(a.startdate)&&(f=(new Date(q.format("yyyy/MM/dd")+" "+a.startdate)).getTime()):"number"===typeof a.startdate&&(f=a.startdate));if(0!=a.enddate||"0"!=a.enddate)"string"===typeof a.enddate?w(a.enddate)?p=(new Date(a.enddate.replace(/-/g,"/"))).getTime():g(a.enddate)&&(p=(new Date(q.format("yyyy/MM/dd")+" "+a.enddate)).getTime()):"number"===typeof a.enddate&&(f=a.enddate);var u=x.getTime()}z();e=setInterval(z,1E3);if("undefined"!=e||null!=e||void 0!=e)return e};y.extend(g)})(jQuery||zepto,{});

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

@@ -0,0 +1,254 @@
+var getNode = function(id){
+	return document.getElementById(id)
+}
+// 正则获取地址栏参数
+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
+}
+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 storeHead = getNode("store-head")  //  头部门店名称
+var store = getNode("store")  //  门店
+var address = getNode("address")  //  地址
+var tel = getNode("tel")  //  电话
+
+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/'
+}
+ 
+// 隐藏预约弹框
+var closeYy = function (){
+	userPhone.value = ''
+	modal.style.display = 'none'
+	modalZz.style.display = 'none'
+}
+window.onload = function(){
+	// 分享初始化
+	setTimeout(function(){
+		shareCls.getWxCofing(reqUrl)
+	},500)
+	
+	if(staticHtmlPath){  //  发布
+		onLoading()  //  加载中
+		checkActiveValid()
+	}else{  //  预览
+		getActivityData()  //  获取活动信息
+	}
+	 
+	//  校验活动是否还在进行
+	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()  //  关闭加载状态
+						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
+									storeHead.innerHTML = data.name || ''
+									store.innerHTML = data.name || ''
+									var addrCityName = data.addrCityName || ''
+									var addrDistrictName = data.addrDistrictName || ''
+									var addrDetail = data.addrDetail || ''
+									address.innerHTML = addrCityName + addrDistrictName + addrDetail
+									tel.innerHTML = data.managerMobile
+									document.getElementById("tel-link").href = 'tel:' + data.managerMobile
+									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);
+	}
+	// 打开预约弹框
+	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)
+			}
+		})
+	}
+	//  门店活动统计(参与者轮播)
+	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
+				}
+			},
+		})
+	}
+}

BIN
新模板/新年活动 - new/shareThumb.jpg


+ 100 - 0
新模板/新年活动 - new/shareWx.js

@@ -0,0 +1,100 @@
+// 分享模块
+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'
+				   ] // 必填,需要使用的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;
+		}
+	}
+}
+
+

File diff suppressed because it is too large
+ 0 - 0
新模板/新年活动 - new/spin.min.js


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


BIN
新模板/新年活动 - new/车/双品牌海报1-2.2.jpg


BIN
新模板/新年活动 - new/车/双品牌海报1-2.jpg


BIN
新模板/新年活动 - new/车/双品牌海报1-2.psd


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