Ver código fonte

调试修改发版

bayi 2 anos atrás
pai
commit
736975175a

+ 3 - 7
components/activityList/index.js

@@ -34,10 +34,12 @@ Component({
    */
   methods: {
     async getActivities() {
+      this.data.dsqList.forEach(item => {
+        clearInterval(item)
+      })
       let activityList = await getActivities({
         classify: this.properties.classify
       })
-      console.log(activityList);
       this.setData({
         activityList
       })
@@ -63,7 +65,6 @@ Component({
         var nowTime = new Date();
         //把剩余时间毫秒数转化为秒
         var times = (inputTime - nowTime) / 1000;
-        // console.log(times);
         if (times <= 0) {
           this.setData({
             [`activityList[${index}].hour`]: '00',
@@ -113,10 +114,6 @@ Component({
         })
       }
       if (type == 5) {
-        console.log(type,
-          id,
-          title,
-          explain);
         wx.navigateTo({
           url: `/pages/match/index?activityId=${id}`,
         })
@@ -131,7 +128,6 @@ Component({
       currentTarget
     }) {
       let info = currentTarget.dataset.info
-      console.log(currentTarget.dataset.info);
       if (info.finish) {
         return
       }

+ 1 - 1
components/activityList/index.wxml

@@ -75,7 +75,7 @@
         </view>
       </view>
     </view>
-    <view class="activityBox" wx:if="{{item.bannerType==4}}" wx:if="{{!isIos}}">
+    <view class="activityBox" wx:if="{{item.bannerType==4&&!isIos}}">
       <image src="{{item.icon}}" class="cover-small " />
       <view class="footer">
         <view class="info">

+ 0 - 1
mixins/share.js

@@ -30,7 +30,6 @@ module.exports = Behavior({
       }
     },
     creatShare(video) {
-      console.log(video);
       return new Promise(async (resolve, reject) => {
         let isActivity = await isActivityWork(video.userRead.id)
         let context = wx.createSelectorQuery(video.id);

+ 1 - 2
pages/editUser/index.js

@@ -54,7 +54,6 @@ Page({
     })
     // 立刻更新
     this.storeBindings.updateStoreBindings()
-    console.log(this.data.userInfo);
     let {
       grade
     } = this.data.userInfo
@@ -166,7 +165,7 @@ Page({
       mobile
     })
     let userInfo = await getMyInfo()
-    this.setUser(userInfo)
+    this.setUser(userInfo.user)
     wx.showToast({
       title: '绑定成功!已获得7天VIP',
       icon: "none",

+ 0 - 10
pages/match/index.less

@@ -7,16 +7,6 @@
     height: 216rpx;
   }
 
- 
-  .kaka {
-    position: fixed;
-    right: 10rpx;
-    top: 220rpx;
-    width: 114rpx;
-    height: 131rpx;
-    z-index: 3;
-  }
-
   .modelText {
     position: relative;
     width: 724rpx;

+ 0 - 3
pages/match/index.wxml

@@ -2,9 +2,6 @@
 <navigationBar bind:reload='reload' showNav="{{false}}"></navigationBar>
 <view class="matchBox">
   <image src="http://reader-wx.ai160.com/images/reader/v3/enter_banner.jpg" class="headerImg" bindtap="jumpIntro"/>
-  <button class="resetBtn" style="border: none;" open-type="contact" plain="true">
-    <image src="/static/kaka.png" class="kaka" />
-  </button>
   <view class="modelText">
     <view class="header">
       <image src="/static/modelBg.png" class="bg" />

+ 0 - 8
pages/match/index.wxss

@@ -6,14 +6,6 @@
   width: 100%;
   height: 216rpx;
 }
-.matchBox .kaka {
-  position: fixed;
-  right: 10rpx;
-  top: 220rpx;
-  width: 114rpx;
-  height: 131rpx;
-  z-index: 3;
-}
 .matchBox .modelText {
   position: relative;
   width: 724rpx;

BIN
static/kaka.png


+ 7 - 7
utils/request.js

@@ -6,13 +6,13 @@ const {
     envVersion
   }
 } = wx.getAccountInfoSync();
-// if (envVersion == 'develop') {
-baseUrl = 'https://reader-api.efunbox.cn/wx'
-oldUrl = 'https://reader-api.efunbox.cn'
-// } else {
-//   baseUrl = 'https://reader-api.ai160.com/wx'
-//   oldUrl = 'https://reader-api.ai160.com'
-// }
+if (envVersion == 'develop') {
+  baseUrl = 'https://reader-api.efunbox.cn/wx'
+  oldUrl = 'https://reader-api.efunbox.cn'
+} else {
+  baseUrl = 'https://reader-api.ai160.com/wx'
+  oldUrl = 'https://reader-api.ai160.com'
+}
 
 function request(url, method, data, oldBaseUrl = false) {
   let header = {