47 lines
725 B
Vue
47 lines
725 B
Vue
<template>
|
|
<view>
|
|
<page-head :title="title"></page-head>
|
|
<view class="uni-padding-wrap uni-common-mt">
|
|
<view class="uni-hello-text">
|
|
1.Android 平台需要自定义基座运行
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<view class="uni-padding-wrap uni-common-mt">
|
|
<button @tap="testToastShow">调用 Toast 弹窗</button>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { showToast } from '@/uni_modules/uts-toast'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
return {
|
|
title:"Toast 示例"
|
|
}
|
|
},
|
|
methods:{
|
|
testToastShow(){
|
|
let ret = showToast();
|
|
if(!ret){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'需要在自定义基座中运行'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
<style>
|
|
</style> |