From b62578f8b43f15be89b3d14f463f11aed03e6fb9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 09 五月 2024 18:57:25 +0800
Subject: [PATCH] 最新版本

---
 h5/pages/answer/answer.vue |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/h5/pages/answer/answer.vue b/h5/pages/answer/answer.vue
index 00d847f..6c8e511 100644
--- a/h5/pages/answer/answer.vue
+++ b/h5/pages/answer/answer.vue
@@ -59,6 +59,7 @@
 </template>
 
 <script>
+	import { getProblemsVO, getSystemDictData } from '@/api'
 	export default {
 		name: 'answer',
 
@@ -70,18 +71,39 @@
 				success: false,
 				list: [],
 				bg: require("@/static/banner_dati.jpg"),
-				title: '鍏冩皵妫灄鍏ュ巶瀹夊叏鐭ヨ瘑鑰冩牳',
-				content: '璇蜂粩缁嗛槄璇诲苟閫夋嫨瀵瑰簲鐨勭瓟妗堬紝绛旈姝g‘鏂瑰彲缁х画'
+				title: '',
+				content: ''
 			}
 		},
 		
 		onLoad() {
 			this.getProblems()
+			this.getInfo()
 		},
 
 		methods: {
+			getInfo() {
+				// title
+				getSystemDictData({
+					dictCode: 'SYSTEM',
+					label: 'THEME'
+				}).then(res => {
+					if (res.code === 200) {
+						this.title = res.data.code
+					}
+				})
+				// this.$u.api.getSystemDictData({
+				getSystemDictData({
+					dictCode: 'SYSTEM',
+					label: 'DESCRIPTION'
+				}).then(res => {
+					if (res.code === 200) {
+						this.content = res.data.code
+					}
+				})
+			},
 			getProblems() {
-				this.$u.api.getProblemsVO({ useType: 1 })
+				getProblemsVO({ useType: 1 })
 					.then(res => {
 						if (res.code === 200) {
 							res.data.forEach(item => {

--
Gitblit v1.9.3