Browse Source

no message

seamwang 2 years ago
parent
commit
770a7d4b5d
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/pages/order/index.vue

+ 5 - 3
src/pages/order/index.vue

@@ -278,9 +278,11 @@ export default {
278 278
         confirmText: '确定',
279 279
         success: res => {
280 280
           if (res.confirm) {
281
-            _dropCourse(params).then(res => {
282
-              uni.showToast({ title: '已经发起退课,请耐心等待', icon: 'none' })
283
-              _self.refresh()
281
+            _dropCourse(params).then(rs => {
282
+              if (rs.code === 1) {
283
+                uni.showToast({ title: '已经发起退课,请耐心等待', icon: 'none' })
284
+                _self.refresh()
285
+              }
284 286
             })
285 287
           }
286 288
         }