diff --git a/demo-screenshot/01.png b/demo-screenshot/01.png deleted file mode 100644 index bd9f08b..0000000 Binary files a/demo-screenshot/01.png and /dev/null differ diff --git a/demo-screenshot/02.png b/demo-screenshot/02.png deleted file mode 100644 index f63a7ef..0000000 Binary files a/demo-screenshot/02.png and /dev/null differ diff --git a/static/config/index-prod.js b/static/config/index-prod.js index 9696f81..de8ecba 100644 --- a/static/config/index-prod.js +++ b/static/config/index-prod.js @@ -2,13 +2,13 @@ * 生产环境 */ ;(function () { - window.SITE_CONFIG = {}; + window.SITE_CONFIG = {} // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://demo.open.renren.io/renren-fast-server'; + window.SITE_CONFIG['baseUrl'] = 'http://demo.open.renren.io/renren-fast-server' // cdn地址 = 域名 + 版本号 - window.SITE_CONFIG['domain'] = './'; // 域名 - window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) - window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version; -})(); + window.SITE_CONFIG['domain'] = './' // 域名 + window.SITE_CONFIG['version'] = '' // 版本号(年月日时分) + window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version +})() diff --git a/static/config/index-qa.js b/static/config/index-qa.js index 54198db..c2862ca 100644 --- a/static/config/index-qa.js +++ b/static/config/index-qa.js @@ -2,13 +2,13 @@ * 测试环境 */ ;(function () { - window.SITE_CONFIG = {}; + window.SITE_CONFIG = {} // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast'; + window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast' // cdn地址 = 域名 + 版本号 - window.SITE_CONFIG['domain'] = './'; // 域名 - window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) - window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version; -})(); + window.SITE_CONFIG['domain'] = './' // 域名 + window.SITE_CONFIG['version'] = '' // 版本号(年月日时分) + window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version +})() diff --git a/static/config/index-uat.js b/static/config/index-uat.js index de1553a..942b304 100644 --- a/static/config/index-uat.js +++ b/static/config/index-uat.js @@ -2,13 +2,13 @@ * 验收环境 */ ;(function () { - window.SITE_CONFIG = {}; + window.SITE_CONFIG = {} // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast'; + window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast' // cdn地址 = 域名 + 版本号 - window.SITE_CONFIG['domain'] = './'; // 域名 - window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) - window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version; -})(); + window.SITE_CONFIG['domain'] = './' // 域名 + window.SITE_CONFIG['version'] = '' // 版本号(年月日时分) + window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version +})() diff --git a/static/config/index.js b/static/config/index.js index aca2f56..4b6c74c 100644 --- a/static/config/index.js +++ b/static/config/index.js @@ -2,13 +2,14 @@ * 开发环境 */ ;(function () { - window.SITE_CONFIG = {}; + window.SITE_CONFIG = {} // api接口请求地址 - window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast'; + // window.SITE_CONFIG['baseUrl'] = 'http://localhost:8080/renren-fast' + window.SITE_CONFIG['baseUrl'] = 'http://demo.open.renren.io/renren-fast-server' // cdn地址 = 域名 + 版本号 - window.SITE_CONFIG['domain'] = './'; // 域名 - window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) - window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version; -})(); + window.SITE_CONFIG['domain'] = './' // 域名 + window.SITE_CONFIG['version'] = '' // 版本号(年月日时分) + window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version +})() diff --git a/static/config/init.js b/static/config/init.js index 9c464d6..86b65cb 100644 --- a/static/config/init.js +++ b/static/config/init.js @@ -1,11 +1,11 @@ /** * 动态加载初始资源 */ -;(function() { +;(function () { var resList = { icon: window.SITE_CONFIG.cdnUrl + '/static/img/favicon.ico', css: [ - window.SITE_CONFIG.cdnUrl + '/static/css/app.css', + window.SITE_CONFIG.cdnUrl + '/static/css/app.css' ], js: [ // 插件, 放置业务之前加载, 以免业务需求依赖插件时, 还未加载出错 @@ -24,53 +24,53 @@ // 图标 (function () { - var _icon = document.createElement('link'); - _icon.setAttribute('rel', 'shortcut icon'); - _icon.setAttribute('type', 'image/x-icon'); - _icon.setAttribute('href', resList.icon); - document.getElementsByTagName('head')[0].appendChild(_icon); + var _icon = document.createElement('link') + _icon.setAttribute('rel', 'shortcut icon') + _icon.setAttribute('type', 'image/x-icon') + _icon.setAttribute('href', resList.icon) + document.getElementsByTagName('head')[0].appendChild(_icon) })(); // 样式 (function () { - document.getElementsByTagName('html')[0].style.opacity = 0; - var i = 0; - var _style = null; + document.getElementsByTagName('html')[0].style.opacity = 0 + var i = 0 + var _style = null var createStyles = function () { if (i >= resList.css.length) { - document.getElementsByTagName('html')[0].style.opacity = 1; - return; + document.getElementsByTagName('html')[0].style.opacity = 1 + return } - _style = document.createElement('link'); - _style.href = resList.css[i]; - _style.setAttribute('rel', 'stylesheet'); + _style = document.createElement('link') + _style.href = resList.css[i] + _style.setAttribute('rel', 'stylesheet') _style.onload = function () { - i++; - createStyles(); + i++ + createStyles() } - document.getElementsByTagName('head')[0].appendChild(_style); + document.getElementsByTagName('head')[0].appendChild(_style) } - createStyles(); - })(); + createStyles() + })() // 脚本 document.onreadystatechange = function () { if (document.readyState === 'interactive') { - var i = 0; - var _script = null; + var i = 0 + var _script = null var createScripts = function () { if (i >= resList.js.length) { - return; + return } - _script = document.createElement('script'); - _script.src = resList.js[i]; + _script = document.createElement('script') + _script.src = resList.js[i] _script.onload = function () { - i++; - createScripts(); + i++ + createScripts() } - document.getElementsByTagName('body')[0].appendChild(_script); + document.getElementsByTagName('body')[0].appendChild(_script) } - createScripts(); + createScripts() } - }; -})(); \ No newline at end of file + } +})()