|
| 1 | +<!-- |
| 2 | + * @Author: weisheng |
| 3 | + * @Date: 2025-02-16 16:04:20 |
| 4 | + * @LastEditTime: 2025-02-16 18:14:14 |
| 5 | + * @LastEditors: weisheng |
| 6 | + * @Description: |
| 7 | + * @FilePath: /wot-design-uni/src/pages/about/Index.vue |
| 8 | + * 记得注释 |
| 9 | +--> |
| 10 | +<template> |
| 11 | + <view class="page"> |
| 12 | + <view class="page__hd"> |
| 13 | + <view class="page__title">关于我们</view> |
| 14 | + <view class="page__desc">我是不如摸鱼去,一个前端打工仔,我和我的小伙伴们正在致力于开发轻量、高效的uni-app组件库。</view> |
| 15 | + </view> |
| 16 | + <view class="page__bd"> |
| 17 | + <view class="core-team"> |
| 18 | + <view class="core-team__title">核心团队</view> |
| 19 | + <view class="core-team__list"> |
| 20 | + <view v-for="(collaborator, index) in githubData.collaborators" :key="index" class="core-team__member"> |
| 21 | + <image :src="collaborator.avatar_url" class="core-team__avatar" /> |
| 22 | + <view class="core-team__name" :title="collaborator.login">{{ collaborator.login }}</view> |
| 23 | + </view> |
| 24 | + </view> |
| 25 | + </view> |
| 26 | + <view class="additional-links"> |
| 27 | + <view class="additional-links__title">更多信息</view> |
| 28 | + <wd-cell-group border> |
| 29 | + <wd-cell title="关注公众号" title-width="200px" label="uni-app教程、组件库讯息一手掌握!" @click="openWeChat" is-link></wd-cell> |
| 30 | + <wd-cell title="捐赠" title-width="200px" label="每一份捐赠都是对我们莫大的鼓励!" @click="donate" is-link></wd-cell> |
| 31 | + <!-- #ifdef MP-WEIXIN --> |
| 32 | + <wd-cell title="观看激励广告" title-width="200px" label="每次观看都是对我们的支持,谢谢!" @click="watchAd" is-link></wd-cell> |
| 33 | + <!-- #endif --> |
| 34 | + </wd-cell-group> |
| 35 | + </view> |
| 36 | + </view> |
| 37 | + </view> |
| 38 | +</template> |
| 39 | + |
| 40 | +<script lang="ts" setup> |
| 41 | +import { ref } from 'vue' |
| 42 | +const githubData = ref<any>({ |
| 43 | + collaborators: [ |
| 44 | + { |
| 45 | + login: '不如摸鱼去', |
| 46 | + avatar_url: 'https://avatars.githubusercontent.com/u/26426873?v=4' |
| 47 | + }, |
| 48 | + { |
| 49 | + login: 'jasper-ops', |
| 50 | + avatar_url: 'https://avatars.githubusercontent.com/u/85024227?v=4' |
| 51 | + }, |
| 52 | + { |
| 53 | + login: '二狗', |
| 54 | + avatar_url: 'https://avatars.githubusercontent.com/u/50100966?v=4' |
| 55 | + }, |
| 56 | + { |
| 57 | + login: 'RJQingHuan', |
| 58 | + avatar_url: 'https://avatars.githubusercontent.com/u/53939074?v=4' |
| 59 | + }, |
| 60 | + { |
| 61 | + login: 'skiyee', |
| 62 | + avatar_url: 'https://avatars.githubusercontent.com/u/120664167?v=4' |
| 63 | + } |
| 64 | + ], |
| 65 | + contributors: [ |
| 66 | + { |
| 67 | + login: 'contributor1', |
| 68 | + avatar_url: 'https://avatars.githubusercontent.com/u/12345678?v=4' |
| 69 | + }, |
| 70 | + { |
| 71 | + login: 'contributor2', |
| 72 | + avatar_url: 'https://avatars.githubusercontent.com/u/87654321?v=4' |
| 73 | + } |
| 74 | + ] |
| 75 | +}) |
| 76 | +
|
| 77 | +// 打开公众号二维码 |
| 78 | +const openWeChat = () => { |
| 79 | + uni.previewImage({ |
| 80 | + urls: ['/static/WeChatOfficialAccounts.jpg'] |
| 81 | + }) |
| 82 | +} |
| 83 | +
|
| 84 | +// 打开捐赠二维码 |
| 85 | +const donate = () => { |
| 86 | + uni.getImageInfo({ src: '/static/weixinQrcode.jpg' }).then((res) => { |
| 87 | + uni.previewImage({ |
| 88 | + urls: [res.path] |
| 89 | + }) |
| 90 | + }) |
| 91 | + // 打开捐赠页面 |
| 92 | +} |
| 93 | +
|
| 94 | +const watchAd = () => { |
| 95 | + uni.navigateTo({ |
| 96 | + url: '/pages/wxRewardAd/Index' |
| 97 | + }) |
| 98 | +} |
| 99 | +</script> |
| 100 | + |
| 101 | +<style lang="scss" scoped> |
| 102 | +.page__hd { |
| 103 | + padding: 15px 15px 0 20px; |
| 104 | +} |
| 105 | +
|
| 106 | +.page__title { |
| 107 | + text-align: left; |
| 108 | + font-size: 24px; |
| 109 | + font-weight: 600; |
| 110 | +} |
| 111 | +
|
| 112 | +.page__desc { |
| 113 | + margin-top: 20px; |
| 114 | + text-align: left; |
| 115 | + font-size: 14px; |
| 116 | +} |
| 117 | +
|
| 118 | +.page__intro { |
| 119 | + margin-top: 10px; |
| 120 | + color: #333; |
| 121 | + text-align: left; |
| 122 | + font-size: 14px; |
| 123 | +} |
| 124 | +
|
| 125 | +.page__bd { |
| 126 | + padding: 0 15px 30px 20px; |
| 127 | + user-select: none; |
| 128 | + background: #f9f9f9; |
| 129 | + border-radius: 10px; |
| 130 | +} |
| 131 | +
|
| 132 | +.core-team { |
| 133 | + margin-top: 20px; |
| 134 | +} |
| 135 | +
|
| 136 | +.core-team__title { |
| 137 | + font-size: 18px; |
| 138 | + font-weight: bold; |
| 139 | + margin-bottom: 10px; |
| 140 | + color: #333; |
| 141 | +} |
| 142 | +
|
| 143 | +.core-team__list { |
| 144 | + display: flex; |
| 145 | + flex-wrap: wrap; |
| 146 | + justify-content: space-between; |
| 147 | +} |
| 148 | +
|
| 149 | +.core-team__member { |
| 150 | + flex: 1 1 25%; |
| 151 | + max-width: 25%; |
| 152 | + box-sizing: border-box; |
| 153 | + margin-bottom: 10px; |
| 154 | + text-align: center; |
| 155 | + transition: transform 0.3s; |
| 156 | +} |
| 157 | +
|
| 158 | +.core-team__member:hover { |
| 159 | + transform: scale(1.05); |
| 160 | +} |
| 161 | +
|
| 162 | +.core-team__avatar { |
| 163 | + width: 60px; |
| 164 | + height: 60px; |
| 165 | + border-radius: 50%; |
| 166 | + margin: 0 auto; |
| 167 | + border: 2px solid #0083ff; |
| 168 | +} |
| 169 | +
|
| 170 | +.core-team__name { |
| 171 | + margin-top: 5px; |
| 172 | + font-size: 14px; |
| 173 | + white-space: nowrap; |
| 174 | + overflow: hidden; |
| 175 | + text-overflow: ellipsis; |
| 176 | + margin: 0 auto; |
| 177 | + color: #333; |
| 178 | +} |
| 179 | +
|
| 180 | +.additional-links { |
| 181 | + margin-top: 20px; |
| 182 | +} |
| 183 | +
|
| 184 | +.additional-links__title { |
| 185 | + font-size: 18px; |
| 186 | + font-weight: bold; |
| 187 | + margin-bottom: 10px; |
| 188 | + color: #333; |
| 189 | +} |
| 190 | +
|
| 191 | +.additional-links__icon { |
| 192 | + width: 24px; |
| 193 | + height: 24px; |
| 194 | + margin-right: 10px; |
| 195 | +} |
| 196 | +</style> |
0 commit comments