123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <meta
- name="viewport"
- content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"
- />
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <meta content="telephone=no" name="format-detection" />
- <link rel="stylesheet" href="css/h5-index.css" />
- </head>
- <body>
- <header class="logo-wrapper">
- <img src="img/h5-logo1.png" alt="" />
- </header>
- <section class="app-slogan">
- <img src="img/h5-slogan.png" alt="" onclick="return false;" />
- </section>
- <section class="app-dowload">
- <a class="download" href="javascript:;">点击下载</a>
- </section>
- <section class="show-image">
- <img src="img/h5-foot.png" alt="" onclick="return false;" />
- </section>
- <div class="wx-down"><img src="img/wx_down.png" alt="" /></div>
- <footer>
- <img src="" alt="" onclick="return false;" />版权所有 ©
- 北京暖光科技有限公司
- </footer>
- <script src="js/flexible.min.js"></script>
- <script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.js"></script>
- <script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
- <script>
- $.ajax({
- url: "https://api-admin.shuoshuo.art/share/sign",
- data: {
- url: location.href
- },
- type: "POST",
- dataType: "text",
- success: function(res, status, xhr) {
- let returnDate = eval("(" + res + ")");
- if (returnDate.errno === 0) {
- let config = {
- title: "说说官网",
- desc: "发条说说,不再孤单",
- link: "https://www.shuoshuo.art",
- imgUrl: "https://www.shuoshuo.art/img/h5-logo.png"
- };
- wx.config({
- debug: false,
- appId: returnDate.data.app_id,
- timestamp: returnDate.data.timestamp,
- nonceStr: returnDate.data.noncestr,
- signature: returnDate.data.signature,
- jsApiList: ["updateAppMessageShareData", "onMenuShareAppMessage"]
- });
- wx.ready(() => {
- wx.updateAppMessageShareData({
- title: "说说官网", // 分享标题
- desc: "发条说说,不再孤单", // 分享描述
- link: "https://www.shuoshuo.art", // 分享链接
- imgUrl: "https://www.shuoshuo.art/img/h5-logo.png" // 分享图标
- });
- wx.onMenuShareAppMessage(config);
- });
- }
- },
- error: function(er) {
- console.log("error+" + er);
- }
- });
- </script>
- <script>
- $(function() {
- let BaseUrl = "https://api-admin.shuoshuo.art";
- let BaseDownloadAndroid =
- "http://shuoshuo-img.oss-cn-beijing.aliyuncs.com/apk/shuoshuo.apk?t=" +
- new Date().getTime();
- let _ = {
- GetRequest: () => {
- let url = location.search; //获取url中"?"符后的字串
- let theRequest = new Object();
- if (url.indexOf("?") != -1) {
- let str = url.substr(1);
- strs = str.split("&");
- for (let i = 0; i < strs.length; i++) {
- theRequest[strs[i].split("=")[0]] = unescape(
- strs[i].split("=")[1]
- );
- }
- }
- return theRequest;
- },
- post: data => {
- $.ajax({
- url: BaseUrl + "/stat/index",
- type: "post",
- data: {
- source: data
- }
- });
- }
- };
- let param = _.GetRequest();
- let statStr = "";
- // 埋点统计,短信来源
- // if (param['source'] && ['A', 'B', 'C'].includes(param['source'])) {
- // if (navigator.userAgent.indexOf('iPhone')>-1 || navigator.userAgent.indexOf('iPad')>-1){
- // $('.download')[0].setAttribute('href', 'https://itunes.apple.com/cn/app/%E8%AF%B4%E8%AF%B4-%E5%9C%A8%E7%BA%BF%E9%99%AA%E4%BC%B4%E8%81%8A%E5%A4%A9%E4%BA%A4%E5%8F%8B/id1454088662')
- // statStr = param['source'] + '_ios_' + 'view'
- // _.post(statStr)
- // $('.download').on('click', function() {
- // statStr = param['source'] + '_ios_' + 'click';
- // _.post(statStr);
- // })
- // } else {
- // $('.download')[0].setAttribute('href', 'http://shuoshuo-img.oss-cn-beijing.aliyuncs.com/apk/shuoshuo_v1.1.3.sms.apk')
- // statStr = param['source'] + '_android_' + 'view'
- // _.post(statStr)
- // $('.download').on('click', function() {
- // statStr = param['source'] + '_android' + 'click';
- // _.post(statStr);
- // if (navigator.userAgent.indexOf('MicroMessenger')>-1) {
- // $('.wx-down').show();
- // // 遮罩层禁止页面滚动
- // document.addEventListener('touchmove', function (event) {
- // event.preventDefault();
- // })
- // return false;
- // }
- // })
- // }
- // xby来源
- if (param.hasOwnProperty("fromurl")) {
- if (param["fromurl"] === "xby1") {
- if (
- navigator.userAgent.indexOf("iPhone") > -1 ||
- navigator.userAgent.indexOf("iPad") > -1
- ) {
- $(".download")[0].setAttribute(
- "href",
- "https://itunes.apple.com/cn/app/%E8%AF%B4%E8%AF%B4-%E5%9C%A8%E7%BA%BF%E9%99%AA%E4%BC%B4%E8%81%8A%E5%A4%A9%E4%BA%A4%E5%8F%8B/id1454088662"
- );
- } else {
- $(".download")[0].setAttribute(
- "href",
- "https://shuoshuo-img.oss-cn-beijing.aliyuncs.com/apk/shuoshuo.xuebuyuan.apk"
- );
- $(".download").on("click", function() {
- if (navigator.userAgent.indexOf("MicroMessenger") > -1) {
- $(".wx-down").show();
- // 遮罩层禁止页面滚动
- document.addEventListener("touchmove", function(event) {
- event.preventDefault();
- });
- return false;
- }
- });
- }
- }
- } else {
- if (
- navigator.userAgent.indexOf("iPhone") > -1 ||
- navigator.userAgent.indexOf("iPad") > -1
- ) {
- $(".download")[0].setAttribute(
- "href",
- "https://itunes.apple.com/cn/app/%E8%AF%B4%E8%AF%B4-%E5%9C%A8%E7%BA%BF%E9%99%AA%E4%BC%B4%E8%81%8A%E5%A4%A9%E4%BA%A4%E5%8F%8B/id1454088662"
- );
- $(".download").on("click", function() {
- _czc.push(["_trackEvent", "iOS", "下载链接"]);
- });
- } else {
- $(".download")[0].setAttribute("href", BaseDownloadAndroid);
- $(".download").on("click", function() {
- _czc.push(["_trackEvent", "Android", "下载链接"]);
- if (navigator.userAgent.indexOf("MicroMessenger") > -1) {
- $(".wx-down").show();
- // 遮罩层禁止页面滚动
- document.addEventListener("touchmove", function(event) {
- event.preventDefault();
- });
- return false;
- }
- });
- }
- }
- });
- </script>
- <!-- cnzz 统计 -->
- <!-- <div style="display: none;">
- <script
- type="text/javascript"
- src="https://s23.cnzz.com/z_stat.php?id=1276881507&web_id=1276881507"
- ></script>
- </div> -->
- </body>
- </html>
|