瀏覽代碼

feat:选课中心

xuqiaoying 3 年之前
父節點
當前提交
5ed68a6689
共有 5 個文件被更改,包括 69 次插入21 次删除
  1. 2 2
      common/request.js
  2. 13 0
      pages.json
  3. 6 2
      pages/course/index.vue
  4. 48 0
      pages4/courseTopic/goodsTopic.vue
  5. 0 17
      pages5/mockExam/registrationSuccess.vue

+ 2 - 2
common/request.js

@@ -5,8 +5,8 @@ import api from './api.js'
 var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
-export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+// export const BASE_URL = 'https://test.xyyxt.net'   //预发布
+export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地

+ 13 - 0
pages.json

@@ -845,6 +845,19 @@
 					"bounce": "none"
 				}
 			}
+		},
+        {
+			"path": "courseTopic/goodsTopic",
+			"style": {
+				"navigationBarTitleText": "选课中心",
+				"navigationBarBackgroundColor": "#0386FD",
+				"navigationBarTextStyle": "white",
+				"navigationStyle": "custom", // 隐藏系统导航栏
+				"app-plus": {
+					"titleNView": false, //禁用原生导航栏 
+					"bounce": "none"
+				}
+			}
 		}
     ]
 			

+ 6 - 2
pages/course/index.vue

@@ -184,7 +184,7 @@ export default {
 					name: '直播课'
 				}
 			],
-			array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
+			// array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
 			current:0,
 			menuIndex:0,
 			menuIndex1:0,
@@ -233,7 +233,6 @@ export default {
 		};
 	},
 	onPullDownRefresh(){
-		let that = this
 		this.initList();
 		setTimeout(function(){
 			uni.stopPullDownRefresh()
@@ -273,6 +272,11 @@ export default {
 			});
 		},
 		active2(item){
+			// pages4/courseTopic/goodsTopic
+			uni.navigateTo({
+				url: '/pages4/courseTopic/goodsTopic'
+			})
+			return
 			this.selObj.bId = item.id
 			this.show = false
 			this.selObj.pId = item.projectId

+ 48 - 0
pages4/courseTopic/goodsTopic.vue

@@ -0,0 +1,48 @@
+<template>
+    <view class="goods_topic">
+        <nav-bar title="选课中心"></nav-bar>
+        <view class="mains">
+            <view class="selects">
+                <view class="titles">
+                    考前培训:建造师-二级
+                </view>
+                <view class="icons">
+                    <u-icon name="arrow-down" color="#2979ff" size="28"></u-icon>
+                </view>
+            </view>
+        </view>
+    </view>
+</template>
+
+<script>
+export default {
+    name: 'goodsTopic',
+    data() {
+        return {
+            
+        }
+    },
+}
+</script>
+
+<style>
+page {
+    width: 100%;
+    background: linear-gradient(180deg, rgba(223,236,253,0) 0%, #DFECFD 100%);
+}
+</style>
+
+<style lang="scss" scoped>
+.goods_topic {
+    width: 100%;
+    .mains {
+        padding: 40rpx 40rpx 0rpx 40rpx;
+    }
+    .selects {
+        width: 370rpx;
+        height: 64rpx;
+        background: rgba(255,255,255,0.6);
+        border-radius: 160rpx;
+    }
+}
+</style>

+ 0 - 17
pages5/mockExam/registrationSuccess.vue

@@ -433,9 +433,6 @@ page {
                 font-size: 26rpx;
                 font-weight: 400;
                 color: #3F8DFD;
-            }
-            .word_one {
-
             }
             .word_two {
                 width: 156rpx;
@@ -475,20 +472,6 @@ page {
     font-weight: 500;
     color: #222222;
     margin-bottom: 80rpx;
-    // margin-top: 22rpx;
-    // margin-bottom: 100rpx;
-    // width: 686rpx;
-    // height: 128rpx;
-    // background: #3F8DFD;
-    // border-radius: 16rpx;
-    // padding: 20rpx 50rpx;
-    // color: #fff;
-    // line-height: 44rpx;
-    // .entrys {
-    //     font-size: 28rpx;
-    //     font-weight: bold;
-    //     color: #FFFFFF;
-    // }
 }
 .course_list {
     // width: 100%;