“index_page完成了”

This commit is contained in:
winter_born
2026-04-14 08:59:12 +08:00
parent fdda9425a7
commit cd75d35969

View File

@@ -1,12 +1,14 @@
<template> <template>
<view> <view>
<text class="title">楷模列表</text> <text class="title">楷模列表</text>
<view class="page"> <view class="page" v-for="i in result">
<view></view>
<view> <view>
<p>中宣部授予肖文儒时代楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模</p> <image :src="`http://124.93.196.45:10091/Neusoft/times-model${i[2]}`"></image>
<p>模特姓名肖文儒</p> </view>
<p>38年来国家安全生产应急救援中心副主任兼工程师肖文儒参与过多次重大建设工程重大建设工程重大建设工程重大建设工程重大建设工程重大建设工程重大建设工程</p> <view>
<p>中宣部授予{{i[0]}}时代楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模楷模</p>
<p>模特姓名{{i[0]}}</p>
<p>{{i[1]}}</p>
</view> </view>
</view> </view>
</view> </view>
@@ -16,15 +18,16 @@
export default { export default {
data() { data() {
return { return {
result:[] result: []
} }
}, },
async onLoad() { async onLoad() {
for(let i=1;i<4;i++){ for (let i = 1; i < 4; i++) {
this.result.push(this.requests("down", `appNotice/app-o/loopMapDetail?id=${i}`)) this.result.push(this.requests("down", `appNotice/app-o/loopMapDetail?id=${i}`))
} }
this.result = await Promise.all(this.result); this.result = await Promise.all(this.result);
this.result=this.result.map(x=>[x.data.modelName,x.data.content,x.data.picPath]) this.result = this.result.map(x => [x.data.modelName, x.data.content, x.data.picPath])
console.log(this.result.splice(this.result.length))
console.log(this.result); console.log(this.result);
}, },
methods: { methods: {
@@ -60,9 +63,6 @@
</script> </script>
<style> <style>
template>view{
background-color: black;
}
.title { .title {
display: block; display: block;
border-left: 5px firebrick solid; border-left: 5px firebrick solid;
@@ -84,12 +84,16 @@
width: 25%; width: 25%;
height: 75%; height: 75%;
margin: 3%; margin: 3%;
background-color: red;
} }
.page view:first-of-type image {
width: 100%;
height: 100%;
}
.page view:nth-child(2) { .page view:nth-child(2) {
width: 75%; width: 65%;
} }
.page view:nth-child(2) p:first-of-type { .page view:nth-child(2) p:first-of-type {
@@ -112,6 +116,5 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-word;
} }
</style> </style>