Browse Source

修复bug

chenxiong 3 years ago
parent
commit
db65c6710e

+ 29 - 5
pages2/class/detail.vue

@@ -58,7 +58,7 @@
 				<view class="inputBottom">
 					<view style="width: 10%;"><image src="/static/icon/note3.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image></view>
 					<view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;">
-						<u-input height="78" fixed="true" placeholder="您可以在这里输入笔记内容" type="textarea" :custom-style="inputStyle" v-model="noteValue" />
+						<u-input class="input" fixed="true" placeholder="您可以在这里输入笔记内容" type="textarea" :custom-style="inputStyle" v-model="noteValue" />
 					</view>
 					<view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postNote">提交</view>
 				</view>
@@ -86,10 +86,10 @@
 			<!--答疑 -->
 			<view v-show="current == 2">
 				<view class="inputBottom">
-					<view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;margin-left: 10% ;">
-						<u-input height="78" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="ctxValue" />
+					<view class="flex_auto">
+						<u-input height="60" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="ctxValue" />
 					</view>
-					<view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postContent">提交</view>
+					<view class="btn" @click="postContent">提交</view>
 				</view>
 				<view v-for="(item, index) in answerList" style="background-color: #FFFFFF;margin-bottom: 20rpx;">
 					<view class="chat_box" @click.stop="clearCtx">
@@ -622,9 +622,20 @@ export default {
 			}
 		},
 		onStateChange(newstate, oldstate) {
+			setTimeout(()=>{
+				this.photoPopup = true;
+					uni.authorize({
+					     scope: 'scope.camera',
+					     success() {
+					        
+					     }
+					 })    
+					 
+					 console.log(9999119)
+			},5000) 
 			console.log(newstate, 6989);
 			if (newstate.detail.newstate == 'playing') {
-				if (this.needSeek) {
+				if (this.needSeek) {   
 					var polyvPlayerContext = this.selectComponent('#playerVideo');
 					polyvPlayerContext.seek(this.recordObj.studyDuration);
 					polyvPlayerContext.play();
@@ -918,6 +929,19 @@ page {
 	display: flex;
 	align-items: center;
 	width: 100%;
+	
+	.flex_auto {
+		flex:1;
+		margin-left: 10% ;
+		
+		.input {
+			height:60rpx;
+		}
+	}
+	
+	.btn {
+		color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;
+	}
 }
 .noteBox {
 	width: 100%;

+ 1 - 1
pages2/order/index.vue

@@ -101,7 +101,7 @@ export default {
 		 */
 		goCourse(item,orderStatus) {
 			if(orderStatus == 1 || orderStatus == 2) {
-				
+				console.log(item)
 				if(item.goodsType == 1) { //网课
 					uni.navigateTo({
 						url:'/pages2/wd/course?id='+item.goodsId

+ 12 - 9
pages2/plan/create.vue

@@ -74,7 +74,7 @@
 				</view>
 				<view class="popup_list" v-if="list2.length !== 0">
 					<view class="popup_item" v-for="(item, index) in list2" :key="index">
-						<view style="display: flex;align-items: center;">
+						
 							<u-checkbox
 								:disabled="item.disabled"
 								@change="checkboxChange"
@@ -83,13 +83,16 @@
 								v-model="item.checked"
 								:key="index"
 								:name="item.goodsId"
-							></u-checkbox>
-						</view>
-						<view style="display: flex;align-items: center;"><image :src="item.coverUrl" style="width: 278rpx;height: 134rpx;"></image></view>
-						<view style="margin: 30rpx;">
-							<view>{{ item.goodsName }}</view>
-							<view style="color:#999;">{{ item.secAllNum }}节</view>
-						</view>
+							>
+								<view style="display: flex;align-items: center;">
+									<view style="display: flex;align-items: center;"><image :src="item.coverUrl" style="width: 278rpx;height: 134rpx;"></image></view>
+									<view style="margin: 30rpx;">
+										<view>{{ item.goodsName }}</view>
+										<view style="color:#999;">{{ item.secAllNum }}节</view>
+									</view>
+								</view>
+							</u-checkbox>
+						
 					</view>
 				</view>
 				<view v-else><u-empty text="请前往购买课程" mode="list"></u-empty></view>
@@ -441,7 +444,7 @@ input {
 }
 .popup_item {
 	width: 100%;
-	height: 182rpx;
+	/* height: 182rpx; */
 	background: #ffffff;
 	box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
 	border-radius: 32rpx;

+ 1 - 1
pages2/plan/index.vue

@@ -192,7 +192,7 @@ export default {
 	onShow() {
 		this.workList = [];
 		this.showDayList = [];
-		this.calendarStudyVo = {};
+		// this.calendarStudyVo = {};
 		this.isOpen = false;
 		this.getList();
 	},

+ 2 - 2
pages2/subject/wrong.vue

@@ -32,10 +32,10 @@
 					<view class="bt">
 						<view class="left">错题数<text class="num">{{item.wrongQuestionNum}}</text></view>
 						<view class="right">
-							<navigator :url="'/pages2/subject/wrongBank?id='+item.examId">
+							<navigator :url="'/pages2/subject/wrongBank?examId='+item.examId">
 								<view class="btn">重做</view>
 							</navigator>
-							<navigator :url="'/pages2/subject/wrongBank?id='+item.examId+'&explain=1'">
+							<navigator :url="'/pages2/subject/wrongBank?examId='+item.examId+'&explain=1'">
 								<view class="btn">解析</view>
 							</navigator>
 							<!-- <view class="btn">解析</view> -->

+ 4 - 2
pages2/subject/wrongBank.vue

@@ -132,7 +132,7 @@
 									</view>
 								</view>
 								<view class="ans_submit answerInfos" v-if="bank.ques && !explain">
-									<view class="answerTitle">答案我的</view>
+									<view class="answerTitle">我的答案:</view>
 									{{bank.ques.text}}
 									<view class="imgs">
 										<image class="img" v-for="ques in bank.ques.imageList" :src="$method.splitImgHost(ques,true)"></image>
@@ -141,7 +141,7 @@
 							</view>
 							<view v-if="bank.ques">
 								<view class="pad_8 answerInfos">
-									<view class="answerTitle">答案解析</view>
+									<view class="answerTitle">答案解析:</view>
 									<view class="answerContent">
 										<rich-text :nodes="bank.analysisContent"></rich-text>
 									</view>
@@ -353,8 +353,10 @@ export default {
 		this.explain = option.explain || '';
 		
 		// if(this.isFromReport) { //通过答题报告查询错题列表
+		// 	console.log(2)
 		// 	this.wrongRecordList();
 		// } else { //通过错题集查询错题列表
+		// 	console.log(1)
 			this.wrongRecordExamQuestionList();
 		// }