Blame view

HH-Uni_uniDemo/pages/index/index.vue 816 Bytes
chengyanfang authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
<template>
	<view class="container">
		<button type="default" style="margin-top: 40rpx;" @click="goHome">跳转首页</button>
	</view>
</template>

<script>
	var plugins = require('../../common/plugins.js') 
	
	export default {

		onLoad() {

			
			
		},
		

		methods: {
			goHome(){
				
				
				
				
				// plus.globalData.addEventListener('TestEvent', function(){
					
				// 	uni.showToast({title:"Test"});
					
				// });
				
				
				plugins.PluginTestFunction(
				
					"ext",
					
					"xxxxxxxxxx"
					
				);
				
				
				plugins.PluginTestFunction(
				
					"goHome",
					
					"62CBD53A0ED4D05CF696BE48B979BFE23F0D04F68EA2608F6783B874E4F50EEF"
					
				);
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>