bonus-Certificate-app/pages/verification/certificateVerification/index.vue

53 lines
993 B
Vue
Raw Normal View History

2025-11-06 10:13:05 +08:00
<template>
<page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
<view class="certificate-list">
<Navbar title="证件验证" :showRightText="false" :isBack="true"/>
</view>
</template>
<script>
export default {
data() {
return {
fontValue:uni.getStorageSync('fontSize') || 8,
}
},
onLoad() {
},
onShow(){
this.goto()
},
methods: {
goto(){
// #ifdef APP-PLUS
plus.share.getServices(function(res){
var sweixin = null;
for(var i=0;i<res.length;i++){
var t = res[i];
if(t.id == 'weixin'){
sweixin = t;
}
}
console.log("sweixin", sweixin)
if (sweixin) {
sweixin.launchMiniProgram({
id:"gh_e5e2507034ea"
});
}
}, function(e){
console.log("获取分享服务列表失败:"+JSON.stringify(e));
});
// #endif }
}
}
</script>
<style lang="scss" scoped>
.certificate-list {
height: 100vh;
background-color: #f8f8f8;
padding: 30rpx;
}
</style>