打开App,这里有最优质的学习内容
";
}, 1000);
if (shortlink) {
function initOpenAppBtnWxNew(shortlink) {
wx.ready(function () {
// 判断是否app打开
if (str < 0) {
var banner = '打开App,这里有最优质的学习内容
';
if (navigator.userAgent.toLowerCase().indexOf('miniprogram') != -1) {
$('.download-tip').show()
return false
if (isWeixin()) {
// 微信环境 打开app
}, 3000);
$('#openAppNew').bind('launch', function (e) {
console.log('success');
$('#openAppNew').bind('error', function (e) {
console.log('fail', e.detail);
// 如果跳转失败,去跳下载页
// var ua = navigator.userAgent.toLowerCase();
// if (!!ua.match(/iphone|mac|ipod|ipad|ios/i)) {
// window.location = 'https://apps.apple.com/cn/app/id580462823';
// } else {
// window.location = 'https://app.gaokaozhitongche.com/d';
// }
// 微信配置失败就还是走原来的分享
wx.error(function () {
var OCNews = new Object();
OCNews.jsCall = function (string) {
var str = "{'news_id':'" + string.news_id + "','user_id':'" + string.user_id + "','user_name':'" + string.user_name + "','comment_id':'" + string.comment_id + "','belong_comment_id':'" + string.belong_comment_id + "','show_keyboard':'" + string.show_keyboard + "'}";
window.AndroidWebView && window.AndroidWebView.showInfoFromJs(str);
OCNews.jsPaper = function (string) {
var str = JSON.stringify(string)
window.AndroidWebView && window.AndroidWebView.showUploadTestJs(str);
OCNews.jsShowImage = function (obj) {
window.AndroidWebView && window.AndroidWebView.showImage(obj.src, obj.srcs);
return obj.src;
OCNews.jsShowProfile = function (string) {
window.AndroidWebView && window.AndroidWebView.showProfile(string);
function chkIosNewVersion() {
if(navi.toLowerCase().indexOf('gkztczy')>-1 && navi.toLowerCase().indexOf('ios') > -1){ // 兼容志愿版app
return true
var matchArr = navi.match(/iOS/(d+?.d+?.d+?)_/);
if (matchArr !== null) {
var arr = matchArr[1].split(".");
if (arr[0] > 2) {
} else if (arr[1] > 6) {
} else if (arr[2] > 1) {
var checkVersion = function (version, callback, type) {
var navi = navigator.userAgent
var str = navi.indexOf('GKZTC')
//是APP里面打开的网页
appVersion(navi, version, callback, type)
var appVersion = function (userAgent, version, callback, type) {
var v = version
var reg1 = /iOS/(d+?.d+?.d+?)_/
var a = userAgent.match(reg1)
if (a !== null) {
var ao = a[1]
var arr = getVersionArr(ao)
var reg2 = /Android/(d+?.d+?.d+?)_/
var b = userAgent.match(reg2)
if (b !== null) {
var bo = b[1]
var arr = getVersionArr(bo)
var compareVersion = function (currentversionArr, versionArr, callback, type) {
var a = currentversionArr
var b = versionArr
var c = compareArrStr(a, b)
if (type == 1) {
var judge = c == -1
var judge = c != -1
if (judge) {
//进来这里执行说明当前版本比需要的版本低
callback && callback()
// 跳到评论,给app用
var gotoComment = function () {
// location.href = '#comment'
document.getElementById('comment').scrollIntoView(true)
var getVersionArr = function (version) {
var a = version.split(".")
return a
var compareArrStr = function (arr, brr) {
var a = arr
var b = brr
for (i = 0; i < 3; i++) {
if (a[i] - b[i] > 0) {
return 1
if (a[i] - b[i] < 0) {
return -1
return 0;
function wkJsUploadPaper(string) {
// checkVersion('3.3.0', function () {
// alert('请下载最新版本的APP')
// }, 1)
var a = [];
var b = {"money":0};
var o = string
var data = {
news_id: o.news_id,
user_id: o.user_id,
user_name: o.user_name,
comment_id: o.comment_id,
paper_stat: o.paper_stat,
subject: a,
paper_info: b,
window.webkit.messageHandlers.AppModel.postMessage({methodName: "showUploadTestJs", methodParam: data});
OCNews.jsPaper(data);
function wkJsShowImage(obj) {
methodName: "showImage",
methodParam: {src: obj.src, srcs: obj.srcs}
return OCNews.jsShowImage(obj);
function wkJsShowProfile(string) {
window.webkit.messageHandlers.AppModel.postMessage({methodName: "showProfile", methodParam: string});
OCNews.jsShowProfile(string);
function replaceStr(item) {
var Regexp =/@.+?(s|$)/g
var str = parseContent(item);
if(str.indexOf('@') >= -1){
str = str.replace(Regexp,function(a){
return `${a}` 以上就是本篇文章【岭南师范学院2024年高考录取日程】的全部内容了,欢迎阅览 ! 文章地址:http://dfvalve.xrbh.cn/news/3554.html
资讯
企业新闻
行情
企业黄页
同类资讯
首页
网站地图
返回首页 迅博思语资讯移动站 http://keant.xrbh.cn/ , 查看更多