Browse Source

修复BUG

xia 4 years ago
parent
commit
7fdeab37d9
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/views/Activity/index.ux

+ 2 - 4
src/views/Activity/index.ux

@@ -4,7 +4,7 @@
     <div class="stack" style="background-color: #ff8b63" if={{activity}}>
       <image src="https://cdn-novel.iycdm.com/h5/channelActivity/activity-2020-04-17/20200417173207-bg.jpeg"></image>
       <div class="contain">
-        <text class="promotion-title" if="{{activity.isForever!=='1'}}">活动时间:{{activity.startTime.substring(0,10)}} 至 {{activity.endTime.substring(0,10)}}</text>
+        <text class="promotion-title" if="{{activity.isForever!='1'}}">活动时间:{{activity.startTime.substring(0,10)}} 至 {{activity.endTime.substring(0,10)}}</text>
         <div class="charge-item {{currentIdx==$idx?'charge-on':''}}" for="{{activity.products}}" @click="chooseItem($item,$idx)">
           <block if="{{$item.type=='YEAR_ORDER'}}">
              <text class="limit {{currentIdx==$idx?'checked':''}}">限充{{$item.limit}}次</text>
@@ -85,7 +85,6 @@ export default {
     showLoading: false,
   },
   onInit() {
-    console.log('sssss')
     //getAppConfig(this);
     this.getUserInfo();
     setTimeout(()=>{
@@ -100,11 +99,10 @@ export default {
     return false;
   },
   closeMask() {
-    let a = 'this.token'
     this.showPay = false;
   },
   async getAcitvy() {
-    let activity = await getAcitivity('8148bcb29074dafe1edd21dc06db9249');
+    let activity = await getAcitivity(this.token);
      this.activity = activity;
     this.currentProduct = this.activity.products[0];
   },