|
10 | 10 | <view class="example-title">图文卡片</view> |
11 | 11 | <view class="example-body"> |
12 | 12 | <view class="example-box"> |
13 | | - <uni-card :is-shadow="true" title="最美的风景" mode="style" thumbnail="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg" extra="Dcloud 2019-05-20 12:32:19" note="true" @click="clickCard"> |
| 13 | + <uni-card :is-shadow="true" title="最美的风景" mode="style" thumbnail="http://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/run1x7.png" extra="DCloud 2019-05-20 12:32:19" note="true" @click="clickCard"> |
14 | 14 | <view> |
15 | | - 那是一个秋意盎然、金风送爽的日子,我和父母一起来到了位于上师大旁的康健园。一踏进公园,一股浓郁的桂香扑鼻而来,泌人心脾,让我心旷神怡,只见一朵朵开得正烈的金色桂花,迎风而立,仿佛在向我招手。我们追着这桂香,走进了清幽的公园。 |
| 15 | + uni-app 是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可编译到iOS、Android、H5、以及各种小程序等多个平台。 即使不跨端,uni-app同时也是更好的小程序开发框架 |
16 | 16 | </view> |
17 | 17 | <template v-slot:footer> |
18 | 18 | <view class="footer-box"> |
19 | | - <view class="footer-box__item" @click.stop="footerClick('喜欢')"> |
20 | | - <uni-icon type="like" color="#666" /><text> 喜欢</text></view> |
21 | | - <view class="footer-box__item" @click.stop="footerClick('评论')"> |
22 | | - <uni-icon type="chat" color="#666" /><text> 评论</text></view> |
23 | | - <view class="footer-box__item" @click.stop="footerClick('分享')"> |
24 | | - <uni-icon type="star" color="#666" /><text> 收藏</text></view> |
| 19 | + <view class="footer-box__item" @click.stop="footerClick('喜欢')"><text> 喜欢</text></view> |
| 20 | + <view class="footer-box__item" @click.stop="footerClick('评论')"><text> 评论</text></view> |
| 21 | + <view class="footer-box__item" @click.stop="footerClick('分享')"><text> 收藏</text></view> |
25 | 22 | </view> |
26 | 23 | </template> |
27 | 24 | </uni-card> |
28 | 25 | </view> |
29 | 26 | <view class="example-box"> |
30 | | - <uni-card :is-shadow="true" title="Dcloud" mode="title" thumbnail="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg" extra="技术没有上限" note="true" @click="clickCard"> |
| 27 | + <uni-card :is-shadow="true" title="DCloud" mode="title" thumbnail="https://img-cdn-qiniu.dcloud.net.cn/new-page/uni.png" extra="技术没有上限" note="true" @click="clickCard"> |
31 | 28 | <view> |
32 | 29 | <view class="image-box"> |
33 | | - <image class="image" src="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg" /> |
| 30 | + <image class="image" mode="aspectFill" src="http://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/run1x7.png" /> |
34 | 31 | </view> |
35 | 32 | <view class="content-box"> |
36 | | - 那是一个秋意盎然、金风送爽的日子,我和父母一起来到了位于上师大旁的康健园.一踏进公园,一股浓郁的桂香扑鼻而来,泌人心脾,让我心旷神怡,只见一朵朵开得正烈的金色桂花,迎风而立,仿佛在向我招手.我们追着这桂香,走进了清幽的公园. |
| 33 | + uni-app 是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可编译到iOS、Android、H5、以及各种小程序等多个平台。 即使不跨端,uni-app同时也是更好的小程序开发框架。 |
37 | 34 | </view> |
38 | 35 | </view> |
39 | 36 | <template v-slot:footer> |
40 | 37 | <view class="footer-box"> |
41 | | - <view class="footer-box__item" @click.stop="footerClick('喜欢')"> |
42 | | - <uni-icon type="like" color="#666" /><text> 喜欢</text></view> |
43 | | - <view class="footer-box__item" @click.stop="footerClick('评论')"> |
44 | | - <uni-icon type="chat" color="#666" /><text> 评论</text></view> |
45 | | - <view class="footer-box__item" @click.stop="footerClick('分享')"> |
46 | | - <uni-icon type="star" color="#666" /><text> 收藏</text></view> |
| 38 | + <view class="footer-box__item" @click.stop="footerClick('喜欢')"><text> 喜欢</text></view> |
| 39 | + <view class="footer-box__item" @click.stop="footerClick('评论')"><text> 评论</text></view> |
| 40 | + <view class="footer-box__item" @click.stop="footerClick('分享')"><text> 收藏</text></view> |
47 | 41 | </view> |
48 | 42 | </template> |
49 | 43 | </uni-card> |
|
54 | 48 |
|
55 | 49 | <script> |
56 | 50 | import uniCard from '@/components/uni-card/uni-card.vue' |
57 | | - import uniIcon from '@/components/uni-icon/uni-icon.vue' |
58 | 51 |
|
59 | 52 | export default { |
60 | 53 | components: { |
61 | | - uniCard, |
62 | | - uniIcon |
| 54 | + uniCard |
63 | 55 | }, |
64 | 56 | data() { |
65 | 57 | return { |
|
0 commit comments