From ad876a6fea2df6e2a831d4c9d95cf724855610f4 Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期六, 14 十二月 2024 16:43:35 +0800
Subject: [PATCH] 修复用户微信扫码进入小程序无法跳转及登录问题,修改会员卡解绑接口

---
 unpackage/dist/dev/mp-weixin/pages/index/index.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.js b/unpackage/dist/dev/mp-weixin/pages/index/index.js
index fc913b6..c86f8c0 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.js
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -60,7 +60,8 @@
           cardInfo.value.userPhone = res.data.userInfo.userPhone;
           cardInfo.value.id = res.data.userInfo.id;
           await getVipInfo();
-          console.log("00000", cardInfo.value);
+          console.log("用户信息响应", res);
+          console.log("用户信息", cardInfo.value);
           common_vendor.index.setStorageSync("userInfo", JSON.stringify(cardInfo.value));
         }
       });
@@ -77,6 +78,7 @@
       });
     }
     const functionList = common_vendor.ref([
+      //isUrl:1:页面跳转,2:弹窗功能,3:弹窗功能,4:未开发
       { text: "余额记录", icon: "../../static/images/index/icon31.png", bgColor: "#16b387", url: "/pages/functionList/balanceRecord/index", isUrl: 1 },
       { text: "消费记录", icon: "../../static/images/index/icon32.png", bgColor: "#329ae8", url: "/pages/functionList/paymentRecord/index", isUrl: 1 },
       { text: "充值记录", icon: "../../static/images/index/icon33.png", bgColor: "#f0a50e", url: "/pages/functionList/rechargeRecord/index", isUrl: 1 },
@@ -147,7 +149,7 @@
               content: "确认注销会员卡?",
               success: async function(res) {
                 if (res.confirm) {
-                  await api_index.removeCardApi(cardInfo.value.waterCardNumber).then(async (res2) => {
+                  await api_index.removeBindingApi(cardInfo.value.waterCardNumber).then(async (res2) => {
                     if (res2.code == 200) {
                       common_vendor.index.showToast({
                         title: "已注销",
@@ -325,7 +327,7 @@
       } : {}) : {}, {
         B: topHeight.value + "rpx",
         C: common_assets._imports_5,
-        D: common_vendor.o(($event) => navTo("/pages/preSendWater/index")),
+        D: common_vendor.o(upGrade),
         E: common_assets._imports_1$1,
         F: common_vendor.o(($event) => navTo("/pages/facilityList/index")),
         G: common_assets._imports_7,

--
Gitblit v1.9.3