From c266572022b4274b0183897feedcbb9f1330fb4d Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Wed, 14 Aug 2024 09:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=9F=8E=E5=92=8C?= =?UTF-8?q?=E5=85=85=E8=B4=B9=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 1 - pages/editInvoice/index.js | 66 ------------------------------------ pages/editInvoice/index.wxml | 2 -- pages/home/index.js | 5 +++ pages/home/index.json | 1 + 5 files changed, 6 insertions(+), 69 deletions(-) delete mode 100644 pages/editInvoice/index.js delete mode 100644 pages/editInvoice/index.wxml diff --git a/app.json b/app.json index 2d31885..94e099e 100644 --- a/app.json +++ b/app.json @@ -18,7 +18,6 @@ "pages/qrCode/index", "pages/recharge/index", "pages/questions/index", - "pages/editInvoice/index", "pages/rechargeDetail/index", "pages/agreements/index", "pages/updateInvoice/index", diff --git a/pages/editInvoice/index.js b/pages/editInvoice/index.js deleted file mode 100644 index 5d2f97a..0000000 --- a/pages/editInvoice/index.js +++ /dev/null @@ -1,66 +0,0 @@ -// pages/editInvoice/index.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file diff --git a/pages/editInvoice/index.wxml b/pages/editInvoice/index.wxml deleted file mode 100644 index 385878f..0000000 --- a/pages/editInvoice/index.wxml +++ /dev/null @@ -1,2 +0,0 @@ - -pages/editInvoice/index.wxml \ No newline at end of file diff --git a/pages/home/index.js b/pages/home/index.js index d913945..d9a0c9e 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -54,6 +54,11 @@ Page({ }, jumpToRecharge() { + const { user } = this.data; + if (!user || !user?.id) { + alertInfo("请先登录") + return; + } wx.navigateTo({ url: '/pages/recharge/index', }) diff --git a/pages/home/index.json b/pages/home/index.json index 48cd520..205dfa6 100644 --- a/pages/home/index.json +++ b/pages/home/index.json @@ -2,6 +2,7 @@ "usingComponents": { "custom-status-bar": "/components/customStatusBar/index", "van-icon": "@vant/weapp/icon/index", + "van-button": "@vant/weapp/button/index", "van-image": "@vant/weapp/image/index", "avatar": "/components/avatar/index", "van-field": "@vant/weapp/field/index",