diff --git a/App.vue b/App.vue
index a01d067..9fc1727 100644
--- a/App.vue
+++ b/App.vue
@@ -1,5 +1,11 @@
diff --git a/manifest.json b/manifest.json
index 093cccf..7f5596f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "瞬聊",
"appid" : "__UNI__E41111F",
"description" : "一款即时聊天软件",
- "versionName" : "3.3.5",
- "versionCode" : 335,
+ "versionName" : "3.3.6",
+ "versionCode" : 336,
"transformPx" : false,
"app-plus" : {
"bounce" : "none",
@@ -54,7 +54,7 @@
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 21,
- "targetSdkVersion" : 26,
+ "targetSdkVersion" : 36,
"schemes" : "shunliao"
},
"ios" : {
@@ -97,7 +97,7 @@
"push" : {
"unipush" : {
"version" : "2",
- "offline" : true,
+ "offline" : false,
"icons" : {
"small" : {
"ldpi" : "static/images/about_logo.png",
@@ -111,7 +111,7 @@
}
},
"splashscreen" : {
- "androidStyle" : "default",
+ "androidStyle" : "common",
"iosStyle" : "common",
"android" : {
"hdpi" : "unpackage/res/cover/480_762.9.png",
diff --git a/pages.json b/pages.json
index 4fc1837..82e0bc9 100644
--- a/pages.json
+++ b/pages.json
@@ -1,10 +1,8 @@
{
"pages": [
+ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/index/guide",
- "style": {
- "navigationBarTitleText": ""
- }
+ "path": "pages/common/login/index"
},
{
"path": "pages/index/launch",
@@ -12,9 +10,11 @@
"navigationBarTitleText": ""
}
},
- //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/common/login/index"
+ "path": "pages/index/guide",
+ "style": {
+ "navigationBarTitleText": ""
+ }
},
{
"path": "pages/common/registerOrForget/index"
@@ -277,7 +277,11 @@
{
"path": "pages/common/upgrade",
"style": {
- "navigationBarTitleText": ""
+ "navigationStyle": "custom",
+ "backgroundColor": "transparent",
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "系统更新",
+ "enablePullDownRefresh": false
}
},
{
diff --git a/pages/common/contactChoose/choose.vue b/pages/common/contactChoose/choose.vue
index 8040288..2e2d8f0 100644
--- a/pages/common/contactChoose/choose.vue
+++ b/pages/common/contactChoose/choose.vue
@@ -235,6 +235,7 @@
}
},
confirm() {
+ const _this = this;
//console.log(this.checkedUserIDList,this.checkedGroupIDList);
//return false;
// if (this.activeTab) {
@@ -262,16 +263,20 @@
return;
}
if (this.type === ContactChooseTypes.Invite) {
+ console.log(_this.getCheckedUserInfo,_this.groupID);
IMSDK.asyncApi(IMSDK.IMMethods.InviteUserToGroup, IMSDK.uuid(), {
- groupID: this.groupID,
+ groupID: _this.groupID,
reason: "",
- userIDList: this.getCheckedUserInfo.map((user) => user.userID),
+ userIDList: _this.getCheckedUserInfo.map((user) => user.userID),
})
.then(() => {
toastWithCallback("操作成功", () => uni.navigateBack());
- this.comfirmLoading = false;
+ _this.comfirmLoading = false;
})
- .catch(() => toastWithCallback("操作失败"));
+ .catch((e) => {
+ console.log(e);
+ toastWithCallback("操作失败")
+ });
return;
}
diff --git a/pages/common/contactChoose/chooseGroupMember.vue b/pages/common/contactChoose/chooseGroupMember.vue
index 734b42d..c1182af 100644
--- a/pages/common/contactChoose/chooseGroupMember.vue
+++ b/pages/common/contactChoose/chooseGroupMember.vue
@@ -66,8 +66,6 @@
return true;
}
return false;
- console.log(friend.nickname);
- return friend.nickname.indexOf(this.keyword) !==-1 || friend?.remark.indexOf(this.keyword) !==-1
}
),
],
diff --git a/pages/common/login/index.vue b/pages/common/login/index.vue
index cf27a58..34d88db 100644
--- a/pages/common/login/index.vue
+++ b/pages/common/login/index.vue
@@ -158,37 +158,35 @@ export default {
});
},
async startLogin() {
- this.$refs.loginForm.validate().then(async (valid) => {
- this.loading = true;
- this.saveLoginInfo();
- let data = {};
- try {
- data = await businessLogin({
- mobile: this.loginInfo.phoneNumber,
- email: this.loginInfo.email,
- region: `+${this.loginInfo.region}`,
- password: this.isPwdLogin ? md5(this.loginInfo.password) : "",
- platform: uni.$u.os(),
- type: this.active === 0 ? 'mobile' : 'email',
- code: this.loginInfo.verificationCode,
- });
- const { imToken, userID } = data;
- this.saveLoginProfile(data);
- this.$store.commit("user/SET_AUTH_DATA", data);
- this.loginInfo.password = "";
- // #ifdef APP
- // await IMSDK.asyncApi(IMSDK.IMMethods.Login, uuidv4(), {
- // userID,
- // token: imToken,
- // });
- plus.runtime.restart();
- // #endif
- } catch (err) {
- console.error(err);
- uni.$u.toast(checkLoginError(err));
- }
- this.loading = false;
- });
+ this.loading = true;
+ this.saveLoginInfo();
+ let data = {};
+ try {
+ data = await businessLogin({
+ mobile: this.loginInfo.phoneNumber,
+ email: this.loginInfo.email,
+ region: `+${this.loginInfo.region}`,
+ password: this.isPwdLogin ? md5(this.loginInfo.password) : "",
+ platform: uni.$u.os(),
+ type: this.active === 0 ? 'mobile' : 'email',
+ code: this.loginInfo.verificationCode,
+ });
+ const { imToken, userID } = data;
+ this.saveLoginProfile(data);
+ this.$store.commit("user/SET_AUTH_DATA", data);
+ this.loginInfo.password = "";
+ // #ifdef APP
+ // await IMSDK.asyncApi(IMSDK.IMMethods.Login, uuidv4(), {
+ // userID,
+ // token: imToken,
+ // });
+ plus.runtime.restart();
+ // #endif
+ } catch (err) {
+ console.error(err);
+ uni.$u.toast(checkLoginError(err));
+ }
+ this.loading = false;
},
saveLoginProfile(data) {
const { imToken, token, userID } = data;
@@ -275,6 +273,7 @@ export default {
align-items: center;
img {
+ border-radius: 32rpx;
width: 160rpx;
height: 160rpx;
}
diff --git a/pages/common/upgrade.vue b/pages/common/upgrade.vue
index 9a80f46..3b69475 100644
--- a/pages/common/upgrade.vue
+++ b/pages/common/upgrade.vue
@@ -1,24 +1,32 @@
-
-
-
-
- 发现新版本
- V{{model.version}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 发现新版本
+ V{{model.version}}
-
-
-
-
-
-
-
+
+
+
+
+
@@ -27,7 +35,7 @@
-
diff --git a/pages/contact/groupList/index.vue b/pages/contact/groupList/index.vue
index 6446d70..6a4df2f 100644
--- a/pages/contact/groupList/index.vue
+++ b/pages/contact/groupList/index.vue
@@ -1,157 +1,135 @@
-
-
+
+
+
+
+
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ .pane_title {
+ font-size: 14px;
+ color: #999;
+ padding: 6px 22px;
+ background-color: #f8f8f8;
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/conversation/chating/components/MessageItem/PictureMessageRender.vue b/pages/conversation/chating/components/MessageItem/PictureMessageRender.vue
index 551c04e..c887372 100644
--- a/pages/conversation/chating/components/MessageItem/PictureMessageRender.vue
+++ b/pages/conversation/chating/components/MessageItem/PictureMessageRender.vue
@@ -33,7 +33,7 @@
conversationID:String,
},
data() {
- console.log(this.message);
+ //console.log(this.message);
return {
loadingWidth: "120px",
src:"",
@@ -64,7 +64,7 @@
util.cacheFile(snapshotUrl,`${this.conversationID}`).then((fn)=>{
self.coverDownloading = false;
self.src = fn;
- console.log(fn);
+ //console.log(fn);
});
},
clickMediaItem() {
diff --git a/pages/conversation/chating/components/MessageItem/VideoMessageRender.vue b/pages/conversation/chating/components/MessageItem/VideoMessageRender.vue
index 9c7c06b..1b0e5e7 100644
--- a/pages/conversation/chating/components/MessageItem/VideoMessageRender.vue
+++ b/pages/conversation/chating/components/MessageItem/VideoMessageRender.vue
@@ -117,10 +117,10 @@
methods: {
async init(){
const self = this;
- console.log(this.message?.videoElem);
- const snapshotUrl = this.message?.videoElem?.snapshotPath || this.message?.videoElem?.snapshotUrl;
+ //console.log(this.message?.videoElem);
+ const snapshotUrl = this.message?.videoElem?.snapshotUrl;
self.coverDownloading = true;
- console.log(snapshotUrl);
+ //console.log(snapshotUrl);
util.cacheFile(snapshotUrl,`${this.conversationID}`).then((fn)=>{
self.coverDownloading = false;
self.src = fn;
diff --git a/pages/conversation/conversationList/components/ChatHeader.vue b/pages/conversation/conversationList/components/ChatHeader.vue
index 2148c9e..1fef882 100644
--- a/pages/conversation/conversationList/components/ChatHeader.vue
+++ b/pages/conversation/conversationList/components/ChatHeader.vue
@@ -24,7 +24,7 @@
添加好友
-