File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,14 @@ Component({
70
70
71
71
//判断传入urls长度
72
72
if ( this . data . urls . length > 9 ) {
73
- const urls = this . data . urls . slice ( 0 , 9 )
73
+ const urls = this . data . urls . slice ( 0 , 9 ) ;
74
74
this . setData ( {
75
75
urls
76
- } )
76
+ } ) ;
77
77
console . warn ( '超过9张图片!' ) ;
78
78
}
79
79
80
- this . preview ( )
80
+ this . preview ( ) ;
81
81
82
82
} ,
83
83
} ,
@@ -122,7 +122,7 @@ Component({
122
122
} ) ;
123
123
//显示图片
124
124
const urls = this . data . urls ;
125
- const key = this . data . key
125
+ const key = this . data . key ;
126
126
127
127
if ( urls . length == 1 ) {
128
128
this . horizontalOrVertical ( newType ? urls [ 0 ] [ key ] : urls [ 0 ] ) ;
@@ -135,7 +135,7 @@ Component({
135
135
let tempFilePath = '' ;
136
136
let previewImageList = [ ] ;
137
137
const newType = this . data . newType ;
138
- const key = this . data . key
138
+ const key = this . data . key ;
139
139
140
140
if ( newType ) {
141
141
tempFilePath = urls [ index ] [ key ] ;
Original file line number Diff line number Diff line change @@ -70,14 +70,14 @@ Component({
70
70
71
71
//判断传入urls长度
72
72
if ( this . data . urls . length > 9 ) {
73
- const urls = this . data . urls . slice ( 0 , 9 )
73
+ const urls = this . data . urls . slice ( 0 , 9 ) ;
74
74
this . setData ( {
75
75
urls
76
- } )
76
+ } ) ;
77
77
console . warn ( '超过9张图片!' ) ;
78
78
}
79
79
80
- this . preview ( )
80
+ this . preview ( ) ;
81
81
82
82
} ,
83
83
} ,
@@ -122,7 +122,7 @@ Component({
122
122
} ) ;
123
123
//显示图片
124
124
const urls = this . data . urls ;
125
- const key = this . data . key
125
+ const key = this . data . key ;
126
126
127
127
if ( urls . length == 1 ) {
128
128
this . horizontalOrVertical ( newType ? urls [ 0 ] [ key ] : urls [ 0 ] ) ;
@@ -135,7 +135,7 @@ Component({
135
135
let tempFilePath = '' ;
136
136
let previewImageList = [ ] ;
137
137
const newType = this . data . newType ;
138
- const key = this . data . key
138
+ const key = this . data . key ;
139
139
140
140
if ( newType ) {
141
141
tempFilePath = urls [ index ] [ key ] ;
Original file line number Diff line number Diff line change @@ -70,14 +70,14 @@ Component({
70
70
71
71
//判断传入urls长度
72
72
if ( this . data . urls . length > 9 ) {
73
- const urls = this . data . urls . slice ( 0 , 9 )
73
+ const urls = this . data . urls . slice ( 0 , 9 ) ;
74
74
this . setData ( {
75
75
urls
76
- } )
76
+ } ) ;
77
77
console . warn ( '超过9张图片!' ) ;
78
78
}
79
79
80
- this . preview ( )
80
+ this . preview ( ) ;
81
81
82
82
} ,
83
83
} ,
@@ -122,7 +122,7 @@ Component({
122
122
} ) ;
123
123
//显示图片
124
124
const urls = this . data . urls ;
125
- const key = this . data . key
125
+ const key = this . data . key ;
126
126
127
127
if ( urls . length == 1 ) {
128
128
this . horizontalOrVertical ( newType ? urls [ 0 ] [ key ] : urls [ 0 ] ) ;
@@ -135,7 +135,7 @@ Component({
135
135
let tempFilePath = '' ;
136
136
let previewImageList = [ ] ;
137
137
const newType = this . data . newType ;
138
- const key = this . data . key
138
+ const key = this . data . key ;
139
139
140
140
if ( newType ) {
141
141
tempFilePath = urls [ index ] [ key ] ;
You can’t perform that action at this time.
0 commit comments