张延森 4 年前
父节点
当前提交
241d35b970
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. 4
    6
      src/pages/imglist/index.jsx

+ 4
- 6
src/pages/imglist/index.jsx 查看文件

@@ -102,7 +102,6 @@ const index = props => {
102 102
   const deleteImage = e => {
103 103
     Taro.showModal({
104 104
       title: "确定删除该图片吗?",
105
-
106 105
       cancelColor: "#d2d2d2",
107 106
       confirmColor: "#274191",
108 107
       success: function(res) {
@@ -145,21 +144,20 @@ const index = props => {
145 144
 
146 145
   return (
147 146
     <IsLogin>
148
-      <View className="imglist">
147
+      <View className="imglist" style={{height: '100vh'}}>
149 148
         <NoData nodata={Object.keys(list).length === 0}>
150 149
           {!labelState && (
151 150
             <View style={{ padding: "0 30px" }}>
152 151
               {Object.keys(list).map(item => {
153 152
                 return (
154
-                  <View className="imglist-card">
153
+                  <View className="imglist-card" key={item}>
155 154
                     <View
156 155
                       className="imglist-card-tags"
157 156
                       style={{ display: "flex" }}
158 157
                     >
159 158
                       {/* imageimageimageimage34 */}
160 159
                       {list[item].map(x => {
161
-                        console.log(x.tagName);
162
-                        return <View className="tag">{x.tagName}</View>;
160
+                        return <View className="tag" key={x.tagName}>{x.tagName}</View>;
163 161
                       })}
164 162
                     </View>
165 163
                     <Image
@@ -181,7 +179,7 @@ const index = props => {
181 179
               <View style={{ padding: "0 20px" }}>
182 180
                 {tagList.map((item, index) => {
183 181
                   return (
184
-                    <View className="imglist-tagcard">
182
+                    <View className="imglist-tagcard" key={item.name}>
185 183
                       <Text>{item.name}</Text>
186 184
                       <Tags
187 185
                         list={item.taMateTagList}