diff --git a/api/login.js b/api/login.js
index 5fabd32..bc930ea 100644
--- a/api/login.js
+++ b/api/login.js
@@ -32,7 +32,7 @@ export const businessModify = (params) =>
// 用户信息
export const businessInfoUpdate = (params) =>
uni.$u?.http.post(
- "/user/info",
+ "/user/profile",
JSON.stringify({...params}),
{
header: {
@@ -80,9 +80,10 @@ export const businessSearchUser = (keyword,searchtype) =>
},
}
);
-export const getArticle = (id,type) => uni.$u?.http.post("/article/detail",JSON.stringify({id,type:(type? type : 'id')}));
+export const getSpage = (name) => uni.$u?.http.get(`/article/singpage?name=${name}`);
+export const getArticle = (id) => uni.$u?.http.get(`/article/detail?id=${id}`);
export const getFriendCircle = (page=1,limit=10) =>{
- return uni.$u?.http.get("/friendcircle/list",JSON.stringify({limit:limit,page:page}));
+ return uni.$u?.http.get(`/friendcircle/list?limit=${limit}&page=${page}`);
}
export const getFriendCircleNewcount = () =>{
return uni.$u?.http.get("/friendcircle/newcount");
diff --git a/manifest.json b/manifest.json
index cd99537..26bd1e8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "回声",
"appid" : "__UNI__CA458BA",
"description" : "",
- "versionName" : "3.3.4",
- "versionCode" : 334,
+ "versionName" : "3.3.5",
+ "versionCode" : 335,
"transformPx" : false,
"app-plus" : {
"bounce" : "none",
diff --git a/pages/common/article.vue b/pages/common/article.vue
index 225acd9..fa5e113 100644
--- a/pages/common/article.vue
+++ b/pages/common/article.vue
@@ -1,20 +1,38 @@
-
-
-
+
+
+
+
+
-
+
+
+
+
-
diff --git a/pages/common/groupCard/index.vue b/pages/common/groupCard/index.vue
index 981adc9..4a1954d 100644
--- a/pages/common/groupCard/index.vue
+++ b/pages/common/groupCard/index.vue
@@ -1,309 +1,282 @@
-
-
-
+
+
+
-
-
-
-
-
- {{ sourceGroupInfo.groupName }}
- ({{ sourceGroupInfo.memberCount }})
-
-
-
- {{ getCreateTime }}
-
-
-
+
+
+
+
+
+ {{ sourceGroupInfo.groupName }}
+ ({{ sourceGroupInfo.memberCount }})
+
+
+
+ {{ getCreateTime }}
+
+
+
-
-
- 群成员
- {{
+
+
+ 群成员
+ {{
`${sourceGroupInfo.memberCount}人`
}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
- 申请加入该群
- 发消息
-
-
+
+ 申请加入该群
+ 发消息
+
+
+ .dot {
+ background-color: #10cc64;
+ width: 12rpx;
+ height: 12rpx;
+ border-radius: 50%;
+ margin-right: 12rpx;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/common/searchUserOrGroup/index.vue b/pages/common/searchUserOrGroup/index.vue
index 8caae79..48d5883 100644
--- a/pages/common/searchUserOrGroup/index.vue
+++ b/pages/common/searchUserOrGroup/index.vue
@@ -86,7 +86,6 @@
);
info = data[0];
}
- console.log(info)
if (info) {
uni.navigateTo({
url: `/pages/common/groupCard/index?sourceInfo=${JSON.stringify(info,)}`,
diff --git a/pages/common/userOrGroupQrCode.vue b/pages/common/userOrGroupQrCode.vue
index 75a0508..e7c5b95 100644
--- a/pages/common/userOrGroupQrCode.vue
+++ b/pages/common/userOrGroupQrCode.vue
@@ -14,11 +14,11 @@
-
+
- {{ userInfo.nickname }}
-
- {{ userInfo.userID }}
+ {{ source.showName }}
+
+ {{ source.code }}
@@ -29,7 +29,7 @@
扫一扫
换个样式
- 保存图片
+ 保存图片
@@ -39,6 +39,8 @@
import QRCode from "@/components/qrcode.js";
import UserBase from '@/components/User.vue';
import util from "@/util";
+ import { mapGetters } from "vuex";
+ import md5 from "md5";
export default {
mixins:[UserBase],
components: {
@@ -46,15 +48,54 @@
},
data() {
return {
-
+ qrcodeUrl:"",
+ qrcode_src:"",
+ source:{
+ type:"user",
+ showName:"",
+ faceURL:"",
+ code:"",
+ }
}
},
- onLoad() {
- console.log(this.userInfo)
+ computed:{
+ ...mapGetters(["storeFriendList","storeGroupList","config"]),
+ },
+ onLoad(opt) {
+ if(opt.sourceInfo){
+ this.source = JSON.parse(opt.sourceInfo);
+ }else{
+ this.source = {
+ type:"user",
+ showName:"",
+ faceURL:"",
+ code:"",
+ };
+ }
+ console.log(this.config);
+ if(this.source.type == "user"){
+ this.qrcodeUrl = `${this.config.website}/u/${this.source.code}`;
+ }else{
+ this.qrcodeUrl = `${this.config.website}/g/${this.source.code}`;
+ }
+ console.log(this.qrcodeUrl);
this.createQrcode();
},
methods: {
...util,
+ save(){
+ const _this = this;
+ uni.saveImageToPhotosAlbum({
+ filePath:_this.qrcode_src,
+ success() {
+ util.success("保存成功");
+ },
+ fail(e) {
+ console.log(e);
+ util.error("保存失败");
+ }
+ })
+ },
createQrcode() {
const _this = this;
return new Promise((resolve, reject) => {
@@ -64,7 +105,7 @@
usingComponents: true, // 是否是自定义组件
showLoading: false, // 是否显示loading
loadingText: "", // loading文字
- text: "/pages/common/invite_register?code=", // 生成内容
+ text: `${this.qrcodeUrl}`, // 生成内容
size: 320, // 二维码大小
background: "#fff", // 背景色
foreground: '#000000', // 前景色
@@ -73,7 +114,7 @@
image: "", // 二维码图标
imageSize: 40, // 二维码图标大小
cbResult: function(res) { // 生成二维码的回调
- //_this.qrcode_src = (res)
+ _this.qrcode_src = (res)
//resolve(res);
},
});
@@ -84,48 +125,46 @@
\ No newline at end of file
diff --git a/pages/conversation/chating/components/ChatingList.vue b/pages/conversation/chating/components/ChatingList.vue
index 6b4baf8..a05713a 100644
--- a/pages/conversation/chating/components/ChatingList.vue
+++ b/pages/conversation/chating/components/ChatingList.vue
@@ -6,13 +6,11 @@
-
-
-
-
@@ -74,13 +72,6 @@
return "nomore";
}
return this.messageLoadState.loading ? "loading" : "loadmore";
- },
- selectClientMsgIDItems(){
- let arr = [];
- this.selectItems.forEach((v,k)=>{
- arr.push(v.clientMsgID);
- });
- return arr;
}
},
mounted() {
diff --git a/pages/conversation/chating/components/MessageItem/index.vue b/pages/conversation/chating/components/MessageItem/index.vue
index d32abbb..2c5ff80 100644
--- a/pages/conversation/chating/components/MessageItem/index.vue
+++ b/pages/conversation/chating/components/MessageItem/index.vue
@@ -1,35 +1,39 @@
-
-
-
-
- {{ formattedMessageTime }}
- {{ "" }}
- {{ source.senderNickname }}
-
-
-
-
-
-
-
+
+ {{ getNoticeContent }}
+
+
+
+
+
+
+
+
+
+
+ {{ formattedMessageTime }}
+ {{ "" }}
+ {{ source.senderNickname }}
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {{ getNoticeContent }}
@@ -89,6 +93,16 @@
conversationID:String,
isPreview: Boolean,
isActive: Boolean,
+ selectFlag:{
+ type:Boolean,
+ default:false
+ },
+ selectItems:{
+ type:Array,
+ default(){
+ return [];
+ }
+ }
},
data() {
return {
@@ -97,7 +111,7 @@
toolTipFlag: false,
popPostion:"default",
toolTipData: [],
- component:"ErrorMessageRender",
+ component:"ErrorMessageRender"
};
},
computed: {
@@ -113,16 +127,17 @@
formattedMessageTime() {
return formatMessageTime(this.source.sendTime);
},
+ isNoticeMessage(){
+ return noticeMessageTypes.includes(this.source.contentType);
+ },
getNoticeContent() {
- const isNoticeMessage = noticeMessageTypes.includes(
- this.source.contentType
- );
- return !isNoticeMessage ?
- "" :
- tipMessaggeFormat(
+ if(this.isNoticeMessage){
+ return tipMessaggeFormat(
this.source,
this.$store.getters.storeCurrentUserID
);
+ }
+ return "";
},
isSuccessMessage() {
return this.source.status === MessageStatus.Succeed;
@@ -133,6 +148,13 @@
showSending() {
return this.source.status === MessageStatus.Sending && !this.sendingDelay;
},
+ selectClientMsgIDItems(){
+ let arr = [];
+ this.selectItems.forEach((v,k)=>{
+ arr.push(v.clientMsgID);
+ });
+ return arr;
+ }
},
mounted() {
const MsgType2Components = {
@@ -174,7 +196,6 @@
}
},
longtapEvent(e){
- console.log('longtapEvent');
this.$emit('userEvent',{type:"longtapMsgContent"},this.source);
},
onMessageEvent(e){
@@ -185,9 +206,16 @@