# previewImage ^6.8
预览图片
# 请求参数
| Prop | Type | Comment | 
|---|---|---|
| urls | Array | 预览的图片地址 | 
| showSavetoAlbum | Boolean | 8.1版ios新增参数,是否隐藏预览时右上角三个点,默认显示,IOS专用 true/false | 
# 参数代码示例
    let params = { 
      urls: ['localImages/1599536348845439.jpg', 'localImages/1599534843395443.jpg'],
      showSavetoAlbum:true 
    }
1
2
3
4
5
6
2
3
4
5
6
# 接口调用示例
      let params = {urls: this.urls}
      this.$bridge
        .previewImage(params)
        .then(res => {    
          this.$alert(res)
        })
        .catch(err => {
          this.$toast(err)
        })
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 返回参数
- 成功时返回
| Prop | Type | Comment | 
|---|---|---|
| code | Number | - | 
| msg | String | - | 
# 返回示例
{
    "code": 0,
    "msg": "success"
}
1
2
3
4
5
6
2
3
4
5
6
