123
This commit is contained in:
41
components/part.vue
Normal file
41
components/part.vue
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<view class="part">
|
||||||
|
<p>{{part_title}}</p>
|
||||||
|
<p>{{part_content}}</p>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
part_title: {},
|
||||||
|
part_content: {}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style >
|
||||||
|
.part {
|
||||||
|
height: 12vh;
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #007AFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .part p:first-child{
|
||||||
|
font-size: 1.2rem;
|
||||||
|
background-color: green;
|
||||||
|
} */
|
||||||
|
/* .part p:nth-child(2){
|
||||||
|
background-color: green;
|
||||||
|
} */
|
||||||
|
</style>
|
||||||
2
main.js
2
main.js
@@ -1,6 +1,6 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import Card from "componets/card.vue"
|
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,15 @@
|
|||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "components/part",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import card from "../../componets/card.vue"
|
import card from "../../components/card.vue"
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
card
|
card
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="begin">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
学习心得
|
学习心得
|
||||||
</view>
|
</view>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
activeColor="red"></uni-segmented-control>
|
activeColor="red"></uni-segmented-control>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view v-show="current === 0">
|
<view v-show="current === 0">
|
||||||
|
<part class="student_part" :part_title="part_title" :part_content="part_content"></part>
|
||||||
</view>
|
</view>
|
||||||
<view v-show="current === 1">
|
<view v-show="current === 1">
|
||||||
选项卡2的内容
|
选项卡2的内容
|
||||||
@@ -17,11 +17,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import part from "../../components/part.vue"
|
||||||
export default {
|
export default {
|
||||||
|
components:{
|
||||||
|
part
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
current: 0,
|
current: 0,
|
||||||
value: ["学习感言", "学习历史"],
|
value: ["学习感言", "学习历史"],
|
||||||
|
part_title:"山西省委常委交流集中学习心得和体会,坚...",
|
||||||
|
part_content:"8月18日,山西省委常委就集体学习《论群众路线》,《厉行节约、反对浪费》两本重要论述摘编,相互交流学习心..."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -35,9 +41,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style >
|
<style >
|
||||||
|
.begin{
|
||||||
|
background-color: rgb(244,244,244);
|
||||||
|
}
|
||||||
.title{
|
.title{
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user