This commit is contained in:
pengxiaolong
2025-07-18 13:06:06 +08:00
parent 6dec463705
commit 31527ba8a6
1853 changed files with 65500 additions and 98288 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/goEasyTool/tool.js"),o={data:()=>({userId:"",nickname:"",triggered:!1,avatar:"",chatList:[],userinfo:{},ButtonStatus:!1,MoreStatus:!1,KeyboardHeight:0,content:"",MoreItemStatus:null,ioshide:0,popUpList:[{name:"邀请",icon:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",type:"Invitation"}]}),onLoad(o){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e}}),this.userId=o.userId,this.nickname=o.nickname,this.avatar=o.avatar,this.getIOSDeviceType(),t.getConversationMessages(this.$goeasy,userinfo.id,null).then((e=>{this.chatList=e})),this.$goeasy.im.on(GoEasy.IM_EVENT.PRIVATE_MESSAGE_RECEIVED,onPrivateMessageReceived)},methods:{onPrivateMessageReceived(e){this.chatList.push(e)},onSend(){""!=this.content&&(t.sendMessage(this.$goeasy,this.userId,this.content,this.avatar,this.nickname).then((e=>{console.log(e)})),this.content="",this.ButtonStatus=!1)},getIOSDeviceType(){const t=e.index.getSystemInfoSync().model;console.log("model:"+t),/iPhone X|iPhone11|iPhone12|iPhone13|iPhone14/i.test(t)&&(/iPhone X|iPhone XS|iPhone 11 Pro/i.test(t)?this.ioshide=88:/iPhone 12|iPhone 13|iPhone 14/i.test(t)&&(this.ioshide=94))},onMore(e){this.MoreStatus=e},onMoreItem(e){this.MoreItemStatus=e},onFocus(e){console.log(2*e.detail.height),this.KeyboardHeight=2*e.detail.height-this.ioshide},onBlur(e){this.KeyboardHeight=0},SendInput(e){""!=e.target.value?this.ButtonStatus=!0:this.ButtonStatus=!1},onBack(){e.wx$1.navigateBack({delta:1})}},components:{textmessage:()=>"./messageComponent/textmessage.js",InvitationComponents:()=>"./moreMessageComponents/InvitationComponents.js"}};if(!Array){(e.resolveComponent("textmessage")+e.resolveComponent("InvitationComponents"))()}const n=e._export_sfc(o,[["render",function(t,o,n,s,i,a){return e.e({a:e.o((e=>a.onMore(!1))),b:e.o(((...e)=>a.onBack&&a.onBack(...e))),c:e.t(i.nickname),d:e.o((e=>a.onMore(!1))),e:e.f(i.chatList,((t,o,n)=>({a:"cb106494-0-"+n,b:e.p({messagetext:t.payload.text})}))),f:e.o(((...e)=>t.onRefresherRefresh&&t.onRefresherRefresh(...e))),g:e.o(((...e)=>t.onScrollToLower&&t.onScrollToLower(...e))),h:i.triggered,i:e.o((e=>a.onMore(!1))),j:e.o([e=>i.content=e.detail.value,(...e)=>a.SendInput&&a.SendInput(...e)]),k:e.o(((...e)=>a.onFocus&&a.onFocus(...e))),l:e.o(((...e)=>a.onBlur&&a.onBlur(...e))),m:i.content,n:!i.ButtonStatus},i.ButtonStatus?{}:{o:e.o((e=>a.onMore(!i.MoreStatus)))},{p:i.ButtonStatus},i.ButtonStatus?{q:e.o(((...e)=>a.onSend&&a.onSend(...e)))}:{},{r:i.MoreStatus||0!=i.KeyboardHeight?i.MoreStatus?"650rpx":0!=i.KeyboardHeight?i.KeyboardHeight+"rpx":"0":"0",s:e.f(i.popUpList,((t,o,n)=>({a:t.icon,b:e.t(t.name),c:e.o((e=>a.onMoreItem(t.type)),o),d:o}))),t:i.MoreStatus||0!=i.KeyboardHeight?i.MoreStatus||0!=i.KeyboardHeight?"0":i.KeyboardHeight+"rpx":"-650rpx",v:"Invitation"==i.MoreItemStatus},(i.MoreItemStatus,{}),{w:e.o((()=>{})),x:null==i.MoreItemStatus?"-1000rpx":"0",y:e.o((e=>a.onMoreItem(null))),z:null==i.MoreItemStatus?"100vh":"0"})}],["__scopeId","data-v-cb106494"]]);wx.createPage(n);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "聊天页",
"usingComponents": {
"textmessage": "./messageComponent/textmessage",
"invitation-components": "./moreMessageComponents/InvitationComponents"
}
}

View File

@@ -0,0 +1 @@
<view class="chat data-v-cb106494"><view class="bg data-v-cb106494" bindtap="{{a}}"><image class="bgImg data-v-cb106494" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-cb106494" bindtap="{{b}}"><image class="ReturnImg data-v-cb106494" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-cb106494" bindtap="{{d}}">{{c}}</view><view class="content data-v-cb106494" bindtap="{{i}}"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-cb106494" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{f}}" lower-threshold="100" bindscrolltolower="{{g}}" refresher-triggered="{{h}}"><view wx:for="{{e}}" wx:for-item="item" class="chat-card data-v-cb106494"><view class="chat-avatar data-v-cb106494"><textmessage wx:if="{{item.b}}" class="data-v-cb106494" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></textmessage></view></view></scroll-view></view><view class="inputComponent data-v-cb106494" style="{{'bottom:' + r}}"><view class="inputcomponent data-v-cb106494"><block wx:if="{{r0}}"><textarea bindinput="{{j}}" auto-height class="input data-v-cb106494" maxlength="{{500}}" cursor-spacing="20" bindfocus="{{k}}" bindblur="{{l}}" adjust-position="{{false}}" value="{{m}}"></textarea></block></view><view class="sendComponent data-v-cb106494"><image wx:if="{{n}}" class="MoreImg data-v-cb106494" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_add.png" mode="scaleToFill" bindtap="{{o}}"/><button wx:if="{{p}}" class="send data-v-cb106494" bindtap="{{q}}">发送</button></view></view><view class="MoreComponent data-v-cb106494" style="{{'bottom:' + t}}"><view class="Morecontent data-v-cb106494"><view wx:for="{{s}}" wx:for-item="item" wx:key="d" class="MoreList data-v-cb106494"><view class="MoreItem data-v-cb106494" bindtap="{{item.c}}"><image class="Moreicon data-v-cb106494" src="{{item.a}}" mode="scaleToFill"/><text class="MoreName data-v-cb106494">{{item.b}}</text></view></view></view></view><view class="popUpInvitation data-v-cb106494" bindtap="{{y}}" style="{{'top:' + z}}"><view class="popUpInvitationContent data-v-cb106494" catchtap="{{w}}" style="{{'bottom:' + x}}"><invitation-components wx:if="{{v}}" class="data-v-cb106494" u-i="cb106494-1" bind:__l="__l"></invitation-components></view></view></view>

View File

@@ -0,0 +1 @@
.bg.data-v-cb106494{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.bgImg.data-v-cb106494{width:100%;height:100%}.Return.data-v-cb106494{position:fixed;left:35rpx;top:120rpx;width:46rpx;height:46rpx;z-index:1}.title.data-v-cb106494{position:fixed;top:120rpx;left:325rpx;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-cb106494{width:100%;height:100%}.content.data-v-cb106494{position:absolute;top:200rpx;left:0rpx;right:0rpx;bottom:0rpx}.scroll.data-v-cb106494{width:96%;height:90%;padding:0% 2%}.inputComponent.data-v-cb106494{position:absolute;left:0;right:0;height:auto;background-color:#f0f0f0;padding:2% 2% 5%;display:flex;align-items:flex-end;transition:bottom .1s ease}.chat-card.data-v-cb106494{width:100%;height:auto;margin-bottom:20rpx;background-color:#fff;padding:10rpx}.chat-avatar.data-v-cb106494{width:100%;height:auto}.inputcomponent.data-v-cb106494{width:570rpx;height:auto}.input.data-v-cb106494{width:95%;background-color:#fff;min-height:60rpx;max-height:200rpx;border-radius:10rpx;padding:10rpx;overflow-wrap:break-word;margin-left:30rpx}.sendComponent.data-v-cb106494{margin-left:40rpx}.send.data-v-cb106494{width:100rpx;height:75rpx;background-color:#539c00;border-radius:10rpx;color:#fff;font-size:20rpx;text-align:center;line-height:75rpx}.MoreImg.data-v-cb106494{margin-left:20rpx;height:80rpx;width:80rpx;margin-bottom:-10rpx;border-radius:50rpx}.MoreComponent.data-v-cb106494{position:fixed;left:0;right:0;height:650rpx;transition:bottom .1s ease;background-color:#fff}.Morecontent.data-v-cb106494{width:100%;height:100%;display:flex;align-content:baseline;flex-wrap:wrap}.MoreList.data-v-cb106494{width:150rpx;height:150rpx;background-color:#f1f1f1;border-radius:20rpx;margin:18.75rpx}.MoreItem.data-v-cb106494{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.Moreicon.data-v-cb106494{width:80rpx;height:80rpx}.popUpInvitation.data-v-cb106494{position:fixed;left:0;right:0;bottom:0;transition:top .1s ease}.popUpInvitationContent.data-v-cb106494{position:absolute;left:0;right:0;height:1000rpx;transition:bottom .1s ease;background-color:#fff;border-top-left-radius:40rpx;border-top-right-radius:40rpx}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t={data:()=>({}),onLoad(){},props:{messagetext:{type:String,default:""}},methods:{}};const o=e._export_sfc(t,[["render",function(t,o,s,n,r,a){return{a:e.t(s.messagetext)}}],["__scopeId","data-v-437ff93d"]]);wx.createComponent(o);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="messagetext data-v-437ff93d">{{a}}</view>

View File

@@ -0,0 +1 @@
.messagetext.data-v-437ff93d{font-size:16px;color:#333}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),o={data:()=>({}),onLoad(){},methods:{}};const t=e._export_sfc(o,[["render",function(e,o,t,n,r,c){return{}}],["__scopeId","data-v-6c2d9d27"]]);wx.createComponent(t);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="chat-more-message-invitation data-v-6c2d9d27"></view>

View File

@@ -0,0 +1 @@
.chat-more-message-invitation.data-v-6c2d9d27{width:100%;height:100%;border-radius:40rpx}