Commit ef6dc641 authored by Facius's avatar Facius

配件订单详情页面操作

parent d7503640
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
}) })
......
...@@ -53,6 +53,9 @@ ...@@ -53,6 +53,9 @@
{{buttonText}} {{buttonText}}
</u-button> </u-button>
</view> </view>
<view>
<u-toast ref="uToast" />
</view>
</view> </view>
</template> </template>
...@@ -194,7 +197,7 @@ ...@@ -194,7 +197,7 @@
}, },
methods: { methods: {
handleClick() { handleClick() {
this.$u.api[this.operateType](this.info.id).then(res => { this.$u.api[this.buttonOperateType](this.info.id).then(res => {
var type = 'error' var type = 'error'
var message = res.message var message = res.message
if (res.code == 200) { if (res.code == 200) {
...@@ -206,7 +209,7 @@ ...@@ -206,7 +209,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
var pages = getCurrentPages(); var pages = getCurrentPages();
......
...@@ -924,7 +924,7 @@ ...@@ -924,7 +924,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: message, title: message,
type: type, type: type,
duration: 1000, duration: 1500,
callback: function() {} callback: function() {}
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment