zyz 7 yıl önce
ebeveyn
işleme
086c41edc9

+ 4 - 2
app/home/index.html

@ -12,7 +12,7 @@
        <link rel="shortcut icon" href="../../favicon.ico"/>
        <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/animate.min.css"/>
        <!--<link rel="stylesheet" type="text/css" href="../../css/animate.min.css"/>-->
        <link rel="stylesheet" type="text/css" href="../../plugins/artDialog/6.0.5/css/ui-dialog.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/style.min.css"/>
        <link rel="stylesheet" type="text/css" href="index.css"/>
@ -28,7 +28,9 @@
            <div id="page-wrapper" class="gray-bg dashbard-1">
                <content-tabs></content-tabs>
                <div class="row J_mainContent plr20 pt20" id="content-main">
                    <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="" frameborder="0" data-id="" seamless></iframe>
                    <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="" frameborder="0" data-id="" seamless>
                    	
                    </iframe>
                </div>
            </div>
        </div>

+ 0 - 6
app/record/js/record.js

@ -1,6 +0,0 @@
new Vue({
  el: '#app',
  data: {
    
  }
})

+ 4 - 2
app/record/record.html

@ -7,8 +7,10 @@
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../record/css/record.css" />
	</head>
	<body id="app">
		<inner-tabs :tabs="innerTabs" :activeidx="activeidx"></inner-tabs>
	<body>
		<div id="app">
			<inner-tabs :tabs="innerTabs" :activeidx="activeidx"></inner-tabs>
		</div>
		
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script src="../../component/record/inner-tabs.js"></script>

+ 0 - 1
component/record/inner-tabs.js

@ -27,7 +27,6 @@ Vue.component('inner-tabs', {
		}
	},
	mounted: function() {
		
	},
	watch: {
		activeidx: function(idx) {

+ 27 - 0
component/record/record-tabs.js

@ -1,6 +1,30 @@
function GetRequest() {  
   var url = location.search; //获取url中"?"符后的字串
   var theRequest = new Object();
   if (url.indexOf("?") != -1) {
      var str = url.substr(1);
      strs = str.split("&");
      for(var i = 0; i < strs.length; i ++) {
         theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
      }
   }
   return theRequest;
}
var query = GetRequest();
function reseverLinks(str) {
	var link = top.menuLinkMap[str];
	return {
		href: link.href+"?code="+query['code'],
		title: str
	}
}
new Vue({
  el: '#app',
  data: {
  	isAgent: false,
    innerTabs: [{title:'咨询',href:'record.html?code=1'},
    			{title:'随访',href:'record.html?code=2'},
    			{title:'待预约',href:'record.html?code=3'},
@ -12,6 +36,9 @@ new Vue({
  },
  mounted: function() {
  	var vm = this
  	if(vm.isAgent) { // 如果是代理,“供货授权”信息卡
  		vm.innerTabs.push(reseverLinks("供货授权"))
  	}
  	vm.activeidx = query.tabIdex || "0"
  }
})