Rorschach пре 3 година
родитељ
комит
dd21923cd5
4 измењених фајлова са 8 додато и 3 уклоњено
  1. 1 1
      component/share/share.js
  2. 4 1
      pages/activity/index/index.js
  3. 1 0
      pages/index/index.js
  4. 2 1
      pages/index/index.wxml

+ 1 - 1
component/share/share.js

@@ -436,7 +436,7 @@ Component({
       }
       
       httpRequestApi.shareLog({
-        readId: this.data.id,
+        readId: this.data.id.replace('&activity=true',''),
         type: this.data.type,
         grade: this.data.grade
       }).success((res) => {

+ 4 - 1
pages/activity/index/index.js

@@ -23,7 +23,8 @@ Page({
       "PRIMARY_FIRST_GRADE": "一年级",
       "PRIMARY_SECOND_GRADE": "二年级",
       "PRIMARY_THREE_GRADE": "三年级",
-      "PRIMARY_SENIOR_GRADE": "四年级"
+      "PRIMARY_SENIOR_GRADE": "四年级",
+      "PRESCHOOL": "学前班",
     },
     myHotAmountData: {},
     commentShow: false,
@@ -367,6 +368,7 @@ Page({
    * 点击分享
    */
   openShare(e) {
+    
     this.setData({
       shareTitle: e.detail.currentTarget.dataset.title,
       shareId: e.detail.currentTarget.dataset.id,
@@ -374,6 +376,7 @@ Page({
       goToShare: true
     })
   },
+
   /**
    * 点击活动
    */

+ 1 - 0
pages/index/index.js

@@ -1,6 +1,7 @@
 //index.js
 //获取应用实例
 // 获取授权登录
+
 import {
   getOpenidSessionKey
 } from '../../utils/httpUtil';

+ 2 - 1
pages/index/index.wxml

@@ -46,7 +46,8 @@
     </view>
   </view>
   
-  <view hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || 0 != myIndex}}" class="activity-img" bindtap="goToActivity">
+  <!-- <view hidden="{{gradeActivity === 'PRIMARY_SENIOR_GRADE' || gradeActivity === 'PRESCHOOL' || 0 != myIndex}}" class="activity-img" bindtap="goToActivity"> -->
+  <view hidden="{{0 != myIndex}}" class="activity-img" bindtap="goToActivity">
     <image src="http://reader-wx.ai160.com/images/reader/activity/banner61.jpg"></image>
   </view>