" rel="noreferrer">Help

报名考试前端页面(红色页面)

index.vue 3.4KB

    <template> <Card> <span slot="title">考试公告</span> <div slot="content"> <div class="examination_management"> <div class="main"> <!-- 表格 --> <div class="table"> <el-table style="width: 99.9%;min-height: 400px;" stripe :header-cell-style="headStyle" ref="multipleTable" :data="tableData" tooltip-effect="dark" @row-click="getDetails" @selection-change="handleSelectionChange" > <el-table-column type="selection" width="55"> </el-table-column> <el-table-column prop="title" label="标题" width="300"> </el-table-column> <el-table-column prop="publisher" label="来源" width="300"> </el-table-column> <el-table-column prop="publish_time" label="发布时间" show-overflow-tooltip> </el-table-column> </el-table> <div class="btm_tools"> <el-button size="small" @click="toggleSelection()" >取消选择</el-button > <we-Pagination :currentPage="page" :pageSize="pageSize" :total="total" @currentChange="currentChange($event)" @pageSizeChange="pageSizeChange($event)" > ></we-Pagination > </div> </div> </div> </div> </div> </Card> </template> <script> import Card from "@/components/Card"; import WePagination from "@/components/WePagination"; import { getAnnouncementList, //获取公告列表 } from "@/api/home"; import local from "@/utils/local"; export default { components: { Card, WePagination, }, data() { return { tableData: [], multipleSelection: [], // 分页数据 total: 20, // 总数据条数 pageSize: 8, // 每页条数 page: 1, // 当前页 } }, created() { this.fetchData(); }, methods:{ // 获取数据 async fetchData() { // 发送请求 获取列表 let res = await getAnnouncementList({ type: 2, curPage: 0, pageSize: 10, }); // 解构数据 let { code, data } = res; // 边界判断 if (!data.res.list.length && this.page !== 1) { this.pageNum -= 1; this.fetchData(); } // 赋值渲染 if (code === 200) { this.total = data.res.total; this.tableData = data.res.list; } }, // 取消选择 toggleSelection(rows) { this.$refs.multipleTable.clearSelection(); }, handleSelectionChange(val) { this.multipleSelection = val; }, // 表格头部样式回调 headStyle() { return "backgroundColor:#ddd;fontSize:14px;color:#666;fontWeight:700"; }, getDetails(row) { local.set("ggdetails", row); this.$router.push({ path:"/details", }); } } } </script> <style lang="less" scoped> /deep/.el-card__body { padding: 0; .examination_management { display: flex; .main { padding: 10px; flex: 1; height: 100%; .btm_tools { margin: 16px 0 5px; display: flex; justify-content: space-between; align-items: center; } } } } </style>
zeropay - Gogs: Go Git Service

0元购Android端

proguard-rules.pro 8.7KB

    # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile # 指定代码的压缩级别 0 - 7(指定代码进行迭代优化的次数,在Android里面默认是5,这条指令也只有在可以优化时起作用。) -optimizationpasses 5 # 混淆时不会产生形形色色的类名(混淆时不使用大小写混合类名) -dontusemixedcaseclassnames # 指定不去忽略非公共的库类(不跳过library中的非public的类) -dontskipnonpubliclibraryclasses # 指定不去忽略包可见的库类的成员 -dontskipnonpubliclibraryclassmembers #不进行优化,建议使用此选项, -dontoptimize # 不进行预校验,Android不需要,可加快混淆速度。 -dontpreverify # 屏蔽警告 -ignorewarnings # 指定混淆是采用的算法,后面的参数是一个过滤器 # 这个过滤器是谷歌推荐的算法,一般不做更改 -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* # 保护代码中的Annotation不被混淆 -keepattributes *Annotation* # 避免混淆泛型, 这在JSON实体映射时非常重要 -keepattributes Signature # 抛出异常时保留代码行号 -keepattributes SourceFile,LineNumberTable #优化时允许访问并修改有修饰符的类和类的成员,这可以提高优化步骤的结果。 # 比如,当内联一个公共的getter方法时,这也可能需要外地公共访问。 # 虽然java二进制规范不需要这个,要不然有的虚拟机处理这些代码会有问题。当有优化和使用-repackageclasses时才适用。 #指示语:不能用这个指令处理库中的代码,因为有的类和类成员没有设计成public ,而在api中可能变成public -allowaccessmodification #当有优化和使用-repackageclasses时才适用。 -repackageclasses '' # 混淆时记录日志(打印混淆的详细信息) # 这句话能够使我们的项目混淆后产生映射文件 # 包含有类名->混淆后类名的映射关系 -verbose -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.support.multidex.MultiDexApplication -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class * extends android.view.View -keep class android.support.** {*;}## 保留support下的所有类及其内部类 # 这指定了继承Serizalizable的类的如下成员不被移除混淆 -keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve(); } # 保留我们自定义控件(继承自View)不被混淆 -keep public class * extends android.view.View{ *** get*(); void set*(***); public <init>(android.content.Context); public <init>(android.content.Context, android.util.AttributeSet); public <init>(android.content.Context, android.util.AttributeSet, int); } #webView需要进行特殊处理 -keepclassmembers class fqcn.of.javascript.interface.for.Webview { public *; } -keepclassmembers class * extends android.webkit.WebViewClient { public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap); public boolean *(android.webkit.WebView, java.lang.String); } -keepclassmembers class * extends android.webkit.WebViewClient { public void *(android.webkit.WebView, jav.lang.String); } #在app中与HTML5的JavaScript的交互进行特殊处理 #我们需要确保这些js要调用的原生方法不能够被混淆,于是我们需要做如下处理: -keepclassmembers class com.ljd.example.JSInterface { <methods>; } #androidx -keep class com.google.android.material.** {*;} -keep class androidx.** {*;} -keep public class * extends androidx.** -keep interface androidx.** {*;} -dontwarn com.google.android.material.** -dontnote com.google.android.material.** -dontwarn androidx.** #=====友盟Start -keep class com.umeng.** {*;} -keep class com.uc.** {*;} -keepclassmembers class * { public <init> (org.json.JSONObject); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class com.zui.** {*;} -keep class com.miui.** {*;} -keep class com.heytap.** {*;} -keep class a.** {*;} -keep class com.vivo.** {*;} #=====友盟END #PictureSelector 2.0 -keep class com.luck.picture.lib.** { *; } #Ucrop -dontwarn com.yalantis.ucrop** -keep class com.yalantis.ucrop** { *; } -keep interface com.yalantis.ucrop** { *; } #Okio -dontwarn org.codehaus.mojo.animal_sniffer.* #rxjava -dontwarn sun.misc.** -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { long producerIndex; long consumerIndex; } #glide -keep public class * implements com.bumptech.glide.module.GlideModule #-keep public class * extends com.bumptech.glide.AppGlideModule -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { **[] $VALUES; public *; } #EventBus -keepattributes *Annotation* -keepclassmembers class * { @org.greenrobot.eventbus.Subscribe <methods>; } -keep enum org.greenrobot.eventbus.ThreadMode { *; } # And if you use AsyncExecutor: -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { <init>(java.lang.Throwable); } ##---------------Begin: proguard configuration for Gson ---------- # Gson uses generic type information stored in a class file when working with fields. Proguard # removes such information by default, so configure it to keep all of it. -keepattributes Signature # For using GSON @Expose annotation -keepattributes *Annotation* # Gson specific classes -dontwarn sun.misc.** #-keep class com.google.gson.stream.** { *; } # Application classes that will be serialized/deserialized over Gson -keep class com.junxin.zeropay.bean.** { *; } #-keep class com.junxin.zeropay.bean.IndexBean { <fields>; } #-keep class com.junxin.zeropay.bean.IndexDataBean { <fields>; } #-keep class com.junxin.zeropay.bean.IndexListBean { <fields>; } # Prevent proguard from stripping interface information from TypeAdapterFactory, # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter) -keep class * implements com.google.gson.TypeAdapterFactory -keep class * implements com.google.gson.JsonSerializer -keep class * implements com.google.gson.JsonDeserializer # Prevent R8 from leaving Data object members always null -keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName <fields>; } ##---------------End: proguard configuration for Gson ---------- -keep class cn.sharesdk.**{*;} -keep class com.sina.**{*;} -keep class com.mob.**{*;} -keep class com.bytedance.**{*;} -dontwarn cn.sharesdk.** -dontwarn com.sina.** -dontwarn com.mob.** ## - - - - - - - - 微信 - - - - - - - - - - - - -keep class com.tencent.mm.opensdk.** { *; } -keep class com.tencent.wxop.** { *; } -keep class com.tencent.mm.sdk.** { *; } ## - - - - - - - - GSYPlayer - - - - - - - - - - - - -keep class com.shuyu.gsyvideoplayer.video.** { *; } -dontwarn com.shuyu.gsyvideoplayer.video.** -keep class com.shuyu.gsyvideoplayer.video.base.** { *; } -dontwarn com.shuyu.gsyvideoplayer.video.base.** -keep class com.shuyu.gsyvideoplayer.utils.** { *; } -dontwarn com.shuyu.gsyvideoplayer.utils.** -keep class tv.danmaku.ijk.** { *; } -dontwarn tv.danmaku.ijk.** -keep public class * extends android.view.View{ *** get*(); void set*(***); public <init>(android.content.Context); public <init>(android.content.Context, android.util.AttributeSet); public <init>(android.content.Context, android.util.AttributeSet, int); } ## 时间选择器 -keepattributes InnerClasses,Signature -keepattributes *Annotation* -keep class cn.qqtheme.framework.entity.** { *;}
zhuhaiwen/zeropay - Gogs: Go Git Service

5 Commits (782e0ce342b8d3a3e75ee84b9070eb9f8519aa46)

Autore SHA1 Messaggio Data
  朱海文 7516b15554 星星组件优化 4 anni fa
  朱海文 bcdc586a73 本地记录1 4 anni fa
  朱海文 594261e349 UI 4 anni fa
  朱海文 cfc55bb07e JXToolbar自定义属性 4 anni fa
  dabin 38cc1b472a [MOD]Spinner只有1条时,不显示的问题 4 anni fa
zeropay - Gogs: Go Git Service

0元购Android端

.gitignore 223B

    *.iml .gradle .idea /local.properties /.idea /.idea/assetWizardSettings.xml .DS_Store /build /captures .externalNativeBuild .cxx /app/src/main/assets/vuedemo /app/junxin /app/oppo /app/huawei /app/xiaomi /app/yingyongbao