From e2bf73079051769b7b7cdc9627fc32ce64226144 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 08 七月 2025 15:21:36 +0800 Subject: [PATCH] 量表修改 --- pages/cart/index.js | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index b36954d..4a4ceb1 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -33,12 +33,21 @@ wx.setNavigationBarTitle({ title: '璐墿杞�' }); - this.shoppingCartGet(); + // this.shoppingCartGet(); this.setData({ swipeOpened: true }) }, onShow() { + loginInfo(app, (data) => { + if (data) { + this.shoppingCartGet(); + } else { + wx.switchTab({ + url: '/pages/home/home', + }) + } + }) this.setData({ swipeOpened: false }) @@ -47,7 +56,6 @@ active: 3 }) } - this.shoppingCartGet(); this.setData({ totalPrice: 0.00, selectedCount: 0, @@ -131,7 +139,7 @@ if (item.saleMethod.type == 'createProductItemSaleMethod' || item.saleMethod.type == 'createProductFolderSaleMethod') { if (item.linkCmsItems[0].refCode == 'questionBank') { - item.type = '浜戞祴璇�' + item.typeTxt = '浜戞祴璇�' item.productType = '鍥句功鏈嶅姟-浜戞祴璇�' } else { item.typeTxt = '浜戝涔�' @@ -216,12 +224,7 @@ }); }, - - - - goPaymentPage() { - // 棣栭〉娴嬭瘯鐧诲綍鍔熻兘锛屽悗缁敞閲� // 妫�鏌ョ櫥褰曠姸鎬� const token = wx.getStorageSync(app.config.tokenKey) -- Gitblit v1.9.1