class="file text outline icon ui left"> PrintAdmissionCard.vue 2.8KB
History Raw
    <template> <div class="card"> <div class="r-main" v-show="showMain"> <div class="r-top"> <div> <p>身份证号:{{ studentData.card_num }}</p> <p>考生姓名:{{ studentData.name }}</p> </div> </div> <el-table ref="multipleTable" border :header-cell-style="headStyle" :data="tableData" > <el-table-column prop="place_name" label="序号" width="150"> </el-table-column> <el-table-column prop="place_code" label="考试名称" width="120"> </el-table-column> <el-table-column prop="place_name" label="考试系列" width="150"> </el-table-column> <el-table-column prop="place_code" label="考试级别" width="120"> </el-table-column> <el-table-column prop="place_name" label="考试科目" width="150"> </el-table-column> <el-table-column prop="place_code" label="考试时间" width="120"> </el-table-column> <el-table-column label="操作" width="120"> <template> <el-button size="mini" type="primary" @click="showMain = false"> 报名 </el-button> </template> </el-table-column> </el-table> </div> <div class="print-card" v-show="!showMain"> <p>准考证内容</p> <el-button type="default" @click="showMain = true">返回</el-button> <el-button type="primary">打印准考证</el-button> </div> </div> </template> <script> import { getStudentInfo, //个人资料 } from "@/api/home"; export default { data() { return { tableData: [ {"kaoshi":1} ], studentData: [], form: {}, showMain: true, } }, props:["printValue"], watch: { }, mounted() { this.showMain = this.printValue; console.log('show',this.showMain) }, created() { this.getStudent(); }, methods: { // 获取考生个人资料 async getStudent() { let res = await getStudentInfo({ student_id: 2, }); // 解构数据 let { code, data } = res; // 赋值渲染 if (code === 200) { this.studentData = data.res.student; } }, // 表格头部样式回调 headStyle() { return "backgroundColor:#ddd;fontSize:14px;color:#666;fontWeight:700"; }, } } </script> <style lang="less" scoped> .r-main { .r-top { background-color: #F6F7F9; margin: 10px auto; height: 100px; display: flex; align-items: center; justify-content: center; p { margin: 20px 0 20px 0; } } .el-table::before { height: 0; } .el-table--border::after, .el-table--group::after { height: 0; } .el-table--border, .el-table--group { border: 0; } } </style>
zeropay - Gogs: Go Git Service

0元购Android端

build.gradle 6.2KB

    apply plugin: 'com.android.application' //apply plugin: 'com.mob.sdk' // //MobSDK { // appKey "304fe66c9be05" // appSecret "ae05a16e089eef959d32174f4a001637" // ShareSDK { // loopShare true // devInfo { // // 微信开放平台链接: https://open.weixin.qq.com/cgi-bin/appdetail?t=manage/detail&type=app&lang=zh_CN&token=7d66745466c2986b0e2c10e6dd40ac82672222f5&appid=wx9ce6dfd102de332c // Wechat { // appId "wx00bb0933b4fdb159" // appSecret "801cb11459e2d0fdb06df516cf91755b" // userName "gh_afb25ac019c9" // path "pages/index/index.html?id=1" // withShareTicket true // miniprogramType 2 // } // // . . . 还有其他平台配置 // } // } //} android { compileSdkVersion 29 buildToolsVersion "30.0.1" defaultConfig { applicationId "com.junxin.zeropay" minSdkVersion 21 targetSdkVersion 29 versionCode 8 versionName "1.5.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true manifestPlaceholders = [UMENG_CHANNEL_VALUE: "umeng"]//添加一个默认渠道号 flavorDimensions "versionCode" } /* 此配置能使Test能够调用Android的Api */ testOptions { unitTests.returnDefaultValues = true } signingConfigs { appkey { storeFile rootProject.file('app/zeropay.jks') storePassword "junxin" keyAlias "zeropay" keyPassword "junxin" } } buildTypes { release { // 开启混淆 minifyEnabled true // Zipalign压缩优化 zipAlignEnabled true // 移除无用的资源文件 shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.appkey } debug { // 开启混淆 minifyEnabled false // Zipalign压缩优化 zipAlignEnabled false // 移除无用的资源文件 shrinkResources false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.appkey } } productFlavors { yingyongbao {} xiaomi {} huawei {} oppo {} junxin {} } productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } repositories { flatDir { dirs 'libs' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' //material MD implementation 'com.google.android.material:material:1.1.0' //recyclerview implementation "androidx.recyclerview:recyclerview:1.1.0" // For control over item selection of both touch and mouse driven selection implementation "androidx.recyclerview:recyclerview-selection:1.1.0-rc01" //glide implementation 'com.github.bumptech.glide:glide:4.11.0' //gson implementation 'com.google.code.gson:gson:2.8.5' //eventbus implementation 'org.greenrobot:eventbus:3.1.1' //网络请求的依赖 implementation 'com.squareup.retrofit2:retrofit:2.6.0' implementation 'com.squareup.retrofit2:converter-gson:2.6.0' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.14.2' //图片选择器 implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.8' //banner implementation "com.youth.banner:banner:2.1.0" //cardview implementation "androidx.cardview:cardview:1.0.0" //友盟基础组件库包含统计SDK implementation "com.umeng.umsdk:common:9.1.0" // asms包依赖(必选) implementation 'com.umeng.umsdk:asms:1.1.3' // native crash包依赖(必选) implementation "com.umeng.umsdk:crash:0.0.4" //如您不在U-App的集成中加入OAID库,可能会导致U-App面向Android Q系统的新增、启动、活跃、留存等指标减少,因此,建议您接入OAID库。 implementation 'com.umeng.umsdk:oaid_lenovo:1.0.0' // (可选) implementation 'com.umeng.umsdk:oaid_mi:1.0.0' // (可选) implementation 'com.umeng.umsdk:oaid_oppo:1.0.4' // (可选) implementation 'com.umeng.umsdk:oaid_vivo:1.0.0.1' // (可选) //butterknife implementation 'com.jakewharton:butterknife:10.2.1' annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1' //今日头条适配 implementation 'me.jessyan:autosize:1.2.1' implementation 'com.github.lzyzsd:jsbridge:1.0.4' //权限申请 implementation 'com.github.tbruyelle:rxpermissions:0.12' implementation 'io.reactivex.rxjava3:rxjava:3.0.4' implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' //状态栏 // implementation 'com.gyf.immersionbar:immersionbar:3.0.0' //打卡完成对勾控件 implementation 'com.github.ChengangFeng:TickView:v1.0.2' //S3 implementation 'com.amazonaws:aws-android-sdk-core:2.17.1' implementation 'com.amazonaws:aws-android-sdk-s3:2.3.8' //长图大图预览 implementation 'com.github.chrisbanes:PhotoView:2.3.0' //微信登录 api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' //下拉刷新 implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' implementation 'com.scwang.smart:refresh-header-classics:2.0.1' implementation 'com.shuyu:GSYVideoPlayer:7.1.6' compile 'com.contrarywind:Android-PickerView:4.1.9' debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5' //穿山甲广告 implementation(name: 'open_ad_sdk', ext: 'aar'); }
zhuhaiwen/zeropay - Gogs: Go Git Service

1 次代碼提交 (4a29d864893e66ba18e724419670d10a16369c16)

作者 SHA1 備註 提交日期
  朱海文 b02799cb3b init 4 年之前