1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!--
* @Author: jiangzaicheng jiangzaicheng_jzc@163.com
* @Date: 2022-07-05 14:05:30
* @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com
* @LastEditTime: 2022-07-08 14:28:26
* @FilePath: \mcep-h5\src\views\main\MainView.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="d-page d-flex flex-column" style=" background-color: #ebedf0">
<Main v-if="showFlag"></Main>
<MyPage v-if="!showFlag"></MyPage>
<div >
<bottom-bar @onchangebtn="onchangebtn" ></bottom-bar>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { ProductData } from '@/model/entity/ProductData'
import Main from "./Main.vue";
import MyPage from "../MyView/MyPage.vue";
@Component({
name: "MainView",
components: {
Main,
MyPage
}
})
export default class MainView extends Vue {
showFlag :boolean = true;
onchangebtn(value:any){
//子组件传来的值
this.showFlag=value
}
}
</script>
<style scoped lang="scss">
.roll {
background: #ecf9ff;
}
.titleName {
float: inline-end;
height: 34px;
margin: 7px auto 0px 8px;
border-radius: 12px;
color: #a2d2f4;
}
.prudect {
line-height: 100%;
margin-top: 40px;
margin-bottom: 10px;
}
.boottom{
}
</style>