fix: 🐛 修改订单取消不展示bug
parent
a353022d36
commit
c7237e561c
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name" : "lili商城",
|
"name" : "lili商城",
|
||||||
"appid" : "__UNI__D472780",
|
"appid" : "__UNI__ED807EA",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "4.2.8",
|
"versionName" : "4.2.8",
|
||||||
"versionCode" : 4000280,
|
"versionCode" : 4000280,
|
||||||
|
|
|
@ -542,13 +542,13 @@ export default {
|
||||||
*/
|
*/
|
||||||
submitCancel() {
|
submitCancel() {
|
||||||
cancelOrder(this.orderSn, { reason: this.reason }).then((res) => {
|
cancelOrder(this.orderSn, { reason: this.reason }).then((res) => {
|
||||||
if (res.statusCode == 200) {
|
if (res.data.success) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "订单已取消",
|
title: "订单已取消",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
this.initData(0);
|
this.initData(this.tabCurrentIndex);
|
||||||
|
|
||||||
this.cancelShow = false;
|
this.cancelShow = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue