Jacob
2026-10-12 df2f6980ff90f96ac4ef75f84098a8eab6b326bc
refactor: 消耗明细入口从 yueyangZone 组件迁移至专区页面
2个文件已修改
54 ■■■■■ 已修改文件
components/yueyangZone/index.vue 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/zone/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/yueyangZone/index.vue
....@@ -9,13 +9,10 @@
99 </view>
1010 </view>
1111 <view class="points-right">
12
- <image src="https://ossacmall.bluedeer.com.cn/app/static/images/yueyang_jifen.png" class="lottery-btn" mode="widthFix"
13
- @click="goLottery"></image>
14
- </view>
15
- <view class="detail-btn" @click="goDetail">
16
- <text>消耗明细</text>
17
- </view>
18
- </view>
12
+ <image src="https://ossacmall.bluedeer.com.cn/app/static/images/yueyang_jifen.png" class="lottery-btn" mode="widthFix"
13
+ @click="goLottery"></image>
14
+ </view>
15
+ </view>
1916
2017 <!-- 优惠券兑换区 -->
2118 <view class="coupon-area">
....@@ -133,11 +130,6 @@
133130 },
134131 onShow() {},
135132 methods: {
136
- goDetail() {
137
- uni.navigateTo({
138
- url: '/pages/consumption/index?zoneId=' + this.zoneInfo.id
139
- })
140
- },
141133 goLottery() {
142134 this.$emit('goLottery')
143135 },
....@@ -322,20 +314,7 @@
322314 height: 57rpx;
323315 }
324316
325
- .detail-btn {
326
- border: 2rpx solid #fff;
327
- /* border-radius: 10rpx; */
328
- border-top-left-radius: 20rpx;
329
- border-bottom-left-radius: 20rpx;
330
- padding: 10rpx;
331
- background-color: #daf2b2;
332
- color: #1e984f;
333
- width: 50rpx;
334
- position: fixed;
335
- top: 200rpx;
336
- right: 0rpx;
337
- line-height: 1rem;
338
- }
317
+
339318
340319 .coupon-area {
341320 display: flex;
pages/zone/index.vue
....@@ -14,6 +14,9 @@
1414 <view :style="{ height: marTop + 'px' }"></view>
1515 <yueyangZone ref=yueyangZoneRef v-if="isYueyangZone" :zoneInfo="info" :careBeanRate="careBeanRate"
1616 style="position: relative;z-index: 2;" @goLottery="goLottery" :relationKey="relationKey"></yueyangZone>
17
+ <view v-if="isYueyangZone" class="detail-btn" @click="goDetail">
18
+ <text>消耗明细</text>
19
+ </view>
1720 <view v-else>
1821 <view class="expireTime" v-if="expireTime && expireTime.length">
1922 <text>专区将在</text>
....@@ -1195,6 +1198,11 @@
11951198 // that.myCareBean = res2.data.totalCareBeans;
11961199 });
11971200 },
1201
+ goDetail() {
1202
+ uni.navigateTo({
1203
+ url: '/pages/consumption/index?zoneId=' + this.info.id
1204
+ })
1205
+ },
11981206 goLottery() {
11991207 let that = this;
12001208 var data = {
....@@ -1836,6 +1844,21 @@
18361844 transform: translate(0, -50%);
18371845 }
18381846
1847
+.detail-btn {
1848
+ border: 2rpx solid #fff;
1849
+ border-top-left-radius: 20rpx;
1850
+ border-bottom-left-radius: 20rpx;
1851
+ padding: 10rpx;
1852
+ background-color: #daf2b2;
1853
+ color: #1e984f;
1854
+ width: 50rpx;
1855
+ position: fixed;
1856
+ top: 200rpx;
1857
+ right: 0rpx;
1858
+ line-height: 1rem;
1859
+ z-index: 99;
1860
+}
1861
+
18391862 .head_img {
18401863 width: 750rpx;
18411864 height: 422rpx;