30 lines
541 B
Markdown
30 lines
541 B
Markdown
# 友达赏
|
|
|
|
## 代码
|
|
```sh
|
|
# 导入基础
|
|
import { defineComponent, ref } from 'vue';
|
|
# 导入页面加载方法
|
|
import { onLoad } from '@dcloudio/uni-app';
|
|
let icon = ref("/static/app-plus/icon_108.png");
|
|
# 使用页面加载方法
|
|
onLoad(() => {
|
|
console.log('页面加载中');
|
|
});
|
|
```
|
|
# 新文件
|
|
```vue
|
|
<!-- 详情 -->
|
|
<template>
|
|
<page-no-container ref="pageContainer" title="协议" show-back>
|
|
|
|
</page-no-container>
|
|
</template>
|
|
|
|
<script setup>
|
|
let pageContainer = ref(null);
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|
|
``` |