🆕 修改群组页面为卡片

This commit is contained in:
李寻欢
2024-06-18 16:23:09 +08:00
parent bc2893fad1
commit b024600ef0
6 changed files with 180 additions and 97 deletions

View File

@@ -1,4 +1,14 @@
/* 隐藏滚动条 */
::-webkit-scrollbar {
display: none;
}
}
/* 隐藏input输入数字时的箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance:textfield;
}

View File

@@ -236,3 +236,33 @@ function aiAssistantChange(event, wxid) {
window.location.reload();
})
}
// 修改清理群成员值
function changeClearMember(wxid, oldVal, newVal) {
oldVal = Number(oldVal)
newVal = Number(newVal)
if (oldVal === newVal) {
return
}
if (newVal < 0) {
alert('不活跃天数的值不能小于0')
}
// 请求接口
axios({
method: 'put',
url: '/api/clearmembers',
data: {
wxid: wxid,
days: Number(newVal)
}
}).then(function (response) {
console.log(`返回结果: ${JSON.stringify(response)}`);
alert(`${response.data}`)
}).catch(function (error) {
console.log(`错误信息: ${error}`);
alert("修改失败")
}).finally(function () {
window.location.reload();
})
}