zhuxiuying
9 天以前 bf266f25cf258bc533eadf0f0377d76b7bc1f11a
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>
....@@ -67,9 +70,8 @@
6770 </view>
6871 </view>
6972 </view>
70
- <view @click="goLottery" class="lottery_banner" v-if="info && info.isLottery">
71
- <image class="lottery_bannerImg"
72
- src="https://ossacmall.bluedeer.com.cn/app/static/images/zone_lotteryBanner.gif" mode="widthFix">
73
+ <view @click="goLottery" class="lottery_banner" v-if="info && info.isLottery && info.lotteryBanner">
74
+ <image class="lottery_bannerImg" :src="info.lotteryBanner" mode="widthFix">
7375 </image>
7476 </view>
7577 <view class="tag-img-container" v-if="info.zoneType == 7">
....@@ -495,7 +497,7 @@
495497
496498 <script>
497499 import {
498
- HTTP_REQUEST_URL
500
+ WEB_ACTIVITY_BASE
499501 } from '@/config/app';
500502 import {
501503 mapGetters
....@@ -1195,6 +1197,11 @@
11951197 // that.myCareBean = res2.data.totalCareBeans;
11961198 });
11971199 },
1200
+ goDetail() {
1201
+ uni.navigateTo({
1202
+ url: '/pages/consumption/index?zoneId=' + this.info.id
1203
+ })
1204
+ },
11981205 goLottery() {
11991206 let that = this;
12001207 var data = {
....@@ -1206,11 +1213,7 @@
12061213 this.addTrack('yy_marketPageClick', data);
12071214
12081215 function go() {
1209
- let webUrl = 'https://ossacmall.bluedeer.com.cn/acmall_lottery/index.html'
1210
- if (HTTP_REQUEST_URL.indexOf('tohours') > 0) {
1211
- webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn',
1212
- 'https://sit.tohours.com/crmeb_web')
1213
- }
1216
+ let webUrl = `${WEB_ACTIVITY_BASE}/acmall_lottery/index.html`
12141217 webUrl += '?token=' +
12151218 that.$store.getters.token + '&unionId=' + that.$store.getters.unionId + '&mdayId=' + that.info
12161219 .mdayId
....@@ -1633,13 +1636,11 @@
16331636 .lottery_banner {
16341637 margin: 15rpx auto;
16351638 width: 690rpx;
1636
- height: 120rpx;
16371639 text-align: center;
16381640 }
16391641
16401642 .lottery_bannerImg {
16411643 width: 690rpx;
1642
- height: 120rpx;
16431644 }
16441645
16451646 .tag-wrap-container {
....@@ -1840,6 +1841,21 @@
18401841 transform: translate(0, -50%);
18411842 }
18421843
1844
+.detail-btn {
1845
+ border: 2rpx solid #fff;
1846
+ border-top-left-radius: 20rpx;
1847
+ border-bottom-left-radius: 20rpx;
1848
+ padding: 10rpx;
1849
+ background-color: #daf2b2;
1850
+ color: #1e984f;
1851
+ width: 50rpx;
1852
+ position: fixed;
1853
+ top: 200rpx;
1854
+ right: 0rpx;
1855
+ line-height: 1rem;
1856
+ z-index: 99;
1857
+}
1858
+
18431859 .head_img {
18441860 width: 750rpx;
18451861 height: 422rpx;