浏览代码

[捉药师] 切换个人信息获取接口,移除红包请求

tangyuanwang 2 周之前
父节点
当前提交
e33ffdfcb0
共有 1 个文件被更改,包括 1 次插入13 次删除
  1. 1 13
      pages/user/index.vue

+ 1 - 13
pages/user/index.vue

@@ -121,7 +121,7 @@ export default {
     	return;
     }
     // 判断数据
-    this.$http.request("api/custom/get_info").then((callback) => {
+    this.$http.request("api/question_bank/question_reception/custom/get_info").then((callback) => {
       if (callback.code == "success") {
         if (!callback.data.userpic) callback.data.userpic = "https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/doctor.png";
         // 赋值
@@ -130,7 +130,6 @@ export default {
         uni.setStorageSync("userInfo", callback.data);
       }
     });
-    this._getPacketNum();
   },
   methods: {
     _getredpacket() {
@@ -152,17 +151,6 @@ export default {
         url: "/pages/balance/index",
       });
     },
-    //获取红包数量是否展示红包领取页面
-    _getPacketNum() {
-      this.$http.request("api/redpacket/get_list").then((callback) => {
-        if (callback.code == "success") {
-          this.packetList = callback.data.data || [];
-          if (callback.data.data.length > 0) {
-            this.show_packet = true;
-          }
-        }
-      });
-    },
     closePacket() {
       this.show_packet = false;
     },