xiaojincai 4 years ago
parent
commit
67993748aa
2 changed files with 6 additions and 4 deletions
  1. 2 2
      pages/subject/subject.wxml
  2. 4 2
      pages/subject/subject.wxss

+ 2 - 2
pages/subject/subject.wxml

@@ -5,12 +5,12 @@
 </view>
 <!-- 判断 -->
 <view class="content" wx:for="{{data.questions}}"  hidden="{{idx != index+1}}">
-    <view class="num">{{index+1}}、
+    <view class="num">{{index+1}}、{{item.title}}
     <image wx:if="{{item.type == 1}}" src="../../images/danx.svg" mode="widthFix"></image>
     <image wx:if="{{item.type == 2}}" src="../../images/duox.svg" mode="widthFix"></image>
     <image wx:if="{{item.type == 3}}" src="../../images/pd.svg" mode="widthFix"></image>
     </view>
-    <view class="ques">  {{item.title}}  </view>
+    <!-- <view class="ques">  {{item.title}}  </view> -->
     <view class="ans">
         <checkbox-group wx:if="{{item.type == 2}}" bindchange='answer' data-id='{{item.id}}'>
             <view wx:for="{{item.options}}" wx:for-item="opt" wx:key="*this">

+ 4 - 2
pages/subject/subject.wxss

@@ -3,6 +3,7 @@
   padding: 12px;
 }
 .top text{
+  position: relative;
   width:60px;
   height:28px;
   border-radius:16px;
@@ -14,9 +15,10 @@
   top: -3px;
 }
 .count{
+  top:13px;
   position: absolute;
-  top: 55px;
-  right: 12px;
+  /* top: 55px; */
+  right: 85px;
   color: #358BFF;
   text-align: right;
 }