Initial commit

This commit is contained in:
2025-07-04 16:18:58 +08:00
commit 2cf13f673d
770 changed files with 73394 additions and 0 deletions

22
common/config.js Normal file
View File

@@ -0,0 +1,22 @@
// const BASE_HOST = 'your-server-ip'
// const CHAT_URL = `http://${BASE_HOST}:10008`
// const API_URL = `http://${BASE_HOST}:10002`
// const WS_URL = `ws://${BASE_HOST}:10001`
const BASE_DOMAIN = '47.117.71.33:15219'
const CHAT_URL = `http://${BASE_DOMAIN}/chat`
const API_URL = `http://${BASE_DOMAIN}/api`
const WS_URL = `ws://${BASE_DOMAIN}/msg_gateway`
const version = 'Uniapp-Demo'
const getRegisterUrl = () => uni.getStorageSync("IMRegisteUrl") || CHAT_URL;
const getApiUrl = () => uni.getStorageSync("IMApiUrl") || API_URL;
const getWsUrl = () => uni.getStorageSync("IMWsUrl") || WS_URL;
module.exports = {
version,
getRegisterUrl,
getApiUrl,
getWsUrl,
};

44
common/demo.scss Normal file
View File

@@ -0,0 +1,44 @@
.u-block {
padding: 14px;
&__section {
margin-bottom: 10px;
}
&__title {
margin-top: 10px;
font-size: 15px;
color: $u-content-color;
margin-bottom: 10px;
}
&__flex {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
}
}
// 使用了cell组件的icon图片样式
.u-cell-icon {
width: 36rpx;
height: 36rpx;
margin-right: 8rpx;
}
.u-page {
padding: 15px 15px 40px 15px;
}
.u-demo-block {
flex: 1;
margin-bottom: 23px;
&__content {
@include flex(column);
}
&__title {
font-size: 14px;
color: rgb(143, 156, 162);
margin-bottom: 8px;
@include flex;
}
}

34
common/emojis.js Normal file
View File

@@ -0,0 +1,34 @@
export const emojis = [
"😀",
"😃",
"😄",
"😁",
"😆",
"😅",
"🤣",
"😂",
"🙂",
"🙃",
"😉",
"😊",
"😇",
"🥰",
"😍",
"🤩",
"😘",
"😗",
"😚",
"😙",
"😋",
"😛",
"😜",
"🤪",
"😝",
"🤑",
"🤗",
"🤭",
"🤫",
"🤔",
];
export default emojis;

5
common/mixin.js Normal file
View File

@@ -0,0 +1,5 @@
export default {
data() {
return {};
},
};

2
common/props.js Normal file
View File

@@ -0,0 +1,2 @@
uni.$u.props.gap.bgColor = "#f3f4f6";
uni.$u.props.gap.height = "10";