Commit ef6dc641 authored by Facius's avatar Facius

配件订单详情页面操作

parent d7503640
......@@ -191,7 +191,7 @@
this.$refs.uToast.show({
title: message,
type: type,
duration: 1000,
duration: 1500,
callback: function() {}
})
})
......
......@@ -52,6 +52,9 @@
<u-button :custom-style="customStyle" shape="circle" @click="handleClick" type="primary">
{{buttonText}}
</u-button>
</view>
<view>
<u-toast ref="uToast" />
</view>
</view>
</template>
......@@ -194,7 +197,7 @@
},
methods: {
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 message = res.message
if (res.code == 200) {
......@@ -206,7 +209,7 @@
this.$refs.uToast.show({
title: message,
type: type,
duration: 1000,
duration: 1500,
callback: function() {}
})
var pages = getCurrentPages();
......
......@@ -924,7 +924,7 @@
this.$refs.uToast.show({
title: message,
type: type,
duration: 1000,
duration: 1500,
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