写了一部分student.vue
This commit is contained in:
@@ -22,32 +22,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<!-- <view class="row_1">
|
||||
<view class="uni-section">
|
||||
<view></view>
|
||||
<p @click="toggleColor()" :style="{color:textColor}">楷模列表</p>
|
||||
</view>
|
||||
<view class="section">
|
||||
<view></view>
|
||||
<p>英雄故事</p>
|
||||
</view>
|
||||
<view class="section">
|
||||
<view></view>
|
||||
<p>英雄故事</p>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row_2">
|
||||
<view class="section">
|
||||
<view></view>
|
||||
<p>英雄故事</p>
|
||||
</view>
|
||||
<view class="section">
|
||||
<view></view>
|
||||
<p>英雄故事</p>
|
||||
</view> -->
|
||||
<card class="card" v-for="imagepath of imagepaths" :image_path="imagepath.path" :value="imagepath.value">
|
||||
</card>
|
||||
<!-- </view> -->
|
||||
</view>
|
||||
<view>
|
||||
<text class="title">楷模列表</text>
|
||||
|
||||
@@ -1,45 +1,43 @@
|
||||
<template>
|
||||
<view>
|
||||
<view>学习笔记</view>
|
||||
<view>
|
||||
<view>学习感言</view>
|
||||
<view>学习历史</view>
|
||||
<view class="title">
|
||||
学习心得
|
||||
</view>
|
||||
<uni-segmented-control :current="current" :values="value" style-type="text" @clickItem="onCheck"
|
||||
activeColor="red"></uni-segmented-control>
|
||||
<view class="content">
|
||||
<view v-show="current === 0">
|
||||
|
||||
</view>
|
||||
<view v-show="current === 1">
|
||||
选项卡2的内容
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
|
||||
},
|
||||
data() {
|
||||
async function get() {
|
||||
const form = new FormData();
|
||||
form.append("content", "neirong")
|
||||
form.append("picPath","img")
|
||||
form.append("title","biaoti")
|
||||
const text = await fetch("http://124.93.196.45:10091/Neusoft/times-model/appStudy/app/createStatement", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Authorization": "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImU2YTJjMGY1LWEwMWUtNDMzNi04ZTMzLTdlNWNhODM1MjRhZCJ9.B8-7Lc5z589K7pAa-W-ZG9aFgFEHI4HC_xT3tKoZpyzijBksZ1dQNCaMtvjOzDMDkZYbFHk-5oyQ0CFZGsuK8w"
|
||||
},
|
||||
body: form
|
||||
|
||||
})
|
||||
console.log(await text.json())
|
||||
}
|
||||
get()
|
||||
return {
|
||||
|
||||
current: 0,
|
||||
value: ["学习感言", "学习历史"],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
onCheck(e) {
|
||||
if (this.current != e.currentIndex) {
|
||||
this.current = e.currentIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<style >
|
||||
.title{
|
||||
font-size: 1.3rem;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@@ -1,31 +0,0 @@
|
||||
<template>
|
||||
<view>
|
||||
<uni-segmented-control :current="current" :values="" @clickItem=""></uni-segmented-control>
|
||||
<view class="content">
|
||||
<view v-show="current === 0">
|
||||
选项卡1的内容
|
||||
</view>
|
||||
<view v-show="current === 1">
|
||||
选项卡2的内容
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current:0,
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user