xiexaing il y a 1 an
Parent
commit
cfc96ee5ca
3 fichiers modifiés avec 30 ajouts et 10 suppressions
  1. 14 4
      pages/index/index.vue
  2. 13 4
      pages/learn/index.vue
  3. 3 2
      pages3/polyv/detail.vue

+ 14 - 4
pages/index/index.vue

@@ -197,9 +197,9 @@
 						</span>
 					</div>
 				</div>
-				<div style="margin-left: 30rpx;">
-					<u-button class="checkBtn" type="primary" size="medium" @click="goLearnPage">进入学习</u-button>
-					<u-button class="checkBtn" plain size="medium" @click="checkDialogVisible = false">取 消</u-button>
+				<div style="margin: 12rpx 0 12rpx 30rpx;">
+					<div class="checkBtn" @click="goLearnPage">进入学习</div>
+					<div class="checkBtn cancelBtn" @click="checkDialogVisible = false">取 消</div>
 				</div>
 			</view>
 		</u-popup>
@@ -414,6 +414,7 @@
 			};
 		},
 		async onLoad(option) {
+			this.checkTenClassGradeUser()
 			if (option.show === '1') {
 				console.log(option, '--------show---------')
 				this.checkTenClassGradeUser()
@@ -727,8 +728,17 @@
 <style lang="scss" scoped>
 	.checkBtn {
 		display: inline;
-		padding: 10rpx 20rpx;
+		padding: 2% 5%;
 		margin-right: 15rpx;
+		background: #2979ff;
+		color: white;
+		border-radius: 8rpx;
+	}
+
+	.cancelBtn {
+		background: white;
+		color: #333;
+		border: 1px solid #d7d7d7;
 	}
 
 	.noGoods {

+ 13 - 4
pages/learn/index.vue

@@ -300,19 +300,19 @@
 									前完成学习,避免课程过期作废,无法学习给您带来不便。
 								</span>
 							</div>
-							<div v-if="isTwoEducation(item)">
+							<div v-if="isMajorEducation(item)">
 								<span v-if="item.sevenPushReason === '培训周期时间未到'">
-									温馨提示:您{{item.orderYear}}年公路工程专业培训周期还没到,请在{{ $method.timestampToTime(item.sevenPushDate) }}后再进行继教。
+									温馨提示:您{{item.orderYear}}年{{ item.major }}培训周期还没到,请在{{ $method.timestampToTime(item.sevenPushDate) }}后再进行继教。
 								</span>
 								<span v-if="item.sevenPushReason === '无相关专业专书'">
-									温馨提示:您当前的课程{{item.orderYear}}年公路工程专业,未能匹配到可继教证书,可前往住建证书官网查询。
+									温馨提示:您当前的课程{{item.orderYear}}年{{ item.major }},未能匹配到可继教证书,可前往住建证书官网查询。
 									<span style="color: #2f9aff; cursor: pointer"
 										@click="goPage('https://rcgz.mohurd.gov.cn/Login/NetworkingSearch?type=2', 2) ">
 										复制官网链接
 									</span>
 								</span>
 								<span v-if="item.sevenPushReason === '无需2024继续教育'">
-									温馨提示:您{{item.orderYear}}年公路工程专业已完成继教,无需重复继教,可前往住建证书官网查询。
+									温馨提示:您{{item.orderYear}}年{{ item.major }}已完成继教,无需重复继教,可前往住建证书官网查询。
 									<span style="color: #2f9aff; cursor: pointer"
 										@click="copy('https://rcgz.mohurd.gov.cn/Login/NetworkingSearch?type=2', 2)">
 										复制官网链接
@@ -679,6 +679,15 @@
 					);
 				}
 			},
+			// 公路专业(施工现场专业人员——继续教育)
+			isMajorEducation() {
+				return function(item) {
+					return (
+						item.projectName + item.educationName ===
+						"施工现场专业人员继续教育"
+					);
+				}
+			},
 		},
 		async onLoad(options) {
 			uni.hideTabBar();

+ 3 - 2
pages3/polyv/detail.vue

@@ -972,11 +972,12 @@
 						let {
 							data
 						} = res.data;
-						if(data && data.endTime > parseInt(new Date().getTime() / 1000)){
+						if (data && data.endTime > parseInt(new Date().getTime() / 1000)) {
 							uni.showModal({
 								showCancel: false,
 								title: "提示",
-								content: "当前无法学习,"+ this.$method.timestampToTime(data.endTime,false) +"过后可继续学习",
+								content: "当前无法学习," + this.$method.timestampToTime(data.endTime, false) +
+									"过后可继续学习",
 								success: (resultst) => {
 									uni.navigateBack();
 								},