From 92230c9a97dc9ce9df3313d11d26999c04bb6b26 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 13:12:48 +0800 Subject: [PATCH] 项目初始化 --- src/pages/common/textview/index.vue | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/src/pages/common/textview/index.vue b/src/pages/common/textview/index.vue new file mode 100644 index 0000000..e9b05fb --- /dev/null +++ b/src/pages/common/textview/index.vue @@ -0,0 +1,43 @@ +<template> + <view> + <uni-card class="view-title" :title="title"> + <text class="uni-body view-content">{{ content }}</text> + </uni-card> + </view> +</template> + +<script> + export default { + data() { + return { + title: '', + content: '' + } + }, + onLoad(options) { + this.title = options.title + this.content = options.content + uni.setNavigationBarTitle({ + title: options.title + }) + } + } +</script> + +<style scoped> + page { + background-color: #ffffff; + } + + .view-title { + font-weight: bold; + } + + .view-content { + font-size: 26rpx; + padding: 12px 5px 0; + color: #333; + line-height: 24px; + font-weight: normal; + } +</style> -- Gitblit v1.9.3