Files
UNION_NSI/target/classes/views/mobile/card/card.html
T
2026-09-08 19:49:21 +08:00

76 lines
1.8 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<style>
.container .van-button {
position: relative;
display: block;
width: 184px;
margin-left: auto;
margin-right: auto;
padding: 8px 24px;
box-sizing: border-box;
font-weight: 700;
font-size: 17px;
text-align: center;
text-decoration: none;
color: #fff;
line-height: 1.41176471;
border-radius: 4px;
overflow: hidden;
-webkit-tap-highlight-color: rgba(0,0,0,0);
background-color: #1867b0;
}
.container {
display: flex;
justify-content: center;
height: calc(100vh - 46px);
flex-direction: column;
}
</style>
<div id="app" v-cloak>
<van-nav-bar title="代表证" left-arrow placeholder fixed
@click-left="history.back()"></van-nav-bar>
<div class="container">
<van-button @click="showCard('jdh')" style="margin-bottom: 40px;">教代会代表证</van-button>
<van-button @click="showCard('gdh')">工代会代表证</van-button>
</div>
</div>
<script>
new Vue({
el: '#app',
data() {
return {
}
},
methods: {
async showCard(type) {
//先查看当前登录用户是不是代表
const resp = await $.post('/platform/card/isDb', {type: type})
if(resp.code !== 0) {
vant.Dialog.alert({
title: '温馨提示',
message: resp.msg,
})
return
}
//获取代表证
vant.ImagePreview(['/platform/card/showCard?type=' + type])
},
},
created() {
},
})
</script>
<!--#
}
#-->