写了一部分student.vue

This commit is contained in:
2026-04-09 23:33:31 +08:00
parent 45a82652d4
commit 8fbcafb8be
5 changed files with 33 additions and 164 deletions

View File

@@ -6,23 +6,12 @@
"navigationBarTitleText": "uni-app" "navigationBarTitleText": "uni-app"
} }
} }
,{ ,
{
"path": "pages/index/student", "path": "pages/index/student",
"style" : "style": {
{ "navigationBarTitleText": ""
"navigationBarTitleText": "",
"enablePullDownRefresh": false
} }
}
,{
"path" : "pages/index/text/text",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
} }
], ],
"globalStyle": { "globalStyle": {

View File

@@ -1,63 +0,0 @@
@font-face {
font-family: MuiiconSpread;
font-weight: normal;
font-style: normal;
src: url('../fonts/mui-icons-extra.ttf') format('truetype'); /* iOS 4.1- */
}
.mui-icon-extra
{
font-family: MuiiconSpread;
font-size: 24px;
font-weight: normal;
font-style: normal;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
}
.mui-icon-extra-cold:before { content: "\e500"; }
.mui-icon-extra-share:before { content: "\e200"; }
.mui-icon-extra-class:before { content: "\e118"; }
.mui-icon-extra-custom:before { content: "\e117"; }
.mui-icon-extra-new:before { content: "\e103"; }
.mui-icon-extra-card:before { content: "\e104"; }
.mui-icon-extra-grech:before { content: "\e105"; }
.mui-icon-extra-trend:before { content: "\e106"; }
.mui-icon-extra-filter:before { content: "\e207"; }
.mui-icon-extra-holiday:before { content: "\e300"; }
.mui-icon-extra-cart:before { content: "\e107"; }
.mui-icon-extra-heart:before { content: "\e180"; }
.mui-icon-extra-computer:before { content: "\e600"; }
.mui-icon-extra-express:before { content: "\e108"; }
.mui-icon-extra-gift:before { content: "\e109"; }
.mui-icon-extra-gold:before { content: "\e102"; }
.mui-icon-extra-lamp:before { content: "\e601"; }
.mui-icon-extra-rank:before { content: "\e110"; }
.mui-icon-extra-notice:before { content: "\e111"; }
.mui-icon-extra-sweep:before { content: "\e202"; }
.mui-icon-extra-arrowleftcricle:before { content: "\e401"; }
.mui-icon-extra-dictionary:before { content: "\e602"; }
.mui-icon-extra-heart-filled:before { content: "\e119"; }
.mui-icon-extra-xiaoshuo:before { content: "\e607"; }
.mui-icon-extra-top:before { content: "\e403"; }
.mui-icon-extra-people:before { content: "\e203"; }
.mui-icon-extra-topic:before { content: "\e603"; }
.mui-icon-extra-hotel:before { content: "\e301"; }
.mui-icon-extra-like:before { content: "\e206"; }
.mui-icon-extra-regist:before { content: "\e201"; }
.mui-icon-extra-order:before { content: "\e113"; }
.mui-icon-extra-alipay:before { content: "\e114"; }
.mui-icon-extra-find:before { content: "\e400"; }
.mui-icon-extra-arrowrightcricle:before { content: "\e402"; }
.mui-icon-extra-calendar:before { content: "\e115"; }
.mui-icon-extra-prech:before { content: "\e116"; }
.mui-icon-extra-cate:before { content: "\e501"; }
.mui-icon-extra-comment:before { content: "\e209"; }
.mui-icon-extra-at:before { content: "\e208"; }
.mui-icon-extra-addpeople:before { content: "\e204"; }
.mui-icon-extra-peoples:before { content: "\e205"; }
.mui-icon-extra-calc:before { content: "\e101"; }
.mui-icon-extra-classroom:before { content: "\e604"; }
.mui-icon-extra-phone:before { content: "\e404"; }
.mui-icon-extra-university:before { content: "\e605"; }
.mui-icon-extra-outline:before { content: "\e606"; }

View File

@@ -22,32 +22,8 @@
</view> </view>
</view> </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 class="card" v-for="imagepath of imagepaths" :image_path="imagepath.path" :value="imagepath.value">
</card> </card>
<!-- </view> -->
</view> </view>
<view> <view>
<text class="title">楷模列表</text> <text class="title">楷模列表</text>

View File

@@ -1,45 +1,43 @@
<template> <template>
<view> <view>
<view>学习笔记</view> <view class="title">
<view> 学习心得
<view>学习感言</view> </view>
<view>学习历史</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>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
components: {
},
data() { 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 { return {
current: 0,
value: ["学习感言", "学习历史"],
} }
}, },
methods: { methods: {
onCheck(e) {
if (this.current != e.currentIndex) {
this.current = e.currentIndex
}
}
} }
} }
</script> </script>
<style > <style >
.title{
font-size: 1.3rem;
font-weight: bold;
text-align: center;
}
</style> </style>

View File

@@ -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>