测试
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState, mapActions } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'Photo',
|
name: 'Photo',
|
||||||
|
|
||||||
@@ -62,6 +62,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['wxInvoke']),
|
||||||
|
|
||||||
back () {
|
back () {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
@@ -85,10 +87,11 @@
|
|||||||
preview (url) {
|
preview (url) {
|
||||||
if (!this.isShow) return
|
if (!this.isShow) return
|
||||||
|
|
||||||
wx.previewImage({
|
this.wxInvoke(['previewImage', {
|
||||||
current: url, // 第一张显示的图片链接
|
current: url, // 第一张显示的图片链接
|
||||||
urls: [url] // 需要预加载的图片http链接列表,预加载后,可以滑动浏览这些图片
|
urls: [url] // 需要预加载的图片http链接列表,预加载后,可以滑动浏览这些图片
|
||||||
})
|
}, () => {
|
||||||
|
}])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user