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