Commit d9ef03b3 authored by zhengke's avatar zhengke

修改

parent d29307f4
......@@ -2,6 +2,11 @@
width: 200px!important;
}
.w100 {
width: 100px!important;
}
.el-input {
display: inline-block;
}
......
......@@ -2,190 +2,214 @@
<div class="Home">
<div class="banner" ref="banner">
<ul ref="scrollUl">
<li class="liItem" >
<li class="liItem" title="酒店列表" @click="goUrl('HotelList')">
<img src="../assets/img/b1.png" alt="">
<div>
<p class="f22"></p>
<p style="margin-top:10px">酒店管理</p>
<p class="f22"></p>
<p style="margin-top:10px">ホテル一覧</p>
</div>
</li>
<li class="liItem" >
<li class="liItem" title="酒店订单" @click="goUrl('HotelOrder')">
<img src="../assets/img/b2.png" alt="">
<div>
<p class="f22"></p>
<p style="margin-top:10px">订单管理</p>
<p class="f22"></p>
<p style="margin-top:10px">ホテル注文</p>
</div>
</li>
</ul>
</ul>
</div>
</div>
</template>
<script>
import moment from 'moment'
export default {
name: 'Home',
data () {
return {
stepTask:true,
}
},
created(){
},
mounted(){
this.width=this.$refs.banner.clientWidth;
let num= this.width /340;
if(num>7){
this.stepTask=false;
}
},
methods:{
},
}
import moment from 'moment'
export default {
name: 'Home',
data() {
return {
}
},
created() {},
mounted() {
},
methods: {
goUrl(path) {
this.$router.push({
path: path
})
},
},
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.Zyprogress >>> svg path:first-child{
stroke: rgb(190, 239, 240)!important;
}
.Xzprogress >>> svg path:first-child{
stroke: rgb(255, 228, 213)!important;
}
.homeContent .assetsgk .Circle{
display: inline-block;
width:14px;
height:14px;
border-radius:50%;
margin-left:25px;
position: relative;
top:4px;
}
.homeContent .Active{
color:#089bab;
}
.navDiv .active{
width:35px!important;
}
.navDiv span{
width:15px;
display: inline-block;
margin:0 2px;
height: 4px;
background: #111111;
border-radius: 4px;
cursor: pointer;
}
.navDiv{
position: absolute;
bottom: 5px;
width:100%;
text-align: center;
}
.banner>ul{
width: 2141px;
position: relative;
}
.progressDiv >>> svg path:first-child{
stroke: #EBEBEB;
stroke-width: 6;
}
.chartTitle .el-select{
width:102px;
height:24px;
line-height:24px;
background:rgba(17,17,17,1);
border-radius:12px;
margin-left:30px;
position: relative;
}
.chartTitle{
padding: 20px 30px 0 30px;
}
.chartTitle .circle{
display: inline-block;
width:14px;
height:14px;
background:rgba(0,210,214,1);
border-radius:50%;
margin-right: 10px;
font-size: 14px;
}
.homeContent .zcState .ziItem .sl{
color:#A9B5C7;
}
.homeContent .zcState .ziItem{
font-size:12px;
color: #111111;
display: flex;
align-items: center;
width:100%;
padding: 25px;
box-sizing: border-box;
}
.homeContent .zcState{
margin-top: 30px;
width: 100%;
background:rgba(255,255,255,1);
border-radius:20px;
}
.homeContent .left{
width: 316px;
/* position: absolute; */
left: 30px;
top: 30px;
}
.homeContent .right{
width: calc(100% - 346px);
/* padding-left: 346px; */
box-sizing: border-box;
margin-left:26px;
}
.homeContent .right .firstDiv{
background: #fff;
border-radius: 20px;
}
.homeContent>div{
float: left;
}
.homeContent{
width: 100%;
padding: 30px;
box-sizing: border-box;
position: relative;
}
.banner{
padding-top: 20px;
position: relative;
overflow: hidden;
background: #fff;
}
.banner .liItem:first-child{
margin-left: 0;
}
.banner .liItem{
position: relative;
width: 340px;
height: 210px;
display: inline-block;
margin-left: -15px;
cursor: pointer;
}
.banner .liItem img{
width: 100%;
height: 100%;
position: absolute;
}
.banner .liItem div{
position: absolute;
color:#fff;
font-weight: 700;
top: 77px;
left: 54px;
font-family: 'muil';
}
.Zyprogress>>>svg path:first-child {
stroke: rgb(190, 239, 240) !important;
}
.Xzprogress>>>svg path:first-child {
stroke: rgb(255, 228, 213) !important;
}
.homeContent .assetsgk .Circle {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 50%;
margin-left: 25px;
position: relative;
top: 4px;
}
.homeContent .Active {
color: #089bab;
}
.navDiv .active {
width: 35px !important;
}
.navDiv span {
width: 15px;
display: inline-block;
margin: 0 2px;
height: 4px;
background: #111111;
border-radius: 4px;
cursor: pointer;
}
.navDiv {
position: absolute;
bottom: 5px;
width: 100%;
text-align: center;
}
.banner>ul {
width: 2141px;
position: relative;
}
.progressDiv>>>svg path:first-child {
stroke: #EBEBEB;
stroke-width: 6;
}
.chartTitle .el-select {
width: 102px;
height: 24px;
line-height: 24px;
background: rgba(17, 17, 17, 1);
border-radius: 12px;
margin-left: 30px;
position: relative;
}
.chartTitle {
padding: 20px 30px 0 30px;
}
.chartTitle .circle {
display: inline-block;
width: 14px;
height: 14px;
background: rgba(0, 210, 214, 1);
border-radius: 50%;
margin-right: 10px;
font-size: 14px;
}
.homeContent .zcState .ziItem .sl {
color: #A9B5C7;
}
.homeContent .zcState .ziItem {
font-size: 12px;
color: #111111;
display: flex;
align-items: center;
width: 100%;
padding: 25px;
box-sizing: border-box;
}
.homeContent .zcState {
margin-top: 30px;
width: 100%;
background: rgba(255, 255, 255, 1);
border-radius: 20px;
}
.homeContent .left {
width: 316px;
/* position: absolute; */
left: 30px;
top: 30px;
}
.homeContent .right {
width: calc(100% - 346px);
/* padding-left: 346px; */
box-sizing: border-box;
margin-left: 26px;
}
.homeContent .right .firstDiv {
background: #fff;
border-radius: 20px;
}
.homeContent>div {
float: left;
}
.homeContent {
width: 100%;
padding: 30px;
box-sizing: border-box;
position: relative;
}
.banner {
padding-top: 20px;
position: relative;
overflow: hidden;
background: #fff;
}
.banner .liItem:first-child {
margin-left: 0;
}
.banner .liItem {
position: relative;
width: 340px;
height: 210px;
display: inline-block;
margin-left: -15px;
cursor: pointer;
}
.banner .liItem img {
width: 100%;
height: 100%;
position: absolute;
}
.banner .liItem div {
position: absolute;
color: #fff;
font-weight: 700;
top: 77px;
left: 54px;
font-family: 'muil';
}
</style>
......@@ -118,12 +118,13 @@
this.getList();
},
getList() {
this.loading=true;
this.apipost("scm_get_GetSCMHotelPageListService", this.msg,
res => {
this.loading=false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
console.log("this.dataList", this.dataList)
} else {
this.Error(res.data.message);
}
......
<template>
<div class="Autologin">
<div class="gifContent">
<img src="../../assets/img/load.gif" alt="">
<img src="../../assets/img/load.gif" alt="">
</div>
</div>
</template>
<script>
export default {
name: 'login',
data(){
return{
export default {
name: 'login',
data() {
return {
}
},
created(){
let href = window.location.href;
let param = href.split('?')[1].split("&") ;
if(param){
let obj={};
obj.token=param[0].split('=')[1];
obj.SecretKey=param[1].split('=')[1];
localStorage.zcuserInfo = JSON.stringify(obj);
this.getUserInfo();
},
created() {
let href = window.location.href;
let param = href.split('?')[1].split("&");
if (param) {
let obj = {};
obj.token = param[0].split('=')[1];
obj.SecretKey = param[1].split('=')[1];
localStorage.scmAccount = JSON.stringify(obj);
this.getUserInfo();
}
},
mounted(){
},
methods:{
getUserInfo(){
this.apiJavaPost("/api/user/GetUserLoginMenu",{},
res => {
this.btnLoading=false;
if (res.data.resultCode === 1) {
let user=res.data.data;
var userJson = JSON.stringify(user);
localStorage.zcuserInfo = userJson;
this.$router.push({path: 'Home'})
} else {
this.Error(res.data.message);
this.$router.push({path: 'login'})
}
},
null
);
},
mounted() {},
methods: {
getUserInfo() {
},
},
}
</script>
},
}
</script>
<style>
.Autologin .gifContent{
.Autologin .gifContent {
width: 100%;
height: 100%;
position: fixed;
......@@ -61,5 +44,6 @@ export default {
display: flex;
align-items: center;
justify-content: center;
}
}
</style>
......@@ -37,15 +37,7 @@ export default {
}
},
created(){
// let href = window.location.href;
// let param = href.split('?')[1].split("&") ;
// if(param){
// let obj={};
// obj.token=param[0].split('=')[1];
// obj.SecretKey=param[1].split('=')[1];
// localStorage.zcuserInfo = JSON.stringify(obj);
// this.getUserInfo();
// }
},
mounted(){
this.initData();
......@@ -58,7 +50,7 @@ export default {
if (res.data.resultCode === 1) {
let user=res.data.data;
var userJson = JSON.stringify(user);
localStorage.zcuserInfo = userJson;
localStorage.scmAccount = userJson;
this.$router.push({path: 'Home'})
} else {
this.Error(res.data.message);
......@@ -93,7 +85,7 @@ export default {
if (res.data.resultCode === 1) {
let user=res.data.data;
var userJson = JSON.stringify(user);
localStorage.zcuserInfo = userJson;
localStorage.scmAccount = userJson;
this.$router.push({path: 'Home'})
} else {
this.Error(res.data.message);
......@@ -103,7 +95,7 @@ export default {
);
},
},
}
</script>
......
This diff is collapsed.
This diff is collapsed.
......@@ -12,7 +12,7 @@ export default {
//域名管理对象
Vue.prototype.domainManager = function () {
var domainUrl = "http://testapi.oytour.com"; //主域名
var domainUrl = "http://127.0.0.1"; //主域名
let locationName = window.location.hostname;
let javaUrldo = "";
javaUrldo = locationName.indexOf('zcyx') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://property.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.17:8087";
......@@ -21,7 +21,7 @@ export default {
//domainUrl = "http://127.0.0.1"
domainUrl = "http://testapi.oytour.com"
} else if (window.location.host.indexOf('oytour.com') != -1)
domainUrl = "http://property.oytour.com"
domainUrl = "http://reborn.oytour.com"
}
var obj = {
//主地址
......@@ -160,7 +160,7 @@ export default {
},
Vue.prototype.getLocalStorage = function () {
var localStorageData = window.localStorage["zcuserInfo"];
var localStorageData = window.localStorage["scmAccount"];
if (localStorageData !== undefined && localStorageData != 'undefined') {
return JSON.parse(localStorageData);
} else {
......@@ -234,6 +234,5 @@ export default {
value = value.replace(this.$commonUtils.Regex.isInteger, "");
item[filed] = value;
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment