yuantianjiao 6 years ago
parent
commit
cd271e6a78
2 changed files with 5 additions and 2 deletions
  1. 4
    1
      src/pages/user/placeOrder/index.vue
  2. 1
    1
      src/pages/user/placeOrderDetail/index.vue

+ 4
- 1
src/pages/user/placeOrder/index.vue View File

@@ -16,7 +16,7 @@
16 16
         <div class="flex-item">
17 17
           <div>
18 18
             <span>桌号:{{tableNo}}</span>
19
-            <span v-if="userInfo.customer.MapUser !== ''">本月已用:{{caseTotal.monthtotal}}杯</span>
19
+            <span v-if="userInfo.customer.MapUser !== '' && fromPage === 'sales'">本月已用:{{caseTotal.monthtotal}}杯</span>
20 20
           </div>
21 21
         </div>
22 22
         <a @click="reback">返回选择桌号</a>
@@ -185,6 +185,7 @@ export default {
185 185
     calcMenu,
186 186
   },
187 187
   created () {
188
+    this.fromPage = sessionStorage.getItem('from')
188 189
     this.getGoodsTypeList({
189 190
       caseid: this.caseId,
190 191
     }).then((res) => {
@@ -317,6 +318,8 @@ export default {
317 318
           // }).then(() => {
318 319
 
319 320
           // })
321
+        }).catch(() => {
322
+          this.ajaxoff = true
320 323
         })
321 324
       }
322 325
     },

+ 1
- 1
src/pages/user/placeOrderDetail/index.vue View File

@@ -247,7 +247,7 @@ export default {
247 247
           //   window.history.go(-2)
248 248
           // })
249 249
         }).catch(() => {
250
-          // this.ajaxoff = true
250
+          this.ajaxoff = true
251 251
         })
252 252
       }
253 253
     },