wangxy vor 2 Monaten
Ursprung
Commit
bdf5cd709f

+ 1 - 1
api/common.js

@@ -185,7 +185,7 @@ export function getDangjianGongzuoList(data = {}) {
 
 export function getDangjianGongzuoInfo(data = {}) {
 	return request({
-		'url': '/common/dangjian/gongzuo/info',
+		'url': '/common/dangjian/gongzuo/info',
 		headers: {
 			isToken: false
 		},

+ 6 - 1
components/MtaTabBar/MtaTabBar.vue

@@ -10,7 +10,12 @@
 </template>
 
 <script setup>
-	const tabList = [{text: '首页',pagePath: '/pages/index/index'}, {text: '我的'}]
+	const tabList = [
+		{text: '首页',pagePath: '/pages/index/index'}, ,
+		{text: '校园动态',pagePath: '/pages/dqgzDangjiangongzuo/dqgzDangjiangongzuo'},
+		{text: '招生就业',pagePath: '/pages/index/index'}, 
+		{text: '联系方式',pagePath: '/pages/index/index'}
+		]
 	const props = defineProps({
 		activeIndex: {
 			type: String

+ 57 - 77
pages.json

@@ -31,343 +31,343 @@
 		{
 			"path": "pages/xygkXueyuanjianjie/xygkXueyuanjianjie",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xygkJigoushezhi/xygkJigoushezhi",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xygkXueyuanrongyu/xygkXueyuanrongyu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xygkXueyuanwenhua/xygkXueyuanwenhua",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xygkXiaoyuanfengguang/xygkXiaoyuanfengguang",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xygkLianxifangshi/xygkLianxifangshi",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 党群工作
 		{
 			"path": "pages/dqgzDangzuzhijiagou/dqgzDangzuzhijiagou",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzGonghuizuzhijiagou/dqgzGonghuizuzhijiagou",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzDangjiangongzuo/dqgzDangjiangongzuo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzDangyuanfengcai/dqgzDangyuanfengcai",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzGonghuizhijia/dqgzGonghuizhijia",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzDangjiangongzuoInfo/dqgzDangjiangongzuoInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzXueyuanfengcaiInfo/dqgzXueyuanfengcaiInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/dqgzGongzhuizhijiaInfo/dqgzGongzhuizhijiaInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 校园动态
 		{
 			"path": "pages/xydtXiaowugongkai/xydtXiaowugongkai",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtXueyuanxingwen/xydtXueyuanxingwen",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtTongzhigonggao/xydtTongzhigonggao",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtXueyuanfengcai/xydtXueyuanfengcai",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtXueyuanxinwenInfo/xydtXueyuanxinwenInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtTongzhigonggaoInfo/xydtTongzhigonggaoInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtXiaowugongkaiInfo/xydtXiaowugongkaiInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xydtXueyuanfengcaiInfo/xydtXueyuanfengcaiInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydDeyuduiwu/xsydDeyuduiwu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydXueshenghuodong/xsydXueshenghuodong",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydGongqingtuan/xsydGongqingtuan",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydZizhuguanli/xsydZizhuguanli",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydDeyuduiwuInfo/xsydDeyuduiwuInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydXueshenghuodongInfo/xsydXueshenghuodongInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydGongqingtuanInfo/xsydGongqingtuanInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/xsydZizhuguanliInfo/xsydZizhuguanliInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 教育教学
 		{
 			"path": "pages/jyjxZhuanyejianshe/jyjxZhuanyejianshe",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxShiziduiwu/jyjxShiziduiwu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxKeyanhuodong/jyjxKeyanhuodong",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxKeyandongtai/jyjxKeyandongtai",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxJinengjianding/jyjxJinengjianding",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxDierketang/jyjxDierketang",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxDasaifengcai/jyjxDasaifengcai",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxZhongdianxiangmu/jyjxZhongdianxiangmu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxXiaoqihezuo/jyjxXiaoqihezuo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/jyjxGuizhangzhidu/jyjxGuizhangzhidu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 招生就业
 		{
 			"path": "pages/zsjyZhaoshengjianzhang/zsjyZhaoshengjianzhang",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyZhuanyejieshao/zsjyZhuanyejieshao",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyShengxue/zsjyShengxue",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyBaokaozhinan/zsjyBaokaozhinan",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyWangnianluqufenshu/zsjyWangnianluqufenshu",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyXiaoqihezuo/zsjyXiaoqihezuo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyZhaopinxinxi/zsjyZhaopinxinxi",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyZhengcewenjian/zsjyZhengcewenjian",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyYouxiubiyesheng/zsjyYouxiubiyesheng",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyYubaoming/zsjyYubaoming",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyXiaoqihezuoInfo/zsjyXiaoqihezuoInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyZhengcewenhuaInfo/zsjyZhengcewenhuaInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zsjyYouxiubiyeshengInfo/zsjyYouxiubiyeshengInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		{
 			"path": "pages/zypxTongzhigonggao/zypxTongzhigonggao",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 下载中心	
 		{
 			"path": "pages/xzzxXiazaizhongxin/xzzxXiazaizhongxin",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		},
 		// 职业培训
 		{
 			"path": "pages/zypxTongzhigonggaoInfo/zypxTongzhigonggaoInfo",
 			"style": {
-				"navigationBarTitleText": ""
+				"navigationStyle": "custom"
 			}
 		}
 	],
@@ -379,27 +379,7 @@
 		"fontSize": "13px",
 		"iconWidth": "28px",
 		"spacing": "0px",
-		"list": [{
-			"pagePath": "pages/index/index",
-			"iconPath": "static/images/tabbar/unselect/index-sj.png",
-			"selectedIconPath": "static/images/tabbar/select/index-sj.png",
-			"text": "首页"
-		}, {
-			"pagePath": "pages/index/index",
-			"iconPath": "static/images/tabbar/unselect/index-sj.png",
-			"selectedIconPath": "static/images/tabbar/select/index-sj.png",
-			"text": "校园动态"
-		}, {
-			"pagePath": "pages/index/index",
-			"iconPath": "static/images/tabbar/unselect/index-sj.png",
-			"selectedIconPath": "static/images/tabbar/select/index-sj.png",
-			"text": "招生就业"
-		}, {
-			"pagePath": "pages/my/index",
-			"iconPath": "static/images/tabbar/unselect/my-sj.png",
-			"selectedIconPath": "static/images/tabbar/select/my-sj.png",
-			"text": "联系方式"
-		}]
+		"list": []
 	},
 	"globalStyle": {
 		"navigationBarTextStyle": "black",

+ 3 - 0
pages/dqgzDangjiangongzuo/dqgzDangjiangongzuo.vue

@@ -38,6 +38,9 @@
 	
 	function handleClick(data) {
 		console.log('data',data);
+		uni.navigateTo({
+			url: `/pages/dqgzDangjiangongzuoInfo/dqgzDangjiangongzuoInfo?id=${data.id}`
+		})
 	}
 	
 	function getList(data) {

+ 35 - 11
pages/dqgzDangjiangongzuoInfo/dqgzDangjiangongzuoInfo.vue

@@ -1,37 +1,61 @@
 <template>
-	<view>
-		
+	<view v-if="data.info">
+		<!-- 详情页面 -->
+		<view>校园动态</view>
+		<!-- 导航 -->
+		<view>首页>校园动态>学院新闻</view>
+		<!-- 标题 -->
+		<view>{{data.info.title}}</view>
+		<!-- 时间 -->
+		<view>{{formatDate.join('-') }}</view>
+		<!-- 富文本 -->
+		<mp-html :content="data.info.content" />
 	</view>
 </template>
 
 <script setup>
 	import {
 		ref,
-		reactive
+		reactive,
+		computed
 	} from "vue";
 	import {
 		onLoad
 	} from "@dcloudio/uni-app"
 	import * as httpApi from "@/api/common.js"
-	
-	
+	import mpHtml from 'mp-html/dist/uni-app/components/mp-html/mp-html'
+	import {formatDateToYearMonthDay } from "@/utils/common.js"
+
 	const data = reactive({
-		info: '',
+		info: null,
 		id: null
 	})
-	
-	onLoad((id) => {
+
+	const formatDate = computed(() => {
+      if (data.info && data.info.createTime) {
+		return formatDateToYearMonthDay(data.info.createTime)
+      }
+        return []
+    })
+
+
+	onLoad(({
+		id
+	}) => {
 		data.id = id;
 		pageInit();
 	})
-	
+
 	function pageInit() {
-		httpApi.getDangjianGongzuoInfo({id: data.id}).then(res => {
+		httpApi.getDangjianGongzuoInfo({
+			id: data.id
+		}).then(res => {
 			data.info = res.data;
+			console.log('dddd', data.info)
 		})
 	}
 </script>
 
 <style>
 
-</style>
+</style>

+ 6 - 1
pages/index/index.vue

@@ -45,7 +45,9 @@
 				<p>校企合作</p>
 			</view>
 		</view>
-
+		
+		<!-- 底部导航 -->
+		<MtaTabBarVue></MtaTabBarVue>
 	</view>
 </template>
 
@@ -60,6 +62,7 @@
 	import * as httpApi from "@/api/common.js"
 	import MtaNavbar from "@/components/MtaNavbar/MtaNavbar.vue";
 	import listTwoVue from "@/components/MtaCard/listTwo.vue";
+	import MtaTabBarVue from "@/components/MtaTabBar/MtaTabBar.vue";
 
 
 	const banners = ref('');
@@ -77,6 +80,8 @@
 	onLoad(() => {
 		pageInit();
 	})
+	
+	function handleClickXinwen() {}
 
 	function getXiaowuGengduo() {}