diff --git a/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue b/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue index d0b0a64..c4cab27 100644 --- a/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue +++ b/xuan-deduct-uniapp/src/pages/daliuren/daliuren.vue @@ -184,7 +184,7 @@ export default { this.loading = true uni.showLoading({ - title: '排盘中...', + title: '测算中...', mask: true }) diff --git a/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue b/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue index dbe706d..13fa2a9 100644 --- a/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue +++ b/xuan-deduct-uniapp/src/pages/liuyao/liuyao.vue @@ -180,7 +180,7 @@ export default { this.loading = true uni.showLoading({ - title: '排盘中...', + title: '测算中...', mask: true }) diff --git a/xuan-deduct-uniapp/src/pages/meihua/result.vue b/xuan-deduct-uniapp/src/pages/meihua/result.vue index aa1b6d4..9da034a 100644 --- a/xuan-deduct-uniapp/src/pages/meihua/result.vue +++ b/xuan-deduct-uniapp/src/pages/meihua/result.vue @@ -147,6 +147,12 @@ + + + + @@ -201,6 +207,40 @@ export default { }, onLoad() { this.result = getApp().globalData.meihuaResult || {} + }, + + methods: { + shareResult() { + const shareText = `【梅花易数占卜结果】 + +👤 占卜者:${this.result.name || '某人'} +📅 时间:${this.formatSolarTime} +🌙 农历:${this.result.lunar || '-'} + +【卦象总览】 +本卦:${this.result.benGuaName} ${this.result.benGuaAs} +变卦:${this.result.bianGuaName} ${this.result.bianGuaAs} +互卦:${this.result.huGuaName} ${this.result.huGuaAs} +动爻:${this.result.dongYaoStr}爻 + +【本卦卦辞】 +${this.result.benGuaGuaCi || '暂无'} + +【变卦卦辞】 +${this.result.bianGuaGuaCi || '暂无'} + +——来自玄学测算APP` + + uni.setClipboardData({ + data: shareText, + success: () => { + uni.showToast({ + title: '已复制到剪贴板', + icon: 'success' + }) + } + }) + } } } @@ -214,6 +254,7 @@ page { .container { min-height: 100vh; padding: 32rpx; + padding-bottom: 160rpx; } .header-card { @@ -523,4 +564,29 @@ page { color: #1F2937; font-weight: 500; } + +.share-card { + position: fixed; + bottom: 0; + left: 0; + right: 0; + padding: 20rpx 32rpx; + background: linear-gradient(180deg, transparent 0%, #A7F3D0 20%); + z-index: 100; +} + +.share-btn { + background: linear-gradient(135deg, #059669 0%, #047857 100%); + color: #fff; + border: none; + padding: 24rpx 0; + border-radius: 50rpx; + font-size: 32rpx; + font-weight: bold; + box-shadow: 0 8rpx 24rpx rgba(5, 150, 105, 0.3); +} + +.share-btn-text { + color: #fff; +} diff --git a/xuan-deduct-uniapp/src/pages/taluo/result.vue b/xuan-deduct-uniapp/src/pages/taluo/result.vue index cd9e996..4a10ae4 100644 --- a/xuan-deduct-uniapp/src/pages/taluo/result.vue +++ b/xuan-deduct-uniapp/src/pages/taluo/result.vue @@ -105,6 +105,12 @@ 重新占卜 + + + + @@ -147,6 +153,50 @@ export default { }, retry() { uni.navigateBack() + }, + + shareResult() { + const cardsText = this.result.cards ? this.result.cards.map(card => { + const position = card.isReversed ? '逆位' : '正位' + return `${card.positionMeaning}:${card.name}(${position})` + }).join('\n') : '' + + const summaryText = this.result.summary ? ` +【性格特质】 +${this.result.summary.personality} + +【感情运势】 +${this.result.summary.emotion} + +【事业发展】 +${this.result.summary.career} + +【总体建议】 +${this.result.summary.overall} +` : '' + + const shareText = `【塔罗牌占卜结果】 + +🔮 牌阵:${this.result.spreadName || '塔罗牌占卜'} +❓ 问题:${this.result.question || '神秘指引'} + +【抽到的牌】 +${cardsText} + +【牌义解读】 +${this.result.interpretation || ''} +${summaryText} +——来自玄学测算APP` + + uni.setClipboardData({ + data: shareText, + success: () => { + uni.showToast({ + title: '已复制到剪贴板', + icon: 'success' + }) + } + }) } } } @@ -155,6 +205,7 @@ export default { diff --git a/xuan-deduct-uniapp/src/pages/zhanxing/result.vue b/xuan-deduct-uniapp/src/pages/zhanxing/result.vue index 7cca090..0ac285c 100644 --- a/xuan-deduct-uniapp/src/pages/zhanxing/result.vue +++ b/xuan-deduct-uniapp/src/pages/zhanxing/result.vue @@ -202,6 +202,12 @@ + + + + @@ -380,6 +386,44 @@ export default { '双鱼座': '温柔浪漫' } return influences[sign] || '独特' + }, + + shareResult() { + const shareText = `【${this.result.name || '某人'}的星盘解析】 + +☀️ 太阳星座:${this.result.sunSign || '-'} +🌙 月亮星座:${this.result.moonSign || '-'} +⬆️ 上升星座:${this.result.risingSign || '-'} + +【性格特质】 +${this.interpretation.personality} + +【感情运势】 +${this.interpretation.love} + +【事业发展】 +${this.interpretation.career} + +【财运状况】 +${this.interpretation.wealth} + +【健康建议】 +${this.interpretation.health} + +【人生建议】 +${this.interpretation.advice} + +——来自玄学测算APP` + + uni.setClipboardData({ + data: shareText, + success: () => { + uni.showToast({ + title: '已复制到剪贴板', + icon: 'success' + }) + } + }) } } } @@ -388,6 +432,7 @@ export default {