fuxisheng/assets/js/follow.js
2025-04-11 16:12:24 +08:00

41 lines
1.1 KiB
JavaScript

layui.use(['element', 'layer', 'jquery'], function () {
var element = layui.element,
layer = layui.layer,
$ = layui.jquery;
$.ajax({
url : '/info/checkOpenId',
type : 'get',
success : function(data) {
if (data.state == 'ok') {
parent.layer.closeAll('iframe');
} else {
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
layer.open({
type: 2,
title: false,
area: ['80%', '500px'],
maxmin: false,
resize: false,
closeBtn: false,
skin:'anno-content',
content: '/info/follow'
});
} else {
layer.open({
type: 2,
title: false,
area: ['500px', '500px'],
maxmin: false,
resize: false,
closeBtn: false,
skin:'anno-content',
content: '/info/follow'
});
}
}
}
});
});