diff --git a/config.js b/config.js
index 4eca334..f3c17a1 100644
--- a/config.js
+++ b/config.js
@@ -1,7 +1,7 @@
const config = {
baseUrl: getBaseUrl(),
api: {
- login: '/gw/open/login',
+ login: '/gateway/open/login',
getQuestion: '/qgdzs/open/random/question',
answerQuestion: '/qgdzs/open/random/answer',
getAllCategory: '/qgdzs/open/category/get_category',
diff --git a/manifest.json b/manifest.json
index 5537fb4..bad5184 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "卷王大乱斗",
"appid" : "__UNI__3947B70",
"description" : "",
- "versionName" : "1.0.12",
- "versionCode" : 1012,
+ "versionName" : "1.0.13",
+ "versionCode" : 1013,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 967589d..cc833bf 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -3,7 +3,6 @@
-
-
-
- 🎯
- 开始答题
- 选择一种答题模式
-
-
-
-
- 🎲
- 随机答题
- 随机抽取题目
-
-
- 📚
- 类目答题
- 按分类答题
-
-
- ⚡
- 快速答题
- 限时挑战
-
-
-
-
-
-
- 💡
- 每日答题,提升学识分
-
-
- 🏆
- 解锁更高等级,展示你的知识水平
+
+ 🔐
+ 登录即可累计与查看学识分
+ 点击登录
@@ -81,9 +48,10 @@ export default {
this.pointLoading = true
try {
const res = await api.getPointInfo()
- if (res.data && res.data.point) {
+ if (res.data) {
this.point = parseInt(res.data.point) || 0
this.pointLevel = this.getPointLevel(this.point)
+ this.isNotLoggedIn = false
}
} catch (error) {
console.error('获取学识分失败:', error)
@@ -106,27 +74,9 @@ export default {
return '博士'
},
- handleStartQuiz() {
+ handleLogin() {
uni.navigateTo({
- url: '/pages/gameplay/gameplay'
- })
- },
-
- handleRandomQuiz() {
- uni.navigateTo({
- url: '/pages/random/random'
- })
- },
-
- handleCategoryQuiz() {
- uni.navigateTo({
- url: '/pages/category/category'
- })
- },
-
- handleQuickQuiz() {
- uni.navigateTo({
- url: '/pages/quick/quick'
+ url: '/pages/login/login'
})
}
}
@@ -140,15 +90,22 @@ export default {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 40rpx;
box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
}
.header {
- margin-bottom: 60rpx;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
}
.welcome {
text-align: center;
- margin-bottom: 40rpx;
+ margin-bottom: 60rpx;
}
.welcome-title {
@@ -156,13 +113,6 @@ export default {
font-size: 48rpx;
font-weight: bold;
color: #ffffff;
- margin-bottom: 20rpx;
-}
-
-.welcome-subtitle {
- display: block;
- font-size: 28rpx;
- color: rgba(255, 255, 255, 0.9);
}
.point-card {
@@ -211,17 +161,13 @@ export default {
box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.15);
}
-.action-section {
- margin-bottom: 60rpx;
-}
-
-.action-card {
+.login-card {
background: rgba(255, 255, 255, 0.2);
border-radius: 20rpx;
- padding: 50rpx;
- margin: 0 auto 40rpx;
+ padding: 40rpx;
+ margin: 0 auto;
width: 90%;
- max-width: 500rpx;
+ max-width: 400rpx;
backdrop-filter: blur(10rpx);
border: 2rpx solid rgba(255, 255, 255, 0.3);
display: flex;
@@ -231,94 +177,29 @@ export default {
transition: all 0.3s;
}
-.action-card:active {
+.login-card:active {
transform: scale(0.98);
background: rgba(255, 255, 255, 0.3);
}
-.action-icon {
+.login-icon {
font-size: 80rpx;
- margin-bottom: 10rpx;
}
-.action-title {
- font-size: 40rpx;
- font-weight: bold;
- color: #ffffff;
- text-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.2);
-}
-
-.action-desc {
+.login-title {
font-size: 28rpx;
- color: rgba(255, 255, 255, 0.9);
-}
-
-.feature-section {
- display: flex;
- flex-direction: column;
- gap: 20rpx;
- margin-top: 40rpx;
-}
-
-.feature-card {
- background: rgba(255, 255, 255, 0.15);
- border-radius: 16rpx;
- padding: 30rpx;
- backdrop-filter: blur(10rpx);
- border: 2rpx solid rgba(255, 255, 255, 0.2);
- display: flex;
- align-items: center;
- gap: 30rpx;
- transition: all 0.3s;
-}
-
-.feature-card:active {
- transform: scale(0.98);
- background: rgba(255, 255, 255, 0.25);
-}
-
-.feature-icon {
- font-size: 50rpx;
- min-width: 60rpx;
-}
-
-.feature-title {
- font-size: 32rpx;
font-weight: bold;
color: #ffffff;
- flex: 1;
+ text-align: center;
+ line-height: 1.4;
}
-.feature-desc {
+.login-subtitle {
font-size: 24rpx;
- color: rgba(255, 255, 255, 0.8);
-}
-
-.tips-section {
- margin-top: 60rpx;
-}
-
-.tip-item {
- background: rgba(255, 255, 255, 0.1);
- border-radius: 16rpx;
- padding: 24rpx;
- margin-bottom: 20rpx;
- display: flex;
- align-items: center;
- gap: 20rpx;
- backdrop-filter: blur(10rpx);
- border: 2rpx solid rgba(255, 255, 255, 0.15);
-}
-
-.tip-icon {
- font-size: 36rpx;
- min-width: 40rpx;
-}
-
-.tip-text {
- font-size: 26rpx;
color: rgba(255, 255, 255, 0.9);
- flex: 1;
- line-height: 1.6;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ padding: 10rpx 40rpx;
+ border-radius: 30rpx;
+ margin-top: 10rpx;
}