From df2f6980ff90f96ac4ef75f84098a8eab6b326bc Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期一, 12 十月 2026 18:03:56 +0800
Subject: [PATCH] refactor: 消耗明细入口从 yueyangZone 组件迁移至专区页面
---
components/yueyangZone/index.vue | 31 +++++--------------------------
pages/zone/index.vue | 23 +++++++++++++++++++++++
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/components/yueyangZone/index.vue b/components/yueyangZone/index.vue
index 0faa9e2..734eecf 100644
--- a/components/yueyangZone/index.vue
+++ b/components/yueyangZone/index.vue
@@ -9,13 +9,10 @@
</view>
</view>
<view class="points-right">
- <image src="https://ossacmall.bluedeer.com.cn/app/static/images/yueyang_jifen.png" class="lottery-btn" mode="widthFix"
- @click="goLottery"></image>
- </view>
- <view class="detail-btn" @click="goDetail">
- <text>娑堣�楁槑缁�</text>
- </view>
- </view>
+ <image src="https://ossacmall.bluedeer.com.cn/app/static/images/yueyang_jifen.png" class="lottery-btn" mode="widthFix"
+ @click="goLottery"></image>
+ </view>
+ </view>
<!-- 浼樻儬鍒稿厬鎹㈠尯 -->
<view class="coupon-area">
@@ -133,11 +130,6 @@
},
onShow() {},
methods: {
- goDetail() {
- uni.navigateTo({
- url: '/pages/consumption/index?zoneId=' + this.zoneInfo.id
- })
- },
goLottery() {
this.$emit('goLottery')
},
@@ -322,20 +314,7 @@
height: 57rpx;
}
- .detail-btn {
- border: 2rpx solid #fff;
- /* border-radius: 10rpx; */
- border-top-left-radius: 20rpx;
- border-bottom-left-radius: 20rpx;
- padding: 10rpx;
- background-color: #daf2b2;
- color: #1e984f;
- width: 50rpx;
- position: fixed;
- top: 200rpx;
- right: 0rpx;
- line-height: 1rem;
- }
+
.coupon-area {
display: flex;
diff --git a/pages/zone/index.vue b/pages/zone/index.vue
index 0ce7a0d..622f638 100644
--- a/pages/zone/index.vue
+++ b/pages/zone/index.vue
@@ -14,6 +14,9 @@
<view :style="{ height: marTop + 'px' }"></view>
<yueyangZone ref=yueyangZoneRef v-if="isYueyangZone" :zoneInfo="info" :careBeanRate="careBeanRate"
style="position: relative;z-index: 2;" @goLottery="goLottery" :relationKey="relationKey"></yueyangZone>
+ <view v-if="isYueyangZone" class="detail-btn" @click="goDetail">
+ <text>娑堣�楁槑缁�</text>
+ </view>
<view v-else>
<view class="expireTime" v-if="expireTime && expireTime.length">
<text>涓撳尯灏嗗湪</text>
@@ -1195,6 +1198,11 @@
// that.myCareBean = res2.data.totalCareBeans;
});
},
+ goDetail() {
+ uni.navigateTo({
+ url: '/pages/consumption/index?zoneId=' + this.info.id
+ })
+ },
goLottery() {
let that = this;
var data = {
@@ -1836,6 +1844,21 @@
transform: translate(0, -50%);
}
+.detail-btn {
+ border: 2rpx solid #fff;
+ border-top-left-radius: 20rpx;
+ border-bottom-left-radius: 20rpx;
+ padding: 10rpx;
+ background-color: #daf2b2;
+ color: #1e984f;
+ width: 50rpx;
+ position: fixed;
+ top: 200rpx;
+ right: 0rpx;
+ line-height: 1rem;
+ z-index: 99;
+}
+
.head_img {
width: 750rpx;
height: 422rpx;
--
Gitblit v1.4.0