| | |
| | | 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)); |
| | | } |
| | | }); |
| | |
| | | }); |
| | | } |
| | | 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 }, |
| | |
| | | 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: "已注销", |
| | |
| | | }, cardInfo.value.headImg ? { |
| | | b: common_vendor.unref(config_baseUrl.BASE_URL) + "/upload" + cardInfo.value.headImg |
| | | } : { |
| | | c: common_assets._imports_0$3 |
| | | c: common_assets._imports_0$4 |
| | | }, { |
| | | d: common_vendor.t(cardInfo.value.userName), |
| | | e: common_vendor.o(($event) => navTo("/pages/userInfo/index")), |
| | | f: common_vendor.o(($event) => navTo("/pages/userInfo/index")), |
| | | g: common_assets._imports_1$1, |
| | | h: common_assets._imports_0$2, |
| | | g: common_assets._imports_1$2, |
| | | h: common_assets._imports_0$3, |
| | | i: isShareCard.value |
| | | }, isShareCard.value ? { |
| | | j: common_vendor.t(cardInfo.value.waterCardNumber) |
| | |
| | | }, !isShareCard.value ? common_vendor.e({ |
| | | l: isVip.value |
| | | }, isVip.value ? { |
| | | m: common_assets._imports_3 |
| | | m: common_assets._imports_3$1 |
| | | } : {}, { |
| | | n: isVip.value |
| | | }, isVip.value ? {} : {}, { |
| | |
| | | } : {}, { |
| | | w: !isVip.value |
| | | }, !isVip.value ? { |
| | | x: common_assets._imports_4, |
| | | x: common_assets._imports_4$1, |
| | | y: common_vendor.o(($event) => navTo("/pages/addCard/index")) |
| | | } : {}, { |
| | | z: isVip.value |
| | |
| | | B: topHeight.value + "rpx", |
| | | C: common_assets._imports_5, |
| | | D: common_vendor.o(upGrade), |
| | | E: common_assets._imports_1, |
| | | E: common_assets._imports_1$1, |
| | | F: common_vendor.o(($event) => navTo("/pages/facilityList/index")), |
| | | G: common_assets._imports_7, |
| | | H: common_vendor.o(($event) => toScan()), |
| | |
| | | K: common_assets._imports_9, |
| | | L: common_assets._imports_10, |
| | | M: common_assets._imports_11, |
| | | N: common_vendor.o(($event) => navTo("/pages/pointsMall/index")), |
| | | N: common_vendor.o(($event) => navTo("/pagesPoints/pointsMall/index")), |
| | | O: common_assets._imports_12, |
| | | P: common_assets._imports_13, |
| | | Q: common_vendor.o(($event) => navTo("/pages/station/index")), |