|
@@ -49,7 +49,7 @@
|
|
|
<van-cell title="法律信息" is-link @click="navigateToAdLink('/pages/disclaimer/legalNotice')">
|
|
|
</van-cell>
|
|
|
</van-cell-group>-->
|
|
|
- <view class="user-item" @click="navigateToAdLink('/pages/user/award')">
|
|
|
+ <view class="user-item" v-if="isLoginState && (activityOff || is_super)" @click="navigateToAdLink('/pages/user/award')">
|
|
|
<view class="iconfont icon-jiangpin"></view>
|
|
|
<text class="user-item-text">我的奖品</text>
|
|
|
<view class="iconfont icon-Left-1"></view>
|
|
@@ -105,7 +105,7 @@ import VanCellGroup from '@/wxcomponents/vant/cell-group/index'
|
|
|
import PageLayout from "@/components/layout/page-layout";
|
|
|
import {getAdInfo} from '@/api'
|
|
|
import store from "@/store";
|
|
|
-import {qrcodeDecode} from "@/api/checkIn";
|
|
|
+import {getActivitySwitch, qrcodeDecode} from "@/api/checkIn";
|
|
|
import Toast from "@/wxcomponents/vant/toast/toast";
|
|
|
import Dialog from "@/wxcomponents/vant/dialog/dialog";
|
|
|
|
|
@@ -163,15 +163,23 @@ export default {
|
|
|
return {
|
|
|
prizeShow: false,
|
|
|
decodeInfo: {},
|
|
|
+ activityOff: 0,
|
|
|
adInfo: {
|
|
|
ad_file: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getAdData()
|
|
|
+ this.getActivitySwitchEvent()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getActivitySwitchEvent() {
|
|
|
+ getActivitySwitch().then(res=>{
|
|
|
+ this.activityOff = res.data.data.activity
|
|
|
+ })
|
|
|
+ },
|
|
|
hideOverlay() {
|
|
|
this.prizeShow = false
|
|
|
this.decodeInfo = {}
|