浏览代码

bug修复

chenjj 2 天之前
父节点
当前提交
2c1845e911
共有 5 个文件被更改,包括 0 次插入43 次删除
  1. 0 20
      App.vue
  2. 0 7
      components/Client/new_file.vue
  3. 0 3
      components/CustomTabBar/index.vue
  4. 0 11
      components/its-calendar/its-calendar.vue
  5. 0 2
      pages/chat.vue

+ 0 - 20
App.vue

@@ -18,26 +18,6 @@ export default {
 	onHide: function () {
 		console.log('App Hide')
 	},
-	watch: {
-        userId: {
-            handler() {
-                // console.log('yong---------------',this.userId);
-				// const wsManager = new WebSocketManager(this.userId);
-				// // 设置消息回调
-				// wsManager.onMessage(data => {
-				// 	console.log('app-接收到的消息:', data);
-				// 	// 处理消息逻辑
-				// 	if(data.type === 'msgUnreadCount'){
-				// 		store.dispatch('handleMessageCount',data.data)
-				// 	}
-				// });
-				// // 建立连接
-				// wsManager.connect();
-            },
-            immediate: true,
-            deep: true
-        }
-    },
 	onMounted() { 
 		 
 		console.log("TCL: onMounted -> onMounted", onMounted)

+ 0 - 7
components/Client/new_file.vue

@@ -86,7 +86,6 @@ const volunteerImages = ref([]);
 
 const getVolunteerImages = () => {
   volunteerVolunteerPicture({}).then(res => {
-    console.log('res', res);
     if (Array.isArray(res)) {
       volunteerImages.value = res;
     } else if (res.code === 200 && res.data) {
@@ -137,7 +136,6 @@ const handleGridClick = async (service) => {
 };
 
 const change = (e) => {
-  console.log('change', e);
   let dates = [{
     date: e.fulldate,
     info: `${e.time.startTime}~${e.time.endTime}`,
@@ -157,11 +155,9 @@ const change = (e) => {
 
 const onDelete = (e) => {
   selected.value = selected.value.filter(item => {
-    console.log('item.fulldate !== e.date', item.date, e.fulldate);
 
     return item.date !== e.fulldate
   })
-  console.log(e, selected.value);
 }
 
 
@@ -186,7 +182,6 @@ const handleDates = computed(() => {
 });
 const confirm = (e) => {
   const parmas = handleDates.value;
-  console.log('确定', parmas);
   workDate(parmas).then(res => {
     if (res.code == 200) {
       uni.showToast({
@@ -213,14 +208,12 @@ const close = () => {
 
 const init = () => {
   getTreeList({ parentId: '0' }).then(res => {
-    console.log("TCL: init -> res", res)
     serveiceList.value = res.data;
   })
 }
 
 const DataInit = () => {
   getDataTime().then(res => {
-    console.log('res', res);
     if (res.code === 200) {
       selected.value = res.data.map(item => {
         return {

+ 0 - 3
components/CustomTabBar/index.vue

@@ -43,7 +43,6 @@ export default {
     watch: {
         page: {
             handler(value) {
-                console.log('value', value);
 
                 this.selectIndex = value;
             },
@@ -61,7 +60,6 @@ export default {
     computed: {
         //获取当前页面
         tabBarList() {
-            console.log('获取当前页面',this.userType);
             
             if (this.userType === 1) {
                 return [
@@ -158,7 +156,6 @@ export default {
     methods: {
         //进入tabble页
         goPages(page) {
-            console.log('page,index', page);
             uni.switchTab({
                 url: page.pagePath
             })

+ 0 - 11
components/its-calendar/its-calendar.vue

@@ -91,7 +91,6 @@ export default {
   watch: {
     timeArr: {
       handler(newVal) {
-        // console.log(newVal, '>>>>>>>时间范围');
         let dateArr = newVal.map((item) => {
           let day = new Date(item)
           const daysOfWeek = [
@@ -115,7 +114,6 @@ export default {
     },
     timeHostArr: {
       handler(newVal) {
-        // console.log(newVal, '>>>>>>>时间更新');
         // 当timeHostArr更新时,恢复之前的选择状态
         if (newVal && newVal.length > 0) {
           this.restoreSelections()
@@ -125,14 +123,11 @@ export default {
     },
   },
   mounted() {
-    console.log(this.businessTierName, "businessTierName from parent component")
   },
   computed: {
     // 计算选中区域
     selectRange() {
       const reservations = this.timeHostArr[this.day_index]
-      // console.log(reservations, '>>>>>reservations')
-      // console.log(JSON.stringify(current), '>>>>>current');
       // return current
       const result = []
       let currentGroup = null
@@ -172,17 +167,13 @@ export default {
   methods: {
     // 恢复选择状态
     restoreSelections() {
-      // console.log('>>>>>>执行了', this.selectedTimeSlots);
       if (!this.timeHostArr[this.day_index]) return
 
-      // console.log('>>>>>>执行了2', this.selectedTimeSlots);
 
       // 遍历当前日期的时间槽
       this.timeHostArr[this.day_index].forEach((slot) => {
         // 检查这个时间槽是否在之前被选中
         const dateKey = this.timeArr[this.day_index]
-        // console.log(dateKey, '>>>>dateKey');
-        // console.log(this.selectedTimeSlots[dateKey], '>>>>this.selectedTimeSlots[dateKey]');
         if (
           this.selectedTimeSlots[dateKey] &&
           this.selectedTimeSlots[dateKey].includes(slot.timeStamp)
@@ -219,7 +210,6 @@ export default {
       // 1. 判断当前时间是否在任何已预约时间段的服务时长范围内
       // let inReservedRange = false
 
-      // console.log(slots, '>>>>>>slots');
       // for (let slot of slots) {
       //   if (slot.hasReservation === 1) {
       //     const reservedTime =
@@ -233,7 +223,6 @@ export default {
       //   }
       // }
       // if (inReservedRange) {
-      //   console.log('走到了这里');
         
       //   uni.showToast({ title: '服务时长不足,请选择其他时间段', icon: 'none' })
       //   return false

+ 0 - 2
pages/chat.vue

@@ -161,7 +161,6 @@ const handlerData = (dates) => {
 }
 
 const onClick = (record) => {
-    console.log("TCL: onClick -> record", record)
     uni.navigateTo({
         url: `/pages_orderuser/pages/talk/pages/index/index?conversationRecordId=${record.conversationRecordId}`
     });
@@ -243,7 +242,6 @@ const getNav = async () => {
     try {
         const res = await getNavBarHeight();
         globalData.value = res;
-        console.log("TCL: getNav -> res", res)
     } catch (error) {
 
     }