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>
....@@ -24,24 +27,6 @@
2427 </view>
2528 <view class="head_img">
2629 <image :src="info.image"></image>
27
- </view>
28
- <view v-if="info.zoneType == 8 && info.info" class="rich-content">
29
- <rich-text :nodes="info.info"></rich-text>
30
- </view>
31
- <view v-if="info.zoneType == 8 && info.uploadVideo" class="video-wrap">
32
- <view v-show="!videoControls" style="width:100%;height:750rpx">
33
- <video id="zoneVideo" :src='info.uploadVideo' objectFit="contain" controls
34
- style="width:100%;height:100%" show-center-play-btn="true" show-mute-btn="true" muted="true"
35
- show-fullscreen-btn="true" auto-pause-if-navigate :custom-cache="false"
36
- :enable-progress-gesture="true" show-progress="false"
37
- :poster="info.uploadVideoImg || info.image" @pause="zoneVideoPause"></video>
38
- </view>
39
- <view class="video-poster" v-show="videoControls">
40
- <image class="image" :src="info.uploadVideoImg || info.image"></image>
41
- </view>
42
- <view class="video-stop" v-show="videoControls" @tap="bindZoneVideoPlay">
43
- <image class="image" src="https://ossacmall.bluedeer.com.cn/app/static/images/stop.png"></image>
44
- </view>
4530 </view>
4631 <view class="tag-wrap-container" :style="'top:' + (marTop) + 'px;'" v-if="info.zoneType == 7">
4732 <view class="tag-wrap">
....@@ -85,9 +70,8 @@
8570 </view>
8671 </view>
8772 </view>
88
- <view @click="goLottery" class="lottery_banner" v-if="info && info.isLottery">
89
- <image class="lottery_bannerImg"
90
- 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">
9175 </image>
9276 </view>
9377 <view class="tag-img-container" v-if="info.zoneType == 7">
....@@ -614,8 +598,6 @@
614598 isYueyangZone: false,
615599 isOpen: false, // 默认收起,false收起/true展开
616600 currentIndex: -1, // 默认选中第一个【全部】
617
- videoControls: true, // 专区活动视频是否显示海报+播放按钮
618
- zoneVideoContext: '', // 活动视频播放上下文
619601 partitionList: [],
620602 partitionProject: {},
621603 tagList: [],
....@@ -855,17 +837,6 @@
855837 }
856838 },
857839 methods: {
858
- /**
859
- * 专区活动视频:点击海报播放按钮后播放
860
- */
861
- bindZoneVideoPlay() {
862
- if (!this.zoneVideoContext) {
863
- this.zoneVideoContext = uni.createVideoContext('zoneVideo', this);
864
- }
865
- this.$set(this, 'videoControls', false);
866
- this.zoneVideoContext.play();
867
- },
868
- zoneVideoPause() { },
869840 handleCouponRule() {
870841 this.$refs.personalAndShareCouponRuleRef.show(this.info.ruleContentText)
871842 },
....@@ -1226,6 +1197,11 @@
12261197 // that.myCareBean = res2.data.totalCareBeans;
12271198 });
12281199 },
1200
+ goDetail() {
1201
+ uni.navigateTo({
1202
+ url: '/pages/consumption/index?zoneId=' + this.info.id
1203
+ })
1204
+ },
12291205 goLottery() {
12301206 let that = this;
12311207 var data = {
....@@ -1476,7 +1452,6 @@
14761452 console.log('专区详情入参::', params)
14771453 getZoneDetail(that.id, params).then(res => {
14781454 that.info = res.data;
1479
- //that.info.zoneType=8;
14801455 that.updateZoneShareMenu();
14811456 if (res.data.zoneType == 6) {
14821457 that.setYueyangZone()
....@@ -1661,13 +1636,11 @@
16611636 .lottery_banner {
16621637 margin: 15rpx auto;
16631638 width: 690rpx;
1664
- height: 120rpx;
16651639 text-align: center;
16661640 }
16671641
16681642 .lottery_bannerImg {
16691643 width: 690rpx;
1670
- height: 120rpx;
16711644 }
16721645
16731646 .tag-wrap-container {
....@@ -1868,6 +1841,21 @@
18681841 transform: translate(0, -50%);
18691842 }
18701843
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
+
18711859 .head_img {
18721860 width: 750rpx;
18731861 height: 422rpx;
....@@ -1876,48 +1864,6 @@
18761864 width: 750rpx;
18771865 height: 422rpx;
18781866 }
1879
-}
1880
-
1881
-.rich-content {
1882
- padding: 24rpx 30rpx;
1883
- background-color: #fff;
1884
-}
1885
-
1886
-.video-wrap {
1887
- position: relative;
1888
- width: 100%;
1889
- height: 750rpx;
1890
- background-color: #000;
1891
-}
1892
-
1893
-.video-wrap .video-poster {
1894
- position: absolute;
1895
- top: 0;
1896
- left: 0;
1897
- width: 100%;
1898
- height: 750rpx;
1899
- z-index: 9;
1900
-}
1901
-
1902
-.video-wrap .video-poster .image {
1903
- width: 100%;
1904
- height: 100%;
1905
-}
1906
-
1907
-.video-wrap .video-stop {
1908
- position: absolute;
1909
- top: 50%;
1910
- left: 50%;
1911
- width: 136rpx;
1912
- height: 136rpx;
1913
- margin-top: -68rpx;
1914
- margin-left: -68rpx;
1915
- z-index: 9;
1916
-}
1917
-
1918
-.video-wrap .video-stop .image {
1919
- width: 100%;
1920
- height: 100%;
19211867 }
19221868
19231869 .toolbarList {