We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a310780 commit c6c933cCopy full SHA for c6c933c
miniprogram/page/component/pages/image/image.js
@@ -1,9 +1,13 @@
1
+const config = require('../../../../config')
2
+
3
Page({
4
onShareAppMessage() {
5
return {
6
title: 'image',
7
path: 'page/component/pages/image/image'
8
}
9
},
-
10
+ data: {
11
+ imageUrl: config.downloadExampleUrl
12
+ }
13
})
miniprogram/page/component/pages/image/image.wxml
@@ -14,7 +14,7 @@
14
<view class="page-section page-section-gap">
15
<view class="page-section-title">Internet Image</view>
16
<view class="page-section-ctn">
17
- <image class="image" src="../../resources/pic/2.jpg"/>
+ <image class="image" src="{{imageUrl}}"/>
18
</view>
19
20
0 commit comments