xuqiaoying 3 жил өмнө
parent
commit
d3987f50c4

+ 1 - 1
pages/index/index.vue

@@ -256,7 +256,7 @@ export default {
             // tabbarlist: this.$store.state.tabLists,
 			showOfficial: false,
 			opacity: 1,
-			isFollow: false, //是否关注过
+			isFollow: null, //是否关注过,不是1就是没关注
 			curClose: true, // 当天时是否关闭过
 		};
 	},

+ 3 - 0
pages2/wd/info.vue

@@ -284,6 +284,9 @@ export default {
 							const waitUpload = await self.uploadFile(self.avatarUrl, 0);
 							resolve(waitUpload)
 						}
+					},
+					fail: (err) => {
+						this.$u.toast('图片上传失败')
 					}
 				});
 			});

+ 3 - 0
pages3/live/detail.vue

@@ -1678,6 +1678,9 @@ export default {
               resolve(waitUpload);
             }
           },
+          fail: (err) => {
+						this.$u.toast('图片上传失败')
+					}
         });
       });
     },

+ 12 - 9
pages3/polyv/detail.vue

@@ -2012,17 +2012,17 @@ export default {
               success_action_status: 200,
             },
             success: (result) => {
-              if (result.statusCode === 200) {
+              // if (result.statusCode === 200) {
                 self.ossAvatarUrl = ossToken.dir;
                 resolve();
-              } else {
-                uni.showToast({
-                  title: "上传失败",
-                  icon: "none",
-                });
-                this.openPhoto();
-                return;
-              }
+              // } else {
+              //   uni.showToast({
+              //     title: "上传失败",
+              //     icon: "none",
+              //   });
+              //   this.openPhoto();
+              //   return;
+              // }
             },
             fail: (error) => {
               uni.showToast({
@@ -2078,6 +2078,9 @@ export default {
               resolve(waitUpload);
             }
           },
+          fail: (err) => {
+						this.$u.toast('图片上传失败')
+					}
         });
       });
     },