|
- <template>
- <safe-area class="page">
- <view class="header">
- <text class="title">首页</text>
- </view>
- <view class="body">
- <text class="h1">Hello , APICloud</text>
- <img class="img" src="../../image/img.png" />
- <text class="p">拖入组件搭建你的第一个 APP</text>
- </view>
- </safe-area>
- </template>
- <script>
- export default {
- name: 'main',
- apiready() {
- var uzmoduleAppList = uzmoduleAppList = api.require('moduleAppList');
- function getAppList() {
- var param = {
- isFilterSystemApp: true,//是否过滤掉系统应用
- isAppIcon: true //是否返回应用icon,当isAppIcon = false时获取速度更快,资源消耗更小
- };
- uzmoduleAppList.getAppList(param, function (ret, err) {
- alert(JSON.stringify(ret));
- });
-
- }
-
- },
- data() {
- return {
- msg: "Hello APICloud"
- };
- },
- methods: {}
- };
- </script>
- <style>
- .page {
- height: 100%;
- background: #fff;
- }
- .header {
- height: 44px;
- justify-content: center;
- align-items: center;
- }
- .title {
- font-size: 16px;
- font-weight: bold;
- color: #333;
- }
- .body {
- background: #f5f6f7;
- flex: 1;
- }
- .h1 {
- font-size: 22px;
- font-weight: bold;
- color: #333;
- text-align: center;
- margin: 50px;
- }
- .img {
- max-width: 100%;
- }
- .p {
- color: #aaa;
- text-align: center;
- font-size: 16px;
- margin: 15px;
- }
- </style>
复制代码 |
|