Pārlūkot izejas kodu

fix: 正确率和题库详情页返回题库时的加载框显示问题

xuqiaoying 2 gadi atpakaļ
vecāks
revīzija
47f8378074

+ 1 - 0
common/httpList/lock.js

@@ -25,6 +25,7 @@ export default {
 			method: 'post',
 			data: data,
 			noLoading:true,
+			compleLoading: true,
 		})
 	},
 	

+ 0 - 26
pages/index/index.vue

@@ -765,32 +765,6 @@ export default {
 			}
 		},
 		async init() {
-			let date = new Date();
-			let year = date.getFullYear();//获取当前年份
-			let month = date.getMonth() + 1;//获取当前月份
-			let dd = new Date(year, month, 0);//获取当月总天数
-			console.log('year:', year, 'month:', month, 'dd:',dd, dd.getDate());
-			let current_month = [];
-			let weekList = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
-			for (let i = 1; i <= dd.getDate(); i++) {
-				current_month.push({
-					date: i,
-					week: weekList[new Date(date.setDate(i)).getDay()],//获取对应日期的星期
-				});
-			}
-			console.log('current_month[0].week', current_month[0].week);
-			if (current_month[0].week != 0) {
-				for (let index = 0; index < 2; index++) {
-					let item = {
-						date: '',
-						week: index
-					}
-					current_month.splice(index, 0, item)
-				}
-			}
-			console.log('====:', current_month);
-			this.date_num = current_month
-			return
 			if (!this.$method.isLogin()) {
 				//未登录
 				this.date_num = [];

+ 1 - 1
pages/questionBank/index.vue

@@ -90,7 +90,7 @@
 </template>
 
 <script>
-import {mapGetters, mapActions} from 'vuex'
+import { mapGetters } from 'vuex'
 export default {
 	data() {
 		return {

+ 2 - 1
pages2/randomPractice/index.vue

@@ -58,7 +58,8 @@ export default {
             if (this.questionNum.rightNum >= this.questionNum.totalNum) {
                 return '100%'
             } else {
-                return (this.questionNum.rightNum/this.questionNum.totalNum).toFixed() + '%'
+                let value = (this.questionNum.rightNum / this.questionNum.totalNum ) * 100
+                return value.toFixed(2) + '%'
             }
         }
     },

+ 1 - 1
pages2/wd/free_bank.vue

@@ -81,7 +81,7 @@
 			this.$api.lockDelLock({
 				action:'bank'
 			}).then(res => {
-				
+				uni.hideLoading()
 			})
 			// websocket.sendMsg('delAction')
 		},

+ 1 - 1
pages2/wd/question_bank.vue

@@ -71,7 +71,7 @@
 			this.$api.lockDelLock({
 				action:'bank'
 			}).then(res => {
-				
+				uni.hideLoading()
 			})
 			// websocket.sendMsg('delAction')
 		},

+ 3 - 1
pages3/live/detail.vue

@@ -989,7 +989,9 @@ export default {
           .lockDelLock({
             action: "jxjy",
           })
-          .then((res) => {});
+          .then((res) => {
+            uni.hideLoading()
+          });
       }
     },
     changeCourses() {

+ 4 - 6
pages3/polyv/detail.vue

@@ -808,10 +808,6 @@ export default {
   },
   methods: {
     ...mapMutations(["updateChapterOpen","updateLiveLast"]),
-    // 调用节的方法
-    // togoBack(value) {
-    //   this.$refs.MoudleSection[0].ModuleExam()
-    // },
     // 新增微信公众号模板消息点击数据
     clickOfficial() {
       this.$http({
@@ -852,7 +848,7 @@ export default {
             }
           })
 					this.subList = [...allItem, ...newArr]
-          
+          console.log('this.courseList:', this.courseList, 'length:',res.data.rows.length);
           if (res.data.rows.length) {
             this.courseBusiness(res.data.rows[0].businessId)
           }
@@ -1103,7 +1099,9 @@ export default {
             action: "jxjy",
             uuid:this.$method.getUuid()
           })
-          .then((res) => {});
+          .then((res) => {
+            uni.hideLoading()
+          });
       }
       uni.removeStorageSync('current')
     },