53 lines
993 B
Vue
53 lines
993 B
Vue
<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> |