Skip to content

Commit

Permalink
适配2021-2022第二学期期末教评
Browse files Browse the repository at this point in the history
  • Loading branch information
XhL6996 committed Jun 1, 2022
1 parent 0deace4 commit 707f7b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HandSchool.Android/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.x90yang.HandSchool"
android:installLocation="auto"
android:versionCode="2514" android:versionName="2.5.14">
android:versionCode="2515" android:versionName="2.5.15">
<uses-sdk android:minSdkVersion="25" android:targetSdkVersion="31" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Expand Down
10 changes: 9 additions & 1 deletion HandSchool.JLU/ViewModels/TeacherEvaVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace HandSchool.JLU.ViewModels
{
public class TeacherEvaVM : NoticeCheckViewModel
{
public static readonly IReadOnlyCollection<string> SupportTemplateVersions = new HashSet<string> { "180", "190" };
public static readonly IReadOnlyCollection<string> SupportTemplateVersions = new HashSet<string> { "180", "190", "200" };
public static TeacherEvaVM Instance => lazy.Value;
private static Lazy<TeacherEvaVM> lazy = new Lazy<TeacherEvaVM>(() => new TeacherEvaVM());
private const string GetStuInfoUrl = "action/getCurrentUserInfo.do";
Expand Down Expand Up @@ -126,6 +126,14 @@ public async Task<TaskResp> EvalOne(EvaItemShell evaItem)
var resp = JsonConvert.DeserializeObject<JObject>(evaRes)?["status"]?.ToString();
return resp == "0";
}
case "200":
{
var postValue = "{\"evalItemId\":\"" + evaItem.InnerInfo.evalItemId +
"\",\"answers\":{\"p01\":\"A\",\"p02\":\"A\",\"p03\":\"A\",\"p04\":\"A\",\"p05\":\"A\",\"p06\":\"A\",\"p07\":\"A\",\"p08\":\"A\",\"p09\":\"A\",\"p10\":\"A\",\"sat11\":\"A\",\"sat12\":\"A\",\"sat13\":\"A\",\"judge01\":\"Y\"}}";
var evaRes = await Core.App.Service.Post(EvaUrl, postValue);
var resp = JsonConvert.DeserializeObject<JObject>(evaRes)?["status"]?.ToString();
return resp == "0";
}
default:
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions HandSchool.JLU/Views/TeacherEva.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<RefreshView IsRefreshing="{Binding IsBusy, Mode=OneWay}"
Command="{Binding RefreshCommand}">
<CollectionView ItemsSource="{Binding EvaItems}"
<controls:TappableCollectionView ItemsSource="{Binding EvaItems}"
BackgroundColor="#F4F4F4">
<CollectionView.EmptyView>
<ContentView>
Expand All @@ -37,6 +37,6 @@
SecondContent="{Binding Detail}"/>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</controls:TappableCollectionView>
</RefreshView>
</w:ViewObject>

0 comments on commit 707f7b2

Please sign in to comment.