更改化妆品

master
李劲龙 2 years ago
parent 71961494e9
commit 5b6db85077

@ -18,65 +18,32 @@
<div class="drugInfo-bottom"> <div class="drugInfo-bottom">
<div class="content-tabs"> <div class="content-tabs">
<div class="tabs"> <div class="tabs">
<div <div class="tab" @click="actionTab(1)" :class="action == 1 ? 'actionTab' : ''">
class="tab" <img :class="action !== 1 ? 'actionImage' : ''" :src="action == 1
@click="actionTab(1)" ? `${require('@/assets/images/home/icon1-1@2x.png')}`
:class="action == 1 ? 'actionTab' : ''" : `${require('@/assets/images/home/icon1-2@2x.png')}`
> " alt="" />
<img
:class="action !== 1 ? 'actionImage' : ''"
:src="
action == 1
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
"
alt=""
/>
<span>基本信息</span> <span>基本信息</span>
</div> </div>
<div <div class="tab" @click="actionTab(2)" :class="action == 2 ? 'actionTab' : ''">
class="tab" <img :src="action == 2
@click="actionTab(2)" ? `${require('@/assets/images/home/icon2-1@2x.png')}`
:class="action == 2 ? 'actionTab' : ''" : `${require('@/assets/images/home/icon2-2@2x.png')}`
> " alt="" />
<img
:src="
action == 2
? `${require('@/assets/images/home/icon2-1@2x.png')}`
: `${require('@/assets/images/home/icon2-2@2x.png')}`
"
alt=""
/>
<span>品种抽样</span> <span>品种抽样</span>
</div> </div>
<div <div class="tab" @click="actionTab(3)" :class="action == 3 ? 'actionTab' : ''">
class="tab" <img :src="action == 3
@click="actionTab(3)" ? `${require('@/assets/images/home/icon5-1@2x.png')}`
:class="action == 3 ? 'actionTab' : ''" : `${require('@/assets/images/home/icon5-2@2x.png')}`
> " alt="" />
<img
:src="
action == 3
? `${require('@/assets/images/home/icon5-1@2x.png')}`
: `${require('@/assets/images/home/icon5-2@2x.png')}`
"
alt=""
/>
<span>不良反应</span> <span>不良反应</span>
</div> </div>
<div <div class="tab" @click="actionTab(4)" :class="action == 4 ? 'actionTab' : ''" v-show="urlA.type != 1">
class="tab" <img :src="action == 4
@click="actionTab(4)" ? `${require('@/assets/images/home/icon1-1@2x.png')}`
:class="action == 4 ? 'actionTab' : ''" : `${require('@/assets/images/home/icon1-2@2x.png')}`
> " alt="" />
<img
:src="
action == 4
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
"
alt=""
/>
<span>召回信息</span> <span>召回信息</span>
</div> </div>
</div> </div>
@ -114,20 +81,19 @@
</div> --> </div> -->
<div class="drug-exit" :style="drugExitStyle"> <div class="drug-exit" :style="drugExitStyle">
<!-- <router-view></router-view> --> <!-- <router-view></router-view> -->
<component <component :is="currentComponent" :transinformation="transinformation" @getCPName="getCPName"></component>
:is="currentComponent"
:transinformation="transinformation"
@getCPName="getCPName"
></component>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapState } from "vuex";
import basicInfo from "./drugBasicInfo/drugBasicInfo"; import basicInfo from "./drugBasicInfo/drugBasicInfo";
import PZchouyang from "./PZchouyang/PZchouyang"; import PZchouyang from "./PZchouyang/PZchouyang";
import adverseReaction from "./adverseReaction/adverseReaction"; import adverseReaction from "./adverseReaction/adverseReaction";
import zhaohui from "./zhaohui/PZchouyang.vue"; import zhaohui from "./zhaohui/PZchouyang.vue";
export default { export default {
data() { data() {
return { return {
@ -257,6 +223,12 @@ export default {
}; };
} }
}, },
// // ...
...mapState({
urlA: (state) => state.app.urlA,
}),
}, },
mounted() { mounted() {
// params // params
@ -288,20 +260,24 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/assets/styles/utils.scss"; @import "@/assets/styles/utils.scss";
.productinformation { .productinformation {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.9);
box-shadow: 0px 0px vw(12) 0px rgba(194, 212, 226, 0.64); box-shadow: 0px 0px vw(12) 0px rgba(194, 212, 226, 0.64);
border-radius: vw(10) vw(10) 0 0; border-radius: vw(10) vw(10) 0 0;
.drugInfo-top { .drugInfo-top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: vh(15) vw(25); padding: vh(15) vw(25);
border-bottom: vw(1) solid #edeef0; border-bottom: vw(1) solid #edeef0;
.close { .close {
cursor: pointer; cursor: pointer;
} }
.top-left { .top-left {
display: flex; display: flex;
align-items: center; align-items: center;
@ -322,6 +298,7 @@ export default {
color: #292f38; color: #292f38;
} }
} }
.drug-tag { .drug-tag {
width: vw(200); width: vw(200);
display: flex; display: flex;
@ -341,6 +318,7 @@ export default {
&:nth-of-type(2) { &:nth-of-type(2) {
background-color: #eabb48; background-color: #eabb48;
} }
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
@ -348,14 +326,18 @@ export default {
} }
} }
} }
.drugInfo-bottom { .drugInfo-bottom {
padding: 0 vw(25); padding: 0 vw(25);
.content-tabs { .content-tabs {
margin-top: vh(25); margin-top: vh(25);
.tabs { .tabs {
width: 100%; width: 100%;
display: flex; display: flex;
border-bottom: vw(1) solid #dbe0e8; border-bottom: vw(1) solid #dbe0e8;
.tab { .tab {
border: vw(1) solid #dbe0e8; border: vw(1) solid #dbe0e8;
padding: vh(7) vw(22); padding: vh(7) vw(22);
@ -389,6 +371,7 @@ export default {
color: #2f3742; color: #2f3742;
} }
} }
.actionTab { .actionTab {
background-color: #1e80eb; background-color: #1e80eb;
@ -406,6 +389,6 @@ export default {
} }
} }
} }
::v-deep.pzChouyang .tables .el-table td {
} ::v-deep.pzChouyang .tables .el-table td {}
</style> </style>

Loading…
Cancel
Save