Browse Source

解决微信小程序问题

Limengbo 6 years ago
parent
commit
6a619989ef

+ 1 - 1
compontents/curriculum/curriculum.js

@@ -40,7 +40,7 @@ Component({
       let flage = e.target.dataset.flag;
       const height = this.properties.studyLog.length * 56;
       if(flage){
-        this.util(flage, '680rpx');
+        this.util(flage, '670rpx');
         this.setData({
           'flag': false,
           'downUp': '展开',

+ 1 - 1
pages/index/index.js

@@ -62,7 +62,7 @@ Page({
         
         if(res.data.data.studyLog.length > 10) {
           this.setData({
-            height: '700'
+            height: '670'
           })
         }
       })

+ 3 - 2
pages/mistakes/mistakes.wxml

@@ -31,10 +31,11 @@
                     <image class="questions" src="{{item.questions.img}}"></image>
                     <view class="answer {{flag[index] ? 'unfold' : ''}}" animation="{{flag[index]? animationData : ''}}">
                         <view class="answer-txt">
-                            <text>你的答案:{{item.userQuestionResult.answer === "" ? '不知道' : item.userQuestionResult.answer}}</text>
+                            <text>你的答案:{{item.userQuestionResult.answer === "0" ? '不知道' : item.userQuestionResult.answer}}</text>
                             <text>{{item.questions.answer == item.userQuestionResult.answer ? "" : "(错误)"}}</text>
                         </view>
-                        <view class="analysis" bindtap="particulars" data-flag="{{flag[index]}}" data-index="{{index}}">
+                        <!-- 错题点击事件 bindtap="particulars" 没有解析暂时去掉 -->
+                        <view class="analysis"  data-flag="{{flag[index]}}" data-index="{{index}}">
                             <image class="analysis-img" src="../image/analysis_bottom.png" wx:if="{{!(flag[index])}}"></image>
                             <image class="analysis-img-top" src="../image/analysis_top.png" wx:else></image>
                         </view>

+ 2 - 2
pages/mistakes/mistakes.wxss

@@ -49,7 +49,7 @@
 }
 
 .subject {
-    background: #A3E0F3;
+    background: #fff;
     padding: 20rpx 70rpx;
     font-size: 36rpx;
     font-weight: 600;
@@ -57,7 +57,7 @@
 }
 
 .select {
-    background: #fff;
+    background: #A3E0F3; 
 }
 
 .answer-content {

+ 1 - 1
project.config.json

@@ -29,7 +29,7 @@
 			"list": []
 		},
 		"miniprogram": {
-			"current": 7,
+			"current": -1,
 			"list": [
 				{
 					"id": 0,