From ec7f2840357979c8afd277b3d8780b4af58cc102 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com>
Date: Mon, 29 Dec 2025 17:17:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=AF=E5=88=86=E5=85=91?=
=?UTF-8?q?=E6=8D=A2=E8=AF=A6=E6=83=85=E9=A1=B5=E6=8E=A7=E5=88=B6=E5=8F=B0?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/jfShop/detail/index.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/packages/jfShop/detail/index.vue b/packages/jfShop/detail/index.vue
index 7f087530..b61a3716 100644
--- a/packages/jfShop/detail/index.vue
+++ b/packages/jfShop/detail/index.vue
@@ -43,7 +43,7 @@
当前积分{{ userPoints }}
- 暂未登录,请先登录
+ 暂未登录,请先登录
积分不足,还差{{ selectedGoodsInfo.points - userPoints }}积分哦
@@ -112,7 +112,8 @@ export default {
selectedSpecId: 1,
selectedSpec: '',
quantity: 1,
- selectedGoodsInfo: {}
+ selectedGoodsInfo: {},
+ isLoggedIn: false
};
},
computed: {
@@ -182,9 +183,13 @@ export default {
},
onshow() {
this.getPointNum();
+ // 更新登录状态
+ this.isLoggedIn = !!uni.getStorageSync("ctoken");
},
onLoad(options) {
this.getPointNum();
+ // 初始化登录状态
+ this.isLoggedIn = !!uni.getStorageSync("ctoken");
const orderInfo = JSON.parse(options.product);
const params = {
id: orderInfo.id