11
This commit is contained in:
1 parent
0c1a9e8620
commit
b3205d20db
30 files changed
+3491
-5795
No files matched your search
@@ -6,11 +6,11 @@ SHOPRO_API_PATH=/app-api
|
||||
|
||||
# 后端接口 - 测试环境(通过 process.env.NODE_ENV == development)
|
||||
# SHOPRO_DEV_BASE_URL=http://127.0.0.1:48083
|
||||
# SHOPRO_DEV_BASE_URL = https://chatapi.zianxin.com
|
||||
SHOPRO_DEV_BASE_URL=https://dzc001.fy.takin.cc
|
||||
SHOPRO_DEV_BASE_URL = http://api.htysapp.com
|
||||
# SHOPRO_DEV_BASE_URL=https://dzc001.fy.takin.cc
|
||||
|
||||
# 后端接口 - 正式环境(通过 process.env.NODE_ENV != development)
|
||||
SHOPRO_BASE_URL=https://chatapi.zianxin.com
|
||||
SHOPRO_BASE_URL=http://api.htysapp.com
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
|
||||
SHOPRO_UPLOAD_TYPE=server
|
||||
|
||||
+1
-1
@@ -325,7 +325,7 @@
|
||||
client = judgeClient()
|
||||
if (client == 'android') {
|
||||
const ua = navigator.userAgent
|
||||
var src = 'http://hch5.zianxin.com/荷塘月色.apk';
|
||||
var src = 'http://download.htysapp.com/荷塘月色.apk';
|
||||
var form = document.createElement('form');
|
||||
form.action = src;
|
||||
document.getElementsByTagName('body')[0].appendChild(form);
|
||||
|
||||
Binary file not shown.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
+20
-19
@@ -35,21 +35,22 @@
|
||||
"type-check": "vue-tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-components": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-h5": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-app": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-app-harmony": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-components": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-h5": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-harmony": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-mp-xhs": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-ui": "^1.5.11",
|
||||
"@vant/area-data": "^2.1.0",
|
||||
"dayjs": "^1.11.7",
|
||||
@@ -67,10 +68,10 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dcloudio/types": "^3.4.8",
|
||||
"@dcloudio/uni-automator": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-4030620241128001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-4030620241128001",
|
||||
"@dcloudio/uni-automator": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-5000520260324001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-5000520260324001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-5000520260324001",
|
||||
"@types/node": "^24.9.1",
|
||||
"@uni-helper/uni-app-types": "1.0.0-alpha.6",
|
||||
"@uni-helper/uni-ui-types": "1.0.0-alpha.6",
|
||||
|
||||
Generated
+3263
-5559
File diff suppressed because it is too large.
Load diff
@@ -538,6 +538,9 @@ export default {
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
// onError(error) {
|
||||
// console.log('onError', error);
|
||||
// },
|
||||
onShow() {
|
||||
// #ifdef APP-PLUS
|
||||
// 获取urlSchemes参数
|
||||
|
||||
+4
-4
@@ -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,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
@@ -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
@@ -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
@@ -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,
|
||||
)}"/>`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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' });
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+17
-7
@@ -2,7 +2,7 @@ import uni from '@dcloudio/vite-plugin-uni';
|
||||
import { loadEnv } from 'vite';
|
||||
import viteCompression from 'vite-plugin-compression';
|
||||
import path from 'path';
|
||||
// import uniReadPagesV3Plugin from './src/sheep/router/utils/uni-read-pages-v3';
|
||||
import uniReadPagesV3Plugin from './src/sheep/router/utils/uni-read-pages-v3';
|
||||
// import mpliveMainfestPlugin from './src/sheep/libs/mplive-manifest-plugin';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
@@ -18,12 +18,22 @@ export default async (command: 'build' | 'serve', mode: string) => {
|
||||
viteCompression({
|
||||
verbose: false,
|
||||
}),
|
||||
// uniReadPagesV3Plugin({
|
||||
// pagesJsonDir: path.resolve(__dirname, './src/pages.json'),
|
||||
// includes: ['path', 'aliasPath', 'name', 'meta'],
|
||||
// }),
|
||||
uniReadPagesV3Plugin({
|
||||
pagesJsonDir: path.resolve(__dirname, './src/pages.json'),
|
||||
includes: ['path', 'aliasPath', 'name', 'meta'],
|
||||
}),
|
||||
// mpliveMainfestPlugin(env.SHOPRO_MPLIVE_ON),
|
||||
],
|
||||
// esbuild: {
|
||||
// target: 'es2015',
|
||||
// supported: {
|
||||
// 'optional-chain': false,
|
||||
// 'nullish-coalescing': false,
|
||||
// },
|
||||
// },
|
||||
// build: {
|
||||
// target: 'es2015',
|
||||
// },
|
||||
server: {
|
||||
host: true,
|
||||
hmr: {
|
||||
@@ -37,10 +47,10 @@ export default async (command: 'build' | 'serve', mode: string) => {
|
||||
},
|
||||
// 聊天相关api
|
||||
'/api': {
|
||||
target: 'http://chatsever.zianxin.com',
|
||||
target: 'http://im-platform.htysapp.com',
|
||||
// target: 'http://127.0.0.1:8888',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
rewrite: (path: string) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user