Selaa lähdekoodia

请求头添加'Login-User-Type': 1

Xiao_123 1 kuukausi sitten
vanhempi
commit
64d0a0e63d
2 muutettua tiedostoa jossa 1 lisäystä ja 41 poistoa
  1. 0 41
      pagesA/chart/index.vue
  2. 1 0
      utils/request.js

+ 0 - 41
pagesA/chart/index.vue

@@ -301,10 +301,6 @@ const interview = ref([])
 const statusList = ref([])
 const inputValue = ref('')
 
-// const isAgree = ref(false)
-// const confirm = ref()
-// const chooseInvite = ref(null)
-
 const newsId = ref('') // newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部
 const scrollAnimation = ref(false)
 
@@ -583,37 +579,6 @@ async function handleSendResume () {
   }
 }
 
-// 拒绝邀请
-// function handleRefuse (val) {
-//   isAgree.value = false
-//   chooseInvite.value = val
-//   confirm.value.open()
-// }
-
-// 接受邀请
-// function handleAgree (val) {
-//   isAgree.value = true
-//   chooseInvite.value = val
-//   confirm.value.open()
-// }
-
-// 确认
-// async function handleConfirm () {
-//   // 拒绝
-//   if (!isAgree.value) {
-//     await userInterviewInviteReject(chooseInvite.value.id)
-//   } else {
-//     await userInterviewInviteReject(chooseInvite.value.id)
-//   }
-//   uni.showToast({ title: '操作成功', icon: 'none' })
-//   send(JSON.stringify({ id: chooseInvite.value.id }), channelItem.value, isAgree.value ? 104 : 103)
-// }
-
-// 关闭
-// function handleCloseConfirm () {
-//   confirm.value.close()
-// }
-
 // 查看更多
 async function handleMore () {
   try {
@@ -1093,10 +1058,4 @@ onLoad(async (options) => {
     }
   }
 }
-// .commonBackground {
-//   z-index: 1;
-//   &::before {
-// 	  height: 100px !important;
-//   }
-// }
 </style>

+ 1 - 0
utils/request.js

@@ -69,6 +69,7 @@ const http = new Request({
 		Accept: 'text/json',
 		'Content-Type': 'application/json;charset=UTF-8',
 		platform: 'WechatMiniProgram',
+		'Login-User-Type': 1
 	},
 	// #ifdef APP-PLUS
 	sslVerify: false,