1.3.0 三方充值返回默认选中&跳转个人信息页
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
var browser = checkVersion();
|
var browser = checkVersion();
|
||||||
const urlPrefix = getUrlPrefix();
|
const urlPrefix = getUrlPrefix();
|
||||||
|
var getUrl = getQueryString();
|
||||||
const urlTest = "https://api.pekolive.com";
|
const urlTest = "https://api.pekolive.com";
|
||||||
const urlProduct = "https://beta.api.pekolive.com";
|
const urlProduct = "https://beta.api.pekolive.com";
|
||||||
let arr = [];
|
let arr = [];
|
||||||
@@ -27,7 +28,7 @@ $(function () {
|
|||||||
listChargeAreaInfo();
|
listChargeAreaInfo();
|
||||||
if (browser.app) {
|
if (browser.app) {
|
||||||
erbanNo == null;
|
erbanNo == null;
|
||||||
$('body .pay_method, html .pay_method').css('margin','-4.5rem auto 0');
|
$('body .pay_method, html .pay_method').css('margin', '-4.5rem auto 0');
|
||||||
$('body .header .user, html .header .user').hide();
|
$('body .header .user, html .header .user').hide();
|
||||||
$('.but1').hide();
|
$('.but1').hide();
|
||||||
$('.but2').show();
|
$('.but2').show();
|
||||||
@@ -133,7 +134,7 @@ $(function () {
|
|||||||
console.log(res)
|
console.log(res)
|
||||||
$('.logingActive').text("請稍等");//""
|
$('.logingActive').text("請稍等");//""
|
||||||
$('.logingActive').show();
|
$('.logingActive').show();
|
||||||
window.location.replace(res.data.payInfo.mweb_url);
|
window.location.href = res.data.payInfo.mweb_url;
|
||||||
} else {
|
} else {
|
||||||
logingFun(res.message)
|
logingFun(res.message)
|
||||||
}
|
}
|
||||||
@@ -155,14 +156,26 @@ $(function () {
|
|||||||
success: function (res) {
|
success: function (res) {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
var str = ``;
|
var str = ``;
|
||||||
res.data.forEach(res => {
|
var countryCodeIndexs = 0;
|
||||||
|
res.data.forEach((res, i) => {
|
||||||
str += `
|
str += `
|
||||||
<p countryCode="${res.areaCode}" id="pop_up_in_p2">${res.areaName}</p>
|
<p countryCode="${res.areaCode}" id="pop_up_in_p2">${res.areaName}</p>
|
||||||
`
|
`
|
||||||
|
if (getUrl.countryCode && res.areaCode == getUrl.countryCode) {
|
||||||
|
countryCodeIndexs = i;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
$('.header_top_right b').text(res.data[0].areaName);
|
if (getUrl.countryCode) {
|
||||||
|
$('.header_top_right b').text(res.data[countryCodeIndexs].areaName);
|
||||||
|
countryCode = res.data[countryCodeIndexs].areaCode;
|
||||||
|
} else {
|
||||||
|
$('.header_top_right b').text(res.data[0].areaName);
|
||||||
|
countryCode = res.data[0].areaCode
|
||||||
|
}
|
||||||
$('.pop_up_in').append(str)
|
$('.pop_up_in').append(str)
|
||||||
getChargePageInfoForH5(res.data[0].areaCode);
|
getChargePageInfoForH5(countryCode);
|
||||||
|
successUrl = updateQueryStringParameter(window.location.href, "countryCode", countryCode)
|
||||||
|
console.log(successUrl);
|
||||||
$('.pop_up_in p').click(function () {
|
$('.pop_up_in p').click(function () {
|
||||||
$('.header_top_right b').text($(this).text());
|
$('.header_top_right b').text($(this).text());
|
||||||
countryCode = $(this).attr("countryCode");
|
countryCode = $(this).attr("countryCode");
|
||||||
@@ -180,6 +193,8 @@ $(function () {
|
|||||||
// } else {
|
// } else {
|
||||||
// window.location.href = urlPrefix + '/peko/modules/pay/index.html?countryCodeURL=' + countryCode;
|
// window.location.href = urlPrefix + '/peko/modules/pay/index.html?countryCodeURL=' + countryCode;
|
||||||
// }
|
// }
|
||||||
|
successUrl = updateQueryStringParameter(window.location.href, "countryCode", countryCode)
|
||||||
|
console.log(successUrl);
|
||||||
getChargePageInfoForH5(countryCode);
|
getChargePageInfoForH5(countryCode);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -188,6 +203,7 @@ $(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.header_top_right').click(function () {
|
$('.header_top_right').click(function () {
|
||||||
$('.pop_up').show();
|
$('.pop_up').show();
|
||||||
});
|
});
|
||||||
@@ -262,4 +278,17 @@ $(function () {
|
|||||||
if (!envChecks) return undefined;
|
if (!envChecks) return undefined;
|
||||||
return envChecks === 'live' ? urlProduct : urlTest;
|
return envChecks === 'live' ? urlProduct : urlTest;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
function updateQueryStringParameter (uri, key, value) {
|
||||||
|
if (!value) {
|
||||||
|
return uri;
|
||||||
|
}
|
||||||
|
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
|
||||||
|
var separator = uri.indexOf('?') !== -1 ? "&" : "?";
|
||||||
|
if (uri.match(re)) {
|
||||||
|
return uri.replace(re, '$1' + key + "=" + value + '$2');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return uri + separator + key + "=" + value;
|
||||||
|
}
|
||||||
|
}
|
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>peko</title><link href=./static/css/app.5e456a87275e12d9f48ff8625f0a5381.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.28a3f1e86701b1e781f2.js></script><script type=text/javascript src=./static/js/vendor.d722b879b3f7e872e29b.js></script><script type=text/javascript src=./static/js/app.b20ccc5831da38f8c4a9.js></script></body></html>
|
<!DOCTYPE html><html><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>peko</title><link href=./static/css/app.106f1c2765d6248683c98062ccec4778.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.ebecf3b090cfd5a0b676.js></script><script type=text/javascript src=./static/js/vendor.d722b879b3f7e872e29b.js></script><script type=text/javascript src=./static/js/app.323bdb495eb30832870b.js></script></body></html>
|
File diff suppressed because one or more lines are too long
16
view/peko/modules/rank/static/js/1.fb51908af319c9b4d6ee.js
Normal file
16
view/peko/modules/rank/static/js/1.fb51908af319c9b4d6ee.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
|||||||
webpackJsonp([7],{"/CRi":function(e,n){},"2KIr":function(e,n){},"4ml/":function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=t("7+uW"),o={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var a=t("VU/8")({name:"App"},o,!1,function(e){t("tKSs")},null,null).exports,r=t("YaEn"),u=(t("2KIr"),t("NYxO"));i.default.use(u.a);var s=new u.a.Store({state:{info:{ticket:"123",uid:"678"}},mutations:{setInfo:function(e,n){e.info.ticket=n.ticket,e.info.uid=n.uid}},getters:{getInfo:function(e){return e.info}},actions:{getUserInfo:function(e){return e.state}}}),c=t("pFYg"),d=t.n(c),f=t("Z4iZ");window.info={},window.getMessage=function(e,n){info[e]=n};var l=t("SV4X"),p=t.n(l),m=(t("/CRi"),t("4ml/"),t("Fd2+")),h=(t("sVYa"),t("DVXL")),w=t.n(h);!function(){var e=Object(f.b)();if(e.app)if(e.ios){var n=document.cookie.match(/\d+/);info.uid=n[0],window.webkit.messageHandlers.getTicket.postMessage(null)}else e.android&&androidJsObj&&"object"===("undefined"==typeof androidJsObj?"undefined":d()(androidJsObj))&&(info.uid=parseInt(window.androidJsObj.getUid()),info.ticket=window.androidJsObj.getTicket());else info.uid=1005337,info.ticket="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjoxMDA1MzM3LCJ0aWNrZXRfaWQiOiIzZmRmNDQwOS03MTM2LTRkOTItOWE0Yy1hZTkyMjg2YjAyMGUiLCJleHAiOjM2MDAsImNsaWVudF9pZCI6ImVyYmFuLWNsaWVudCJ9.X6mEVLMxFkBtPWW0g1OuL_xOpeGJlNWRsp5fKIKUo3Y"}(),i.default.config.productionTip=!1,i.default.prototype.$layer=p()(i.default),w.a.attach(document.body),i.default.use(m.b),new i.default({el:"#app",router:r.a,store:s,components:{App:a},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var i=t("7+uW"),o=t("/ocq");i.default.use(o.a);var a=new o.a({routes:[{path:"/rank",name:"rank",component:function(){return Promise.all([t.e(0),t.e(2)]).then(t.bind(null,"XwoE"))},meta:{title:"排行榜"}},{path:"/wishingWellRank",name:"wishingWellRank",meta:{title:"榜單"},component:function(){return Promise.all([t.e(0),t.e(3)]).then(t.bind(null,"W02H"))}},{path:"/wishingWellRecord",name:"wishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"ht4E"))}},{path:"/wishingWellRule",name:"wishingWellRule",meta:{title:"玩法規則"},component:function(){return t.e(4).then(t.bind(null,"bxJL"))}},{path:"/DiamondLog",name:"DiamondLog",meta:{title:"鉆石記錄"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"zXe3"))}}]});a.beforeEach(function(e,n,t){window.sessionStorage.getItem("ticket")?t():setTimeout(function(){sessionStorage.clear(),window.sessionStorage.setItem("uid",info.uid),window.sessionStorage.setItem("ticket",info.ticket),console.log(info,"router"),t()},70)}),n.a=a},Z4iZ:function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"a",function(){return o});var i=function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i),app:"pekoApp"==e.match("pekoApp")}},o=function(){if(window.location.href){var e=window.location.href,n=e.match(/api.uat.z/),t=e.match(/120.79.211.243/),i=e.match(/192.168/),o=e.match(/127.0.0.1/),a=e.match(/api.uat/),r=e.match(/beta./);return n||t||i||o||a||r?"test":"live"}}},afzy:function(e,n,t){"use strict";function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}n.a=i},tKSs:function(e,n){}},["NHnr"]);
|
webpackJsonp([7],{"/CRi":function(e,n){},"2KIr":function(e,n){},"4ml/":function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=t("7+uW"),o={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var a=t("VU/8")({name:"App"},o,!1,function(e){t("tKSs")},null,null).exports,r=t("YaEn"),u=(t("2KIr"),t("NYxO"));i.default.use(u.a);var s=new u.a.Store({state:{info:{ticket:"123",uid:"678"}},mutations:{setInfo:function(e,n){e.info.ticket=n.ticket,e.info.uid=n.uid}},getters:{getInfo:function(e){return e.info}},actions:{getUserInfo:function(e){return e.state}}}),c=t("pFYg"),d=t.n(c),f=t("Z4iZ");window.info={},window.getMessage=function(e,n){info[e]=n};var l=t("SV4X"),p=t.n(l),m=(t("/CRi"),t("4ml/"),t("Fd2+")),h=(t("sVYa"),t("DVXL")),w=t.n(h);!function(){var e=Object(f.b)();if(e.app)if(e.ios){var n=document.cookie.match(/\d+/);info.uid=n[0],window.webkit.messageHandlers.getTicket.postMessage(null)}else e.android&&androidJsObj&&"object"===("undefined"==typeof androidJsObj?"undefined":d()(androidJsObj))&&(info.uid=parseInt(window.androidJsObj.getUid()),info.ticket=window.androidJsObj.getTicket());else info.uid=1005337,info.ticket="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aWNrZXRfdHlwZSI6bnVsbCwidWlkIjoxMDA1MzM3LCJ0aWNrZXRfaWQiOiIzZmRmNDQwOS03MTM2LTRkOTItOWE0Yy1hZTkyMjg2YjAyMGUiLCJleHAiOjM2MDAsImNsaWVudF9pZCI6ImVyYmFuLWNsaWVudCJ9.X6mEVLMxFkBtPWW0g1OuL_xOpeGJlNWRsp5fKIKUo3Y"}(),i.default.config.productionTip=!1,i.default.prototype.$layer=p()(i.default),w.a.attach(document.body),i.default.use(m.b),new i.default({el:"#app",router:r.a,store:s,components:{App:a},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var i=t("7+uW"),o=t("/ocq");i.default.use(o.a);var a=new o.a({routes:[{path:"/rank",name:"rank",component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"XwoE"))},meta:{title:"排行榜"}},{path:"/wishingWellRank",name:"wishingWellRank",meta:{title:"榜單"},component:function(){return Promise.all([t.e(0),t.e(3)]).then(t.bind(null,"W02H"))}},{path:"/wishingWellRecord",name:"wishingWellRecord",meta:{title:"中獎記錄"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"ht4E"))}},{path:"/wishingWellRule",name:"wishingWellRule",meta:{title:"玩法規則"},component:function(){return t.e(4).then(t.bind(null,"bxJL"))}},{path:"/DiamondLog",name:"DiamondLog",meta:{title:"鉆石記錄"},component:function(){return Promise.all([t.e(0),t.e(2)]).then(t.bind(null,"zXe3"))}}]});a.beforeEach(function(e,n,t){window.sessionStorage.getItem("ticket")?t():setTimeout(function(){sessionStorage.clear(),window.sessionStorage.setItem("uid",info.uid),window.sessionStorage.setItem("ticket",info.ticket),console.log(info,"router"),t()},70)}),n.a=a},Z4iZ:function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"a",function(){return o});var i=function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i),app:"pekoApp"==e.match("pekoApp")}},o=function(){if(window.location.href){var e=window.location.href,n=e.match(/api.uat.z/),t=e.match(/120.79.211.243/),i=e.match(/192.168/),o=e.match(/127.0.0.1/),a=e.match(/api.uat/),r=e.match(/beta./);return n||t||i||o||a||r?"test":"live"}}},afzy:function(e,n,t){"use strict";function i(){return(i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}n.a=i},tKSs:function(e,n){}},["NHnr"]);
|
||||||
//# sourceMappingURL=app.b20ccc5831da38f8c4a9.js.map
|
//# sourceMappingURL=app.323bdb495eb30832870b.js.map
|
@@ -1,2 +0,0 @@
|
|||||||
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(n&&n(r,a,c);s.length;)s.shift()();if(c)for(d=0;d<c.length;d++)f=o(o.s=c[d]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"eed15768c3b7ae4cb839",1:"1bd9d8db377a897451e8",2:"52687005d6832f02b312",3:"7a4dfeb0d7ea325598f5",4:"2408701d4fd3b9cad049",5:"7497cae6dad9b60e9b15"}[e]+".js";var i=setTimeout(u,12e4);function u(){c.onerror=c.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=u,a.appendChild(c),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
|
|
||||||
//# sourceMappingURL=manifest.28a3f1e86701b1e781f2.js.map
|
|
@@ -0,0 +1,2 @@
|
|||||||
|
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=o(o.s=a[d]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"eed15768c3b7ae4cb839",1:"fb51908af319c9b4d6ee",2:"c400ed84fcfb7544002c",3:"7a4dfeb0d7ea325598f5",4:"2408701d4fd3b9cad049",5:"7497cae6dad9b60e9b15"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
|
||||||
|
//# sourceMappingURL=manifest.ebecf3b090cfd5a0b676.js.map
|
@@ -222,20 +222,37 @@ $(function () {
|
|||||||
|
|
||||||
|
|
||||||
//跳转个人主页
|
//跳转个人主页
|
||||||
function openPerson(document, dom) {
|
// function openPerson(document, dom) {
|
||||||
|
// $(document).on('click', dom, function () {
|
||||||
|
// let erbanUid = $(this).data('uid')
|
||||||
|
// if (!browser.app) return
|
||||||
|
// if (browser.ios) {
|
||||||
|
// window.webkit.messageHandlers.openPersonPage.postMessage(erbanUid);
|
||||||
|
// } else if (browser.android) {
|
||||||
|
// if (androidJsObj && typeof androidJsObj === 'object') {
|
||||||
|
// window.androidJsObj.openPersonPage(erbanUid);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// 跳转房间函数
|
||||||
|
function openRoomFun(document, dom){
|
||||||
$(document).on('click', dom, function () {
|
$(document).on('click', dom, function () {
|
||||||
let erbanUid = $(this).data('uid')
|
let erbanUid = $(this).data('uid')
|
||||||
if (!browser.app) return
|
// if (!browser.app) return
|
||||||
if (browser.ios) {
|
if (browser.ios) {
|
||||||
window.webkit.messageHandlers.openPersonPage.postMessage(erbanUid);
|
window.webkit.messageHandlers.openRoom.postMessage(erbanUid);
|
||||||
} else if (browser.android) {
|
} else if (browser.android) {
|
||||||
if (androidJsObj && typeof androidJsObj === 'object') {
|
if (androidJsObj && typeof androidJsObj === 'object') {
|
||||||
window.androidJsObj.openPersonPage(erbanUid);
|
window.androidJsObj.openRoom(erbanUid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
openPerson('.top_three_wrap', '.avatar')
|
openRoomFun('.top_three_wrap', '.avatar')
|
||||||
openPerson('ul', '.others_avatar')
|
openRoomFun('ul', '.others_avatar')
|
||||||
openPerson('.mine', '.mine_avatar')
|
openRoomFun('.mine', '.mine_avatar')
|
||||||
|
// openPerson('.top_three_wrap', '.avatar')
|
||||||
|
// openPerson('ul', '.others_avatar')
|
||||||
|
// openPerson('.mine', '.mine_avatar')
|
||||||
})
|
})
|
@@ -22,7 +22,8 @@ module.exports = {
|
|||||||
}},
|
}},
|
||||||
|
|
||||||
// Various Dev Server settings
|
// Various Dev Server settings
|
||||||
host: '127.0.0.1', // can be overwritten by process.env.HOST
|
//host: 127.0.0.1
|
||||||
|
host: '192.168.3.153', // can be overwritten by process.env.HOST
|
||||||
port: 5500, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
port: 5500, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||||
autoOpenBrowser: false,
|
autoOpenBrowser: false,
|
||||||
errorOverlay: true,
|
errorOverlay: true,
|
||||||
|
@@ -30,17 +30,17 @@
|
|||||||
|
|
||||||
<div class="rank-wrap" ref="rankWrap">
|
<div class="rank-wrap" ref="rankWrap">
|
||||||
<div class="top-three" ref="top-three">
|
<div class="top-three" ref="top-three">
|
||||||
<div
|
<!-- <div
|
||||||
class="top-list"
|
class="top-list"
|
||||||
v-for="(item, index) in topThree"
|
v-for="(item, index) in topThree"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
> -->
|
||||||
<!-- <div
|
<div
|
||||||
class="top-list"
|
class="top-list"
|
||||||
v-for="(item, index) in topThree"
|
v-for="(item, index) in topThree"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="openPerson(item.uid)"
|
@click="openPerson(item.uid)"
|
||||||
> -->
|
>
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img :src="item.avatar" alt />
|
<img :src="item.avatar" alt />
|
||||||
</div>
|
</div>
|
||||||
@@ -101,8 +101,8 @@
|
|||||||
|
|
||||||
>
|
>
|
||||||
<p class="rank-index">{{ index + 4 }}</p>
|
<p class="rank-index">{{ index + 4 }}</p>
|
||||||
<img :src="item.avatar" alt />
|
<!-- <img :src="item.avatar" alt /> -->
|
||||||
<!-- <img :src="item.avatar" alt @click="openPerson(item.uid)" /> -->
|
<img :src="item.avatar" alt @click="openPerson(item.uid)" />
|
||||||
<div class="rank-user-detail">
|
<div class="rank-user-detail">
|
||||||
<p v-if="item.nick && !item.roomTitle">
|
<p v-if="item.nick && !item.roomTitle">
|
||||||
{{
|
{{
|
||||||
@@ -176,6 +176,7 @@
|
|||||||
import { Swiper, SwiperSlide, directive } from "vue-awesome-swiper";
|
import { Swiper, SwiperSlide, directive } from "vue-awesome-swiper";
|
||||||
import { rankList, clanList } from "@/api/rank.js";
|
import { rankList, clanList } from "@/api/rank.js";
|
||||||
import { checkVersion } from "@/utils/browser.js";
|
import { checkVersion } from "@/utils/browser.js";
|
||||||
|
import Vconsole from 'vconsole'
|
||||||
import "swiper/css/swiper.css";
|
import "swiper/css/swiper.css";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -190,6 +191,7 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
}, 50);
|
}, 50);
|
||||||
|
// new Vconsole();
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -303,19 +305,19 @@ export default {
|
|||||||
if (num >= 10000) return (num / 10000).toFixed(1) + "W";
|
if (num >= 10000) return (num / 10000).toFixed(1) + "W";
|
||||||
return num;
|
return num;
|
||||||
},
|
},
|
||||||
// openPerson(erbanUid) {
|
openPerson(erbanUid) {
|
||||||
// if(this.tabType == 0 || this.tabType == 1) {
|
// if(this.tabType == 0 || this.tabType == 1) {
|
||||||
// if (checkVersion().app) {
|
if (checkVersion().app) {
|
||||||
// if (checkVersion().ios) {
|
if (checkVersion().ios) {
|
||||||
// window.webkit.messageHandlers.openPersonPage.postMessage(erbanUid);
|
window.webkit.messageHandlers.openPersonPage.postMessage(erbanUid);
|
||||||
// } else if (checkVersion().android) {
|
} else if (checkVersion().android) {
|
||||||
// if (androidJsObj && typeof androidJsObj === "object") {
|
if (androidJsObj && typeof androidJsObj === "object") {
|
||||||
// window.androidJsObj.openPersonPage(erbanUid);
|
window.androidJsObj.openPersonPage(erbanUid);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
// }
|
||||||
// },
|
},
|
||||||
},
|
},
|
||||||
// 适配手机屏幕
|
// 适配手机屏幕
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Reference in New Issue
Block a user