¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="help-container"> |
| | | <view v-for="(item, findex) in list" :key="findex" :title="item.title" class="list-title"> |
| | | <view class="text-title"> |
| | | <view :class="item.icon"></view>{{ item.title }} |
| | | </view> |
| | | <view class="childList"> |
| | | <view v-for="(child, zindex) in item.childList" :key="zindex" class="question" hover-class="hover" |
| | | @click="handleText(child)"> |
| | | <view class="text-item">{{ child.title }}</view> |
| | | <view class="line" v-if="zindex !== item.childList.length - 1"></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref } from "vue"; |
| | | |
| | | const list =ref([{ |
| | | icon: 'iconfont icon-github', |
| | | title: 'è¥ä¾é®é¢', |
| | | childList: [{ |
| | | title: 'è¥ä¾å¼æºåï¼', |
| | | content: '弿º' |
| | | }, { |
| | | title: 'è¥ä¾å¯ä»¥åç¨åï¼', |
| | | content: 'å¯ä»¥' |
| | | }, { |
| | | title: 'è¥ä¾å®ç½å°åå¤å°ï¼', |
| | | content: 'http://ruoyi.vip' |
| | | }, { |
| | | title: 'è¥ä¾ææ¡£å°åå¤å°ï¼', |
| | | content: 'http://doc.ruoyi.vip' |
| | | }] |
| | | }, |
| | | { |
| | | icon: 'iconfont icon-help', |
| | | title: 'å
¶ä»é®é¢', |
| | | childList: [{ |
| | | title: 'å¦ä½éåºç»å½ï¼', |
| | | content: '请ç¹å»[æç] - [åºç¨è®¾ç½®] - [éåºç»å½]å³å¯éåºç»å½', |
| | | }, { |
| | | title: 'å¦ä½ä¿®æ¹ç¨æ·å¤´åï¼', |
| | | content: '请ç¹å»[æç] - [鿩头å] - [ç¹å»æäº¤]å³å¯æ´æ¢ç¨æ·å¤´å', |
| | | }, { |
| | | title: 'å¦ä½ä¿®æ¹ç»å½å¯ç ï¼', |
| | | content: '请ç¹å»[æç] - [åºç¨è®¾ç½®] - [ä¿®æ¹å¯ç ]å³å¯ä¿®æ¹ç»å½å¯ç ', |
| | | }] |
| | | } |
| | | ]) |
| | | |
| | | function handleText(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/common/textview/index?title=${item.title}&content=${item.content}` |
| | | }); |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | page { |
| | | background-color: #f8f8f8; |
| | | } |
| | | |
| | | .help-container { |
| | | margin-bottom: 100rpx; |
| | | padding: 30rpx; |
| | | } |
| | | |
| | | .list-title { |
| | | margin-bottom: 30rpx; |
| | | } |
| | | |
| | | .childList { |
| | | background: #ffffff; |
| | | box-shadow: 0px 0px 10rpx rgba(193, 193, 193, 0.2); |
| | | border-radius: 16rpx; |
| | | margin-top: 10rpx; |
| | | } |
| | | |
| | | .line { |
| | | width: 100%; |
| | | height: 1rpx; |
| | | background-color: #F5F5F5; |
| | | } |
| | | |
| | | .text-title { |
| | | color: #303133; |
| | | font-size: 32rpx; |
| | | font-weight: bold; |
| | | margin-left: 10rpx; |
| | | |
| | | .iconfont { |
| | | font-size: 16px; |
| | | margin-right: 10rpx; |
| | | } |
| | | } |
| | | |
| | | .text-item { |
| | | font-size: 28rpx; |
| | | padding: 24rpx; |
| | | } |
| | | |
| | | .question { |
| | | color: #606266; |
| | | font-size: 28rpx; |
| | | } |
| | | </style> |