index.vue
4.22 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<template>
<div>
<div class="box" style="padding: 0 10%">
<el-row class="contest-title">
<el-col>
<h3>{{ languageLibrary[language].a }}</h3>
</el-col>
</el-row>
<el-row>
<div class="content" v-html="itemData.content" />
</el-row>
<el-row class="contest-title" style="text-align: center">
<el-col :span="24"><h3>{{ languageLibrary[language].b }}</h3></el-col>
<el-col :span="24">
<el-form :model="form">
<el-row style="width: 100%;">
<el-col :span="12" style="display: flex; flex-direction: column">
<el-form-item label="" prop="paymentName">
<el-input
v-model.trim="form.paymentName" :placeholder="languageLibrary[language].c" clearable style="width: 95%;margin-bottom: 20px;height: 50px"
/>
</el-form-item>
<el-form-item label="" prop="paymentName">
<el-input
v-model.trim="form.paymentName" :placeholder="languageLibrary[language].d" clearable style="width: 95%;height: 50px"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="" prop="payDeptName" style="height: 100%">
<el-input
v-model.trim="form.payDeptName" type="textarea" :placeholder="languageLibrary[language].e" clearable style="width: 100%;height: 100%"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-button class="submit-btn">{{ languageLibrary[language].f }}</el-button>
</el-col>
</el-row>
</div>
</div>
</template>
<script setup>
import { ArrowRight, Search } from '@element-plus/icons-vue'
import { onMounted, ref } from 'vue'
import { getNewsListById } from '@/apiPc/webSite'
import { useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core/index";
import * as match from "@/apiPc/match";
const language = useStorage('language', 1)
const languageLibrary = ref([{
a:'关于我们',
b:'联系我们',
c:'联系人',
d:'邮箱',
e:'留言',
f:'提交',
},{
a:'About US',
b:'Contact Us',
c:'Contact person',
d:'Email',
e:'Message',
f:'Submit',
},{
a:'회사 소개',
b:'문의하기',
c:'담당자',
d:'이메일',
e:'메시지',
f:'Submit',
},{
a:'会社概要',
b:'お問い合わせ',
c:'担当者',
d:'メールアドレス',
e:'メッセージ',
f:'Submit',
},{
a:'Giới thiệu',
b:'Liên hệ',
c:'Người liên hệ',
d:'Email',
e:'Tin nhắn',
f:'Submit',
}])
const router = useRouter()
const form = ref({
paymentName:'',
payDeptName:'',
})
const noteId = ref()
const itemData = ref({})
onMounted(() => {
getMain()
})
const getMain = () => {
match.getNoteList({
sortId:7000
}).then(res => {
if (res.code === 200) {
noteId.value = res.rows[0].noteId
getList(noteId.value)
}
})
}
const getList = (id) => {
match.getNoteDetail(id).then(res => {
if (res.code === 200) {
itemData.value = res.data
}
})
}
const goDetail = (id) => {
router.push({
path: `/photo/detail/${id}`
})
}
</script>
<style lang="scss" scoped>
.content {
text-align: justify;
color: #fff;
background: #1f2644;
width: 100%;
}
.photo-space {
padding: 10px;
}
.photo-img-group {
padding: 20px;
width: 100%;
position: relative;
}
.photo-img {
width: 100%;
aspect-ratio: 2/1;
cursor: pointer;
}
.contest-title {
h3 {
color: #fff;
font-size: 32px;
}
:deep(.el-form-item--default) {
margin: 0;
}
:deep(.el-textarea__inner) {
height: 100%;
background: #1f2644;
border-color: #838CB3;
box-shadow: 0 0 0 1px #838CB3 inset;
}
:deep(.el-input__wrapper) {
background: #1f2644;
box-shadow: 0 0 0 1px #838CB3 inset;
}
.submit-btn {
margin-top: 20px;
padding: 18px 80px;
color: #143E6A;
background: linear-gradient(90deg, #F0E1A5, #DEC172);
font-weight: bold;
}
}
@media (max-width: 500px) {
.box{width: 100%}
.forPc{display: none}
:deep(.el-tabs__nav-scroll){overflow: auto;}
:deep(.el-card__body){padding: 10px;}
}
</style>