Kaynağa Gözat

refactor(message):公司名提取到config文件
feat(message/detail):公告转发功能

HMY 1 yıl önce
ebeveyn
işleme
d00c4401f4
3 değiştirilmiş dosya ile 39 ekleme ve 12 silme
  1. 7 6
      config.js
  2. 25 3
      pages/message/detail/index.vue
  3. 7 3
      pages/message/index.vue

+ 7 - 6
config.js

@@ -1,15 +1,16 @@
 export default {
-	// baseUrl: 'http://localhost:8081/oa',
-	// baseUrlPre: 'http://localhost:8081',
+	// baseUrl: 'http://192.168.110.76:8081/oa',
+	// baseUrlPre: 'http://192.168.110.76:8081',
 	// baseUrl: 'http://192.168.110.82:8081/oa',
 	// baseUrlPre:'http://192.168.110.82:8081',
-	baseUrl: 'https://api.ygtxfj.com/oa',
+	baseUrl: 'https://api.ygtxfj.com/ynet',
 	baseUrlPre:'https://api.ygtxfj.com',
 	logoSrc: 'https://50006360.s21i.huaweicloudsite.cn/4/ABUIABAEGAAg-I3cuQYo6IXe9AQw9AM4Rg.png',
+	companyName:'宇光同行',
 	mapKey: 'KJBBZ-5JCLZ-3NLXD-742CK-Y26UZ-X7BJN',
-	signInTimeRange:['08:30:00', '09:30:00'], //正常签到时间范围
-	signOutTimeRange:['17:30:00', '20:00:00'], //正常签退时间
-	lateTimeRange:['09:00:00', '09:30:00'], //迟到时间范围
+	// signInTimeRange:['08:30:00', '09:30:00'], //正常签到时间范围
+	// signOutTimeRange:['17:30:00', '20:00:00'], //正常签退时间
+	// lateTimeRange:['09:00:00', '09:30:00'], //迟到时间范围
 	timeout: 10000,
 	// baseUrl: 'http://118.195.146.34:20076/ynet',
 	defaultAvatarPath:'/shares/document/miniApp/avatar/defaultAvatar.jpg',//默认服务器存储的头像路径

Dosya farkı çok büyük olduğundan ihmal edildi
+ 25 - 3
pages/message/detail/index.vue


+ 7 - 3
pages/message/index.vue

@@ -1,7 +1,7 @@
 <template>
 	<page-meta root-font-size="system" />
 	<view class="index_container">
-		<uni-nav-bar dark :border="false" :fixed="true" title="宇光同行">
+		<uni-nav-bar dark :border="false" :fixed="true" :title="config.companyName">
 		</uni-nav-bar>
 		<!-- 待办消息列表 -->
 		<uni-collapse :accordion="true">
@@ -79,6 +79,7 @@ import processList from '@/components/ygoa/processList.vue'
 import messageList from '@/components/ygoa/messageList.vue'
 import { useUserStore } from '@/store/user.js'
 import { getLoginInfo } from '@/utils/auth';
+import config from '@/config';
 
 const userStore = useUserStore()
 
@@ -93,7 +94,11 @@ onMounted(() => {
 })
 onLoad((options) => {
 	// 是否跳转打卡页
-	if (options.to == 'clockIn') toClockIn()
+	if (options.to == 'clockIn'){
+		toClockIn()
+	}else if(options.noticeId){
+		$tab.navigateTo('/pages/message/detail/index?noticeId=' + options.noticeId)
+	}
 })
 onShow(() => {
 	showTabBarBadge();
@@ -227,7 +232,6 @@ function getMessagePage({ pSize, pageNo, type, segmentValue }, callback) {
 }
 // 点击消息列表项
 function handleToMessageDetail({ messageid, universalid }) {
-	console.log();
 	setMsgIsRead(universalid + ',').then((res) => {
 		if (Number.isInteger(res)) {
 			msgListRef.value.reload();// 调用子组件刷新数据

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor