浏览代码

feat: 处理流量卡不是内置卡数据时候,toast提示

332777428@qq.com 2 月之前
父节点
当前提交
6fe51c184a
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/pages/pay/index.vue

+ 7 - 0
src/pages/pay/index.vue

@@ -291,6 +291,13 @@ export default {
           this.info = res.data;
           this.rateplan = res.data.rateplan;
           this.percent = (this.rateplan.used / this.rateplan.total) * 100;
+        } else if (res.code == 1017) {
+          uni.showToast({
+            title: res.message,
+            icon: "none",
+            mask: true,
+            duration: 2000,
+          });
         }
       });
     },