From 2d70a7ca4e234a84da99a1d38d20932533ac3133 Mon Sep 17 00:00:00 2001 From: minimaxagent1 Date: Tue, 5 Aug 2025 15:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=88=E7=A6=8F=E6=88=90=E5=8A=9F=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BB=A5=E5=8F=8A=E9=9A=8F=E5=96=9C=E5=BC=B9=E7=AA=97?= =?UTF-8?q?1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/bottom-button/bottom-button.vue | 11 +- components/donate-modal/donate-modal.vue | 248 +++++++++++++++++++++ enum/common.js | 3 + pages.json | 9 + pages/pray/pray.vue | 7 + pages/pray/praySuccess.vue | 233 +++++++++++++++++++ 6 files changed, 508 insertions(+), 3 deletions(-) create mode 100644 components/donate-modal/donate-modal.vue create mode 100644 pages/pray/praySuccess.vue diff --git a/components/bottom-button/bottom-button.vue b/components/bottom-button/bottom-button.vue index 23474ff..5e33e06 100644 --- a/components/bottom-button/bottom-button.vue +++ b/components/bottom-button/bottom-button.vue @@ -88,11 +88,16 @@ export default { // 次要按钮样式 &--secondary { - background-color: #6C757D; - box-shadow: 0 8rpx 20rpx rgba(108, 117, 125, 0.3); + background-color: #F5F0E7; + border: 2rpx solid #8B2E2E; + box-shadow: 0 4rpx 12rpx rgba(139, 46, 46, 0.1); + + .button-text { + color: #8B2E2E; + } &:active { - background-color: #5A6268; + background-color: #F0EBE0; transform: translateX(-50%) scale(0.98); } } diff --git a/components/donate-modal/donate-modal.vue b/components/donate-modal/donate-modal.vue new file mode 100644 index 0000000..f76f7bd --- /dev/null +++ b/components/donate-modal/donate-modal.vue @@ -0,0 +1,248 @@ + + + + + \ No newline at end of file diff --git a/enum/common.js b/enum/common.js index f34a24d..c0ae74e 100644 --- a/enum/common.js +++ b/enum/common.js @@ -13,6 +13,9 @@ export const CommonEnum = { ADDRESS:"https://api.ccttiot.com/image-1754292905805.png",//地址图标 BUDDHA_BACKGROUND:"https://api.ccttiot.com/image-1754297645655.png",//佛像背景 CENSER:"https://api.ccttiot.com/image-1754297886734.png",//香炉 + KongmingLantern:'https://api.ccttiot.com/image-1754376453672.png',//孔明灯 + Refresh:'https://api.ccttiot.com/image-1754377032112.png',//刷新 + LotusMeditation:'https://api.ccttiot.com/image-1754377169541.png',//莲坐禅心 }; export default CommonEnum; \ No newline at end of file diff --git a/pages.json b/pages.json index 8375448..d9004c3 100644 --- a/pages.json +++ b/pages.json @@ -145,6 +145,15 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + }, + { + "path" : "pages/pray/praySuccess", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } } ], diff --git a/pages/pray/pray.vue b/pages/pray/pray.vue index 8804632..26bbe4c 100644 --- a/pages/pray/pray.vue +++ b/pages/pray/pray.vue @@ -198,6 +198,13 @@ export default { if (response.code === 200) { uni.showToast({ title: '祈福成功!', icon: 'success' }); this.resetForm(); + + // 跳转到祈福成功页面 + setTimeout(() => { + uni.navigateTo({ + url: '/pages/pray/praySuccess' + }); + }, 1500); } else { uni.showToast({ title: response.msg || '祈福失败,请重试', icon: 'none' }); } diff --git a/pages/pray/praySuccess.vue b/pages/pray/praySuccess.vue new file mode 100644 index 0000000..1bd7444 --- /dev/null +++ b/pages/pray/praySuccess.vue @@ -0,0 +1,233 @@ + + + + + \ No newline at end of file