hmp hace 4 años
padre
commit
37e2f5c7f3
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 1 1
      common/utils/mpi.js
  2. 3 1
      components/homeViews/activity-view.vue

+ 1 - 1
common/utils/mpi.js

@@ -6,7 +6,7 @@ mpi.uploadFile = (count = 1) => {
 	return new Promise((resolve, reject) => {
 		uni.chooseImage({
 			count, //默认100
-			sizeType: ['original', 'compressed'],
+			sizeType: ['compressed'],
 			sourceType: ['album', 'camera'],
 			success: function(res) {
 				uni.uploadFile({

+ 3 - 1
components/homeViews/activity-view.vue

@@ -112,9 +112,11 @@
 			}
 		},
 		mounted() {
-			this.getRankList();
 			this.getActivityDetail();
 		},
+		onShow() {
+			this.getRankList();
+		},
 		methods: {
 			getActivityDetail() {
 				this.$u.api.activity.detail({id: this.activityId}).then(res => {