Tang %!s(int64=3) %!d(string=hai) anos
pai
achega
7561061f19

+ 9 - 0
common/httpList/login.js

@@ -3,6 +3,15 @@ import {
 } from '../request.js'
 import store from '@/store/index.js'    
 export default {
+	
+	//我的列表数据
+	getinfoAttached(data) {
+		return myRequest({
+			url: '/app/user/infoAttached',
+			method: 'get',
+			data: data
+		})
+	},
 	//登录
 	login(data) {
 		return myRequest({

+ 1 - 1
common/request.js

@@ -4,7 +4,7 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 
-export const BASE_URL = 'http://42.192.164.187:19005' //接口api  http://42.192.164.187:19005
+export const BASE_URL = 'http://192.168.1.222:5055' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
 
 
 export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //图片上传api  'https://file.xyyxt.net/

+ 15 - 7
pages/wd/index.vue

@@ -27,7 +27,7 @@
 						<view>学习计划</view>
 					</view>
 					<view>
-						今天有 <text style="color: #007AFF;margin: 0 5rpx;">3</text> 个学习任务
+						今天有 <text style="color: #007AFF;margin: 0 5rpx;">{{userNums.planSum}}</text> 个学习任务
 					</view>
 				</navigator>
 				<view class="two_menu">
@@ -46,7 +46,7 @@
 						<view>我的学时</view>
 					</view>
 					<view>
-						累计<text style="color: #007AFF;margin: 0 5rpx;">3</text> 学时未通过
+						累计<text style="color: #007AFF;margin: 0 5rpx;">{{userNums.periodSum}}</text> 学时未通过
 					</view>
 				</navigator>
 				<navigator url="/pages2/exam/index"  class="menu_box">
@@ -55,7 +55,7 @@
 						<view>我的考试</view>
 					</view>
 					<view>
-						<text style="color: #007AFF;margin: 0 5rpx;">3</text>考试预约
+						<text style="color: #007AFF;margin: 0 5rpx;">{{userNums.subscribeSum}}</text>考试预约
 					</view>
 				</navigator>
 				<navigator url="/pages2/order/index"  class="menu_box">
@@ -64,7 +64,7 @@
 						<view>我的订单</view>
 					</view>
 					<view>
-						<text style="color: #007AFF;margin: 0 5rpx;">3</text>笔待支付
+						<text style="color: #007AFF;margin: 0 5rpx;">{{userNums.orderSum}}</text>笔待支付
 					</view>
 				</navigator>
 				<navigator url="/pages2/msg/index" class="menu_box">
@@ -73,7 +73,7 @@
 						<view>我的消息</view>
 					</view>
 					<view>
-						<text style="color: #007AFF;margin: 0 5rpx;">3</text>条未读
+						<text style="color: #007AFF;margin: 0 5rpx;">{{userNums.informSum}}</text>条未读
 					</view>
 				</navigator>
 				<navigator url="/pages2/wd/info" class="menu_box">
@@ -110,7 +110,8 @@
 				list:[23,24,25,26,27,28,29],
 				content:'此功能暂未开放',
 				show:false,
-				isLogin:false
+				isLogin:false,
+				userNums:{}
 			}
 		},
 		onLoad() {
@@ -118,9 +119,16 @@
 		},
 		onShow(){
 			this.isLogin = this.$method.isLogin()
-			console.log(this.isLogin)
+			this.getNums()
 		},
 		methods: {
+			getNums(){
+				this.$api.getinfoAttached().then(res => {
+					if(res.data.code ===200){
+						this.userNums = res.data.data
+					}
+				})
+			},
 			logout(){
 				console.log(343)
 				this.$method.isLogout()

+ 5 - 1
pages2/bank/collectById.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="safeArea">
 		<view class="sceenBox">
-			<view :class="['item', {'active':sceenType===2} ]" @click="showSceen(2)">全部试卷类型<u-icon class="icon" name="arrow-down"></u-icon></view>
+			<view :class="['item', {'active':sceenType===2} ]" @click="sceenType = !sceenType">全部试卷类型<u-icon class="icon" :class="sceenType ? 'animals':''" name="arrow-down"></u-icon></view>
 		</view>
 		<view class="sceenModel" v-if="sceenType">
 			<view class="sceenModelBg" @click="hideSceen"></view>
@@ -168,6 +168,10 @@ page {
 
 </style>
 <style scoped lang="scss">
+	.animals{
+		transition: all 0.3s;
+		transform: rotate(180deg);
+	}
 .sceenBox {
 	width:100%;
 	height: 80rpx;

+ 2 - 1
pages2/bank/question_detail.vue

@@ -10,7 +10,7 @@
 								<text>总进度</text>
 							</view>
 							<view class="percent">
-								{{goodsCount.totalNum>0?(goodsCount.doNum/goodsCount.totalNum * 100).toFixed(1):0}}
+								{{goodsCount.totalNum>0?(goodsCount.doNum/goodsCount.totalNum * 100).toFixed(goodsCount.doNum/goodsCount.totalNum * 100 == 100 ? 0 : 1):0}}
 								<text class="per">%</text>
 							</view>
 						</view>
@@ -376,6 +376,7 @@ export default {
 			box-shadow: 0px 0px 16rpx 4rpx rgba(145, 156, 178, 0.1);
 			background:#fff;
 			padding:20rpx;
+			border-radius: 16rpx;
 			
 			.title {
 				font-size: 24rpx;

+ 5 - 1
pages2/bank/wrongById.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="safeArea">
 		<view class="sceenBox">
-			<view :class="['item', {'active':sceenType===2} ]" @click="showSceen(2)">全部试卷类型<u-icon class="icon" name="arrow-down"></u-icon></view>
+			<view :class="['item', {'active':sceenType===2} ]" @click="sceenType = !sceenType">全部试卷类型<u-icon class="icon" name="arrow-down" :class="sceenType ? 'animals':''" ></u-icon></view>
 		</view>
 		<view class="sceenModel" v-if="sceenType">
 			<view class="sceenModelBg" @click="hideSceen"></view>
@@ -166,6 +166,10 @@ page {
 
 </style>
 <style scoped lang="scss">
+	.animals{
+		transition: all 0.3s;
+		transform: rotate(180deg);
+	}
 .sceenBox {
 	width:100%;
 	height: 80rpx;

+ 52 - 55
pages2/class/detail.vue

@@ -129,28 +129,18 @@
 		</view>
 		<!-- 播放前拍照start -->
 		<u-popup v-model="photoPopup" mode="bottom" border-radius="32" :mask-close-able="false">
-					<view class="photoBox">
-						<view class="photoTop">
-							<view class="sqzz" v-if="false">
-								<u-icon name="close" color="#333333" size="30" @click="closePhoto"></u-icon>
-							</view>
-							<view class="centersq">
-								请正视手机屏幕
-							</view>
-							<view class="sqzz">
-								
-							</view>
-						</view>
-						<view class="photoCenter">
-							<camera device-position="front" flash="off" @error="error" style="width: 100%; height: 100%" v-if="photoPopup"></camera>
-							<view class="custom">
-								<image src="@/pages2/static/zhezhao.png" mode=""></image>
-							</view>
-						</view>
-						<view class="btnResult" @click="takePhoto">
-							拍照
-						</view>
-					</view>
+			<view class="photoBox">
+				<view class="photoTop">
+					<view class="sqzz" v-if="false"><u-icon name="close" color="#333333" size="30" @click="closePhoto"></u-icon></view>
+					<view class="centersq">请正视手机屏幕</view>
+					<view class="sqzz"></view>
+				</view>
+				<view class="photoCenter">
+					<camera device-position="front" flash="off" @error="error" style="width: 100%; height: 100%" v-if="photoPopup"></camera>
+					<view class="custom"><image src="@/pages2/static/zhezhao.png" mode=""></image></view>
+				</view>
+				<view class="btnResult" @click="takePhoto">拍照</view>
+			</view>
 		</u-popup>
 		<!-- 播放前拍照end -->
 	</view>
@@ -245,24 +235,27 @@ export default {
 				if (res.data.rows[0].keyValue) {
 					self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId }).then(result => {
 						if (result.data.code === 200) {
-							if (!result.data.data || result.data.data.status === 3 && result.data.data.changeStatus === 0) {
+							if (!result.data.data || (result.data.data.status === 3 && result.data.data.changeStatus === 1)) {
 								uni.showModal({
-									showCancel: false,
 									content: '资料审核不通过,请前往重新填写',
+									cancelText: '返回',
 									success: function(resultst) {
 										if (resultst.confirm) {
 											self.$navTo.togo('/pages2/verify/input', {
 												id: self.goodsId
 											});
 										}
+										if (resultst.cancel) {
+											uni.navigateBack();
+										}
 									}
 								});
 							} else if (result.data.data.status === 1 && res.data.rows[0].keyValue2) {
 								self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(k => {
-									if(k.data.code === 200){
-										if(!k.data.data || k.data.data.status === 3 && k.data.data.changeStatus === 0){
+									if (k.data.code === 200) {
+										if (!k.data.data || (k.data.data.status === 3 && k.data.data.changeStatus === 1)) {
 											uni.showModal({
-												showCancel: false,
+												cancelText: '返回',
 												content: '资料盖章审核不通过,请前往重新填写',
 												success: function(resultst) {
 													if (resultst.confirm) {
@@ -270,6 +263,9 @@ export default {
 															id: self.goodsId
 														});
 													}
+													if (resultst.cancel) {
+														uni.navigateBack();
+													}
 												}
 											});
 										}
@@ -333,15 +329,15 @@ export default {
 			let self = this;
 			return new Promise(resolve => {
 				let data = {
-						gradeId:Number(self.gradeId),
-						goodsId:Number(self.goodsId),
-						sectionId:Number(self.playSectionId),
-						courseId: Number(self.courseId),
-					}
-					self.$api.recordLast(data).then(res => {
-						resolve(res.data.data)
-					});
-			})
+					gradeId: Number(self.gradeId),
+					goodsId: Number(self.goodsId),
+					sectionId: Number(self.playSectionId),
+					courseId: Number(self.courseId)
+				};
+				self.$api.recordLast(data).then(res => {
+					resolve(res.data.data);
+				});
+			});
 		},
 		jumpNote(item) {
 			this.noteId = item.noteId;
@@ -437,28 +433,29 @@ export default {
 			}
 			this.postAnswer();
 		},
-		postStudyRecord(status=0,sectionId=this.playSectionId) {
-			let currentTime = 0
-			 var polyvPlayerContext = this.selectComponent('#playerVideo');
-			 if(polyvPlayerContext){
-				  currentTime =polyvPlayerContext.getCurrentTime() 
-			 }
+		postStudyRecord(status = 0, sectionId = this.playSectionId) {
+			let currentTime = 0;
+			var polyvPlayerContext = this.selectComponent('#playerVideo');
+			if (polyvPlayerContext) {
+				currentTime = polyvPlayerContext.getCurrentTime();
+			}
 			let self = this;
 			let data = {
-				photo:self.ossAvatarUrl,
-				sectionId:parseInt(sectionId),
-				goodsId:parseInt(self.goodsId),
-				courseId:parseInt(self.courseId),
-				studyDuration:parseInt(currentTime>0?currentTime:self.studyDuration),
-				gradeId:parseInt(self.gradeId),
-				chapterId:parseInt(self.chapterId),
-				moduleId:parseInt(self.moduleId)
-			}
-			if(data.studyDuration<=5){ //5秒内不上传记录
-				return
+				photo: self.ossAvatarUrl,
+				sectionId: parseInt(sectionId),
+				goodsId: parseInt(self.goodsId),
+				courseId: parseInt(self.courseId),
+				studyDuration: parseInt(currentTime > 0 ? currentTime : self.studyDuration),
+				gradeId: parseInt(self.gradeId),
+				chapterId: parseInt(self.chapterId),
+				moduleId: parseInt(self.moduleId)
+			};
+			if (data.studyDuration <= 5) {
+				//5秒内不上传记录
+				return;
 			}
-			if(status>0){
-				data.status = status
+			if (status > 0) {
+				data.status = status;
 			}
 			console.log('提交接口', data);
 			this.$api.studyRecord(data).then(res => {

+ 7 - 0
pages2/msg/detail.vue

@@ -123,6 +123,13 @@ export default {
 		getInfo() {
 			this.$api.getappinformUserId(this.id).then(res => {
 				if (res.data.code === 200) {
+					if(!res.data.data.receiptStatus){
+						this.$api.courseappinformUser({ id: res.data.data.id, receiptStatus: 1 }).then(res => {
+							if (res.data.code === 200) {
+								
+							}
+						});
+					}
 					if (res.data.data.informVo && res.data.data.informVo.affiche) {
 						res.data.data.informVo.affiche = res.data.data.informVo.affiche.replace(/<img/gi, '<img style="max-width:100%;"');
 					}

+ 1 - 1
pages2/order/index.vue

@@ -18,7 +18,7 @@
 							v-for="(items, indexs) in item.orderGoodsList"
 							:key="indexs"
 						>
-							<image src="/static/login_bg.jpg" style="height: 134rpx;width: 278rpx;border-radius: 16rpx;flex-shrink: 0;"></image>
+							<image :src="$method.splitImgHost(items.coverUrl)" style="height: 134rpx;width: 278rpx;border-radius: 16rpx;flex-shrink: 0;"></image>
 							<view style="margin-left: 20rpx;flex:1;display: flex;flex-direction: column;">
 								<view style="color: #333333;font-size: 30rpx;font-weight: bold;flex:1">{{ items.goodsName }}</view>
 								<view class="priceTag">¥ {{ items.goodsPrice }}</view>