提交 0c2b9b58 authored 作者: lihuihui's avatar lihuihui

判断是不是从别的系统进来是的话换风格

上级 fa63feb2
<template>
<div class="main">
<commonheader :title="title" @back="handleBack" :callBack="true" :center="false" />
<div class="main_content">
<div :class="$route.query.type != undefined ? 'main_content color-active' : 'main_content'">
<!-- 头部tab -->
<van-tabs v-model="active" animated sticky>
<van-tab v-for="(it, index) in orderTab" :key="index" :title="it.title">
......@@ -76,6 +76,10 @@ export default {
if (this.isPc()) {
document.getElementsByClassName('van-sticky')[0].style.width = '400px'
}
const type = this.$route.query.type
if (type !== undefined) {
this.active = parseInt(type) - 1
}
},
methods: {
......@@ -93,7 +97,11 @@ export default {
return flagPc
},
handleBack() {
if (this.$route.query.type !== undefined) {
this.$router.go(-1)
} else {
this.$router.push('/')
}
},
getTotalPrice(item) {
const splitPrice = item.amount.toFixed(2).split('.')
......@@ -154,6 +162,27 @@ export default {
.main_content {
height: 100%;
margin-top: 0.9rem;
&.color-active {
::v-deep {
.van-tabs__line {
background-color: #1a2a6c !important;
}
.pay_btn {
border-radius: 0.31rem;
border: 1px solid #1a2a6c !important;
cursor: pointer;
color: #1a2a6c !important;
font-size: 0.28rem;
}
}
.orderList_status {
font-size: 0.26rem;
font-weight: 400;
line-height: 0.28rem;
color: #1a2a6c !important;
}
}
.main_content_ticket {
padding-right: 0.3rem;
// float: right;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论