This commit is contained in:
dzc committed 2026-03-27 09:40:51 +08:00
1 parent 0c1a9e8620
commit b3205d20db
30 files changed
+3491 -5795

No files matched your search

+3
View File
@@ -538,6 +538,9 @@ export default {
});
// #endif
},
// onError(error) {
// console.log('onError', error);
// },
onShow() {
// #ifdef APP-PLUS
// 获取urlSchemes参数
+4 -4
View File
@@ -4,8 +4,8 @@ const CHAT_ENV = {};
// 开发
if (ENV == 'DEV') {
CHAT_ENV.BASE_URL = 'http://chatsever.zianxin.com';
CHAT_ENV.WS_URL = 'ws://chatapp.zianxin.com/im';
CHAT_ENV.BASE_URL = 'http://im-platform.htysapp.com';
CHAT_ENV.WS_URL = 'ws://im-server.htysapp.com/im';
// CHAT_ENV.BASE_URL = 'http://127.0.0.1:8888';
// CHAT_ENV.WS_URL = 'ws://127.0.0.1:8876/im'
@@ -21,8 +21,8 @@ console.log("CHAT_ENV:", CHAT_ENV);
// 生产
if (ENV == 'PROD') {
CHAT_ENV.BASE_URL = 'http://chatsever.zianxin.com';
CHAT_ENV.WS_URL = 'ws://chatapp.zianxin.com/im';
CHAT_ENV.BASE_URL = 'http://im-server.htysapp.com';
CHAT_ENV.WS_URL = 'ws://chatapp.im-server.htysapp.com.com/im';
}
export default CHAT_ENV;
+1 -1
View File
@@ -1,5 +1,5 @@
// const EMO_URL = '/static/emoji/';
const EMO_URL = 'http://public-com.zianxin.com/emoji/';
const EMO_URL = 'http://public-com.im-server.htysapp.com.com/emoji/';
// #ifdef MP-WEIXIN
// 微信小程序的本地表情包经常莫名失效,建议将表情放到服务器中
// CHAT_ENV.EMO_URL = "https://www.boxim.online/emoji/";
+1 -1
View File
@@ -17,7 +17,7 @@ import * as messageType from './common/messageType';
import * as recorder from './common/recorder-h5';
import ImageResize from 'quill-image-resize-mp';
import Quill from 'quill';
// 以下组件用于兼容部分手机聊天边框无法输入的问题
// 以下组件用于兼容部分手机聊天边框无法输入的问题
window.Quill = Quill;
window.ImageResize = { default: ImageResize };
// 调试器
+165 -190
View File
@@ -1,39 +1,38 @@
{
"name": "荷塘月色",
"appid": "__UNI__5B53E65",
"description": "聊天交友app",
"versionName": "0.0.1",
"versionCode": 2,
"transformPx": false,
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"nvueLaunchMode": "fast",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
"name" : "荷塘月色",
"appid" : "__UNI__0A84F60",
"description" : "聊天交友app",
"versionName" : "1.0.4",
"versionCode" : 104,
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"nvueLaunchMode" : "fast",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"safearea": {
"bottom": {
"offset": "none"
"safearea" : {
"bottom" : {
"offset" : "none"
}
},
"modules": {
"Payment": {},
"Share": {},
"VideoPlayer": {},
"OAuth": {},
"Camera": {},
"Geolocation": {},
"FaceID": {}
"modules" : {
"VideoPlayer" : {},
"OAuth" : {},
"Camera" : {},
"Geolocation" : {},
"FaceID" : {},
"Payment" : {}
},
"distribute": {
"android": {
"permissions": [
"distribute" : {
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@@ -66,202 +65,178 @@
"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
],
"minSdkVersion": 21,
"schemes": "荷塘月色",
"excludePermissions": [
"minSdkVersion" : 29,
"schemes" : "",
"excludePermissions" : [
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>"
]
},
"ios": {
"urlschemewhitelist": [
"baidumap",
"iosamap"
],
"dSYMs": false,
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
"NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片",
"NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目",
"NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
},
"urltypes": "荷塘月色",
"capabilities": {
"entitlements": {
"com.apple.developer.associated-domains": [
"applinks:shopro.sheepjs.com"
]
}
},
"idfa": true
"targetSdkVersion" : 29,
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
"sdkConfigs": {
"speech": {},
"ad": {},
"oauth": {},
"payment": {
"weixin": {
"__platform__": [
"ios",
"android"
],
"appid": "wxae7a0c156da9383b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
},
"alipay": {
"__platform__": [
"ios",
"android"
]
"ios" : {
"urlschemewhitelist" : [ "baidumap", "iosamap" ],
"dSYMs" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "需要同意访问您的相册选取图片才能完成真人认证、发布动态等",
"NSPhotoLibraryAddUsageDescription" : "需要同意访问您的相册才能保存该图片",
"NSCameraUsageDescription" : "需要同意访问您的摄像头拍摄照片才能完善该条目",
"NSUserTrackingUsageDescription" : "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验",
"NSMicrophoneUsageDescription" : ""
},
"urltypes" : "",
"capabilities" : {
"entitlements" : {
"com.apple.developer.associated-domains" : [ "applinks:shopro.sheepjs.com" ]
}
},
"share": {
"weixin": {
"appid": "wxae7a0c156da9383b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"idfa" : true
},
"sdkConfigs" : {
"speech" : {},
"ad" : {},
"oauth" : {},
"payment" : {},
"share" : {
"weixin" : {
"appid" : "wxae7a0c156da9383b",
"UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}
},
"maps": {},
"geolocation": {
"system": {
"__platform__": [
"ios",
"android"
]
"maps" : {},
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
}
}
},
"orientation": [
"portrait-primary"
],
"splashscreen": {
"androidStyle": "default",
"iosStyle": "common",
"useOriginalMsgbox": true,
"android": {
"hdpi": "unpackage/res/splash_screen/480x762.png",
"xhdpi": "unpackage/res/splash_screen/720x1242.png",
"xxhdpi": "unpackage/res/splash_screen/1080x1882.png"
"orientation" : [ "portrait-primary" ],
"splashscreen" : {
"androidStyle" : "default",
"iosStyle" : "common",
"useOriginalMsgbox" : true,
"android" : {
"hdpi" : "unpackage/res/splash_screen/480x762.png",
"xhdpi" : "unpackage/res/splash_screen/720x1242.png",
"xxhdpi" : "unpackage/res/splash_screen/1080x1882.png"
}
},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
},
"nativePlugins": {
"AP-FaceDetectModule": {
"__plugin_info__": {
"name": "AP-FaceDetectModule",
"description": "阿里云金融级实人认证SDK",
"platforms": "Android,iOS",
"url": "",
"android_package_name": "",
"ios_bundle_id": "",
"isCloud": false,
"bought": -1,
"pid": "",
"parameters": {}
"nativePlugins" : {
"AP-FaceDetectModule" : {
"__plugin_info__" : {
"name" : "AP-FaceDetectModule",
"description" : "阿里云金融级实人认证SDK",
"platforms" : "Android,iOS",
"url" : "",
"android_package_name" : "",
"ios_bundle_id" : "",
"isCloud" : false,
"bought" : -1,
"pid" : "",
"parameters" : {}
}
}
}
},
"quickapp": {},
"quickapp-native": {
"icon": "/static/logo.png",
"package": "com.example.demo",
"features": [
"quickapp" : {},
"quickapp-native" : {
"icon" : "/static/logo.png",
"package" : "com.example.demo",
"features" : [
{
"name": "system.clipboard"
"name" : "system.clipboard"
}
]
},
"quickapp-webview": {
"icon": "/static/logo.png",
"package": "com.example.demo",
"minPlatformVersion": 1070,
"versionName": "1.0.0",
"versionCode": 100
"quickapp-webview" : {
"icon" : "/static/logo.png",
"package" : "com.example.demo",
"minPlatformVersion" : 1070,
"versionName" : "1.0.0",
"versionCode" : 100
},
"mp-weixin": {
"appid": "wx66186af0759f47c9",
"setting": {
"urlCheck": false,
"minified": true,
"postcss": true
"mp-weixin" : {
"appid" : "wx66186af0759f47c9",
"setting" : {
"urlCheck" : false,
"minified" : true,
"postcss" : true
},
"optimization": {
"subPackages": true
"optimization" : {
"subPackages" : true
},
"plugins": {},
"lazyCodeLoading": "requiredComponents",
"usingComponents": {},
"permission": {},
"requiredPrivateInfos": [
"chooseAddress"
]
"plugins" : {},
"lazyCodeLoading" : "requiredComponents",
"usingComponents" : {},
"permission" : {},
"requiredPrivateInfos" : [ "chooseAddress" ]
},
"mp-alipay": {
"usingComponents": true
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu": {
"usingComponents": true
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao": {
"usingComponents": true
"mp-toutiao" : {
"usingComponents" : true
},
"mp-jd": {
"usingComponents": true
"mp-jd" : {
"usingComponents" : true
},
"h5": {
"darkmode": true,
"template": "index.html",
"router": {
"mode": "history",
"base": "/"
"h5" : {
"darkmode" : true,
"template" : "index.html",
"router" : {
"mode" : "history",
"base" : "/"
},
"sdkConfigs": {
"maps": {}
"sdkConfigs" : {
"maps" : {}
},
"async": {
"timeout": 20000
"async" : {
"timeout" : 20000
},
"title": "聊天交友",
"optimization": {
"treeShaking": {
"enable": true
"title" : "聊天交友",
"optimization" : {
"treeShaking" : {
"enable" : true
}
}
},
"vueVersion": "3",
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale": "zh-Hans",
"fallbackLocale": "zh-Hans"
}
"vueVersion" : "3",
"_spaceID" : "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale" : "zh-Hans",
"fallbackLocale" : "zh-Hans"
}
+2 -2
View File
@@ -494,8 +494,8 @@
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "荷塘月色交友聊天",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8",
"navigationBarBackgroundColor": "#222222 ",
"backgroundColor": "#222222",
"navigationStyle": "custom"
},
"tabBar": {
@@ -126,7 +126,7 @@ function replaceEmoji(data) {
newData = newData.replace(
item,
`<img class="chat-img" style="width: 24px;height: 24px;margin: 0 3px;vertical-align: middle;" src="${sheep.$url.cdn(
'http://public-com.zianxin.com/emoji/' + emojiFile,
'http://public-com.im-server.htysapp.com.com/emoji/' + emojiFile,
)}"/>`,
);
}
+2 -1
View File
@@ -9,7 +9,8 @@
<swiper-item v-for="emoji in emojiPage" :key="emoji">
<view class="ss-flex ss-flex-wrap">
<image v-for="item in emoji" :key="item" class="emoji-img"
:src="sheep.$url.cdn(`http://public-com.zianxin.com/emoji/${item.file}`)" @tap="onEmoji(item)">
:src="sheep.$url.cdn(`http://public-com.im-server.htysapp.com.com/emoji/${item.file}`)"
@tap="onEmoji(item)">
</image>
</view>
</swiper-item>
+5 -3
View File
@@ -852,7 +852,7 @@ export default {
method: 'PUT',
}).then(() => { });
}
this.chatStore.resetUnreadCount(this.chat);
this.chatStore?.resetUnreadCount?.(this.chat);
},
loadGroup(groupId) {
this.$http({
@@ -1250,10 +1250,10 @@ export default {
return this.groupMembers.filter((m) => !m.quit).length;
},
isGroup() {
return this.chat.type == 'GROUP';
return !!this.chat && this.chat.type == 'GROUP';
},
isPrivate() {
return this.chat.type == 'PRIVATE';
return !!this.chat && this.chat.type == 'PRIVATE';
},
loading() {
return this.chatStore.loading;
@@ -1329,6 +1329,8 @@ export default {
// 监听键盘高度
this.listenKeyBoard();
// 计算聊天窗口高度
console.log("getSystemInfoSync:", uni.getSystemInfoSync());
this.windowHeight = uni.getSystemInfoSync().windowHeight;
this.screenHeight = uni.getSystemInfoSync().screenHeight;
this.reCalChatMainHeight();
+2 -2
View File
@@ -56,7 +56,7 @@
<navigator url="/pages/profile/my-moment" open-type="navigate" hover-class="navigator-hover">
<view class="flex-col-center">
<text class="text-color-theme font-600 text-lg">
{{ recentTotal.selfRecentTotal }}
{{ recentTotal?.selfRecentTotal ?? 0 }}
</text>
<text class="text-color-theme text-sm">动态</text>
</view>
@@ -288,7 +288,7 @@ const subOfficial = () => {
})
.then(async () => {
uni.saveImageToPhotosAlbum({
filePath: "http://hch5.zianxin.com/gzh.jpg",
filePath: "http://download.htysapp.com/gzh.jpg",
success: () => {
uni.showToast({ title: '保存成功', icon: 'success' });
},
+1 -1
View File
@@ -43,7 +43,7 @@ name = 'App';
platform = 'openPlatform';
// 检查微信客户端是否安装,否则AppleStore会因此拒绝上架
if (os === 'ios') {
isWechatInstalled = plus.ios.import('WXApi').isWXAppInstalled();
isWechatInstalled = plus.ios.import('WXApi')?.isWXAppInstalled?.();
}
// #endif