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",