Authored by yyq

fix

@@ -120,7 +120,11 @@ Page({ @@ -120,7 +120,11 @@ Page({
120 }); 120 });
121 }, 121 },
122 cancelOrder() { 122 cancelOrder() {
123 - orderHandle.cancelOrder(this.orderCode); 123 + orderHandle.cancelOrder(this.orderCode, res => {
  124 + if (res && res.code === 200) {
  125 + wx.navigateBack({delta: 1});
  126 + }
  127 + });
124 }, 128 },
125 payNow() { 129 payNow() {
126 orderHandle.payNow({ 130 orderHandle.payNow({
@@ -129,13 +133,21 @@ Page({ @@ -129,13 +133,21 @@ Page({
129 }); 133 });
130 }, 134 },
131 deleteOrder() { 135 deleteOrder() {
132 - orderHandle.deleteOrder(this.orderCode); 136 + orderHandle.deleteOrder(this.orderCode, res => {
  137 + if (res && res.code === 200) {
  138 + wx.navigateBack({delta: 1});
  139 + }
  140 + });
133 }, 141 },
134 viewExpress() { 142 viewExpress() {
135 orderHandle.expressDetail(this.orderCode); 143 orderHandle.expressDetail(this.orderCode);
136 }, 144 },
137 confirmOrder() { 145 confirmOrder() {
138 - orderHandle.confirmReceive(this.orderCode); 146 + orderHandle.confirmReceive(this.orderCode, res => {
  147 + if (res && res.code === 200) {
  148 + wx.navigateBack({delta: 1});
  149 + }
  150 + });
139 }, 151 },
140 refundOrder() { 152 refundOrder() {
141 let that = this; 153 let that = this;
@@ -16,6 +16,10 @@ page { @@ -16,6 +16,10 @@ page {
16 padding-bottom: 100rpx; 16 padding-bottom: 100rpx;
17 } 17 }
18 18
  19 +button:after{
  20 + border: none;
  21 +}
  22 +
19 .address-wrap { 23 .address-wrap {
20 border-top: 1rpx solid #e0e0e0; 24 border-top: 1rpx solid #e0e0e0;
21 margin-bottom: 20rpx; 25 margin-bottom: 20rpx;
1 @import "./template/item/item.wxss"; 1 @import "./template/item/item.wxss";
2 @import "./template/reason/reason.wxss"; 2 @import "./template/reason/reason.wxss";
3 3
  4 +button:after{
  5 + border: none;
  6 +}
  7 +
4 .page-container { 8 .page-container {
5 background-color: #f2f2f2; 9 background-color: #f2f2f2;
6 box-sizing: border-box; 10 box-sizing: border-box;