This commit is contained in:
杨航
2025-11-12 08:41:52 +08:00
parent 6dca68bfd6
commit e7c79765f0
2 changed files with 15 additions and 9 deletions
+13 -7
View File
@@ -70,7 +70,8 @@
</view>
</view>
<view class="body-bottom">
<view class="body-bottom-btn" @click="toChooseRole">AI陪练</view>
<view class="body-bottom-btn" @click="toChooseRole('test')">去练习</view>
<view class="body-bottom-btn" @click="toChooseRole('exam')">去考试</view>
</view>
</view>
</view>
@@ -126,7 +127,6 @@
})
}
const previewFile = (info) => {
if (getPhoneEnvBool('AND')) {
common.navigateTo('/pages/index/preview?fileId=' + info.docId);
} else {
@@ -182,8 +182,8 @@
throw error;
}
};
const toChooseRole = () => {
common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value)
const toChooseRole = (type) => {
common.navigateTo('/pages/sparring/chooseRole?traId=' + traId.value + '&type=' + type)
}
onLoad((params) => {
traId.value = params.traId;
@@ -352,16 +352,22 @@
width: 100vw;
bottom: 0;
left: 0;
display: flex;
&-btn {
width: 100%;
flex: 1;
height: 92rpx;
line-height: 92rpx;
background-color: #06f;
text-align: center;
color: #fff;
background: #ddeafc;
color: #06f;
font-size: 29rpx;
border-radius: 23rpx;
&:last-child{
margin-left: 36rpx;
background: #06f;
color: #fff;
}
}
}
+2 -2
View File
@@ -12,7 +12,7 @@
</view>
</view>
<view class="body-content">
<view :class="['body-content-role', showRoleInfo?'show-info':'']">
<view :class="['body-content-role', showRoleInfo?'':'hide-info']">
<view :class="['role-title']">
<ImagePreview class="role-title-avatar" :src="'/traoss/tras3/show/S3F0250181220722025110316545500000431780'" :isCache="true">
</ImagePreview>
@@ -252,7 +252,7 @@
border-radius: 16rpx;
overflow: hidden;
margin-bottom: 30rpx;
&.show-info{
&.hide-info{
.arrow-r-icon::after {
transform: rotate(225deg) !important;
}