🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### **BSL.ShowImages('urls','titles','orientation')** 调用原生图片查看组件。 | 参数 |必填 |说明 | | --- | --- | --- | | urls| 是 | 图片网络地址。 | | titles| 是 | 图片标题 | | orientation| 是 | 固定值,控制显示方向。 | ### **orientation值** | 编码 | 说明 | | --- | --- | | 1 | 竖屏 | | 2 | 横屏 | | 3 | 随屏 | ``` <script type="text/javascript> function imgs(){ var datas = new Array(); datas[0] = "https://www.xxxx.com/public/deal_file/57/logo.png"; datas[1] = "https://www.xxxx.com/public/deal_file/70/logo.png"; datas[2] = "https://www.xxxx.com/public/deal_file/71/logo.png"; datas[3] = "https://www.xxxx.com/public/deal_file/72/logo.png"; var titles = new Array(); titles[0] = "高级"; titles[1] = "中级"; titles[2] = "初级"; titles[3] = "基础"; BSL.ShowImages(datas,titles,3); } </script> <a href="#" onclick="imgs()">查看图片</a> ```