Browse Source

问吧 样式完善

付宇航 1 year ago
parent
commit
27d5764a02
2 changed files with 7 additions and 4 deletions
  1. 5 2
      pages/asking/asking.vue
  2. 2 2
      pages/asking/questionlist.vue

+ 5 - 2
pages/asking/asking.vue

@@ -43,7 +43,9 @@
 			</view>
 			<em class="iconfont icon-xiangyoujiantou"></em>
 		</view>
-		<button type="primary" @click="goAddQuestion()" v-if="form.id==null">新增</button>
+		<uni-fab ref="fab" horizontal="right"
+		         @fabClick="goAddQuestion()"/>
+		<!-- <button type="primary" @click="goAddQuestion()" v-if="form.id==null">新增</button> -->
     </view>
 </template>
 
@@ -106,7 +108,6 @@ export default {
         getTypeList(){
             getTypeList(this.queryParams).then(res =>{
                 this.typeList = res.rows
-				this.typeList = this.typeList.concat(this.typeList)
 				this.loopTimes = (this.typeList.length/6).toFixed(0) *1
 				console.log('loopTimes',this.loopTimes)
             })
@@ -181,6 +182,7 @@ export default {
 			top: 40rpx;
 			z-index: 1;
 			font-weight: bold;
+			opacity: .5;
 		}
 		.textDesc span {
 		    font-size: 30rpx;
@@ -188,6 +190,7 @@ export default {
 		    left: 30rpx;
 		    top: 88rpx;
 		    z-index: 1;
+			opacity: .7;
 		}
 	}
 	.swiper-item view{

+ 2 - 2
pages/asking/questionlist.vue

@@ -43,7 +43,7 @@
                     </view>
                 </view>
 
-                <view v-if="index == 1" class="rnwdList">
+                <view v-if="index == 1" class="rnwdList" style="padding: 0 10px;">
                     <view class="rnwdList">
                         <view class="list" @tap="goDetails(item1.id)" v-for="(item1, index1) in excitingAnswersList" :key="index1">
                             <span class="listTitle">{{ item1.title }}</span>
@@ -83,7 +83,7 @@
                     </view>
                 </view>
 
-                <view v-if="index == 2" class="rnwdList">
+                <view v-if="index == 2" class="rnwdList" style="padding: 0 10px;">
                     <view class="rnwdList">
                         <view class="list" @tap="goDetails(item1.id)" v-for="(item1, index1) in maxScoreList" :key="index1">
                             <span class="listTitle">{{ item1.title }}</span>