|
@@ -120,14 +120,9 @@
|
|
|
//打开预览e
|
|
|
previewOpen(imgs1, index) {
|
|
|
this.imgs = imgs1.split("|");
|
|
|
- // this.descs = [];
|
|
|
- // for (var i = 0; i < this.imgs.length; i++) {
|
|
|
- // this.descs.push(i + 1);
|
|
|
- // }
|
|
|
- // var param = e.currentTarget.dataset.src;
|
|
|
- // console.log(param);
|
|
|
- // this.imgs = ['../../static/home/avator.png', '../../static/me/sex_2.png', '../../static/home/avator.png'];
|
|
|
- this.$refs.previewImage.open(index || 1); // 传入当前选中的图片地址或序号
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.previewImage.open(index)
|
|
|
+ })
|
|
|
return; //如需测试和uni原生预览差别可注释这两行
|
|
|
},
|
|
|
loadData() {
|