Jacob
9 天以前 fbc764bdbca94ced960b53e7e46fa064583752f1
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>
....@@ -513,7 +516,7 @@
513516
514517 <script>
515518 import {
516
- HTTP_REQUEST_URL
519
+ WEB_ACTIVITY_BASE
517520 } from '@/config/app';
518521 import {
519522 mapGetters
....@@ -1226,6 +1229,11 @@
12261229 // that.myCareBean = res2.data.totalCareBeans;
12271230 });
12281231 },
1232
+ goDetail() {
1233
+ uni.navigateTo({
1234
+ url: '/pages/consumption/index?zoneId=' + this.info.id
1235
+ })
1236
+ },
12291237 goLottery() {
12301238 let that = this;
12311239 var data = {
....@@ -1237,11 +1245,7 @@
12371245 this.addTrack('yy_marketPageClick', data);
12381246
12391247 function go() {
1240
- let webUrl = 'https://ossacmall.bluedeer.com.cn/acmall_lottery/index.html'
1241
- if (HTTP_REQUEST_URL.indexOf('tohours') > 0) {
1242
- webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn',
1243
- 'https://sit.tohours.com/crmeb_web')
1244
- }
1248
+ let webUrl = `${WEB_ACTIVITY_BASE}/acmall_lottery/index.html`
12451249 webUrl += '?token=' +
12461250 that.$store.getters.token + '&unionId=' + that.$store.getters.unionId + '&mdayId=' + that.info
12471251 .mdayId
....@@ -1872,6 +1876,21 @@
18721876 transform: translate(0, -50%);
18731877 }
18741878
1879
+.detail-btn {
1880
+ border: 2rpx solid #fff;
1881
+ border-top-left-radius: 20rpx;
1882
+ border-bottom-left-radius: 20rpx;
1883
+ padding: 10rpx;
1884
+ background-color: #daf2b2;
1885
+ color: #1e984f;
1886
+ width: 50rpx;
1887
+ position: fixed;
1888
+ top: 200rpx;
1889
+ right: 0rpx;
1890
+ line-height: 1rem;
1891
+ z-index: 99;
1892
+}
1893
+
18751894 .head_img {
18761895 width: 750rpx;
18771896 height: 422rpx;