luke 6 lat temu
rodzic
commit
89377d0a2d

+ 2 - 1
pc_chat/src/components/chat.vue

@@ -1618,7 +1618,8 @@
 					}
 					if (res.data.code == 1) {
 						this.user_info = res.data.data;
-						// console.log(this.user_info,"用户信息")
+						 console.log(this.user_info,"用户信息")
+						localStorage.setItem('uid', res.data.data.id)
 						// 游客 token
 						localStorage.setItem("token", res.data.data.token);
 						localStorage.setItem("tutype", res.data.tutype);

+ 4 - 1
pc_chat/src/components/leaveMsg.vue

@@ -130,6 +130,8 @@
 					// 手动上传
 					this.$refs.upload.submit();
 					let _this = this;
+					let uid = localStorage.getItem('uid');
+
 					setTimeout(function () {
 						let params = {
 							'name': _this.call,
@@ -138,7 +140,8 @@
 							'phone': _this.phone,
 							'qq': _this.QQ,
 							'wechat': _this.WX,
-							'file': _this.uploadImg.join(',')
+							'file': _this.uploadImg.join(','),
+							'account_id': uid,
 						}
 						_this.$axios.post('/api/index/User/LeavingMessage', params).then(res => {
 							console.log('res', res)

+ 4 - 0
service/src/assets/frce.js

@@ -0,0 +1,4 @@
+export default{
+    frce : ["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],
+    arr : ['1','2','3','4','5','6','7','8','9','0','A','B','C','D','E','F','G','H','I','J','K','L','M','N','P','R','T','V','W','X','Y','Z'],
+}

BIN
service/src/assets/img/expression.png


BIN
service/src/assets/img/expressionHover.png


BIN
service/src/assets/img/photo.png


BIN
service/src/assets/img/photoHover.png