|
@@ -55,25 +55,33 @@ function getMRInfo() {
|
|
|
// $('.loading').css("display","block")
|
|
|
$('.empty').css("display","none")
|
|
|
if(mrId){
|
|
|
- getMRInfo().then(res =>{
|
|
|
- if(res.data.code == '0'){
|
|
|
- msg = res.data.data ||{}
|
|
|
- window.msg = msg
|
|
|
+ // getMRInfo().then(res =>{
|
|
|
+ // if(res.data.code == '0'){
|
|
|
+ // msg = res.data.data ||{}
|
|
|
+ // window.msg = msg
|
|
|
|
|
|
+ // }
|
|
|
+ // }).catch(function (err) {
|
|
|
+ // console.log(err);
|
|
|
+ // })
|
|
|
+ Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
|
|
|
+ const data = res1.data.data&&res1.data.data[0]
|
|
|
+ msg = res2.data.data ||{}
|
|
|
+ window.msg = msg
|
|
|
+ renderPage(data)
|
|
|
+ })
|
|
|
+} else{
|
|
|
+ getConf().then(res =>{
|
|
|
+ if(res.data.code == '0'){
|
|
|
+ // const configArr = res.data.data.pushSetList || []
|
|
|
+ // getPageInfo(configArr)
|
|
|
+ const data = res.data.data&&res.data.data[0]
|
|
|
+ renderPage(data)
|
|
|
}
|
|
|
- }).catch(function (err) {
|
|
|
- console.log(err);
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-getConf().then(res =>{
|
|
|
- if(res.data.code == '0'){
|
|
|
- // const configArr = res.data.data.pushSetList || []
|
|
|
- // getPageInfo(configArr)
|
|
|
- const data = res.data.data&&res.data.data[0]
|
|
|
- renderPage(data)
|
|
|
- }
|
|
|
-})
|
|
|
+
|
|
|
|
|
|
function getConf() {
|
|
|
var msg = window.msg
|
|
@@ -181,6 +189,7 @@ function getDisclaimer() {
|
|
|
}
|
|
|
|
|
|
function renderPage(pageSet){
|
|
|
+ console.log("msg",msg)
|
|
|
renderTab(pageSet.sysSetInfo)
|
|
|
const iframeHei = $(".bodyWrap").height()
|
|
|
const tabHei = $(".tabList").height()
|