forked from dcloudio/hello-uniapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.vue
More file actions
39 lines (39 loc) · 1 KB
/
image.vue
File metadata and controls
39 lines (39 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-title">
示例1 <text>\n本地图片</text>
</view>
<view class="uni-center" style="background:#FFFFFF; font-size:0;">
<!-- #ifdef MP-ALIPAY -->
<image class="image" mode="widthFix" src="../../../static/uni.png" />
<!-- #endif -->
<!-- #ifndef MP-ALIPAY -->
<image class="image" mode="widthFix" src="../../../static/uni.png" />
<!-- #endif -->
</view>
<view class="uni-title uni-common-mt">
示例2 <text>\n网络图片</text>
</view>
<view class="uni-center" style="background:#FFFFFF; font-size:0;">
<image class="image" mode="widthFix" src="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/uni@2x.png" />
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'image'
}
}
}
</script>
<style>
.image {
margin:40rpx 0;
width: 200rpx;
}
</style>