if (!likedtotal)
var likedtotal;
if (!pvtotal)
var pvtotal;
var krpano = document.getelementbyid("krpanoswfobject");
function krpmodifyurl(pid) { }
function onkrpxmlready() { }
function krpgetpanostat() { }
function krppathfinding() { }
function krpgetauthstat() { }
function openmedia(link, device) {
if (link.indexof('firstxml') != -1) {
var link = link.replace("%firstxml%", ".");
}
if (device == "true") {
var link = 'play.html?type=1&file=' + link;
$.fancybox.open({
type: 'iframe',
href: link,
padding: 0
});
} else {
var link = 'play.html?type=0&file=' + link;
$.fancybox.open({
type: 'iframe',
href: link,
padding: 0,
maxwidth: 535,
maxheight: 520,
fittoview: true,
width: '70%',
height: '70%',
});
}
}
function js_show_intro(desc, device) {
if (desc != 0 && desc != '') {
desc = unescape(desc);
var width;
if (device == 'true') {
width = '80%';
height = '60%';
} else {
width = '480px';
height = 'auto';
}
layer.open({
type: 1,
title: false,
area: [width, height],
shadeclose: true,
content: '
' + desc + '
'
});
}
}
function js_do_like() {
if (typeof (guid) == "undefined" || guid == '' || guid == null) {
return false;
}
$.ajax({
type: "post",
url: "/member/panoapi/zan",
data: { "guid": guid },
datatype: 'json',
success: function (data) {
}
});
}
function js_do_pv() {
if (typeof (guid) == "undefined" || guid == '' || guid == null) {
return false;
}
$.ajax({
type: "post",
url: "/member/panoapi/pview",
data: { "guid": guid },
datatype: 'json',
success: function (data) {
}
});
}
function js_show_qr() {
//杩欓噷鐨勪簩缁寸爜浠s guid鍛藉悕 鍥犱负闇€瑕佽皟鐢?
if (typeof (guid) == "undefined" || guid == '' || guid == null) {
return false;
}
layer.open({
type: 1,
title: false,
area: ['580px', '500px'],
shadeclose: true,
content: ''
});
}
function js_show_wcode(link) {
if (link.indexof('firstxml') != -1) {
var link = link.replace("%firstxml%", ".");
}
var flag = ispc();
var width;
var height;
if (flag) {
width = '500px';
height = '500px';
}
else {
width = '80%';
height = '51%';
}
layer.open({
type: 1,
title: false,
area: [width, height],
shadeclose: true,
content: ''
});
}
function js_show_deccontent(t, link) {
if (link.indexof('firstxml') != -1) {
var link = link.replace("%firstxml%", ".");
}
var flag = ispc();
if (flag) {
layer.open({
type: 1,
title: false,
area: ['820px', '540px'],
shadeclose: true,
content: ''
});
}
else {
layer.open({
type: 1,
title: false,
area: ['87%', '80%'],
maxwidth: 820,
shadeclose: true,
content: ''
});
}
}
function js_show_exhibitor(logo, path, name, phone, email, address, wcode, qq, remark, bgsource) {
if (logo == "undefined") {
logo = "./skin/defaultlogo.png";
} else {
if (logo.indexof('firstxml') != -1)
logo = logo.replace("%firstxml%", ".");
}
if (path.indexof('firstxml') != -1) {
path = path.replace("%firstxml%", ".");
}
var contenthtml = '' + name + '
';
var remarkhtml = "";
if (phone != "0")
contenthtml += '' + phone + '
';
if (email != "0")
contenthtml += '' + email + '
';
if (address != "0")
contenthtml += '' + address + '
';
if (wcode != "0")
contenthtml += '浼佷笟寰俊鍏紬鍙凤細' + wcode + '
';
if (qq != "0")
contenthtml += '' + qq + '
';
var flag = ispc();
if (flag) {
if (remark != "0")
remarkhtml += '';
layer.open({
type: 1,
title: false,
area: ['820px', '540px'],
shadeclose: true,
content: ''
});
}
else {
if (remark != "0")
remarkhtml += '';
layer.open({
type: 1,
title: false,
area: ['90%', '90%'],
shadeclose: true,
content: ''
});
}
if (bgsource != "undefined") {
$(".card p").css("background", "url('" + bgsource + "')no-repeat scroll left top");
$(".card .phone").css("background-position", "0 -32px");
$(".card .comphone").css("background-position", "0 0px");
$(".card .email").css("background-position", "0 -65px");
$(".card .address").css("background-position", "0 -194px");
$(".card .weiboname").css("background-position", "0 -129px");
$(".card .wechat").css("background-position", "0 -162px");
$(".card .qq").css("background-position", "0 -97px");
}
}
function ispc() {
var useragentinfo = navigator.useragent;
var agents = ["android", "iphone",
"symbianos", "windows phone",
"ipad", "ipod"];
var flag = true;
for (var v = 0; v < agents.length; v++) {
if (useragentinfo.indexof(agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}
function krprequirepassword() {
if (typeof (guid) == "undefined" || guid == '' || guid == null) {
return false;
}
layer.prompt({ title: '璇ヤ綔鍝佽缃簡瀵嗙爜锛岃杈撳叆瀵嗙爜', formtype: 1, btn: ['纭畾'], closebtn: 0, move: false }, function (pass, index) {
$.ajax({
type: "post",
url: "/member/panoapi/viewpassword",
data: { "guid": guid, password: pass },
datatype: 'json',
success: function (result) {
if (result.status == 1) {
layer.close(index);
krpano.call("passwordcorrect();");
} else {
layer.msg(result.info);
}
}
});
});
}
$(function () {
js_do_pv();
});