|
@@ -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()
|
|
|
|
|
|
// }
|