高敬炎 2 years ago
parent
commit
7fc05a11ce
1 changed files with 8 additions and 8 deletions
  1. 8 8
      xiaochengxu/pages/mySet/myHome.vue

+ 8 - 8
xiaochengxu/pages/mySet/myHome.vue

@@ -66,6 +66,7 @@
 			<view v-if='!editstatus' @click='edit' class='button'>编辑</view>
 			<view v-else @click='$u.debounce(buttonsubmit, 500)' class='button'>提交</view>
 		</view>
+		<u-toast ref="uToast"></u-toast>
 	</view>
 </template>
 
@@ -168,10 +169,9 @@
 					}).then(res => {
 						// if (res.errno == 200) {
 						uni.hideLoading()
-						uni.showToast({
-						    title: '编辑成功',
-						    icon: 'none',
-						    duration: 2000
+						this.$refs.uToast.show({
+							type: 'success',
+							message: '编辑成功',
 						})
 						this.getList()
 						// }
@@ -189,11 +189,11 @@
 					}).then(res => {
 						// if (res.errno == 200) {
 						uni.hideLoading()
-						uni.showToast({
-						    title: '提交成功',
-						    icon: 'none',
-						    duration: 2000
+						this.$refs.uToast.show({
+							type: 'success',
+							message: '提交成功',
 						})
+
 						this.getList()
 						
 						// }