优化页面
This commit is contained in:
15
pages.json
15
pages.json
@@ -164,12 +164,23 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "static",
|
||||
"pages": [
|
||||
{
|
||||
"path": "index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "静态资源"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"preloadRule": {
|
||||
"pages/index/index": {
|
||||
"pages/Home/Home": {
|
||||
"network": "all",
|
||||
"packages": ["TUIKit"]
|
||||
"packages": ["static","TUIKit"]
|
||||
}
|
||||
},
|
||||
"globalStyle": {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
//此页面用于聊天的链接入口,请不要在这里添加内容,不要删除此页面,否则会导致编译失败
|
||||
//这里虽然看不出任何于聊天有关的内容,但为了防止编译失败,请保留此页面
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
22
static/index.vue
Normal file
22
static/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式定义 */
|
||||
</style>
|
||||
@@ -1,17 +0,0 @@
|
||||
## 1.0.2(2024-09-21)
|
||||
- 新增 clearAble属性
|
||||
## 1.0.1(2021-11-23)
|
||||
- 优化 label、label-width 属性
|
||||
## 1.0.0(2021-11-19)
|
||||
- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
|
||||
- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-combox](https://uniapp.dcloud.io/component/uniui/uni-combox)
|
||||
## 0.1.0(2021-07-30)
|
||||
- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
|
||||
## 0.0.6(2021-05-12)
|
||||
- 新增 组件示例地址
|
||||
## 0.0.5(2021-04-21)
|
||||
- 优化 添加依赖 uni-icons, 导入后自动下载依赖
|
||||
## 0.0.4(2021-02-05)
|
||||
- 优化 组件引用关系,通过uni_modules引用组件
|
||||
## 0.0.3(2021-02-04)
|
||||
- 调整为uni_modules目录规范
|
||||
@@ -1,294 +0,0 @@
|
||||
<template>
|
||||
<view class="uni-combox" :class="border ? '' : 'uni-combox__no-border'">
|
||||
<view v-if="label" class="uni-combox__label" :style="labelStyle">
|
||||
<text>{{label}}</text>
|
||||
</view>
|
||||
<view class="uni-combox__input-box">
|
||||
<input class="uni-combox__input" type="text" :placeholder="placeholder" placeholder-class="uni-combox__input-plac"
|
||||
v-model="inputVal" @input="onInput" @focus="onFocus" @blur="onBlur" />
|
||||
<uni-icons v-if="!inputVal || !clearAble" :type="showSelector? 'top' : 'bottom'" size="30" color="#999" @click="toggleSelector">
|
||||
</uni-icons>
|
||||
<uni-icons v-if="inputVal && clearAble" type="clear" size="24" color="#999" width="60rpx" height="60rpx" @click="clean">
|
||||
</uni-icons>
|
||||
</view>
|
||||
<view class="uni-combox__selector" v-if="showSelector">
|
||||
<view class="uni-popper__arrow"></view>
|
||||
<scroll-view scroll-y="true" class="uni-combox__selector-scroll">
|
||||
<view class="uni-combox__selector-empty" v-if="filterCandidatesLength === 0">
|
||||
<text>{{emptyTips}}</text>
|
||||
</view>
|
||||
<view class="uni-combox__selector-item" v-for="(item,index) in filterCandidates" :key="index"
|
||||
@click="onSelectorClick(index)">
|
||||
<text>{{item}}</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/**
|
||||
* Combox 组合输入框
|
||||
* @description 组合输入框一般用于既可以输入也可以选择的场景
|
||||
* @tutorial https://ext.dcloud.net.cn/plugin?id=1261
|
||||
* @property {String} label 左侧文字
|
||||
* @property {String} labelWidth 左侧内容宽度
|
||||
* @property {String} placeholder 输入框占位符
|
||||
* @property {Array} candidates 候选项列表
|
||||
* @property {String} emptyTips 筛选结果为空时显示的文字
|
||||
* @property {String} value 组合框的值
|
||||
*/
|
||||
export default {
|
||||
name: 'uniCombox',
|
||||
emits: ['input', 'update:modelValue'],
|
||||
props: {
|
||||
clearAble: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
labelWidth: {
|
||||
type: String,
|
||||
default: 'auto'
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
candidates: {
|
||||
type: Array,
|
||||
default () {
|
||||
return []
|
||||
}
|
||||
},
|
||||
emptyTips: {
|
||||
type: String,
|
||||
default: '无匹配项'
|
||||
},
|
||||
// #ifndef VUE3
|
||||
value: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
// #endif
|
||||
// #ifdef VUE3
|
||||
modelValue: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showSelector: false,
|
||||
inputVal: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
labelStyle() {
|
||||
if (this.labelWidth === 'auto') {
|
||||
return ""
|
||||
}
|
||||
return `width: ${this.labelWidth}`
|
||||
},
|
||||
filterCandidates() {
|
||||
return this.candidates.filter((item) => {
|
||||
return item.toString().indexOf(this.inputVal) > -1
|
||||
})
|
||||
},
|
||||
filterCandidatesLength() {
|
||||
return this.filterCandidates.length
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// #ifndef VUE3
|
||||
value: {
|
||||
handler(newVal) {
|
||||
this.inputVal = newVal
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
// #endif
|
||||
// #ifdef VUE3
|
||||
modelValue: {
|
||||
handler(newVal) {
|
||||
this.inputVal = newVal
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
toggleSelector() {
|
||||
this.showSelector = !this.showSelector
|
||||
},
|
||||
onFocus() {
|
||||
this.showSelector = true
|
||||
},
|
||||
onBlur() {
|
||||
setTimeout(() => {
|
||||
this.showSelector = false
|
||||
}, 153)
|
||||
},
|
||||
onSelectorClick(index) {
|
||||
this.inputVal = this.filterCandidates[index]
|
||||
this.showSelector = false
|
||||
this.$emit('input', this.inputVal)
|
||||
this.$emit('update:modelValue', this.inputVal)
|
||||
},
|
||||
onInput() {
|
||||
setTimeout(() => {
|
||||
this.$emit('input', this.inputVal)
|
||||
this.$emit('update:modelValue', this.inputVal)
|
||||
})
|
||||
},
|
||||
clean() {
|
||||
this.inputVal = ''
|
||||
this.onInput()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.uni-combox {
|
||||
font-size: 14px;
|
||||
border: 1px solid #DCDFE6;
|
||||
border-radius: 4px;
|
||||
padding: 6px 10px;
|
||||
position: relative;
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
// height: 40px;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
// border-bottom: solid 1px #DDDDDD;
|
||||
}
|
||||
.uni-combox__icon{
|
||||
border: 1px solid #004cff;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
}
|
||||
.uni-combox__label {
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
padding-right: 10px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.uni-combox__input-box {
|
||||
position: relative;
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
// width: 100rpx;
|
||||
// height: 60rpx;
|
||||
// border: 1px solid #004cff;
|
||||
|
||||
}
|
||||
|
||||
.uni-combox__input {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.uni-combox__input-plac {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.uni-combox__selector {
|
||||
/* #ifndef APP-NVUE */
|
||||
box-sizing: border-box;
|
||||
/* #endif */
|
||||
position: absolute;
|
||||
top: calc(100% + 12px);
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: #FFFFFF;
|
||||
border: 1px solid #EBEEF5;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
z-index: 2;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.uni-combox__selector-scroll {
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
/* #ifndef APP-NVUE */
|
||||
max-height: 200px;
|
||||
box-sizing: border-box;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
.uni-combox__selector-empty,
|
||||
.uni-combox__selector-item {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
/* #endif */
|
||||
line-height: 36px;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
// border-bottom: solid 1px #DDDDDD;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
.uni-combox__selector-item:hover {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.uni-combox__selector-empty:last-child,
|
||||
.uni-combox__selector-item:last-child {
|
||||
/* #ifndef APP-NVUE */
|
||||
border-bottom: none;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
// picker 弹出层通用的指示小三角
|
||||
.uni-popper__arrow,
|
||||
.uni-popper__arrow::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 6px;
|
||||
}
|
||||
|
||||
.uni-popper__arrow {
|
||||
filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
|
||||
top: -6px;
|
||||
left: 10%;
|
||||
margin-right: 3px;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: #EBEEF5;
|
||||
}
|
||||
|
||||
.uni-popper__arrow::after {
|
||||
content: " ";
|
||||
top: 1px;
|
||||
margin-left: -6px;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
|
||||
.uni-combox__no-border {
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
@@ -1,88 +0,0 @@
|
||||
{
|
||||
"id": "uni-combox",
|
||||
"displayName": "uni-combox 组合框",
|
||||
"version": "1.0.2",
|
||||
"description": "可以选择也可以输入的表单项 ",
|
||||
"keywords": [
|
||||
"uni-ui",
|
||||
"uniui",
|
||||
"combox",
|
||||
"组合框",
|
||||
"select"
|
||||
],
|
||||
"repository": "https://github.com/dcloudio/uni-ui",
|
||||
"engines": {
|
||||
"HBuilderX": ""
|
||||
},
|
||||
"directories": {
|
||||
"example": "../../temps/example_temps"
|
||||
},
|
||||
"dcloudext": {
|
||||
"sale": {
|
||||
"regular": {
|
||||
"price": "0.00"
|
||||
},
|
||||
"sourcecode": {
|
||||
"price": "0.00"
|
||||
}
|
||||
},
|
||||
"contact": {
|
||||
"qq": ""
|
||||
},
|
||||
"declaration": {
|
||||
"ads": "无",
|
||||
"data": "无",
|
||||
"permissions": "无"
|
||||
},
|
||||
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
|
||||
"type": "component-vue"
|
||||
},
|
||||
"uni_modules": {
|
||||
"dependencies": [
|
||||
"uni-scss",
|
||||
"uni-icons"
|
||||
],
|
||||
"encrypt": [],
|
||||
"platforms": {
|
||||
"cloud": {
|
||||
"tcb": "y",
|
||||
"aliyun": "y",
|
||||
"alipay": "n"
|
||||
},
|
||||
"client": {
|
||||
"App": {
|
||||
"app-vue": "y",
|
||||
"app-nvue": "n"
|
||||
},
|
||||
"H5-mobile": {
|
||||
"Safari": "y",
|
||||
"Android Browser": "y",
|
||||
"微信浏览器(Android)": "y",
|
||||
"QQ浏览器(Android)": "y"
|
||||
},
|
||||
"H5-pc": {
|
||||
"Chrome": "y",
|
||||
"IE": "y",
|
||||
"Edge": "y",
|
||||
"Firefox": "y",
|
||||
"Safari": "y"
|
||||
},
|
||||
"小程序": {
|
||||
"微信": "y",
|
||||
"阿里": "y",
|
||||
"百度": "y",
|
||||
"字节跳动": "y",
|
||||
"QQ": "y"
|
||||
},
|
||||
"快应用": {
|
||||
"华为": "u",
|
||||
"联盟": "u"
|
||||
},
|
||||
"Vue": {
|
||||
"vue2": "y",
|
||||
"vue3": "y"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
|
||||
|
||||
## Combox 组合框
|
||||
> **组件名:uni-combox**
|
||||
> 代码块: `uCombox`
|
||||
|
||||
|
||||
组合框组件。
|
||||
|
||||
### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-combox)
|
||||
#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
|
||||
@@ -1 +1 @@
|
||||
<view class="Navigation data-v-f49ffe98"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-f49ffe98"/><image bindtap="{{b}}" src="{{c}}" mode="scaleToFill" class="Return data-v-f49ffe98"/></view><view class="dingweizhibox data-v-f49ffe98"></view><view class="chat data-v-f49ffe98"><view class="{{['data-v-f49ffe98', 'tui-chat', R]}}"><view wx:if="{{d}}" class="{{['data-v-f49ffe98', 'tui-chat-default', e]}}"><slot/></view><view wx:if="{{f}}" class="{{['data-v-f49ffe98', 'tui-chat', N]}}"><chat-header wx:if="{{k}}" class="{{['data-v-f49ffe98', 'tui-chat-header', g, h]}}" bindcloseChat="{{i}}" bindopenGroupManagement="{{j}}" u-i="f49ffe98-0" bind:__l="__l" u-p="{{k}}"/><forward class="data-v-f49ffe98" bindtoggleMultipleSelectMode="{{l}}" u-i="f49ffe98-1" bind:__l="__l"/><message-list wx:if="{{r}}" u-r="messageListRef" class="{{['r', 'data-v-f49ffe98', 'tui-chat-message-list', n]}}" bindhandleEditor="{{o}}" bindcloseInputToolBar="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="f49ffe98-2" bind:__l="__l" u-p="{{r}}"/><view wx:if="{{s}}" class="{{['data-v-f49ffe98', 'tui-chat-leave-group', v && 'tui-chat-leave-group-mobile']}}">{{t}}</view><multiple-select-panel wx:elif="{{w}}" class="data-v-f49ffe98" bindoneByOneForwardMessage="{{x}}" bindmergeForwardMessage="{{y}}" bindtoggleMultipleSelectMode="{{z}}" u-i="f49ffe98-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{A}}" class="{{['data-v-f49ffe98', 'tui-chat-message-input-toolbar', B, C]}}" bindinsertEmoji="{{D}}" bindchangeToolbarDisplayType="{{E}}" bindscrollToLatestMessage="{{F}}" u-i="f49ffe98-4" bind:__l="__l" u-p="{{G}}"/><message-input wx:if="{{M}}" u-r="messageInputRef" class="{{['r', 'data-v-f49ffe98', 'tui-chat-message-input', I, J, K]}}" bindchangeToolbarDisplayType="{{L}}" u-i="f49ffe98-5" bind:__l="__l" u-p="{{M}}"/></block></view><view wx:if="{{O}}" class="group-profile data-v-f49ffe98" bindtap="{{Q}}">{{P}}</view></view></view>
|
||||
<view class="Navigation data-v-6b98d510"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-6b98d510"/><image bindtap="{{b}}" src="{{c}}" mode="scaleToFill" class="Return data-v-6b98d510"/></view><view class="dingweizhibox data-v-6b98d510"></view><view class="chat data-v-6b98d510"><view class="{{['data-v-6b98d510', 'tui-chat', R]}}"><view wx:if="{{d}}" class="{{['data-v-6b98d510', 'tui-chat-default', e]}}"><slot/></view><view wx:if="{{f}}" class="{{['data-v-6b98d510', 'tui-chat', N]}}"><chat-header wx:if="{{k}}" class="{{['data-v-6b98d510', 'tui-chat-header', g, h]}}" bindcloseChat="{{i}}" bindopenGroupManagement="{{j}}" u-i="6b98d510-0" bind:__l="__l" u-p="{{k}}"/><forward class="data-v-6b98d510" bindtoggleMultipleSelectMode="{{l}}" u-i="6b98d510-1" bind:__l="__l"/><message-list wx:if="{{r}}" u-r="messageListRef" class="{{['r', 'data-v-6b98d510', 'tui-chat-message-list', n]}}" bindhandleEditor="{{o}}" bindcloseInputToolBar="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="6b98d510-2" bind:__l="__l" u-p="{{r}}"/><view wx:if="{{s}}" class="{{['data-v-6b98d510', 'tui-chat-leave-group', v && 'tui-chat-leave-group-mobile']}}">{{t}}</view><multiple-select-panel wx:elif="{{w}}" class="data-v-6b98d510" bindoneByOneForwardMessage="{{x}}" bindmergeForwardMessage="{{y}}" bindtoggleMultipleSelectMode="{{z}}" u-i="6b98d510-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{A}}" class="{{['data-v-6b98d510', 'tui-chat-message-input-toolbar', B, C]}}" bindinsertEmoji="{{D}}" bindchangeToolbarDisplayType="{{E}}" bindscrollToLatestMessage="{{F}}" u-i="6b98d510-4" bind:__l="__l" u-p="{{G}}"/><message-input wx:if="{{M}}" u-r="messageInputRef" class="{{['r', 'data-v-6b98d510', 'tui-chat-message-input', I, J, K]}}" bindchangeToolbarDisplayType="{{L}}" u-i="6b98d510-5" bind:__l="__l" u-p="{{M}}"/></block></view><view wx:if="{{O}}" class="group-profile data-v-6b98d510" bindtap="{{Q}}">{{P}}</view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../../common/assets.js"),o=require("../../../../constant.js"),r=require("../../../../utils/env.js"),i=require("../../utils/utils.js"),u=require("../../emoji-config/index.js"),l=require("../../config.js");Math||t();const t=()=>"../../../common/Icon.js",a=e.defineComponent({__name:"emoji-picker-dialog",emits:["insertEmoji","onClose","sendMessage"],setup(t,{emit:a}){var s;const v="dark"===l.ChatConfig.getTheme()?n.faceIconDark:n.faceIconLight,f=a,c=e.ref(0),d=e.ref();e.ref();const I=e.ref(),p=l.ChatConfig.getFeatureConfig(),E=e.ref(u.EMOJI_GROUP_LIST.filter((e=>e.type===o.EMOJI_TYPE.BASIC?p.InputEmoji:e.type===o.EMOJI_TYPE.BIG||e.type===o.EMOJI_TYPE.CUSTOM?p.InputStickers:void 0))),m=e.ref(null==E?void 0:E.value[0]),_=e.ref(null==(s=null==E?void 0:E.value[0])?void 0:s.list);e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:P})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:P})}));const C=(n,o)=>{var r,u,l,t,a;const s={to:(null==(u=null==(r=null==d?void 0:d.value)?void 0:r.groupProfile)?void 0:u.groupID)||(null==(t=null==(l=null==d?void 0:d.value)?void 0:l.userProfile)?void 0:t.userID),conversationType:null==(a=null==d?void 0:d.value)?void 0:a.type,payload:{index:o.emojiGroupID,data:o.list[n]},needReadReceipt:i.isEnabledMessageReadReceiptGlobal()};e.Qt.sendFaceMessage(s)};function M(){e.index.$emit("send-message-in-emoji-picker")}function P(e){d.value=e}return(n,i)=>e.e({a:e.f(e.unref(_),((n,i,l)=>e.e(e.unref(m).type===e.unref(o.EMOJI_TYPE).BASIC?{a:e.unref(m).url+e.unref(u.BASIC_EMOJI_URL_MAPPING)[n]}:e.unref(m).type===e.unref(o.EMOJI_TYPE).BIG?{b:e.unref(m).url+n+"@2x.png"}:{c:e.unref(m).url+n},{d:i,e:e.o$1((l=>((n,i)=>{var l,t,a;const s={emoji:{key:n,name:u.convertKeyToEmojiName(n)},type:null==(l=null==m?void 0:m.value)?void 0:l.type};switch(null==(t=null==m?void 0:m.value)?void 0:t.type){case o.EMOJI_TYPE.BASIC:s.url=(null==(a=null==m?void 0:m.value)?void 0:a.url)+u.BASIC_EMOJI_URL_MAPPING[n],r.isUniFrameWork?e.index.$emit("insert-emoji",s):f("insertEmoji",s);break;case o.EMOJI_TYPE.BIG:case o.EMOJI_TYPE.CUSTOM:C(i,m.value)}r.isPC&&f("onClose")})(n,i)),i)}))),b:e.unref(m).type===e.unref(o.EMOJI_TYPE).BASIC,c:e.unref(m).type===e.unref(o.EMOJI_TYPE).BIG,d:e.n(!e.unref(r.isPC)&&"emoji-picker-h5-list"),e:e.f(e.unref(E),((n,i,u)=>e.e({a:n.type===e.unref(o.EMOJI_TYPE).BASIC},n.type===e.unref(o.EMOJI_TYPE).BASIC?{b:"a93c5399-0-"+u,c:e.p({file:e.unref(v)})}:n.type===e.unref(o.EMOJI_TYPE).BIG?{e:n.url+n.list[0]+"@2x.png"}:{f:n.url+n.list[0]},{d:n.type===e.unref(o.EMOJI_TYPE).BIG,g:i,h:e.o$1((e=>(e=>{var n;c.value=e,m.value=null==E?void 0:E.value[e],_.value=null==(n=null==E?void 0:E.value[e])?void 0:n.list,r.isUniFrameWork||(null==I?void 0:I.value)&&(I.value.scrollTop=0)})(i)),i)}))),f:e.unref(r.isUniFrameWork)},e.unref(r.isUniFrameWork)?{g:e.o$1(M)}:{},{h:e.unref(r.isPC)?"":1})}}),s=e._export_sfc(a,[["__scopeId","data-v-a93c5399"]]);wx.createComponent(s);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../../common/assets.js"),o=require("../../../../constant.js"),r=require("../../../../utils/env.js"),i=require("../../utils/utils.js"),u=require("../../emoji-config/index.js"),l=require("../../config.js");Math||t();const t=()=>"../../../common/Icon.js",s=e.defineComponent({__name:"emoji-picker-dialog",emits:["insertEmoji","onClose","sendMessage"],setup(t,{emit:s}){var a;const v="dark"===l.ChatConfig.getTheme()?n.faceIconDark:n.faceIconLight,f=s,d=e.ref(0),c=e.ref();e.ref();const I=e.ref(),p=l.ChatConfig.getFeatureConfig(),E=e.ref(u.EMOJI_GROUP_LIST.filter((e=>e.type===o.EMOJI_TYPE.BASIC?p.InputEmoji:e.type===o.EMOJI_TYPE.BIG||e.type===o.EMOJI_TYPE.CUSTOM?p.InputStickers:void 0))),m=e.ref(null==E?void 0:E.value[0]),_=e.ref(null==(a=null==E?void 0:E.value[0])?void 0:a.list);e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:P})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:P})}));const C=(n,o)=>{var r,u,l,t,s;const a={to:(null==(u=null==(r=null==c?void 0:c.value)?void 0:r.groupProfile)?void 0:u.groupID)||(null==(t=null==(l=null==c?void 0:c.value)?void 0:l.userProfile)?void 0:t.userID),conversationType:null==(s=null==c?void 0:c.value)?void 0:s.type,payload:{index:o.emojiGroupID,data:o.list[n]},needReadReceipt:i.isEnabledMessageReadReceiptGlobal()};e.Qt.sendFaceMessage(a)};function M(){e.index.$emit("send-message-in-emoji-picker")}function P(e){c.value=e}return(n,i)=>e.e({a:e.f(e.unref(_),((n,i,l)=>e.e(e.unref(m).type===e.unref(o.EMOJI_TYPE).BASIC?{a:e.unref(m).url+e.unref(u.BASIC_EMOJI_URL_MAPPING)[n]}:e.unref(m).type===e.unref(o.EMOJI_TYPE).BIG?{b:e.unref(m).url+n+"@2x.png"}:{c:e.unref(m).url+n},{d:i,e:e.o$1((l=>((n,i)=>{var l,t,s;const a={emoji:{key:n,name:u.convertKeyToEmojiName(n)},type:null==(l=null==m?void 0:m.value)?void 0:l.type};switch(null==(t=null==m?void 0:m.value)?void 0:t.type){case o.EMOJI_TYPE.BASIC:a.url=(null==(s=null==m?void 0:m.value)?void 0:s.url)+u.BASIC_EMOJI_URL_MAPPING[n],r.isUniFrameWork?e.index.$emit("insert-emoji",a):f("insertEmoji",a);break;case o.EMOJI_TYPE.BIG:case o.EMOJI_TYPE.CUSTOM:C(i,m.value)}r.isPC&&f("onClose")})(n,i)),i)}))),b:e.unref(m).type===e.unref(o.EMOJI_TYPE).BASIC,c:e.unref(m).type===e.unref(o.EMOJI_TYPE).BIG,d:e.n(!e.unref(r.isPC)&&"emoji-picker-h5-list"),e:e.f(e.unref(E),((n,i,u)=>e.e({a:n.type===e.unref(o.EMOJI_TYPE).BASIC},n.type===e.unref(o.EMOJI_TYPE).BASIC?{b:"023770ee-0-"+u,c:e.p({file:e.unref(v)})}:n.type===e.unref(o.EMOJI_TYPE).BIG?{e:n.url+n.list[0]+"@2x.png"}:{f:n.url+n.list[0]},{d:n.type===e.unref(o.EMOJI_TYPE).BIG,g:i,h:e.o$1((e=>(e=>{var n;d.value=e,m.value=null==E?void 0:E.value[e],_.value=null==(n=null==E?void 0:E.value[e])?void 0:n.list,r.isUniFrameWork||(null==I?void 0:I.value)&&(I.value.scrollTop=0)})(i)),i)}))),f:e.unref(r.isUniFrameWork)},e.unref(r.isUniFrameWork)?{g:e.o$1(M)}:{},{h:e.unref(r.isPC)?"":1})}}),a=e._export_sfc(s,[["__scopeId","data-v-023770ee"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view ref="emojiPickerDialog" class="{{['data-v-a93c5399', 'emoji-picker', h && 'emoji-picker-h5']}}"><view ref="emojiPickerListRef" class="{{['data-v-a93c5399', 'emoji-picker-list', d]}}"><view wx:for="{{a}}" wx:for-item="childrenItem" wx:key="d" class="emoji-picker-list-item data-v-a93c5399" bindtap="{{childrenItem.e}}"><image wx:if="{{b}}" class="emoji data-v-a93c5399" src="{{childrenItem.a}}"></image><image wx:elif="{{c}}" class="emoji-big data-v-a93c5399" src="{{childrenItem.b}}"></image><image wx:else class="emoji-custom emoji-big data-v-a93c5399" src="{{childrenItem.c}}"></image></view></view><view class="emoji-picker-tab data-v-a93c5399"><view wx:for="{{e}}" wx:for-item="item" wx:key="g" class="emoji-picker-tab-item data-v-a93c5399" bindtap="{{item.h}}"><icon wx:if="{{item.a}}" class="icon data-v-a93c5399" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"/><image wx:elif="{{item.d}}" class="icon-big data-v-a93c5399" src="{{item.e}}"></image><image wx:else class="icon-custom icon-big data-v-a93c5399" src="{{item.f}}"></image></view><view wx:if="{{f}}" class="send-btn data-v-a93c5399" bindtap="{{g}}"> 发送 </view></view></view>
|
||||
<view ref="emojiPickerDialog" class="{{['data-v-023770ee', 'emoji-picker', h && 'emoji-picker-h5']}}"><view ref="emojiPickerListRef" class="{{['data-v-023770ee', 'emoji-picker-list', d]}}"><view wx:for="{{a}}" wx:for-item="childrenItem" wx:key="d" class="emoji-picker-list-item data-v-023770ee" bindtap="{{childrenItem.e}}"><image wx:if="{{b}}" class="emoji data-v-023770ee" src="{{childrenItem.a}}"></image><image wx:elif="{{c}}" class="emoji-big data-v-023770ee" src="{{childrenItem.b}}"></image><image wx:else class="emoji-custom emoji-big data-v-023770ee" src="{{childrenItem.c}}"></image></view></view><view class="emoji-picker-tab data-v-023770ee"><view wx:for="{{e}}" wx:for-item="item" wx:key="g" class="emoji-picker-tab-item data-v-023770ee" bindtap="{{item.h}}"><icon wx:if="{{item.a}}" class="icon data-v-023770ee" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"/><image wx:elif="{{item.d}}" class="icon-big data-v-023770ee" src="{{item.e}}"></image><image wx:else class="icon-custom icon-big data-v-023770ee" src="{{item.f}}"></image></view><view wx:if="{{f}}" class="send-btn data-v-023770ee" bindtap="{{g}}"> 发送 </view></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-a93c5399,div.data-v-a93c5399,ul.data-v-a93c5399,ol.data-v-a93c5399,dt.data-v-a93c5399,dd.data-v-a93c5399,li.data-v-a93c5399,dl.data-v-a93c5399,h1.data-v-a93c5399,h2.data-v-a93c5399,h3.data-v-a93c5399,h4.data-v-a93c5399,p.data-v-a93c5399{margin:0;padding:0;font-style:normal}ol.data-v-a93c5399,ul.data-v-a93c5399,li.data-v-a93c5399{list-style:none}img.data-v-a93c5399{border:0;vertical-align:middle;pointer-events:none}body.data-v-a93c5399{color:#000;background:#fff}.clear.data-v-a93c5399{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-a93c5399{color:#000;text-decoration:none;cursor:pointer}a.data-v-a93c5399:hover{text-decoration:none}input.data-v-a93c5399,textarea.data-v-a93c5399{-webkit-user-select:auto;user-select:auto}input.data-v-a93c5399:focus,input.data-v-a93c5399:active,textarea.data-v-a93c5399:focus,textarea.data-v-a93c5399:active{outline:none}.chat-aside.data-v-a93c5399{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.emoji-picker.data-v-a93c5399{width:405px;height:300px;display:flex;flex-direction:column}.emoji-picker-list.data-v-a93c5399{flex:1;display:flex;flex-wrap:wrap;overflow-y:auto;margin:2px}.emoji-picker-list.data-v-a93c5399::-webkit-scrollbar{display:none}.emoji-picker-list-item.data-v-a93c5399{cursor:pointer;padding:5px}.emoji-picker-list-item .emoji.data-v-a93c5399{width:30px;height:30px}.emoji-picker-list-item .emoji-big.data-v-a93c5399{width:70px;height:70px}.emoji-picker-tab.data-v-a93c5399{display:flex;align-items:center}.emoji-picker-tab-item.data-v-a93c5399{padding:0 10px;cursor:pointer}.emoji-picker-tab-item .icon.data-v-a93c5399{margin:10px;width:20px;height:20px}.emoji-picker-tab-item .icon-big.data-v-a93c5399{margin:2px 0;width:30px;height:30px}.emoji-picker-h5.data-v-a93c5399{width:100%}.emoji-picker-h5-list.data-v-a93c5399{justify-content:space-between}.emoji-picker-h5-list.data-v-a93c5399:after{content:"";display:block;flex:1 1 auto}.emoji-picker-h5 .send-btn.data-v-a93c5399{width:50px;height:30px;background-color:#55c06a;position:absolute;right:10px;font-size:16px;color:#fff;text-align:center;line-height:30px}
|
||||
body.data-v-023770ee,div.data-v-023770ee,ul.data-v-023770ee,ol.data-v-023770ee,dt.data-v-023770ee,dd.data-v-023770ee,li.data-v-023770ee,dl.data-v-023770ee,h1.data-v-023770ee,h2.data-v-023770ee,h3.data-v-023770ee,h4.data-v-023770ee,p.data-v-023770ee{margin:0;padding:0;font-style:normal}ol.data-v-023770ee,ul.data-v-023770ee,li.data-v-023770ee{list-style:none}img.data-v-023770ee{border:0;vertical-align:middle;pointer-events:none}body.data-v-023770ee{color:#000;background:#fff}.clear.data-v-023770ee{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-023770ee{color:#000;text-decoration:none;cursor:pointer}a.data-v-023770ee:hover{text-decoration:none}input.data-v-023770ee,textarea.data-v-023770ee{-webkit-user-select:auto;user-select:auto}input.data-v-023770ee:focus,input.data-v-023770ee:active,textarea.data-v-023770ee:focus,textarea.data-v-023770ee:active{outline:none}.chat-aside.data-v-023770ee{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.emoji-picker.data-v-023770ee{width:405px;height:300px;display:flex;flex-direction:column}.emoji-picker-list.data-v-023770ee{flex:1;display:flex;flex-wrap:wrap;overflow-y:auto;margin:2px}.emoji-picker-list.data-v-023770ee::-webkit-scrollbar{display:none}.emoji-picker-list-item.data-v-023770ee{cursor:pointer;padding:5px}.emoji-picker-list-item .emoji.data-v-023770ee{width:30px;height:30px}.emoji-picker-list-item .emoji-big.data-v-023770ee{width:70px;height:70px}.emoji-picker-tab.data-v-023770ee{display:flex;align-items:center}.emoji-picker-tab-item.data-v-023770ee{padding:0 10px;cursor:pointer}.emoji-picker-tab-item .icon.data-v-023770ee{margin:10px;width:20px;height:20px}.emoji-picker-tab-item .icon-big.data-v-023770ee{margin:2px 0;width:30px;height:30px}.emoji-picker-h5.data-v-023770ee{width:100%}.emoji-picker-h5-list.data-v-023770ee{justify-content:space-between}.emoji-picker-h5-list.data-v-023770ee:after{content:"";display:block;flex:1 1 auto}.emoji-picker-h5 .send-btn.data-v-023770ee{width:50px;height:30px;background-color:#55c06a;position:absolute;right:10px;font-size:16px;color:#fff;text-align:center;line-height:30px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const i=require("../../../../utils/env.js"),n=require("../../../../../common/assets.js"),o=require("../../utils/utils.js"),a=require("../../offlinePushInfoManager/index.js"),r=require("../../config.js");Math||u();const u=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{imageSourceType:{type:String,default:"album"}},setup(u){const l=u,t=e.ref(),s=e.ref(),c={web_album:{icon:"dark"===r.ChatConfig.getTheme()?n.imageIconDark:n.imageIconLight,title:"图片"},uni_album:{icon:n.imageUniIcon,title:"图片"},uni_camera:{icon:n.cameraUniIcon,title:"拍照"}};e.Jt.watch(e.o.CONV,{currentConversation:e=>{s.value=e}});const d=e.computed((()=>i.isUniFrameWork?"camera"===l.imageSourceType?c.uni_camera:c.uni_album:c.web_album)),m=()=>{var n,o,a,r;i.isUniFrameWork?i.isWeChat&&(null==(n=e.i)?void 0:n.chooseMedia)?null==(o=e.i)||o.chooseMedia({count:1,mediaType:["image"],sizeType:["original","compressed"],sourceType:[l.imageSourceType],success:function(e){v(e)}}):null==(a=e.i)||a.chooseImage({count:1,sourceType:[l.imageSourceType],success:function(e){v(e)}}):(null==(r=t.value)?void 0:r.click)&&t.value.click()},p=e=>{var i,n;(null==(n=null==(i=null==e?void 0:e.target)?void 0:i.files)?void 0:n.length)<=0||(v(null==e?void 0:e.target),e.target.value="")},v=i=>{var n,r,u,l,t;if(!i)return;const c={to:(null==(r=null==(n=null==s?void 0:s.value)?void 0:n.groupProfile)?void 0:r.groupID)||(null==(l=null==(u=null==s?void 0:s.value)?void 0:u.userProfile)?void 0:l.userID),conversationType:null==(t=null==s?void 0:s.value)?void 0:t.type,payload:{file:i},needReadReceipt:o.isEnabledMessageReadReceiptGlobal()},d={conversation:s.value,payload:c.payload,messageType:e.qt.TYPES.MSG_IMAGE},m={offlinePushInfo:a.OfflinePushInfoManager.create(d)};e.Qt.sendImageMessage(c,m)};return(n,o)=>e.e({a:!e.unref(i.isUniFrameWork)},e.unref(i.isUniFrameWork)?{}:{b:e.o$1(p),c:e.n(!e.unref(i.isPC)&&"image-upload-h5")},{d:e.o$1(m),e:e.p({iconFile:e.unref(d).icon,title:e.unref(d).title,iconWidth:e.unref(i.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"25px":"18px",needDialog:!1})})}}),t=e._export_sfc(l,[["__scopeId","data-v-89f17a95"]]);wx.createComponent(t);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const i=require("../../../../utils/env.js"),n=require("../../../../../common/assets.js"),o=require("../../utils/utils.js"),a=require("../../offlinePushInfoManager/index.js"),r=require("../../config.js");Math||u();const u=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{imageSourceType:{type:String,default:"album"}},setup(u){const l=u,t=e.ref(),s=e.ref(),c={web_album:{icon:"dark"===r.ChatConfig.getTheme()?n.imageIconDark:n.imageIconLight,title:"图片"},uni_album:{icon:n.imageUniIcon,title:"图片"},uni_camera:{icon:n.cameraUniIcon,title:"拍照"}};e.Jt.watch(e.o.CONV,{currentConversation:e=>{s.value=e}});const d=e.computed((()=>i.isUniFrameWork?"camera"===l.imageSourceType?c.uni_camera:c.uni_album:c.web_album)),m=()=>{var n,o,a,r;i.isUniFrameWork?i.isWeChat&&(null==(n=e.i)?void 0:n.chooseMedia)?null==(o=e.i)||o.chooseMedia({count:1,mediaType:["image"],sizeType:["original","compressed"],sourceType:[l.imageSourceType],success:function(e){v(e)}}):null==(a=e.i)||a.chooseImage({count:1,sourceType:[l.imageSourceType],success:function(e){v(e)}}):(null==(r=t.value)?void 0:r.click)&&t.value.click()},p=e=>{var i,n;(null==(n=null==(i=null==e?void 0:e.target)?void 0:i.files)?void 0:n.length)<=0||(v(null==e?void 0:e.target),e.target.value="")},v=i=>{var n,r,u,l,t;if(!i)return;const c={to:(null==(r=null==(n=null==s?void 0:s.value)?void 0:n.groupProfile)?void 0:r.groupID)||(null==(l=null==(u=null==s?void 0:s.value)?void 0:u.userProfile)?void 0:l.userID),conversationType:null==(t=null==s?void 0:s.value)?void 0:t.type,payload:{file:i},needReadReceipt:o.isEnabledMessageReadReceiptGlobal()},d={conversation:s.value,payload:c.payload,messageType:e.qt.TYPES.MSG_IMAGE},m={offlinePushInfo:a.OfflinePushInfoManager.create(d)};e.Qt.sendImageMessage(c,m)};return(n,o)=>e.e({a:!e.unref(i.isUniFrameWork)},e.unref(i.isUniFrameWork)?{}:{b:e.o$1(p),c:e.n(!e.unref(i.isPC)&&"image-upload-h5")},{d:e.o$1(m),e:e.p({iconFile:e.unref(d).icon,title:e.unref(d).title,iconWidth:e.unref(i.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"25px":"18px",needDialog:!1})})}}),t=e._export_sfc(l,[["__scopeId","data-v-85be0b12"]]);wx.createComponent(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<toolbar-item-container wx:if="{{e}}" class="data-v-89f17a95" u-s="{{['d']}}" bindonIconClick="{{d}}" u-i="89f17a95-0" bind:__l="__l" u-p="{{e}}"><view wx:if="{{a}}" class="{{['data-v-89f17a95', 'image-upload', c]}}"><input class="data-v-89f17a95" ref="inputRef" title="图片" type="file" data-type="image" accept="image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp" bindchange="{{b}}"></input></view></toolbar-item-container>
|
||||
<toolbar-item-container wx:if="{{e}}" class="data-v-85be0b12" u-s="{{['d']}}" bindonIconClick="{{d}}" u-i="85be0b12-0" bind:__l="__l" u-p="{{e}}"><view wx:if="{{a}}" class="{{['data-v-85be0b12', 'image-upload', c]}}"><input class="data-v-85be0b12" ref="inputRef" title="图片" type="file" data-type="image" accept="image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp" bindchange="{{b}}"></input></view></toolbar-item-container>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-89f17a95,div.data-v-89f17a95,ul.data-v-89f17a95,ol.data-v-89f17a95,dt.data-v-89f17a95,dd.data-v-89f17a95,li.data-v-89f17a95,dl.data-v-89f17a95,h1.data-v-89f17a95,h2.data-v-89f17a95,h3.data-v-89f17a95,h4.data-v-89f17a95,p.data-v-89f17a95{margin:0;padding:0;font-style:normal}ol.data-v-89f17a95,ul.data-v-89f17a95,li.data-v-89f17a95{list-style:none}img.data-v-89f17a95{border:0;vertical-align:middle;pointer-events:none}body.data-v-89f17a95{color:#000;background:#fff}.clear.data-v-89f17a95{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-89f17a95{color:#000;text-decoration:none;cursor:pointer}a.data-v-89f17a95:hover{text-decoration:none}input.data-v-89f17a95,textarea.data-v-89f17a95{-webkit-user-select:auto;user-select:auto}input.data-v-89f17a95:focus,input.data-v-89f17a95:active,textarea.data-v-89f17a95:focus,textarea.data-v-89f17a95:active{outline:none}.chat-aside.data-v-89f17a95{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
body.data-v-85be0b12,div.data-v-85be0b12,ul.data-v-85be0b12,ol.data-v-85be0b12,dt.data-v-85be0b12,dd.data-v-85be0b12,li.data-v-85be0b12,dl.data-v-85be0b12,h1.data-v-85be0b12,h2.data-v-85be0b12,h3.data-v-85be0b12,h4.data-v-85be0b12,p.data-v-85be0b12{margin:0;padding:0;font-style:normal}ol.data-v-85be0b12,ul.data-v-85be0b12,li.data-v-85be0b12{list-style:none}img.data-v-85be0b12{border:0;vertical-align:middle;pointer-events:none}body.data-v-85be0b12{color:#000;background:#fff}.clear.data-v-85be0b12{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-85be0b12{color:#000;text-decoration:none;cursor:pointer}a.data-v-85be0b12:hover{text-decoration:none}input.data-v-85be0b12,textarea.data-v-85be0b12{-webkit-user-select:auto;user-select:auto}input.data-v-85be0b12:focus,input.data-v-85be0b12:active,textarea.data-v-85be0b12:focus,textarea.data-v-85be0b12:active{outline:none}.chat-aside.data-v-85be0b12{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),n=require("../../config.js");Math||(i+t)();const i=()=>"../../../common/Icon.js",t=()=>"../../../common/BottomPopup/index.js",r=e.defineComponent({__name:"index",props:{iconFile:{type:String,required:!0},title:{type:String,default:""},needDialog:{type:Boolean,default:!0},iconWidth:{type:String,default:"20px"},iconHeight:{type:String,default:"20px"},needBottomPopup:{type:Boolean,default:!1}},emits:["onIconClick","onDialogClose","onDialogShow"],setup(i,{expose:t,emit:r}){const a=i,l=r,u=e.ref("dark"===n.ChatConfig.getTheme()),s=e.ref(!1),c=e.ref(),f=e.ref(),d=()=>{l("onIconClick",f),o.isPC&&e.O.listen({domRefs:c.value,handler:m}),a.needDialog&&p(!s.value)},m=()=>{s.value=!1,l("onDialogClose",f)},p=e=>{if(s.value!==e)switch(s.value=e,e){case!0:l("onDialogShow",f);break;case!1:l("onDialogClose",f)}},g=()=>{s.value=!1};return t({toggleDialogDisplay:p}),(n,i)=>e.e({a:e.p({file:a.iconFile,width:a.iconWidth,height:a.iconHeight}),b:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-icon"),c:e.o$1(d),d:e.unref(o.isUniFrameWork)},e.unref(o.isUniFrameWork)?{e:e.t(a.title)}:{},{f:a.needBottomPopup&&!e.unref(o.isPC)},a.needBottomPopup&&!e.unref(o.isPC)?{g:e.o$1((()=>{})),h:e.o$1(g),i:e.p({show:e.unref(s)})}:{},{j:e.unref(s),k:e.n(e.unref(u)&&"toolbar-item-container-dialog-dark"),l:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5-dialog"),m:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-dialog"),n:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5"),o:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni")})}}),a=e._export_sfc(r,[["__scopeId","data-v-aeccbf3a"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),n=require("../../config.js");Math||(i+t)();const i=()=>"../../../common/Icon.js",t=()=>"../../../common/BottomPopup/index.js",r=e.defineComponent({__name:"index",props:{iconFile:{type:String,required:!0},title:{type:String,default:""},needDialog:{type:Boolean,default:!0},iconWidth:{type:String,default:"20px"},iconHeight:{type:String,default:"20px"},needBottomPopup:{type:Boolean,default:!1}},emits:["onIconClick","onDialogClose","onDialogShow"],setup(i,{expose:t,emit:r}){const a=i,l=r,u=e.ref("dark"===n.ChatConfig.getTheme()),s=e.ref(!1),c=e.ref(),d=e.ref(),f=()=>{l("onIconClick",d),o.isPC&&e.O.listen({domRefs:c.value,handler:m}),a.needDialog&&p(!s.value)},m=()=>{s.value=!1,l("onDialogClose",d)},p=e=>{if(s.value!==e)switch(s.value=e,e){case!0:l("onDialogShow",d);break;case!1:l("onDialogClose",d)}},g=()=>{s.value=!1};return t({toggleDialogDisplay:p}),(n,i)=>e.e({a:e.p({file:a.iconFile,width:a.iconWidth,height:a.iconHeight}),b:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-icon"),c:e.o$1(f),d:e.unref(o.isUniFrameWork)},e.unref(o.isUniFrameWork)?{e:e.t(a.title)}:{},{f:a.needBottomPopup&&!e.unref(o.isPC)},a.needBottomPopup&&!e.unref(o.isPC)?{g:e.o$1((()=>{})),h:e.o$1(g),i:e.p({show:e.unref(s)})}:{},{j:e.unref(s),k:e.n(e.unref(u)&&"toolbar-item-container-dialog-dark"),l:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5-dialog"),m:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni-dialog"),n:e.n(!e.unref(o.isPC)&&"toolbar-item-container-h5"),o:e.n(e.unref(o.isUniFrameWork)&&"toolbar-item-container-uni")})}}),a=e._export_sfc(r,[["__scopeId","data-v-5e68d98a"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view ref="toolbarItemRef" class="{{['data-v-aeccbf3a', 'toolbar-item-container', n, o]}}"><view class="{{['data-v-aeccbf3a', 'toolbar-item-container-icon', b]}}" bindtap="{{c}}"><icon wx:if="{{a}}" class="icon data-v-aeccbf3a" u-i="aeccbf3a-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{d}}" class="{{['data-v-aeccbf3a', 'toolbar-item-container-uni-title']}}">{{e}}</view><view hidden="{{!j}}" ref="dialogRef" class="{{['data-v-aeccbf3a', 'toolbar-item-container-dialog', k, l, m]}}"><bottom-popup wx:if="{{f}}" u-s="{{['d']}}" class="toolbar-bottom-popup data-v-aeccbf3a" catchtouchmove="{{g}}" bindonClose="{{h}}" u-i="aeccbf3a-1" bind:__l="__l" u-p="{{i}}"><slot/></bottom-popup><slot wx:else/></view></view>
|
||||
<view ref="toolbarItemRef" class="{{['data-v-5e68d98a', 'toolbar-item-container', n, o]}}"><view class="{{['data-v-5e68d98a', 'toolbar-item-container-icon', b]}}" bindtap="{{c}}"><icon wx:if="{{a}}" class="icon data-v-5e68d98a" u-i="5e68d98a-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{d}}" class="{{['data-v-5e68d98a', 'toolbar-item-container-uni-title']}}">{{e}}</view><view hidden="{{!j}}" ref="dialogRef" class="{{['data-v-5e68d98a', 'toolbar-item-container-dialog', k, l, m]}}"><bottom-popup wx:if="{{f}}" u-s="{{['d']}}" class="toolbar-bottom-popup data-v-5e68d98a" catchtouchmove="{{g}}" bindonClose="{{h}}" u-i="5e68d98a-1" bind:__l="__l" u-p="{{i}}"><slot/></bottom-popup><slot wx:else/></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-aeccbf3a,div.data-v-aeccbf3a,ul.data-v-aeccbf3a,ol.data-v-aeccbf3a,dt.data-v-aeccbf3a,dd.data-v-aeccbf3a,li.data-v-aeccbf3a,dl.data-v-aeccbf3a,h1.data-v-aeccbf3a,h2.data-v-aeccbf3a,h3.data-v-aeccbf3a,h4.data-v-aeccbf3a,p.data-v-aeccbf3a{margin:0;padding:0;font-style:normal}ol.data-v-aeccbf3a,ul.data-v-aeccbf3a,li.data-v-aeccbf3a{list-style:none}img.data-v-aeccbf3a{border:0;vertical-align:middle;pointer-events:none}body.data-v-aeccbf3a{color:#000;background:#fff}.clear.data-v-aeccbf3a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-aeccbf3a{color:#000;text-decoration:none;cursor:pointer}a.data-v-aeccbf3a:hover{text-decoration:none}input.data-v-aeccbf3a,textarea.data-v-aeccbf3a{-webkit-user-select:auto;user-select:auto}input.data-v-aeccbf3a:focus,input.data-v-aeccbf3a:active,textarea.data-v-aeccbf3a:focus,textarea.data-v-aeccbf3a:active{outline:none}.chat-aside.data-v-aeccbf3a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.toolbar-item-container-dialog.data-v-aeccbf3a{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1)}.toolbar-item-container.data-v-aeccbf3a{position:relative}.toolbar-item-container-icon.data-v-aeccbf3a{padding:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.toolbar-item-container-dialog.data-v-aeccbf3a{z-index:5;position:absolute;background:#fff;box-shadow:0 2px 4px -3px rgba(32,77,141,.03),0 6px 10px 1px rgba(32,77,141,.06),0 3px 14px 2px rgba(32,77,141,.05);width:-webkit-fit-content;width:fit-content;height:-webkit-fit-content;height:fit-content;bottom:35px}.toolbar-item-container-dialog-dark.data-v-aeccbf3a{background:#22262e;box-shadow:0 8px 40px rgba(23,25,31,.6),0 4px 12px rgba(23,25,31,.8)}.toolbar-item-container-h5-dialog.data-v-aeccbf3a{position:static!important;width:100%;box-shadow:none}.toolbar-item-container-uni.data-v-aeccbf3a{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:static}.toolbar-item-container-uni-icon.data-v-aeccbf3a{background:#fff;border-radius:15px;width:60px;height:60px;padding:0;display:flex;justify-content:center;align-items:center}.toolbar-item-container-uni-title.data-v-aeccbf3a{font-size:14px;color:#8f959d}.toolbar-item-container-uni-dialog.data-v-aeccbf3a{position:absolute!important;background:transparent;left:-10px;bottom:-5px}.toolbar-item-container-uni-dialog .toolbar-bottom-popup.data-v-aeccbf3a{position:-webkit-sticky;position:sticky}
|
||||
body.data-v-5e68d98a,div.data-v-5e68d98a,ul.data-v-5e68d98a,ol.data-v-5e68d98a,dt.data-v-5e68d98a,dd.data-v-5e68d98a,li.data-v-5e68d98a,dl.data-v-5e68d98a,h1.data-v-5e68d98a,h2.data-v-5e68d98a,h3.data-v-5e68d98a,h4.data-v-5e68d98a,p.data-v-5e68d98a{margin:0;padding:0;font-style:normal}ol.data-v-5e68d98a,ul.data-v-5e68d98a,li.data-v-5e68d98a{list-style:none}img.data-v-5e68d98a{border:0;vertical-align:middle;pointer-events:none}body.data-v-5e68d98a{color:#000;background:#fff}.clear.data-v-5e68d98a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-5e68d98a{color:#000;text-decoration:none;cursor:pointer}a.data-v-5e68d98a:hover{text-decoration:none}input.data-v-5e68d98a,textarea.data-v-5e68d98a{-webkit-user-select:auto;user-select:auto}input.data-v-5e68d98a:focus,input.data-v-5e68d98a:active,textarea.data-v-5e68d98a:focus,textarea.data-v-5e68d98a:active{outline:none}.chat-aside.data-v-5e68d98a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.toolbar-item-container-dialog.data-v-5e68d98a{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1)}.toolbar-item-container.data-v-5e68d98a{position:relative}.toolbar-item-container-icon.data-v-5e68d98a{padding:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.toolbar-item-container-dialog.data-v-5e68d98a{z-index:5;position:absolute;background:#fff;box-shadow:0 2px 4px -3px rgba(32,77,141,.03),0 6px 10px 1px rgba(32,77,141,.06),0 3px 14px 2px rgba(32,77,141,.05);width:-webkit-fit-content;width:fit-content;height:-webkit-fit-content;height:fit-content;bottom:35px}.toolbar-item-container-dialog-dark.data-v-5e68d98a{background:#22262e;box-shadow:0 8px 40px rgba(23,25,31,.6),0 4px 12px rgba(23,25,31,.8)}.toolbar-item-container-h5-dialog.data-v-5e68d98a{position:static!important;width:100%;box-shadow:none}.toolbar-item-container-uni.data-v-5e68d98a{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:static}.toolbar-item-container-uni-icon.data-v-5e68d98a{background:#fff;border-radius:15px;width:60px;height:60px;padding:0;display:flex;justify-content:center;align-items:center}.toolbar-item-container-uni-title.data-v-5e68d98a{font-size:14px;color:#8f959d}.toolbar-item-container-uni-dialog.data-v-5e68d98a{position:absolute!important;background:transparent;left:-10px;bottom:-5px}.toolbar-item-container-uni-dialog .toolbar-bottom-popup.data-v-5e68d98a{position:-webkit-sticky;position:sticky}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),i=require("../../../../../common/assets.js"),n=require("../../utils/utils.js"),r=require("../../offlinePushInfoManager/index.js"),u=require("../../config.js");Math||a();const a=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{videoSourceType:{type:String,default:"album"}},setup(a){const l=a,s=e.ref(),t=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{t.value=e}});const c=()=>{if(!o.isUniFrameWork){return"dark"===u.ChatConfig.getTheme()?i.videoIconDark:i.videoIconLight}switch(l.videoSourceType){case"album":default:return i.videoUniIcon;case"camera":return i.cameraUniIcon}},d=()=>{var i,n,r,u,a;o.isUniFrameWork?o.isWeChat&&(null==(i=e.i)?void 0:i.chooseMedia)?null==(n=e.i)||n.chooseMedia({mediaType:["video"],count:1,sourceType:[l.videoSourceType],maxDuration:60,success:function(e){p(e)}}):null==(r=e.i)||r.chooseVideo({count:1,sourceType:[l.videoSourceType],compressed:!1,success:function(e){p(e)}}):(null==(u=null==s?void 0:s.value)?void 0:u.click)&&(null==(a=null==s?void 0:s.value)||a.click())},v=e=>{var o,i;(null==(i=null==(o=null==e?void 0:e.target)?void 0:o.files)?void 0:i.length)<=0||(p(null==e?void 0:e.target),e.target.value="")},p=o=>{var i,u,a,l,s;if(!o)return;const c={to:(null==(u=null==(i=null==t?void 0:t.value)?void 0:i.groupProfile)?void 0:u.groupID)||(null==(l=null==(a=null==t?void 0:t.value)?void 0:a.userProfile)?void 0:l.userID),conversationType:null==(s=null==t?void 0:t.value)?void 0:s.type,payload:{file:o},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()},d={conversation:t.value,payload:c.payload,messageType:e.qt.TYPES.MSG_VIDEO},v={offlinePushInfo:r.OfflinePushInfoManager.create(d)};e.Qt.sendVideoMessage(c,v)};return(i,n)=>({a:e.o$1(v),b:e.n(!e.unref(o.isPC)&&"video-upload-h5"),c:e.o$1(d),d:e.p({iconFile:c(),title:o.isUniFrameWork&&"camera"===l.videoSourceType?"录制":"视频",needDialog:!1,iconWidth:e.unref(o.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(o.isUniFrameWork)?"album"===l.videoSourceType?"20px":"25px":"18px"})})}}),s=e._export_sfc(l,[["__scopeId","data-v-82714893"]]);wx.createComponent(s);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../utils/env.js"),i=require("../../../../../common/assets.js"),n=require("../../utils/utils.js"),r=require("../../offlinePushInfoManager/index.js"),a=require("../../config.js");Math||u();const u=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",props:{videoSourceType:{type:String,default:"album"}},setup(u){const l=u,s=e.ref(),t=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{t.value=e}});const c=()=>{if(!o.isUniFrameWork){return"dark"===a.ChatConfig.getTheme()?i.videoIconDark:i.videoIconLight}switch(l.videoSourceType){case"album":default:return i.videoUniIcon;case"camera":return i.cameraUniIcon}},d=()=>{var i,n,r,a,u;o.isUniFrameWork?o.isWeChat&&(null==(i=e.i)?void 0:i.chooseMedia)?null==(n=e.i)||n.chooseMedia({mediaType:["video"],count:1,sourceType:[l.videoSourceType],maxDuration:60,success:function(e){p(e)}}):null==(r=e.i)||r.chooseVideo({count:1,sourceType:[l.videoSourceType],compressed:!1,success:function(e){p(e)}}):(null==(a=null==s?void 0:s.value)?void 0:a.click)&&(null==(u=null==s?void 0:s.value)||u.click())},v=e=>{var o,i;(null==(i=null==(o=null==e?void 0:e.target)?void 0:o.files)?void 0:i.length)<=0||(p(null==e?void 0:e.target),e.target.value="")},p=o=>{var i,a,u,l,s;if(!o)return;const c={to:(null==(a=null==(i=null==t?void 0:t.value)?void 0:i.groupProfile)?void 0:a.groupID)||(null==(l=null==(u=null==t?void 0:t.value)?void 0:u.userProfile)?void 0:l.userID),conversationType:null==(s=null==t?void 0:t.value)?void 0:s.type,payload:{file:o},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()},d={conversation:t.value,payload:c.payload,messageType:e.qt.TYPES.MSG_VIDEO},v={offlinePushInfo:r.OfflinePushInfoManager.create(d)};e.Qt.sendVideoMessage(c,v)};return(i,n)=>({a:e.o$1(v),b:e.n(!e.unref(o.isPC)&&"video-upload-h5"),c:e.o$1(d),d:e.p({iconFile:c(),title:o.isUniFrameWork&&"camera"===l.videoSourceType?"录制":"视频",needDialog:!1,iconWidth:e.unref(o.isUniFrameWork)?"32px":"20px",iconHeight:e.unref(o.isUniFrameWork)?"album"===l.videoSourceType?"20px":"25px":"18px"})})}}),s=e._export_sfc(l,[["__scopeId","data-v-d124a627"]]);wx.createComponent(s);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<toolbar-item-container wx:if="{{d}}" class="data-v-82714893" u-s="{{['d']}}" bindonIconClick="{{c}}" u-i="82714893-0" bind:__l="__l" u-p="{{d}}"><view class="{{['data-v-82714893', 'video-upload', b]}}"><input class="data-v-82714893" ref="inputRef" title="视频" type="file" data-type="video" accept="video/*" bindchange="{{a}}"></input></view></toolbar-item-container>
|
||||
<toolbar-item-container wx:if="{{d}}" class="data-v-d124a627" u-s="{{['d']}}" bindonIconClick="{{c}}" u-i="d124a627-0" bind:__l="__l" u-p="{{d}}"><view class="{{['data-v-d124a627', 'video-upload', b]}}"><input class="data-v-d124a627" ref="inputRef" title="视频" type="file" data-type="video" accept="video/*" bindchange="{{a}}"></input></view></toolbar-item-container>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-82714893,div.data-v-82714893,ul.data-v-82714893,ol.data-v-82714893,dt.data-v-82714893,dd.data-v-82714893,li.data-v-82714893,dl.data-v-82714893,h1.data-v-82714893,h2.data-v-82714893,h3.data-v-82714893,h4.data-v-82714893,p.data-v-82714893{margin:0;padding:0;font-style:normal}ol.data-v-82714893,ul.data-v-82714893,li.data-v-82714893{list-style:none}img.data-v-82714893{border:0;vertical-align:middle;pointer-events:none}body.data-v-82714893{color:#000;background:#fff}.clear.data-v-82714893{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-82714893{color:#000;text-decoration:none;cursor:pointer}a.data-v-82714893:hover{text-decoration:none}input.data-v-82714893,textarea.data-v-82714893{-webkit-user-select:auto;user-select:auto}input.data-v-82714893:focus,input.data-v-82714893:active,textarea.data-v-82714893:focus,textarea.data-v-82714893:active{outline:none}.chat-aside.data-v-82714893{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
body.data-v-d124a627,div.data-v-d124a627,ul.data-v-d124a627,ol.data-v-d124a627,dt.data-v-d124a627,dd.data-v-d124a627,li.data-v-d124a627,dl.data-v-d124a627,h1.data-v-d124a627,h2.data-v-d124a627,h3.data-v-d124a627,h4.data-v-d124a627,p.data-v-d124a627{margin:0;padding:0;font-style:normal}ol.data-v-d124a627,ul.data-v-d124a627,li.data-v-d124a627{list-style:none}img.data-v-d124a627{border:0;vertical-align:middle;pointer-events:none}body.data-v-d124a627{color:#000;background:#fff}.clear.data-v-d124a627{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-d124a627{color:#000;text-decoration:none;cursor:pointer}a.data-v-d124a627:hover{text-decoration:none}input.data-v-d124a627,textarea.data-v-d124a627{-webkit-user-select:auto;user-select:auto}input.data-v-d124a627:focus,input.data-v-d124a627:active,textarea.data-v-d124a627:focus,textarea.data-v-d124a627:active{outline:none}.chat-aside.data-v-d124a627{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../../common/assets.js"),r=require("../../utils/wordsList.js"),n=require("../../utils/utils.js"),i=require("../../../../utils/env.js"),s=require("../../config.js");Math||t();const t=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:l}){const u="dark"===s.ChatConfig.getTheme()?o.wordsIconDark:o.wordsIconLight,a=l,d=e.ref(),c=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{d.value=e}});const p=()=>{var e;null==(e=null==c?void 0:c.value)||e.toggleDialogDisplay(!1)},v=()=>{a("onDialogPopupShowOrHide",!0)},f=()=>{a("onDialogPopupShowOrHide",!1)};return(o,s)=>e.e({a:e.t(e.unref(e.Wt).t("Words.常用语-快捷回复工具")),b:e.n(!e.unref(i.isPC)&&"words-h5-header-title"),c:!e.unref(i.isPC)},e.unref(i.isPC)?{}:{d:e.n(!e.unref(i.isPC)&&"words-h5-header-close"),e:e.o$1(p)},{f:e.n(!e.unref(i.isPC)&&"words-h5-header"),g:e.f(e.unref(r.wordsList),((o,r,i)=>({a:e.t(e.unref(e.Wt).t(`Words.${o.value}`)),b:r,c:e.o$1((r=>(o=>{var r,i,s,t,l,u;const a={to:(null==(i=null==(r=null==d?void 0:d.value)?void 0:r.groupProfile)?void 0:i.groupID)||(null==(t=null==(s=null==d?void 0:d.value)?void 0:s.userProfile)?void 0:t.userID),conversationType:null==(l=null==d?void 0:d.value)?void 0:l.type,payload:{text:e.Wt.t(`Words.${o.value}`)},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()};e.Qt.sendTextMessage(a),null==(u=null==c?void 0:c.value)||u.toggleDialogDisplay(!1)})(o)),r)}))),h:e.n(!e.unref(i.isPC)&&"words-h5-list-item"),i:e.n(!e.unref(i.isPC)&&"words-h5-list"),j:e.n(!e.unref(i.isPC)&&"words-h5"),k:e.sr(c,"c8930b5a-0",{k:"container"}),l:e.o$1(v),m:e.o$1(f),n:e.p({iconFile:e.unref(u),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(i.isUniFrameWork)?"26px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"26px":"20px"})})}}),u=e._export_sfc(l,[["__scopeId","data-v-c8930b5a"]]);wx.createComponent(u);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../../common/assets.js"),r=require("../../utils/wordsList.js"),n=require("../../utils/utils.js"),i=require("../../../../utils/env.js"),s=require("../../config.js");Math||t();const t=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:l}){const u="dark"===s.ChatConfig.getTheme()?o.wordsIconDark:o.wordsIconLight,a=l,d=e.ref(),c=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{d.value=e}});const p=()=>{var e;null==(e=null==c?void 0:c.value)||e.toggleDialogDisplay(!1)},f=()=>{a("onDialogPopupShowOrHide",!0)},v=()=>{a("onDialogPopupShowOrHide",!1)};return(o,s)=>e.e({a:e.t(e.unref(e.Wt).t("Words.常用语-快捷回复工具")),b:e.n(!e.unref(i.isPC)&&"words-h5-header-title"),c:!e.unref(i.isPC)},e.unref(i.isPC)?{}:{d:e.n(!e.unref(i.isPC)&&"words-h5-header-close"),e:e.o$1(p)},{f:e.n(!e.unref(i.isPC)&&"words-h5-header"),g:e.f(e.unref(r.wordsList),((o,r,i)=>({a:e.t(e.unref(e.Wt).t(`Words.${o.value}`)),b:r,c:e.o$1((r=>(o=>{var r,i,s,t,l,u;const a={to:(null==(i=null==(r=null==d?void 0:d.value)?void 0:r.groupProfile)?void 0:i.groupID)||(null==(t=null==(s=null==d?void 0:d.value)?void 0:s.userProfile)?void 0:t.userID),conversationType:null==(l=null==d?void 0:d.value)?void 0:l.type,payload:{text:e.Wt.t(`Words.${o.value}`)},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()};e.Qt.sendTextMessage(a),null==(u=null==c?void 0:c.value)||u.toggleDialogDisplay(!1)})(o)),r)}))),h:e.n(!e.unref(i.isPC)&&"words-h5-list-item"),i:e.n(!e.unref(i.isPC)&&"words-h5-list"),j:e.n(!e.unref(i.isPC)&&"words-h5"),k:e.sr(c,"1cf1abee-0",{k:"container"}),l:e.o$1(f),m:e.o$1(v),n:e.p({iconFile:e.unref(u),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(i.isUniFrameWork)?"26px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"26px":"20px"})})}}),u=e._export_sfc(l,[["__scopeId","data-v-1cf1abee"]]);wx.createComponent(u);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<toolbar-item-container wx:if="{{n}}" class="r data-v-c8930b5a" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{l}}" bindonDialogClose="{{m}}" u-i="c8930b5a-0" bind:__l="__l" u-p="{{n}}"><view class="{{['data-v-c8930b5a', 'words', j]}}"><view class="{{['data-v-c8930b5a', 'words-header', f]}}"><label class="{{['data-v-c8930b5a', 'words-header-title', b]}}">{{a}}</label><label wx:if="{{c}}" class="{{['data-v-c8930b5a', 'words-header-close', d]}}" bindtap="{{e}}"> 关闭 </label></view><view class="{{['data-v-c8930b5a', 'words-list', i]}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="b" class="{{['data-v-c8930b5a', 'words-list-item', h]}}" bindtap="{{item.c}}">{{item.a}}</view></view></view></toolbar-item-container>
|
||||
<toolbar-item-container wx:if="{{n}}" class="r data-v-1cf1abee" u-s="{{['d']}}" u-r="container" bindonDialogShow="{{l}}" bindonDialogClose="{{m}}" u-i="1cf1abee-0" bind:__l="__l" u-p="{{n}}"><view class="{{['data-v-1cf1abee', 'words', j]}}"><view class="{{['data-v-1cf1abee', 'words-header', f]}}"><label class="{{['data-v-1cf1abee', 'words-header-title', b]}}">{{a}}</label><label wx:if="{{c}}" class="{{['data-v-1cf1abee', 'words-header-close', d]}}" bindtap="{{e}}"> 关闭 </label></view><view class="{{['data-v-1cf1abee', 'words-list', i]}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="b" class="{{['data-v-1cf1abee', 'words-list-item', h]}}" bindtap="{{item.c}}">{{item.a}}</view></view></view></toolbar-item-container>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-c8930b5a,div.data-v-c8930b5a,ul.data-v-c8930b5a,ol.data-v-c8930b5a,dt.data-v-c8930b5a,dd.data-v-c8930b5a,li.data-v-c8930b5a,dl.data-v-c8930b5a,h1.data-v-c8930b5a,h2.data-v-c8930b5a,h3.data-v-c8930b5a,h4.data-v-c8930b5a,p.data-v-c8930b5a{margin:0;padding:0;font-style:normal}ol.data-v-c8930b5a,ul.data-v-c8930b5a,li.data-v-c8930b5a{list-style:none}img.data-v-c8930b5a{border:0;vertical-align:middle;pointer-events:none}body.data-v-c8930b5a{color:#000;background:#fff}.clear.data-v-c8930b5a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-c8930b5a{color:#000;text-decoration:none;cursor:pointer}a.data-v-c8930b5a:hover{text-decoration:none}input.data-v-c8930b5a,textarea.data-v-c8930b5a{-webkit-user-select:auto;user-select:auto}input.data-v-c8930b5a:focus,input.data-v-c8930b5a:active,textarea.data-v-c8930b5a:focus,textarea.data-v-c8930b5a:active{outline:none}.chat-aside.data-v-c8930b5a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.words.data-v-c8930b5a{background-color:#fff}.words-header-close.data-v-c8930b5a{color:#3370ff}.words.data-v-c8930b5a{z-index:5;width:315px;padding:12px;display:flex;flex-direction:column;width:19.13rem;height:12.44rem;overflow-y:auto}.words-header.data-v-c8930b5a{display:flex;justify-content:space-between;font-size:14px;font-weight:500}.words-list.data-v-c8930b5a{flex:1;display:flex;flex-direction:column;cursor:pointer}.words-list-item.data-v-c8930b5a{cursor:pointer;padding:4px 0;font-size:14px;color:#50545c;line-height:18px}.words-list-item.data-v-c8930b5a:hover{color:#006eff}.words-h5.data-v-c8930b5a{width:100%;box-sizing:border-box;max-height:80vh;height:-webkit-fit-content;height:fit-content;overflow:hidden;display:flex;flex-direction:column}.words-h5-header-title.data-v-c8930b5a{font-size:18px;line-height:40px}.words-h5-list.data-v-c8930b5a{flex:1;overflow-y:scroll}.words-h5-list-item.data-v-c8930b5a{cursor:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;padding:12px 0;font-size:16px;color:#50545c;line-height:18px;border-bottom:1px solid #eeeeee}
|
||||
body.data-v-1cf1abee,div.data-v-1cf1abee,ul.data-v-1cf1abee,ol.data-v-1cf1abee,dt.data-v-1cf1abee,dd.data-v-1cf1abee,li.data-v-1cf1abee,dl.data-v-1cf1abee,h1.data-v-1cf1abee,h2.data-v-1cf1abee,h3.data-v-1cf1abee,h4.data-v-1cf1abee,p.data-v-1cf1abee{margin:0;padding:0;font-style:normal}ol.data-v-1cf1abee,ul.data-v-1cf1abee,li.data-v-1cf1abee{list-style:none}img.data-v-1cf1abee{border:0;vertical-align:middle;pointer-events:none}body.data-v-1cf1abee{color:#000;background:#fff}.clear.data-v-1cf1abee{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-1cf1abee{color:#000;text-decoration:none;cursor:pointer}a.data-v-1cf1abee:hover{text-decoration:none}input.data-v-1cf1abee,textarea.data-v-1cf1abee{-webkit-user-select:auto;user-select:auto}input.data-v-1cf1abee:focus,input.data-v-1cf1abee:active,textarea.data-v-1cf1abee:focus,textarea.data-v-1cf1abee:active{outline:none}.chat-aside.data-v-1cf1abee{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.words.data-v-1cf1abee{background-color:#fff}.words-header-close.data-v-1cf1abee{color:#3370ff}.words.data-v-1cf1abee{z-index:5;width:315px;padding:12px;display:flex;flex-direction:column;width:19.13rem;height:12.44rem;overflow-y:auto}.words-header.data-v-1cf1abee{display:flex;justify-content:space-between;font-size:14px;font-weight:500}.words-list.data-v-1cf1abee{flex:1;display:flex;flex-direction:column;cursor:pointer}.words-list-item.data-v-1cf1abee{cursor:pointer;padding:4px 0;font-size:14px;color:#50545c;line-height:18px}.words-list-item.data-v-1cf1abee:hover{color:#006eff}.words-h5.data-v-1cf1abee{width:100%;box-sizing:border-box;max-height:80vh;height:-webkit-fit-content;height:fit-content;overflow:hidden;display:flex;flex-direction:column}.words-h5-header-title.data-v-1cf1abee{font-size:18px;line-height:40px}.words-h5-list.data-v-1cf1abee{flex:1;overflow-y:scroll}.words-h5-list-item.data-v-1cf1abee{cursor:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;padding:12px 0;font-size:16px;color:#50545c;line-height:18px;border-bottom:1px solid #eeeeee}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../../utils/env.js"),t=require("../utils/sendMessage.js"),u=require("../config.js");Math||(i+l+a+s+r)();const l=()=>"./message-input-editor.js",a=()=>"./message-input-at/index.js",i=()=>"./message-input-audio.js",r=()=>"./message-input-quote/index.js",s=()=>"../../common/Icon.js",p=e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(l,{expose:a,emit:i}){const r=i,s=l,p=e.ref(),d=e.ref(),f=e.ref(),c=e.ref(!1),v=e.ref("editor"),m=u.ChatConfig.getFeatureConfig(),g=e.ref(m.InputVoice),y=e.ref(m.InputEmoji||m.InputStickers),b=e.ref(m.InputImage||m.InputVideo||m.InputEvaluation||m.InputQuickReplies);function T(e){v.value=e,"audio"===e&&r("changeToolbarDisplayType","none")}function h(e){r("changeToolbarDisplayType",e)}e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:q}),e.Jt.watch(e.o.CHAT,{quoteMessage:E})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:q}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:E})})),e.watch((()=>s.inputToolbarDisplayType),(e=>{"none"!==e&&T("editor")}));const j=(e,n)=>{t.sendTyping(e,n)},A=e=>{var n;null==(n=null==d?void 0:d.value)||n.toggleAtList(e)},C=()=>{o.isH5&&r("changeToolbarDisplayType","none")},I=e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.insertAt)&&(null==(o=null==p?void 0:p.value)||o.insertAt(e))},x=()=>{var e,n;(null==(e=null==p?void 0:p.value)?void 0:e.blur)&&(null==(n=null==p?void 0:p.value)||n.blur())};function q(n){var o;f.value=n,c.value=(null==(o=f.value)?void 0:o.type)===e.qt.TYPES.CONV_GROUP}function E(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&T("editor")}return a({insertEmoji:e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.addEmoji)&&(null==(o=null==p?void 0:p.value)||o.addEmoji(e))},reEdit:e=>{var n,o;null==(n=null==p?void 0:p.value)||n.resetEditor(),null==(o=null==p?void 0:p.value)||o.setEditorContent(e)}}),(t,u)=>e.e({a:(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)},(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)?{b:"audio"===e.unref(v)?1:"",c:e.o$1(T),d:e.p({isEnableAudio:"audio"===e.unref(v)})}:{},{e:e.sr(p,"eab7c992-1",{k:"editor"}),f:"editor"===e.unref(v),g:e.o$1(j),h:e.o$1(A),i:e.o$1(C),j:e.p({placeholder:s.placeholder,isMuted:s.isMuted,muteText:s.muteText,enableInput:s.enableInput,enableAt:s.enableAt,enableTyping:s.enableTyping,isGroup:e.unref(c)}),k:s.enableAt},s.enableAt?{l:e.sr(d,"eab7c992-2",{k:"messageInputAtRef"}),m:e.o$1(I),n:e.o$1(x)}:{},{o:e.unref(y)},e.unref(y)?{p:e.o$1((e=>h("emojiPicker"))),q:e.p({file:e.unref(n.faceIcon),size:"23px",hotAreaSize:"3px"})}:{},{r:e.unref(b)},e.unref(b)?{s:e.o$1((e=>h("tools"))),t:e.p({file:e.unref(n.moreIcon),size:"23px",hotAreaSize:"3px"})}:{},{v:e.p({displayType:e.unref(v)}),w:e.n(!e.unref(o.isPC)&&"message-input-h5")})}}),d=e._export_sfc(p,[["__scopeId","data-v-eab7c992"]]);wx.createComponent(d);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../../utils/env.js"),t=require("../utils/sendMessage.js"),u=require("../config.js");Math||(i+l+a+s+r)();const l=()=>"./message-input-editor.js",a=()=>"./message-input-at/index.js",i=()=>"./message-input-audio.js",r=()=>"./message-input-quote/index.js",s=()=>"../../common/Icon.js",p=e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(l,{expose:a,emit:i}){const r=i,s=l,p=e.ref(),d=e.ref(),f=e.ref(),c=e.ref(!1),v=e.ref("editor"),m=u.ChatConfig.getFeatureConfig(),g=e.ref(m.InputVoice),y=e.ref(m.InputEmoji||m.InputStickers),T=e.ref(m.InputImage||m.InputVideo||m.InputEvaluation||m.InputQuickReplies);function h(e){v.value=e,"audio"===e&&r("changeToolbarDisplayType","none")}function b(e){r("changeToolbarDisplayType",e)}e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:q}),e.Jt.watch(e.o.CHAT,{quoteMessage:E})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:q}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:E})})),e.watch((()=>s.inputToolbarDisplayType),(e=>{"none"!==e&&h("editor")}));const j=(e,n)=>{t.sendTyping(e,n)},A=e=>{var n;null==(n=null==d?void 0:d.value)||n.toggleAtList(e)},C=()=>{o.isH5&&r("changeToolbarDisplayType","none")},I=e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.insertAt)&&(null==(o=null==p?void 0:p.value)||o.insertAt(e))},x=()=>{var e,n;(null==(e=null==p?void 0:p.value)?void 0:e.blur)&&(null==(n=null==p?void 0:p.value)||n.blur())};function q(n){var o;f.value=n,c.value=(null==(o=f.value)?void 0:o.type)===e.qt.TYPES.CONV_GROUP}function E(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&h("editor")}return a({insertEmoji:e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.addEmoji)&&(null==(o=null==p?void 0:p.value)||o.addEmoji(e))},reEdit:e=>{var n,o;null==(n=null==p?void 0:p.value)||n.resetEditor(),null==(o=null==p?void 0:p.value)||o.setEditorContent(e)}}),(t,u)=>e.e({a:(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)},(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)?{b:"audio"===e.unref(v)?1:"",c:e.o$1(h),d:e.p({isEnableAudio:"audio"===e.unref(v)})}:{},{e:e.sr(p,"de604828-1",{k:"editor"}),f:"editor"===e.unref(v),g:e.o$1(j),h:e.o$1(A),i:e.o$1(C),j:e.p({placeholder:s.placeholder,isMuted:s.isMuted,muteText:s.muteText,enableInput:s.enableInput,enableAt:s.enableAt,enableTyping:s.enableTyping,isGroup:e.unref(c)}),k:s.enableAt},s.enableAt?{l:e.sr(d,"de604828-2",{k:"messageInputAtRef"}),m:e.o$1(I),n:e.o$1(x)}:{},{o:e.unref(y)},e.unref(y)?{p:e.o$1((e=>b("emojiPicker"))),q:e.p({file:e.unref(n.faceIcon),size:"23px",hotAreaSize:"3px"})}:{},{r:e.unref(T)},e.unref(T)?{s:e.o$1((e=>b("tools"))),t:e.p({file:e.unref(n.moreIcon),size:"23px",hotAreaSize:"3px"})}:{},{v:e.p({displayType:e.unref(v)}),w:e.n(!e.unref(o.isPC)&&"message-input-h5")})}}),d=e._export_sfc(p,[["__scopeId","data-v-de604828"]]);wx.createComponent(d);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-eab7c992', 'message-input', w]}}"><view class="audio-main-content-line data-v-eab7c992"><message-input-audio wx:if="{{a}}" class="{{['data-v-eab7c992', b && 'message-input-wx-audio-open']}}" bindchangeDisplayType="{{c}}" u-i="eab7c992-0" bind:__l="__l" u-p="{{d}}"/><message-input-editor wx:if="{{j}}" data-c-h="{{!f}}" u-r="editor" class="message-input-editor r data-v-eab7c992" bindonTyping="{{g}}" bindonAt="{{h}}" bindonFocus="{{i}}" u-i="eab7c992-1" bind:__l="__l" u-p="{{j}}"/><message-input-at wx:if="{{k}}" class="r data-v-eab7c992" u-r="messageInputAtRef" bindinsertAt="{{m}}" bindonAtListOpen="{{n}}" u-i="eab7c992-2" bind:__l="__l"/><icon wx:if="{{o}}" class="icon icon-face data-v-eab7c992" bindonClick="{{p}}" u-i="eab7c992-3" bind:__l="__l" u-p="{{q}}"/><icon wx:if="{{r}}" class="icon icon-more data-v-eab7c992" bindonClick="{{s}}" u-i="eab7c992-4" bind:__l="__l" u-p="{{t}}"/></view><view class="data-v-eab7c992"><message-quote wx:if="{{v}}" class="data-v-eab7c992" style="{{'min-width:' + 0}}" u-i="eab7c992-5" bind:__l="__l" u-p="{{v}}"/></view></view>
|
||||
<view class="{{['data-v-de604828', 'message-input', w]}}"><view class="audio-main-content-line data-v-de604828"><message-input-audio wx:if="{{a}}" class="{{['data-v-de604828', b && 'message-input-wx-audio-open']}}" bindchangeDisplayType="{{c}}" u-i="de604828-0" bind:__l="__l" u-p="{{d}}"/><message-input-editor wx:if="{{j}}" data-c-h="{{!f}}" u-r="editor" class="message-input-editor r data-v-de604828" bindonTyping="{{g}}" bindonAt="{{h}}" bindonFocus="{{i}}" u-i="de604828-1" bind:__l="__l" u-p="{{j}}"/><message-input-at wx:if="{{k}}" class="r data-v-de604828" u-r="messageInputAtRef" bindinsertAt="{{m}}" bindonAtListOpen="{{n}}" u-i="de604828-2" bind:__l="__l"/><icon wx:if="{{o}}" class="icon icon-face data-v-de604828" bindonClick="{{p}}" u-i="de604828-3" bind:__l="__l" u-p="{{q}}"/><icon wx:if="{{r}}" class="icon icon-more data-v-de604828" bindonClick="{{s}}" u-i="de604828-4" bind:__l="__l" u-p="{{t}}"/></view><view class="data-v-de604828"><message-quote wx:if="{{v}}" class="data-v-de604828" style="{{'min-width:' + 0}}" u-i="de604828-5" bind:__l="__l" u-p="{{v}}"/></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-eab7c992,div.data-v-eab7c992,ul.data-v-eab7c992,ol.data-v-eab7c992,dt.data-v-eab7c992,dd.data-v-eab7c992,li.data-v-eab7c992,dl.data-v-eab7c992,h1.data-v-eab7c992,h2.data-v-eab7c992,h3.data-v-eab7c992,h4.data-v-eab7c992,p.data-v-eab7c992{margin:0;padding:0;font-style:normal}ol.data-v-eab7c992,ul.data-v-eab7c992,li.data-v-eab7c992{list-style:none}img.data-v-eab7c992{border:0;vertical-align:middle;pointer-events:none}body.data-v-eab7c992{color:#000;background:#fff}.clear.data-v-eab7c992{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-eab7c992{color:#000;text-decoration:none;cursor:pointer}a.data-v-eab7c992:hover{text-decoration:none}input.data-v-eab7c992,textarea.data-v-eab7c992{-webkit-user-select:auto;user-select:auto}input.data-v-eab7c992:focus,input.data-v-eab7c992:active,textarea.data-v-eab7c992:focus,textarea.data-v-eab7c992:active{outline:none}.chat-aside.data-v-eab7c992{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.data-v-eab7c992:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.message-input.data-v-eab7c992{position:relative;display:flex;flex-direction:column;border:none;overflow:hidden;background:#ebf0f6}.message-input-h5.data-v-eab7c992{padding:10px 10px 15px}.message-input-editor.data-v-eab7c992{flex:1;display:flex}.message-input .icon.data-v-eab7c992{margin-left:3px}.message-input-wx-audio-open.data-v-eab7c992{flex:1}.audio-main-content-line.data-v-eab7c992{display:flex;flex-direction:row;align-items:center}
|
||||
body.data-v-de604828,div.data-v-de604828,ul.data-v-de604828,ol.data-v-de604828,dt.data-v-de604828,dd.data-v-de604828,li.data-v-de604828,dl.data-v-de604828,h1.data-v-de604828,h2.data-v-de604828,h3.data-v-de604828,h4.data-v-de604828,p.data-v-de604828{margin:0;padding:0;font-style:normal}ol.data-v-de604828,ul.data-v-de604828,li.data-v-de604828{list-style:none}img.data-v-de604828{border:0;vertical-align:middle;pointer-events:none}body.data-v-de604828{color:#000;background:#fff}.clear.data-v-de604828{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-de604828{color:#000;text-decoration:none;cursor:pointer}a.data-v-de604828:hover{text-decoration:none}input.data-v-de604828,textarea.data-v-de604828{-webkit-user-select:auto;user-select:auto}input.data-v-de604828:focus,input.data-v-de604828:active,textarea.data-v-de604828:focus,textarea.data-v-de604828:active{outline:none}.chat-aside.data-v-de604828{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.data-v-de604828:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.message-input.data-v-de604828{position:relative;display:flex;flex-direction:column;border:none;overflow:hidden;background:#ebf0f6}.message-input-h5.data-v-de604828{padding:10px 10px 15px}.message-input-editor.data-v-de604828{flex:1;display:flex}.message-input .icon.data-v-de604828{margin-left:3px}.message-input-wx-audio-open.data-v-de604828{flex:1}.audio-main-content-line.data-v-de604828{display:flex;flex-direction:row;align-items:center}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../utils/env.js");Math||l();const l=()=>"../../../common/BottomPopup/index.js",u=e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(l,{expose:u,emit:a}){const s=a,n=e.ref(),i=e.ref(),o=e.ref(!1),v=e.ref(),r=e.ref(),d=e.ref(),c=e.ref(!1),f=e.ref({left:0,top:0}),p=e.ref(0),m=e.ref(""),h={userID:e.qt.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};e.Jt.watch(e.o.CONV,{currentConversationID:t=>{var l,u;if(t!==m.value)if(m.value=t,v.value=[],r.value=[],d.value=[],c.value=!1,e.Jt.update(e.o.CUSTOM,"memberList",v.value),null==(l=null==m?void 0:m.value)?void 0:l.startsWith("GROUP")){c.value=!0;const t=null==(u=null==m?void 0:m.value)?void 0:u.substring(5);e.es.switchGroup(t)}else e.es.switchGroup("")}}),e.Jt.watch(e.o.GRP,{currentGroupMemberList:t=>{v.value=t,r.value=[h,...v.value],d.value=r.value,e.Jt.update(e.o.CUSTOM,"memberList",v.value)}});const g=e=>{c.value&&(o.value=e,o.value&&s("onAtListOpen"))};e.i.toggleAtList=g,e.i.handleAtListPosition=e=>{f.value=e},e.i.setCurrentSelectIndex=e=>{var t,l;p.value=e,null==(l=null==(t=i.value)?void 0:t[p.value])||l.scrollIntoView(!1)},e.i.setShowMemberList=e=>{d.value=e},u({toggleAtList:g}),e.watch((()=>[f.value,null==n?void 0:n.value]),(()=>{var e;!t.isH5&&(null==n?void 0:n.value)&&(null==(e=null==n?void 0:n.value)?void 0:e.style)&&(n.value.style.left=f.value.left+"px",n.value.style.top=f.value.top-n.value.clientHeight+"px")}));const C=()=>{o.value=!1,d.value=r.value,f.value={left:0,top:0}},I=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",w=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(l,u)=>e.e({a:!e.unref(t.isPC)},e.unref(t.isPC)?{}:{b:e.t(e.unref(e.Wt).t("TUIChat.选择提醒的人"))},{c:e.f(e.unref(d),((l,u,a)=>({a:I(l),b:e.t(w(l)),c:u,d:e.n(u===e.unref(p)&&"selected"),e:e.o$1((l=>(l=>{var u;if(t.isPC&&e.i.selectItem)e.i.selectItem(l);else if(null==(u=null==d?void 0:d.value)?void 0:u.length){const e=null==d?void 0:d.value[l];s("insertAt",{id:null==e?void 0:e.userID,label:(null==e?void 0:e.nick)||(null==e?void 0:e.userID)})}C()})(u)),u)}))),d:e.n(e.unref(t.isPC)?"message-input-at":"message-input-at-h5"),e:e.o$1(C),f:e.p({show:e.unref(o)})})}}),a=e._export_sfc(u,[["__scopeId","data-v-1600ed76"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../utils/env.js");Math||l();const l=()=>"../../../common/BottomPopup/index.js",u=e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(l,{expose:u,emit:a}){const s=a,n=e.ref(),i=e.ref(),o=e.ref(!1),v=e.ref(),r=e.ref(),d=e.ref(),c=e.ref(!1),f=e.ref({left:0,top:0}),p=e.ref(0),m=e.ref(""),h={userID:e.qt.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};e.Jt.watch(e.o.CONV,{currentConversationID:t=>{var l,u;if(t!==m.value)if(m.value=t,v.value=[],r.value=[],d.value=[],c.value=!1,e.Jt.update(e.o.CUSTOM,"memberList",v.value),null==(l=null==m?void 0:m.value)?void 0:l.startsWith("GROUP")){c.value=!0;const t=null==(u=null==m?void 0:m.value)?void 0:u.substring(5);e.es.switchGroup(t)}else e.es.switchGroup("")}}),e.Jt.watch(e.o.GRP,{currentGroupMemberList:t=>{v.value=t,r.value=[h,...v.value],d.value=r.value,e.Jt.update(e.o.CUSTOM,"memberList",v.value)}});const g=e=>{c.value&&(o.value=e,o.value&&s("onAtListOpen"))};e.i.toggleAtList=g,e.i.handleAtListPosition=e=>{f.value=e},e.i.setCurrentSelectIndex=e=>{var t,l;p.value=e,null==(l=null==(t=i.value)?void 0:t[p.value])||l.scrollIntoView(!1)},e.i.setShowMemberList=e=>{d.value=e},u({toggleAtList:g}),e.watch((()=>[f.value,null==n?void 0:n.value]),(()=>{var e;!t.isH5&&(null==n?void 0:n.value)&&(null==(e=null==n?void 0:n.value)?void 0:e.style)&&(n.value.style.left=f.value.left+"px",n.value.style.top=f.value.top-n.value.clientHeight+"px")}));const C=()=>{o.value=!1,d.value=r.value,f.value={left:0,top:0}},I=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(l,u)=>e.e({a:!e.unref(t.isPC)},e.unref(t.isPC)?{}:{b:e.t(e.unref(e.Wt).t("TUIChat.选择提醒的人"))},{c:e.f(e.unref(d),((l,u,a)=>({a:I(l),b:e.t(b(l)),c:u,d:e.n(u===e.unref(p)&&"selected"),e:e.o$1((l=>(l=>{var u;if(t.isPC&&e.i.selectItem)e.i.selectItem(l);else if(null==(u=null==d?void 0:d.value)?void 0:u.length){const e=null==d?void 0:d.value[l];s("insertAt",{id:null==e?void 0:e.userID,label:(null==e?void 0:e.nick)||(null==e?void 0:e.userID)})}C()})(u)),u)}))),d:e.n(e.unref(t.isPC)?"message-input-at":"message-input-at-h5"),e:e.o$1(C),f:e.p({show:e.unref(o)})})}}),a=e._export_sfc(u,[["__scopeId","data-v-08dbad30"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<bottom-popup wx:if="{{f}}" class="data-v-1600ed76" u-s="{{['d']}}" bindonClose="{{e}}" u-i="1600ed76-0" bind:__l="__l" u-p="{{f}}"><view ref="MessageInputAt" class="{{['data-v-1600ed76', d]}}"><view ref="dialog" class="member-list data-v-1600ed76"><view wx:if="{{a}}" class="member-list-title data-v-1600ed76"><label class="title data-v-1600ed76">{{b}}</label></view><view class="member-list-box data-v-1600ed76"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" ref="memberListItems" class="{{['member-list-box-body', 'data-v-1600ed76', item.d]}}" bindtap="{{item.e}}"><image class="member-list-box-body-avatar data-v-1600ed76" src="{{item.a}}"></image><label class="member-list-box-body-name data-v-1600ed76">{{item.b}}</label></view></view></view></view></bottom-popup>
|
||||
<bottom-popup wx:if="{{f}}" class="data-v-08dbad30" u-s="{{['d']}}" bindonClose="{{e}}" u-i="08dbad30-0" bind:__l="__l" u-p="{{f}}"><view ref="MessageInputAt" class="{{['data-v-08dbad30', d]}}"><view ref="dialog" class="member-list data-v-08dbad30"><view wx:if="{{a}}" class="member-list-title data-v-08dbad30"><label class="title data-v-08dbad30">{{b}}</label></view><view class="member-list-box data-v-08dbad30"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" ref="memberListItems" class="{{['member-list-box-body', 'data-v-08dbad30', item.d]}}" bindtap="{{item.e}}"><image class="member-list-box-body-avatar data-v-08dbad30" src="{{item.a}}"></image><label class="member-list-box-body-name data-v-08dbad30">{{item.b}}</label></view></view></view></view></bottom-popup>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-1600ed76,div.data-v-1600ed76,ul.data-v-1600ed76,ol.data-v-1600ed76,dt.data-v-1600ed76,dd.data-v-1600ed76,li.data-v-1600ed76,dl.data-v-1600ed76,h1.data-v-1600ed76,h2.data-v-1600ed76,h3.data-v-1600ed76,h4.data-v-1600ed76,p.data-v-1600ed76{margin:0;padding:0;font-style:normal}ol.data-v-1600ed76,ul.data-v-1600ed76,li.data-v-1600ed76{list-style:none}img.data-v-1600ed76{border:0;vertical-align:middle;pointer-events:none}body.data-v-1600ed76{color:#000;background:#fff}.clear.data-v-1600ed76{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-1600ed76{color:#000;text-decoration:none;cursor:pointer}a.data-v-1600ed76:hover{text-decoration:none}input.data-v-1600ed76,textarea.data-v-1600ed76{-webkit-user-select:auto;user-select:auto}input.data-v-1600ed76:focus,input.data-v-1600ed76:active,textarea.data-v-1600ed76:focus,textarea.data-v-1600ed76:active{outline:none}.chat-aside.data-v-1600ed76{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-at.data-v-1600ed76{position:fixed;max-width:15rem;max-height:10rem;overflow:hidden auto;background:#fff;box-shadow:0 .06rem .63rem rgba(2,16,43,.15);border-radius:.13rem}.member-list-box-header.data-v-1600ed76{height:2.5rem;padding-top:5px;cursor:pointer}.member-list-box-header.data-v-1600ed76:hover{background:rgba(0,110,255,.1)}.member-list-box span.data-v-1600ed76{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#000;letter-spacing:0;padding:5px}.member-list-box-body.data-v-1600ed76{height:30px;cursor:pointer;display:flex;align-items:center}.member-list-box-body .selected.data-v-1600ed76,.member-list-box-body.data-v-1600ed76:hover{background:rgba(0,110,255,.1)}.member-list-box-body-name.data-v-1600ed76{overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis}.member-list-box-body-avatar.data-v-1600ed76{width:20px;height:20px;padding-left:10px}.member-list-box .selected.data-v-1600ed76{background:rgba(0,110,255,.1)}.message-input-at-h5 .member-list.data-v-1600ed76{height:auto;max-height:500px;width:100%;max-width:100%;background:#fff;border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden}.message-input-at-h5 .member-list-title.data-v-1600ed76{height:-webkit-fit-content;height:fit-content;width:calc(100% - 30px);text-align:center;vertical-align:middle;padding:15px}.message-input-at-h5 .member-list-title .title.data-v-1600ed76{vertical-align:middle;display:inline-block;font-size:16px}.message-input-at-h5 .member-list-title .close.data-v-1600ed76{vertical-align:middle;position:absolute;right:10px;display:inline-block}.message-input-at-h5 .member-list-box.data-v-1600ed76{flex:1;overflow-y:scroll}.message-input-at-h5 .member-list-box-body.data-v-1600ed76{padding:10px}.message-input-at-h5 .member-list-box-body img.data-v-1600ed76{width:26px;height:26px}.message-input-at-h5 .member-list-box-body span.data-v-1600ed76{font-size:14px}
|
||||
body.data-v-08dbad30,div.data-v-08dbad30,ul.data-v-08dbad30,ol.data-v-08dbad30,dt.data-v-08dbad30,dd.data-v-08dbad30,li.data-v-08dbad30,dl.data-v-08dbad30,h1.data-v-08dbad30,h2.data-v-08dbad30,h3.data-v-08dbad30,h4.data-v-08dbad30,p.data-v-08dbad30{margin:0;padding:0;font-style:normal}ol.data-v-08dbad30,ul.data-v-08dbad30,li.data-v-08dbad30{list-style:none}img.data-v-08dbad30{border:0;vertical-align:middle;pointer-events:none}body.data-v-08dbad30{color:#000;background:#fff}.clear.data-v-08dbad30{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-08dbad30{color:#000;text-decoration:none;cursor:pointer}a.data-v-08dbad30:hover{text-decoration:none}input.data-v-08dbad30,textarea.data-v-08dbad30{-webkit-user-select:auto;user-select:auto}input.data-v-08dbad30:focus,input.data-v-08dbad30:active,textarea.data-v-08dbad30:focus,textarea.data-v-08dbad30:active{outline:none}.chat-aside.data-v-08dbad30{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-at.data-v-08dbad30{position:fixed;max-width:15rem;max-height:10rem;overflow:hidden auto;background:#fff;box-shadow:0 .06rem .63rem rgba(2,16,43,.15);border-radius:.13rem}.member-list-box-header.data-v-08dbad30{height:2.5rem;padding-top:5px;cursor:pointer}.member-list-box-header.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box span.data-v-08dbad30{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#000;letter-spacing:0;padding:5px}.member-list-box-body.data-v-08dbad30{height:30px;cursor:pointer;display:flex;align-items:center}.member-list-box-body .selected.data-v-08dbad30,.member-list-box-body.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box-body-name.data-v-08dbad30{overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis}.member-list-box-body-avatar.data-v-08dbad30{width:20px;height:20px;padding-left:10px}.member-list-box .selected.data-v-08dbad30{background:rgba(0,110,255,.1)}.message-input-at-h5 .member-list.data-v-08dbad30{height:auto;max-height:500px;width:100%;max-width:100%;background:#fff;border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden}.message-input-at-h5 .member-list-title.data-v-08dbad30{height:-webkit-fit-content;height:fit-content;width:calc(100% - 30px);text-align:center;vertical-align:middle;padding:15px}.message-input-at-h5 .member-list-title .title.data-v-08dbad30{vertical-align:middle;display:inline-block;font-size:16px}.message-input-at-h5 .member-list-title .close.data-v-08dbad30{vertical-align:middle;position:absolute;right:10px;display:inline-block}.message-input-at-h5 .member-list-box.data-v-08dbad30{flex:1;overflow-y:scroll}.message-input-at-h5 .member-list-box-body.data-v-08dbad30{padding:10px}.message-input-at-h5 .member-list-box-body img.data-v-08dbad30{width:26px;height:26px}.message-input-at-h5 .member-list-box-body span.data-v-08dbad30{font-size:14px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../common/Toast/index.js"),t=require("../../../utils/lodash.js"),u=require("../utils/utils.js"),i=require("../../common/Toast/type.js");Math||a();const a=()=>"../../common/Icon.js",r=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(a,{emit:r}){var l;const s=r,c=a;let d,f=0,v=!1,p=-1,m=!1,h=!1;const g=null==(l=e.i)?void 0:l.getRecorderManager(),T=e.ref(!1),y=e.ref("按住说话"),I=e.ref("正在录音"),j=e.ref(!1),C=e.ref(),E={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function b(){s("changeDisplayType",c.isEnableAudio?"editor":"audio")}function A(e){C.value=e}function R(){q(),$()}function $(){T.value=!1,y.value="按住说话",I.value="正在录音"}function q(e){clearInterval(d),d=void 0,f=0,p=-1,v=!1,(null==e?void 0:e.hasError)||g.stop()}function S(){m&&(h=!0)}function _(){m=!0,g.start(E)}e.onMounted((()=>{g.onStart(z),g.onStop(O),g.onError(P),e.Jt.watch(e.o.CONV,{currentConversation:A})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:A})}));const M=t.throttle((function(e){if(T.value){const n=e.changedTouches[e.changedTouches.length-1].pageY;p<0&&(p=n);const o=p-n;o>150?(y.value="抬起取消",I.value="松开手指 取消发送",v=!0):o>50?(y.value="抬起发送",I.value="继续上滑可取消",v=!1):(y.value="抬起发送",I.value="正在录音",v=!1)}}),100);function x(){m=!1,g.stop()}function z(){if(!m)return h=!0,void g.stop();d=setInterval((()=>{f+=1}),1e3),y.value="抬起发送",T.value=!0}function O(n){var t,a,r,l,s,c;if(h)return h=!1,void R();if(v||!T.value)return void R();clearInterval(d);const p=n.tempFilePath,m=n.duration?n.duration:1e3*f,g=n.fileSize?n.fileSize:48*f/8*1024;if(m<1e3)o.Toast({message:"录音时间太短",type:i.TOAST_TYPE.NORMAL,duration:1500});else{const n={to:(null==(a=null==(t=null==C?void 0:C.value)?void 0:t.groupProfile)?void 0:a.groupID)||(null==(l=null==(r=null==C?void 0:C.value)?void 0:r.userProfile)?void 0:l.userID),conversationType:null==(s=null==C?void 0:C.value)?void 0:s.type,payload:{file:{duration:m,tempFilePath:p,fileSize:g}},needReadReceipt:u.isEnabledMessageReadReceiptGlobal()};null==(c=e.Qt)||c.sendAudioMessage(n)}R()}function P(){q({hasError:!0}),$()}return(o,t)=>e.e({a:e.o$1(b),b:e.p({file:e.unref(n.audioIcon$1),size:"23px",hotAreaSize:"3px"}),c:c.isEnableAudio},c.isEnableAudio?e.e({d:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(y)}`)),e:e.unref(T)},e.unref(T)?{f:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(I)}`))}:{},{g:e.o$1(S),h:e.o$1(_),i:e.o$1(((...n)=>e.unref(M)&&e.unref(M)(...n))),j:e.o$1(x)}):{},{k:e.unref(j)?1:""})}}),l=e._export_sfc(r,[["__scopeId","data-v-fc536242"]]);wx.createComponent(l);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../common/Toast/index.js"),t=require("../../../utils/lodash.js"),u=require("../utils/utils.js"),i=require("../../common/Toast/type.js");Math||a();const a=()=>"../../common/Icon.js",r=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(a,{emit:r}){var l;const s=r,c=a;let d,f=0,v=!1,p=-1,m=!1,h=!1;const g=null==(l=e.i)?void 0:l.getRecorderManager(),T=e.ref(!1),y=e.ref("按住说话"),I=e.ref("正在录音"),j=e.ref(!1),C=e.ref(),E={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function b(){s("changeDisplayType",c.isEnableAudio?"editor":"audio")}function A(e){C.value=e}function R(){q(),$()}function $(){T.value=!1,y.value="按住说话",I.value="正在录音"}function q(e){clearInterval(d),d=void 0,f=0,p=-1,v=!1,(null==e?void 0:e.hasError)||g.stop()}function S(){m&&(h=!0)}function _(){m=!0,g.start(E)}e.onMounted((()=>{g.onStart(z),g.onStop(O),g.onError(P),e.Jt.watch(e.o.CONV,{currentConversation:A})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:A})}));const M=t.throttle((function(e){if(T.value){const n=e.changedTouches[e.changedTouches.length-1].pageY;p<0&&(p=n);const o=p-n;o>150?(y.value="抬起取消",I.value="松开手指 取消发送",v=!0):o>50?(y.value="抬起发送",I.value="继续上滑可取消",v=!1):(y.value="抬起发送",I.value="正在录音",v=!1)}}),100);function x(){m=!1,g.stop()}function z(){if(!m)return h=!0,void g.stop();d=setInterval((()=>{f+=1}),1e3),y.value="抬起发送",T.value=!0}function O(n){var t,a,r,l,s,c;if(h)return h=!1,void R();if(v||!T.value)return void R();clearInterval(d);const p=n.tempFilePath,m=n.duration?n.duration:1e3*f,g=n.fileSize?n.fileSize:48*f/8*1024;if(m<1e3)o.Toast({message:"录音时间太短",type:i.TOAST_TYPE.NORMAL,duration:1500});else{const n={to:(null==(a=null==(t=null==C?void 0:C.value)?void 0:t.groupProfile)?void 0:a.groupID)||(null==(l=null==(r=null==C?void 0:C.value)?void 0:r.userProfile)?void 0:l.userID),conversationType:null==(s=null==C?void 0:C.value)?void 0:s.type,payload:{file:{duration:m,tempFilePath:p,fileSize:g}},needReadReceipt:u.isEnabledMessageReadReceiptGlobal()};null==(c=e.Qt)||c.sendAudioMessage(n)}R()}function P(){q({hasError:!0}),$()}return(o,t)=>e.e({a:e.o$1(b),b:e.p({file:e.unref(n.audioIcon$1),size:"23px",hotAreaSize:"3px"}),c:c.isEnableAudio},c.isEnableAudio?e.e({d:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(y)}`)),e:e.unref(T)},e.unref(T)?{f:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(I)}`))}:{},{g:e.o$1(S),h:e.o$1(_),i:e.o$1(((...n)=>e.unref(M)&&e.unref(M)(...n))),j:e.o$1(x)}):{},{k:e.unref(j)?1:""})}}),l=e._export_sfc(r,[["__scopeId","data-v-32f4d289"]]);wx.createComponent(l);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-fc536242', 'message-input-audio', k && 'message-input-audio-open']}}"><icon wx:if="{{b}}" class="audio-message-icon data-v-fc536242" bindonClick="{{a}}" u-i="fc536242-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="audio-input-touch-bar data-v-fc536242" bindtouchstart="{{g}}" bindlongpress="{{h}}" bindtouchmove="{{i}}" bindtouchend="{{j}}"><label class="data-v-fc536242">{{d}}</label><view wx:if="{{e}}" class="record-modal data-v-fc536242"><view class="red-mask data-v-fc536242"/><view class="float-element moving-slider data-v-fc536242"/><view class="float-element modal-title data-v-fc536242">{{f}}</view></view></view></view>
|
||||
<view class="{{['data-v-32f4d289', 'message-input-audio', k && 'message-input-audio-open']}}"><icon wx:if="{{b}}" class="audio-message-icon data-v-32f4d289" bindonClick="{{a}}" u-i="32f4d289-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="audio-input-touch-bar data-v-32f4d289" bindtouchstart="{{g}}" bindlongpress="{{h}}" bindtouchmove="{{i}}" bindtouchend="{{j}}"><label class="data-v-32f4d289">{{d}}</label><view wx:if="{{e}}" class="record-modal data-v-32f4d289"><view class="red-mask data-v-32f4d289"/><view class="float-element moving-slider data-v-32f4d289"/><view class="float-element modal-title data-v-32f4d289">{{f}}</view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-fc536242,div.data-v-fc536242,ul.data-v-fc536242,ol.data-v-fc536242,dt.data-v-fc536242,dd.data-v-fc536242,li.data-v-fc536242,dl.data-v-fc536242,h1.data-v-fc536242,h2.data-v-fc536242,h3.data-v-fc536242,h4.data-v-fc536242,p.data-v-fc536242{margin:0;padding:0;font-style:normal}ol.data-v-fc536242,ul.data-v-fc536242,li.data-v-fc536242{list-style:none}img.data-v-fc536242{border:0;vertical-align:middle;pointer-events:none}body.data-v-fc536242{color:#000;background:#fff}.clear.data-v-fc536242{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-fc536242{color:#000;text-decoration:none;cursor:pointer}a.data-v-fc536242:hover{text-decoration:none}input.data-v-fc536242,textarea.data-v-fc536242{-webkit-user-select:auto;user-select:auto}input.data-v-fc536242:focus,input.data-v-fc536242:active,textarea.data-v-fc536242:focus,textarea.data-v-fc536242:active{outline:none}.chat-aside.data-v-fc536242{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-audio.data-v-fc536242{display:flex;flex-direction:row;align-items:center}.message-input-audio .audio-message-icon.data-v-fc536242{margin-right:3px}.message-input-audio .audio-input-touch-bar.data-v-fc536242{height:39px;flex:1;border-radius:10px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.message-input-audio .audio-input-touch-bar .record-modal.data-v-fc536242{height:300rpx;width:60vw;background-color:rgba(0,0,0,.8);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;border-radius:24rpx;display:flex;flex-direction:column;overflow:hidden}.message-input-audio .audio-input-touch-bar .record-modal .red-mask.data-v-fc536242{position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,62,72,.5);opacity:0;transition:opacity 10ms linear;z-index:1}.message-input-audio .audio-input-touch-bar .record-modal .moving-slider.data-v-fc536242{margin:10vw;width:40rpx;height:16rpx;border-radius:4rpx;background-color:#006fff;animation:loading-fc536242 1s ease-in-out infinite alternate;z-index:2}.message-input-audio .audio-input-touch-bar .record-modal .float-element.data-v-fc536242{position:relative;z-index:2}@keyframes loading-fc536242{0%{transform:translate(0)}to{transform:translate(30vw);background-color:#f5634a;width:40px}}.message-input-audio .audio-input-touch-bar .modal-title.data-v-fc536242{text-align:center;color:#fff}.message-input-audio-open.data-v-fc536242{flex:1}
|
||||
body.data-v-32f4d289,div.data-v-32f4d289,ul.data-v-32f4d289,ol.data-v-32f4d289,dt.data-v-32f4d289,dd.data-v-32f4d289,li.data-v-32f4d289,dl.data-v-32f4d289,h1.data-v-32f4d289,h2.data-v-32f4d289,h3.data-v-32f4d289,h4.data-v-32f4d289,p.data-v-32f4d289{margin:0;padding:0;font-style:normal}ol.data-v-32f4d289,ul.data-v-32f4d289,li.data-v-32f4d289{list-style:none}img.data-v-32f4d289{border:0;vertical-align:middle;pointer-events:none}body.data-v-32f4d289{color:#000;background:#fff}.clear.data-v-32f4d289{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-32f4d289{color:#000;text-decoration:none;cursor:pointer}a.data-v-32f4d289:hover{text-decoration:none}input.data-v-32f4d289,textarea.data-v-32f4d289{-webkit-user-select:auto;user-select:auto}input.data-v-32f4d289:focus,input.data-v-32f4d289:active,textarea.data-v-32f4d289:focus,textarea.data-v-32f4d289:active{outline:none}.chat-aside.data-v-32f4d289{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-audio.data-v-32f4d289{display:flex;flex-direction:row;align-items:center}.message-input-audio .audio-message-icon.data-v-32f4d289{margin-right:3px}.message-input-audio .audio-input-touch-bar.data-v-32f4d289{height:39px;flex:1;border-radius:10px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.message-input-audio .audio-input-touch-bar .record-modal.data-v-32f4d289{height:300rpx;width:60vw;background-color:rgba(0,0,0,.8);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;border-radius:24rpx;display:flex;flex-direction:column;overflow:hidden}.message-input-audio .audio-input-touch-bar .record-modal .red-mask.data-v-32f4d289{position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,62,72,.5);opacity:0;transition:opacity 10ms linear;z-index:1}.message-input-audio .audio-input-touch-bar .record-modal .moving-slider.data-v-32f4d289{margin:10vw;width:40rpx;height:16rpx;border-radius:4rpx;background-color:#006fff;animation:loading-32f4d289 1s ease-in-out infinite alternate;z-index:2}.message-input-audio .audio-input-touch-bar .record-modal .float-element.data-v-32f4d289{position:relative;z-index:2}@keyframes loading-32f4d289{0%{transform:translate(0)}to{transform:translate(30vw);background-color:#f5634a;width:40px}}.message-input-audio .audio-input-touch-bar .modal-title.data-v-32f4d289{text-align:center;color:#fff}.message-input-audio-open.data-v-32f4d289{flex:1}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../utils/conversationDraft.js"),l=require("../emoji-config/index.js"),n=require("../../../utils/env.js"),a=require("../utils/sendMessage.js"),o=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(o,{expose:u,emit:i}){const r=o,s=i,d=e.ref("");e.ref();const v=e.ref(!0),c=e.ref(!0),f=new Map,p=e.ref(),m=e.ref(""),g=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:T}),e.Jt.watch(e.o.CHAT,{quoteMessage:b}),e.index.$on("insert-emoji",(e=>{var t;d.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),e.index.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&t.DraftManager.setStore(m.value,d.value,d.value,g.value),e.index.$off("insertEmoji"),e.index.$off("send-message-in-emoji-picker"),e.Jt.unwatch(e.o.CONV,{currentConversation:T}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:b}),v.value=!0,p.value=null,m.value="",g.value=null,j()}));const h=()=>{const e=y();j(),a.sendMessages(e,p.value)},y=()=>{let e=d.value;e=l.transformTextWithEmojiNamesToKeys(e);const t=[];null==f||f.forEach(((l,n)=>{(null==e?void 0:e.includes("@"+l))&&t.push(n)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},j=()=>{d.value="",c.value=!0,null==f||f.clear()},x=e=>{d.value=e},M=()=>{v.value=!0},C=e=>{var t;v.value=!1,s("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},q=t=>{var l,n;const a=null==(l=null==t?void 0:t.detail)?void 0:l.value;(()=>{var e;c.value=!(null==(e=null==d?void 0:d.value)?void 0:e.length)})(),r.isGroup&&(a.endsWith("@")||a.endsWith("@\n"))&&(null==(n=e.i)||n.hideKeyboard(),s("onAt",!0))};function T(e){const l=m.value;p.value=e,m.value=null==e?void 0:e.conversationID,l!==m.value&&(l&&t.DraftManager.setStore(l,d.value,d.value,g.value),j(),m.value&&t.DraftManager.getStore(m.value,x))}function b(e){g.value=e}return e.watch((()=>[c.value,v.value]),((e,t)=>{e!==t&&s("onTyping",c.value,v.value)}),{immediate:!0,deep:!0}),u({insertAt:e=>{(null==f?void 0:f.has(null==e?void 0:e.id))||null==f||f.set(null==e?void 0:e.id,null==e?void 0:e.label),d.value+=null==e?void 0:e.label},resetEditor:j,setEditorContent:x,getEditorContent:y}),(t,l)=>e.e({a:r.isMuted},r.isMuted?{b:e.t(r.muteText)}:{},{c:r.placeholder,d:e.o$1(h),e:e.o$1([t=>e.isRef(d)?d.value=t.detail.value:null,q]),f:e.o$1(M),g:e.o$1(C),h:e.unref(d),i:e.unref(n.isPC)?"":1})}}),u=e._export_sfc(o,[["__scopeId","data-v-5853d315"]]);wx.createComponent(u);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../utils/conversationDraft.js"),l=require("../emoji-config/index.js"),n=require("../../../utils/env.js"),a=require("../utils/sendMessage.js"),o=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(o,{expose:u,emit:i}){const r=o,s=i,d=e.ref("");e.ref();const v=e.ref(!0),c=e.ref(!0),f=new Map,p=e.ref(),m=e.ref(""),g=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:T}),e.Jt.watch(e.o.CHAT,{quoteMessage:b}),e.index.$on("insert-emoji",(e=>{var t;d.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),e.index.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&t.DraftManager.setStore(m.value,d.value,d.value,g.value),e.index.$off("insertEmoji"),e.index.$off("send-message-in-emoji-picker"),e.Jt.unwatch(e.o.CONV,{currentConversation:T}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:b}),v.value=!0,p.value=null,m.value="",g.value=null,j()}));const h=()=>{const e=y();j(),a.sendMessages(e,p.value)},y=()=>{let e=d.value;e=l.transformTextWithEmojiNamesToKeys(e);const t=[];null==f||f.forEach(((l,n)=>{(null==e?void 0:e.includes("@"+l))&&t.push(n)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},j=()=>{d.value="",c.value=!0,null==f||f.clear()},x=e=>{d.value=e},M=()=>{v.value=!0},C=e=>{var t;v.value=!1,s("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},q=t=>{var l,n;const a=null==(l=null==t?void 0:t.detail)?void 0:l.value;(()=>{var e;c.value=!(null==(e=null==d?void 0:d.value)?void 0:e.length)})(),r.isGroup&&(a.endsWith("@")||a.endsWith("@\n"))&&(null==(n=e.i)||n.hideKeyboard(),s("onAt",!0))};function T(e){const l=m.value;p.value=e,m.value=null==e?void 0:e.conversationID,l!==m.value&&(l&&t.DraftManager.setStore(l,d.value,d.value,g.value),j(),m.value&&t.DraftManager.getStore(m.value,x))}function b(e){g.value=e}return e.watch((()=>[c.value,v.value]),((e,t)=>{e!==t&&s("onTyping",c.value,v.value)}),{immediate:!0,deep:!0}),u({insertAt:e=>{(null==f?void 0:f.has(null==e?void 0:e.id))||null==f||f.set(null==e?void 0:e.id,null==e?void 0:e.label),d.value+=null==e?void 0:e.label},resetEditor:j,setEditorContent:x,getEditorContent:y}),(t,l)=>e.e({a:r.isMuted},r.isMuted?{b:e.t(r.muteText)}:{},{c:r.placeholder,d:e.o$1(h),e:e.o$1([t=>e.isRef(d)?d.value=t.detail.value:null,q]),f:e.o$1(M),g:e.o$1(C),h:e.unref(d),i:e.unref(n.isPC)?"":1})}}),u=e._export_sfc(o,[["__scopeId","data-v-4a88add0"]]);wx.createComponent(u);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-5853d315', 'message-input-container', i && 'message-input-container-h5']}}"><view wx:if="{{a}}" class="message-input-mute data-v-5853d315">{{b}}</view><input id="editor" ref="inputRef" adjust-position="{{true}}" cursor-spacing="20" confirm-type="send" confirm-hold="{{true}}" maxlength="140" type="text" placeholder-class="input-placeholder" class="message-input-area data-v-5853d315" placeholder="{{c}}" auto-blur bindconfirm="{{d}}" bindinput="{{e}}" bindblur="{{f}}" bindfocus="{{g}}" value="{{h}}"></input></view>
|
||||
<view class="{{['data-v-4a88add0', 'message-input-container', i && 'message-input-container-h5']}}"><view wx:if="{{a}}" class="message-input-mute data-v-4a88add0">{{b}}</view><input id="editor" ref="inputRef" adjust-position="{{true}}" cursor-spacing="20" confirm-type="send" confirm-hold="{{true}}" maxlength="140" type="text" placeholder-class="input-placeholder" class="message-input-area data-v-4a88add0" placeholder="{{c}}" auto-blur bindconfirm="{{d}}" bindinput="{{e}}" bindblur="{{f}}" bindfocus="{{g}}" value="{{h}}"></input></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-5853d315,div.data-v-5853d315,ul.data-v-5853d315,ol.data-v-5853d315,dt.data-v-5853d315,dd.data-v-5853d315,li.data-v-5853d315,dl.data-v-5853d315,h1.data-v-5853d315,h2.data-v-5853d315,h3.data-v-5853d315,h4.data-v-5853d315,p.data-v-5853d315{margin:0;padding:0;font-style:normal}ol.data-v-5853d315,ul.data-v-5853d315,li.data-v-5853d315{list-style:none}img.data-v-5853d315{border:0;vertical-align:middle;pointer-events:none}body.data-v-5853d315{color:#000;background:#fff}.clear.data-v-5853d315{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-5853d315{color:#000;text-decoration:none;cursor:pointer}a.data-v-5853d315:hover{text-decoration:none}input.data-v-5853d315,textarea.data-v-5853d315{-webkit-user-select:auto;user-select:auto}input.data-v-5853d315:focus,input.data-v-5853d315:active,textarea.data-v-5853d315:focus,textarea.data-v-5853d315:active{outline:none}.chat-aside.data-v-5853d315{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-container.data-v-5853d315{display:flex;flex-direction:column;flex:1;padding:3px 10px 10px;overflow:hidden}.message-input-container-h5.data-v-5853d315{flex:1;height:auto;background:#fff;border-radius:10px;padding:7px 0 7px 10px;font-size:16px!important;max-height:86px}.message-input-container .message-input-mute.data-v-5853d315{flex:1;display:flex;color:#999;font-size:14px;justify-content:center;align-items:center}.message-input-container .message-input-area.data-v-5853d315{flex:1;overflow-y:scroll;min-height:25px}
|
||||
body.data-v-4a88add0,div.data-v-4a88add0,ul.data-v-4a88add0,ol.data-v-4a88add0,dt.data-v-4a88add0,dd.data-v-4a88add0,li.data-v-4a88add0,dl.data-v-4a88add0,h1.data-v-4a88add0,h2.data-v-4a88add0,h3.data-v-4a88add0,h4.data-v-4a88add0,p.data-v-4a88add0{margin:0;padding:0;font-style:normal}ol.data-v-4a88add0,ul.data-v-4a88add0,li.data-v-4a88add0{list-style:none}img.data-v-4a88add0{border:0;vertical-align:middle;pointer-events:none}body.data-v-4a88add0{color:#000;background:#fff}.clear.data-v-4a88add0{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-4a88add0{color:#000;text-decoration:none;cursor:pointer}a.data-v-4a88add0:hover{text-decoration:none}input.data-v-4a88add0,textarea.data-v-4a88add0{-webkit-user-select:auto;user-select:auto}input.data-v-4a88add0:focus,input.data-v-4a88add0:active,textarea.data-v-4a88add0:focus,textarea.data-v-4a88add0:active{outline:none}.chat-aside.data-v-4a88add0{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-container.data-v-4a88add0{display:flex;flex-direction:column;flex:1;padding:3px 10px 10px;overflow:hidden}.message-input-container-h5.data-v-4a88add0{flex:1;height:auto;background:#fff;border-radius:10px;padding:7px 0 7px 10px;font-size:16px!important;max-height:86px}.message-input-container .message-input-mute.data-v-4a88add0{flex:1;display:flex;color:#999;font-size:14px;justify-content:center;align-items:center}.message-input-container .message-input-area.data-v-4a88add0{flex:1;overflow-y:scroll;min-height:25px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-ca3e7582"]]);wx.createComponent(r);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-5f71863a"]]);wx.createComponent(r);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-ca3e7582', 'input-quote-container', f && 'input-quote-container-uni', g && 'input-quote-container-h5']}}"><view class="input-quote-content data-v-ca3e7582"><view class="max-one-line data-v-ca3e7582">{{b}}: {{c}}</view><icon wx:if="{{e}}" class="input-quote-close-icon data-v-ca3e7582" bindonClick="{{d}}" u-i="ca3e7582-0" bind:__l="__l" u-p="{{e}}"/></view></view>
|
||||
<view wx:if="{{a}}" class="{{['data-v-5f71863a', 'input-quote-container', f && 'input-quote-container-uni', g && 'input-quote-container-h5']}}"><view class="input-quote-content data-v-5f71863a"><view class="max-one-line data-v-5f71863a">{{b}}: {{c}}</view><icon wx:if="{{e}}" class="input-quote-close-icon data-v-5f71863a" bindonClick="{{d}}" u-i="5f71863a-0" bind:__l="__l" u-p="{{e}}"/></view></view>
|
||||
@@ -1 +1 @@
|
||||
.input-quote-container-h5.data-v-ca3e7582,.input-quote-container-uni.data-v-ca3e7582,.input-quote-container.data-v-ca3e7582{margin:5px 100px 5px 8px;display:flex;flex:0 1 auto}.input-quote-container-h5 .input-quote-content.data-v-ca3e7582,.input-quote-container-uni .input-quote-content.data-v-ca3e7582,.input-quote-container .input-quote-content.data-v-ca3e7582{display:flex;flex:0 1 auto;background-color:#fafafa;border-radius:8px;padding:12px;font-size:12px;align-items:center;line-height:16px;max-width:100%;box-sizing:border-box;min-width:0}.input-quote-container-h5 .input-quote-content .max-one-line.data-v-ca3e7582,.input-quote-container-uni .input-quote-content .max-one-line.data-v-ca3e7582,.input-quote-container .input-quote-content .max-one-line.data-v-ca3e7582{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-quote-container-h5 .input-quote-close-icon.data-v-ca3e7582,.input-quote-container-uni .input-quote-close-icon.data-v-ca3e7582,.input-quote-container .input-quote-close-icon.data-v-ca3e7582{margin-left:5px;padding:5px}.input-quote-container-uni.data-v-ca3e7582{margin:5px 60px 0 30px}.input-quote-container-h5.data-v-ca3e7582{margin:5px 0 0}
|
||||
.input-quote-container-h5.data-v-5f71863a,.input-quote-container-uni.data-v-5f71863a,.input-quote-container.data-v-5f71863a{margin:5px 100px 5px 8px;display:flex;flex:0 1 auto}.input-quote-container-h5 .input-quote-content.data-v-5f71863a,.input-quote-container-uni .input-quote-content.data-v-5f71863a,.input-quote-container .input-quote-content.data-v-5f71863a{display:flex;flex:0 1 auto;background-color:#fafafa;border-radius:8px;padding:12px;font-size:12px;align-items:center;line-height:16px;max-width:100%;box-sizing:border-box;min-width:0}.input-quote-container-h5 .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container-uni .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container .input-quote-content .max-one-line.data-v-5f71863a{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-quote-container-h5 .input-quote-close-icon.data-v-5f71863a,.input-quote-container-uni .input-quote-close-icon.data-v-5f71863a,.input-quote-container .input-quote-close-icon.data-v-5f71863a{margin-left:5px;padding:5px}.input-quote-container-uni.data-v-5f71863a{margin:5px 60px 0 30px}.input-quote-container-h5.data-v-5f71863a{margin:5px 0 0}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<view class="{{['data-v-cb554d8c', 'tui-chat', C && 'tui-chat-h5']}}" bindtap="{{D}}"><view class="tui-chat-main data-v-cb554d8c"><view wx:if="{{a}}" class="tui-chat-safe-tips data-v-cb554d8c"><label class="data-v-cb554d8c">{{b}}</label><navigator class="data-v-cb554d8c" bindtap="{{d}}">{{c}}</navigator></view><message-group-application wx:if="{{e}}" class="data-v-cb554d8c" key="{{f}}" u-i="cb554d8c-0" bind:__l="__l" u-p="{{g}}"/><scroll-view id="messageScrollList" class="tui-message-list data-v-cb554d8c" scroll-y="true" scroll-top="{{l}}" scroll-into-view="{{m}}" bindscroll="{{n}}"><view wx:if="{{h}}" class="message-more data-v-cb554d8c" bindtap="{{j}}">{{i}}</view><view wx:for="{{k}}" wx:for-item="item" wx:key="at" id="{{item.as}}" class="{{['data-v-cb554d8c', item.av]}}"><message-timestamp wx:if="{{item.b}}" class="data-v-cb554d8c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><view class="message-item data-v-cb554d8c" bindtap="{{item.ar}}"><message-tip wx:if="{{item.c}}" class="data-v-cb554d8c" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"/><view wx:elif="{{item.f}}" id="{{item.X}}" class="message-bubble-container data-v-cb554d8c" bindlongpress="{{item.Y}}" bindtouchstart="{{item.Z}}" bindtouchend="{{item.aa}}" bindmouseover="{{item.ab}}"><message-bubble wx:if="{{item.W}}" class="data-v-cb554d8c" u-s="{{['d']}}" bindresendMessage="{{item.Q}}" bindblinkMessage="{{item.R}}" bindscrollTo="{{item.S}}" bindchangeSelectMessageIDList="{{item.T}}" bindsetReadReceiptPanelVisible="{{item.U}}" u-i="{{item.V}}" bind:__l="__l" u-p="{{item.W}}"><message-text wx:if="{{item.g}}" class="data-v-cb554d8c" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"/><progress-message wx:elif="{{item.j}}" class="data-v-cb554d8c" u-s="{{['d']}}" u-i="{{item.n}}" bind:__l="__l" u-p="{{item.o}}"><message-image wx:if="{{item.m}}" class="data-v-cb554d8c" bindpreviewImage="{{item.k}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{item.m}}"/></progress-message><progress-message wx:elif="{{item.p}}" class="data-v-cb554d8c" u-s="{{['d']}}" u-i="{{item.s}}" bind:__l="__l" u-p="{{item.t}}"><message-video wx:if="{{item.r}}" class="data-v-cb554d8c" u-i="{{item.q}}" bind:__l="__l" u-p="{{item.r}}"/></progress-message><message-audio wx:elif="{{item.v}}" class="data-v-cb554d8c" bindsetAudioPlayed="{{item.w}}" bindgetGlobalAudioContext="{{item.x}}" u-i="{{item.y}}" bind:__l="__l" u-p="{{item.z}}"/><message-record wx:elif="{{item.A}}" class="data-v-cb554d8c" bindassignMessageIDInUniapp="{{item.B}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{item.D}}"/><message-file wx:elif="{{item.E}}" class="data-v-cb554d8c" u-i="{{item.F}}" bind:__l="__l" u-p="{{item.G}}"/><message-face wx:elif="{{item.H}}" class="data-v-cb554d8c" u-i="{{item.I}}" bind:__l="__l" u-p="{{item.J}}"/><message-location wx:elif="{{item.K}}" class="data-v-cb554d8c" u-i="{{item.L}}" bind:__l="__l" u-p="{{item.M}}"/><message-custom wx:elif="{{item.N}}" class="data-v-cb554d8c" u-i="{{item.O}}" bind:__l="__l" u-p="{{item.P}}"/></message-bubble></view><message-plugin wx:elif="{{item.ac}}" class="data-v-cb554d8c" bindresendMessage="{{item.ad}}" bindhandleToggleMessageItem="{{item.ae}}" bindhandleH5LongPress="{{item.af}}" u-i="{{item.ag}}" bind:__l="__l" u-p="{{item.ah}}"/><message-revoked wx:else class="data-v-cb554d8c" bindmessageEdit="{{item.ai}}" u-i="{{item.aj}}" bind:__l="__l" u-p="{{item.ak||''}}"/><message-tool wx:if="{{item.al}}" class="{{['data-v-cb554d8c', 'message-tool', item.am && 'message-tool-out', item.an && 'message-tool-in']}}" bindtoggleMultipleSelectMode="{{item.ao}}" u-i="{{item.ap}}" bind:__l="__l" u-p="{{item.aq}}"/></view></view></scroll-view><scroll-button class="r data-v-cb554d8c" u-r="scrollButtonInstanceRef" bindscrollToLatestMessage="{{p}}" u-i="cb554d8c-18" bind:__l="__l"/><dialog wx:if="{{q}}" class="data-v-cb554d8c" u-s="{{['d']}}" bindsubmit="{{s}}" bindupdateShow="{{t}}" u-i="cb554d8c-19" bind:__l="__l" u-p="{{v}}"><view class="delDialog-title data-v-cb554d8c">{{r}}</view></dialog><read-receipt-panel wx:if="{{w}}" class="data-v-cb554d8c" bindsetReadReceiptPanelVisible="{{x}}" u-i="cb554d8c-20" bind:__l="__l" u-p="{{y}}"/><drawer wx:if="{{B}}" class="data-v-cb554d8c" u-s="{{['d']}}" u-i="cb554d8c-21" bind:__l="__l" u-p="{{B}}"><simple-message-list wx:if="{{A}}" class="data-v-cb554d8c" style="{{'height:' + '100%'}}" bindcloseOverlay="{{z}}" u-i="cb554d8c-22,cb554d8c-21" bind:__l="__l" u-p="{{A}}"/></drawer></view></view>
|
||||
<view class="{{['data-v-6e9cef1b', 'tui-chat', C && 'tui-chat-h5']}}" bindtap="{{D}}"><view class="tui-chat-main data-v-6e9cef1b"><view wx:if="{{a}}" class="tui-chat-safe-tips data-v-6e9cef1b"><label class="data-v-6e9cef1b">{{b}}</label><navigator class="data-v-6e9cef1b" bindtap="{{d}}">{{c}}</navigator></view><message-group-application wx:if="{{e}}" class="data-v-6e9cef1b" key="{{f}}" u-i="6e9cef1b-0" bind:__l="__l" u-p="{{g}}"/><scroll-view id="messageScrollList" class="tui-message-list data-v-6e9cef1b" scroll-y="true" scroll-top="{{l}}" scroll-into-view="{{m}}" bindscroll="{{n}}"><view wx:if="{{h}}" class="message-more data-v-6e9cef1b" bindtap="{{j}}">{{i}}</view><view wx:for="{{k}}" wx:for-item="item" wx:key="at" id="{{item.as}}" class="{{['data-v-6e9cef1b', item.av]}}"><message-timestamp wx:if="{{item.b}}" class="data-v-6e9cef1b" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><view class="message-item data-v-6e9cef1b" bindtap="{{item.ar}}"><message-tip wx:if="{{item.c}}" class="data-v-6e9cef1b" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"/><view wx:elif="{{item.f}}" id="{{item.X}}" class="message-bubble-container data-v-6e9cef1b" bindlongpress="{{item.Y}}" bindtouchstart="{{item.Z}}" bindtouchend="{{item.aa}}" bindmouseover="{{item.ab}}"><message-bubble wx:if="{{item.W}}" class="data-v-6e9cef1b" u-s="{{['d']}}" bindresendMessage="{{item.Q}}" bindblinkMessage="{{item.R}}" bindscrollTo="{{item.S}}" bindchangeSelectMessageIDList="{{item.T}}" bindsetReadReceiptPanelVisible="{{item.U}}" u-i="{{item.V}}" bind:__l="__l" u-p="{{item.W}}"><message-text wx:if="{{item.g}}" class="data-v-6e9cef1b" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"/><progress-message wx:elif="{{item.j}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="{{item.n}}" bind:__l="__l" u-p="{{item.o}}"><message-image wx:if="{{item.m}}" class="data-v-6e9cef1b" bindpreviewImage="{{item.k}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{item.m}}"/></progress-message><progress-message wx:elif="{{item.p}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="{{item.s}}" bind:__l="__l" u-p="{{item.t}}"><message-video wx:if="{{item.r}}" class="data-v-6e9cef1b" u-i="{{item.q}}" bind:__l="__l" u-p="{{item.r}}"/></progress-message><message-audio wx:elif="{{item.v}}" class="data-v-6e9cef1b" bindsetAudioPlayed="{{item.w}}" bindgetGlobalAudioContext="{{item.x}}" u-i="{{item.y}}" bind:__l="__l" u-p="{{item.z}}"/><message-record wx:elif="{{item.A}}" class="data-v-6e9cef1b" bindassignMessageIDInUniapp="{{item.B}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{item.D}}"/><message-file wx:elif="{{item.E}}" class="data-v-6e9cef1b" u-i="{{item.F}}" bind:__l="__l" u-p="{{item.G}}"/><message-face wx:elif="{{item.H}}" class="data-v-6e9cef1b" u-i="{{item.I}}" bind:__l="__l" u-p="{{item.J}}"/><message-location wx:elif="{{item.K}}" class="data-v-6e9cef1b" u-i="{{item.L}}" bind:__l="__l" u-p="{{item.M}}"/><message-custom wx:elif="{{item.N}}" class="data-v-6e9cef1b" u-i="{{item.O}}" bind:__l="__l" u-p="{{item.P}}"/></message-bubble></view><message-plugin wx:elif="{{item.ac}}" class="data-v-6e9cef1b" bindresendMessage="{{item.ad}}" bindhandleToggleMessageItem="{{item.ae}}" bindhandleH5LongPress="{{item.af}}" u-i="{{item.ag}}" bind:__l="__l" u-p="{{item.ah}}"/><message-revoked wx:else class="data-v-6e9cef1b" bindmessageEdit="{{item.ai}}" u-i="{{item.aj}}" bind:__l="__l" u-p="{{item.ak||''}}"/><message-tool wx:if="{{item.al}}" class="{{['data-v-6e9cef1b', 'message-tool', item.am && 'message-tool-out', item.an && 'message-tool-in']}}" bindtoggleMultipleSelectMode="{{item.ao}}" u-i="{{item.ap}}" bind:__l="__l" u-p="{{item.aq}}"/></view></view></scroll-view><scroll-button class="r data-v-6e9cef1b" u-r="scrollButtonInstanceRef" bindscrollToLatestMessage="{{p}}" u-i="6e9cef1b-18" bind:__l="__l"/><dialog wx:if="{{q}}" class="data-v-6e9cef1b" u-s="{{['d']}}" bindsubmit="{{s}}" bindupdateShow="{{t}}" u-i="6e9cef1b-19" bind:__l="__l" u-p="{{v}}"><view class="delDialog-title data-v-6e9cef1b">{{r}}</view></dialog><read-receipt-panel wx:if="{{w}}" class="data-v-6e9cef1b" bindsetReadReceiptPanelVisible="{{x}}" u-i="6e9cef1b-20" bind:__l="__l" u-p="{{y}}"/><drawer wx:if="{{B}}" class="data-v-6e9cef1b" u-s="{{['d']}}" u-i="6e9cef1b-21" bind:__l="__l" u-p="{{B}}"><simple-message-list wx:if="{{A}}" class="data-v-6e9cef1b" style="{{'height:' + '100%'}}" bindcloseOverlay="{{z}}" u-i="6e9cef1b-22,6e9cef1b-21" bind:__l="__l" u-p="{{A}}"/></drawer></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-cb554d8c,div.data-v-cb554d8c,ul.data-v-cb554d8c,ol.data-v-cb554d8c,dt.data-v-cb554d8c,dd.data-v-cb554d8c,li.data-v-cb554d8c,dl.data-v-cb554d8c,h1.data-v-cb554d8c,h2.data-v-cb554d8c,h3.data-v-cb554d8c,h4.data-v-cb554d8c,p.data-v-cb554d8c{margin:0;padding:0;font-style:normal}ol.data-v-cb554d8c,ul.data-v-cb554d8c,li.data-v-cb554d8c{list-style:none}img.data-v-cb554d8c{border:0;vertical-align:middle;pointer-events:none}body.data-v-cb554d8c{color:#000;background:#fff}.clear.data-v-cb554d8c{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-cb554d8c{color:#000;text-decoration:none;cursor:pointer}a.data-v-cb554d8c:hover{text-decoration:none}input.data-v-cb554d8c,textarea.data-v-cb554d8c{-webkit-user-select:auto;user-select:auto}input.data-v-cb554d8c:focus,input.data-v-cb554d8c:active,textarea.data-v-cb554d8c:focus,textarea.data-v-cb554d8c:active{outline:none}.chat-aside.data-v-cb554d8c{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.tui-chat .tui-message-list .message-more.data-v-cb554d8c{color:#999;cursor:pointer}.tui-chat .image-dialog.data-v-cb554d8c{background:rgba(0,0,0,.6)}.tui-chat .image-dialog header.data-v-cb554d8c{background:rgba(0,0,0,.49)}.tui-chat-h5 .tui-chat-header.data-v-cb554d8c,.tui-chat-h5 .tui-chat-footer.data-v-cb554d8c{background:#fff}.tui-chat-h5 .tui-chat-footer .input input.data-v-cb554d8c{background:#f4f5f9}.tui-chat.data-v-cb554d8c{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.tui-chat-main.data-v-cb554d8c{min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column;position:relative}.tui-chat-main .tui-chat-safe-tips.data-v-cb554d8c{padding:12px 20px;background-color:rgba(255,149,0,.1);color:#ff8c39;line-height:18px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;text-align:justify;font-size:12px}.tui-chat-main .tui-chat-safe-tips a.data-v-cb554d8c{color:#006eff;float:right}.tui-chat-main .tui-chat-application-tips.data-v-cb554d8c{text-align:center;width:100%;background:#fce4d3;padding:2px;font-size:12px}.tui-chat-main .application-tips-btn.data-v-cb554d8c{color:#006eff;padding-left:10px}.tui-chat-main .tui-message-list.data-v-cb554d8c{flex:1;height:100%;overflow:hidden auto}.tui-chat-main .tui-message-list .message-more.data-v-cb554d8c{font-size:14px;padding:5px;text-align:center}.tui-chat-main .tui-message-list .to-bottom-tip.data-v-cb554d8c{position:-webkit-sticky;position:sticky;bottom:10px;left:100%;margin-right:15px;width:92px;height:28px;padding:0 5px;background:#fff;border:1px solid #e0e0e0;box-shadow:0 4px 12px rgba(0,0,0,.06);display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:3px;cursor:pointer}.tui-chat-main .tui-message-list .to-bottom-tip-text.data-v-cb554d8c{font-family:PingFangSC-Regular;font-weight:400;font-size:10px;color:#147aff;letter-spacing:0;text-align:center;padding-left:3px}.tui-chat-main .tui-message-list .message-li.data-v-cb554d8c{display:flex;flex-direction:column}.tui-chat-main .tui-message-list .message-li.data-v-cb554d8c:first-child{margin-top:5px}.tui-chat-main .tui-message-list .message-li .message-item.data-v-cb554d8c{display:flex;position:relative;flex-direction:column}.tui-chat-main .tui-message-list .message-li .message-item .message-tool.data-v-cb554d8c{z-index:5;position:absolute;cursor:pointer;transform:translateY(-100%)}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-out.data-v-cb554d8c{right:30px;left:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-in.data-v-cb554d8c{left:30px;right:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-bottom.data-v-cb554d8c{z-index:5;bottom:0;transform:translateY(100%)}.tui-chat-main .tui-message-list .message-li .message-label.data-v-cb554d8c{max-width:50px}.tui-chat-main .tui-message-list .right.data-v-cb554d8c{flex-direction:row-reverse;justify-content:flex-start}.tui-chat .disabled.data-v-cb554d8c{position:relative}.tui-chat .disabled.data-v-cb554d8c:before{content:"";position:absolute;width:100%;height:100%}.image-dialog.data-v-cb554d8c{position:fixed;z-index:5;width:100vw;height:calc(100vh - 63px);top:63px;left:0}.image-dialog header.data-v-cb554d8c{display:flex;justify-content:flex-end;width:100%;box-sizing:border-box;padding:10px}.data-v-cb554d8c::-webkit-scrollbar{width:6px;height:140px;background-color:transparent}.data-v-cb554d8c::-webkit-scrollbar-track{border-radius:10px}.data-v-cb554d8c::-webkit-scrollbar-thumb{border-radius:10px;background-color:#9a999c}.tui-chat-h5.data-v-cb554d8c{flex:1;position:static}.tui-chat-h5 .tui-chat-main .tui-message-list.data-v-cb554d8c{height:100%}.tui-chat-h5 .tui-chat-main .message-more.data-v-cb554d8c{color:#999;cursor:pointer;font-size:14px}.data-v-cb554d8c:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}
|
||||
body.data-v-6e9cef1b,div.data-v-6e9cef1b,ul.data-v-6e9cef1b,ol.data-v-6e9cef1b,dt.data-v-6e9cef1b,dd.data-v-6e9cef1b,li.data-v-6e9cef1b,dl.data-v-6e9cef1b,h1.data-v-6e9cef1b,h2.data-v-6e9cef1b,h3.data-v-6e9cef1b,h4.data-v-6e9cef1b,p.data-v-6e9cef1b{margin:0;padding:0;font-style:normal}ol.data-v-6e9cef1b,ul.data-v-6e9cef1b,li.data-v-6e9cef1b{list-style:none}img.data-v-6e9cef1b{border:0;vertical-align:middle;pointer-events:none}body.data-v-6e9cef1b{color:#000;background:#fff}.clear.data-v-6e9cef1b{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-6e9cef1b{color:#000;text-decoration:none;cursor:pointer}a.data-v-6e9cef1b:hover{text-decoration:none}input.data-v-6e9cef1b,textarea.data-v-6e9cef1b{-webkit-user-select:auto;user-select:auto}input.data-v-6e9cef1b:focus,input.data-v-6e9cef1b:active,textarea.data-v-6e9cef1b:focus,textarea.data-v-6e9cef1b:active{outline:none}.chat-aside.data-v-6e9cef1b{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.tui-chat .tui-message-list .message-more.data-v-6e9cef1b{color:#999;cursor:pointer}.tui-chat .image-dialog.data-v-6e9cef1b{background:rgba(0,0,0,.6)}.tui-chat .image-dialog header.data-v-6e9cef1b{background:rgba(0,0,0,.49)}.tui-chat-h5 .tui-chat-header.data-v-6e9cef1b,.tui-chat-h5 .tui-chat-footer.data-v-6e9cef1b{background:#fff}.tui-chat-h5 .tui-chat-footer .input input.data-v-6e9cef1b{background:#f4f5f9}.tui-chat.data-v-6e9cef1b{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.tui-chat-main.data-v-6e9cef1b{min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column;position:relative}.tui-chat-main .tui-chat-safe-tips.data-v-6e9cef1b{padding:12px 20px;background-color:rgba(255,149,0,.1);color:#ff8c39;line-height:18px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;text-align:justify;font-size:12px}.tui-chat-main .tui-chat-safe-tips a.data-v-6e9cef1b{color:#006eff;float:right}.tui-chat-main .tui-chat-application-tips.data-v-6e9cef1b{text-align:center;width:100%;background:#fce4d3;padding:2px;font-size:12px}.tui-chat-main .application-tips-btn.data-v-6e9cef1b{color:#006eff;padding-left:10px}.tui-chat-main .tui-message-list.data-v-6e9cef1b{flex:1;height:100%;overflow:hidden auto}.tui-chat-main .tui-message-list .message-more.data-v-6e9cef1b{font-size:14px;padding:5px;text-align:center}.tui-chat-main .tui-message-list .to-bottom-tip.data-v-6e9cef1b{position:-webkit-sticky;position:sticky;bottom:10px;left:100%;margin-right:15px;width:92px;height:28px;padding:0 5px;background:#fff;border:1px solid #e0e0e0;box-shadow:0 4px 12px rgba(0,0,0,.06);display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:3px;cursor:pointer}.tui-chat-main .tui-message-list .to-bottom-tip-text.data-v-6e9cef1b{font-family:PingFangSC-Regular;font-weight:400;font-size:10px;color:#147aff;letter-spacing:0;text-align:center;padding-left:3px}.tui-chat-main .tui-message-list .message-li.data-v-6e9cef1b{display:flex;flex-direction:column}.tui-chat-main .tui-message-list .message-li.data-v-6e9cef1b:first-child{margin-top:5px}.tui-chat-main .tui-message-list .message-li .message-item.data-v-6e9cef1b{display:flex;position:relative;flex-direction:column}.tui-chat-main .tui-message-list .message-li .message-item .message-tool.data-v-6e9cef1b{z-index:5;position:absolute;cursor:pointer;transform:translateY(-100%)}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-out.data-v-6e9cef1b{right:30px;left:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-in.data-v-6e9cef1b{left:30px;right:auto}.tui-chat-main .tui-message-list .message-li .message-item .message-tool-bottom.data-v-6e9cef1b{z-index:5;bottom:0;transform:translateY(100%)}.tui-chat-main .tui-message-list .message-li .message-label.data-v-6e9cef1b{max-width:50px}.tui-chat-main .tui-message-list .right.data-v-6e9cef1b{flex-direction:row-reverse;justify-content:flex-start}.tui-chat .disabled.data-v-6e9cef1b{position:relative}.tui-chat .disabled.data-v-6e9cef1b:before{content:"";position:absolute;width:100%;height:100%}.image-dialog.data-v-6e9cef1b{position:fixed;z-index:5;width:100vw;height:calc(100vh - 63px);top:63px;left:0}.image-dialog header.data-v-6e9cef1b{display:flex;justify-content:flex-end;width:100%;box-sizing:border-box;padding:10px}.data-v-6e9cef1b::-webkit-scrollbar{width:6px;height:140px;background-color:transparent}.data-v-6e9cef1b::-webkit-scrollbar-track{border-radius:10px}.data-v-6e9cef1b::-webkit-scrollbar-thumb{border-radius:10px;background-color:#9a999c}.tui-chat-h5.data-v-6e9cef1b{flex:1;position:static}.tui-chat-h5 .tui-chat-main .tui-message-list.data-v-6e9cef1b{height:100%}.tui-chat-h5 .tui-chat-main .message-more.data-v-6e9cef1b{color:#999;cursor:pointer;font-size:14px}.data-v-6e9cef1b:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../common/Toast/index.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",u=e.defineComponent({__name:"message-audio",props:{broadcastNewAudioSrc:{},messageItem:{default:()=>({})},content:{default:()=>({})}},emits:["getGlobalAudioContext","setAudioPlayed"],setup(n,{emit:u}){const a=u,s=n,c=new Map,r=e.ref(!1);function i(){if(a("getGlobalAudioContext",c,{newAudioSrc:s.content.url}),s.messageItem.hasRiskContent||!s.content.url)return void o.Toast({message:"暂不支持播放"});v()||(c.set("audio",e.index.createInnerAudioContext()),e.index.setInnerAudioOption({obeyMuteSwitch:!1}),function(){const e=v();if(!e)return;e.src=s.content.url,r.value=!1,e.onPlay(l),e.onStop(m),e.onEnded(f),e.onError(p)}()),r.value?d():function(){const e=v();e&&(e.play(),"in"===s.messageItem.flow&&a("setAudioPlayed",s.messageItem.ID))}()}function d(){const e=v();if(e)try{e.stop()}catch{}}function l(){r.value=!0}function m(){r.value=!1}function f(){r.value=!1}function p(){console.warn("audio played error")}function v(){return c.get("audio")}return e.onUnmounted((()=>{var e;const o=v();r.value&&d(),null==(e=null==o?void 0:o.destroy)||e.call(o),c.delete("audio")})),e.watch((()=>s.broadcastNewAudioSrc),(e=>{e!==s.content.url&&r.value&&(d(),r.value=!1)})),(o,n)=>({a:e.unref(r)?1:"",b:e.p({width:"15px",height:"20px",file:e.unref(t.audioIcon)}),c:e.t(s.content.second||1),d:5*s.content.second+"px",e:"out"===s.messageItem.flow?1:"",f:e.o$1(i)})}}),a=e._export_sfc(u,[["__scopeId","data-v-78385bf6"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../common/Toast/index.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",u=e.defineComponent({__name:"message-audio",props:{broadcastNewAudioSrc:{},messageItem:{default:()=>({})},content:{default:()=>({})}},emits:["getGlobalAudioContext","setAudioPlayed"],setup(n,{emit:u}){const a=u,s=n,c=new Map,r=e.ref(!1);function i(){if(a("getGlobalAudioContext",c,{newAudioSrc:s.content.url}),s.messageItem.hasRiskContent||!s.content.url)return void o.Toast({message:"暂不支持播放"});v()||(c.set("audio",e.index.createInnerAudioContext()),e.index.setInnerAudioOption({obeyMuteSwitch:!1}),function(){const e=v();if(!e)return;e.src=s.content.url,r.value=!1,e.onPlay(l),e.onStop(m),e.onEnded(f),e.onError(p)}()),r.value?d():function(){const e=v();e&&(e.play(),"in"===s.messageItem.flow&&a("setAudioPlayed",s.messageItem.ID))}()}function d(){const e=v();if(e)try{e.stop()}catch{}}function l(){r.value=!0}function m(){r.value=!1}function f(){r.value=!1}function p(){console.warn("audio played error")}function v(){return c.get("audio")}return e.onUnmounted((()=>{var e;const o=v();r.value&&d(),null==(e=null==o?void 0:o.destroy)||e.call(o),c.delete("audio")})),e.watch((()=>s.broadcastNewAudioSrc),(e=>{e!==s.content.url&&r.value&&(d(),r.value=!1)})),(o,n)=>({a:e.unref(r)?1:"",b:e.p({width:"15px",height:"20px",file:e.unref(t.audioIcon)}),c:e.t(s.content.second||1),d:5*s.content.second+"px",e:"out"===s.messageItem.flow?1:"",f:e.o$1(i)})}}),a=e._export_sfc(u,[["__scopeId","data-v-2cea66cb"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-78385bf6', 'message-audio', e && 'reserve']}}" bindtap="{{f}}"><view class="audio-icon-container data-v-78385bf6"><view class="{{['data-v-78385bf6', 'mask', a && 'play']}}"/><icon wx:if="{{b}}" class="icon data-v-78385bf6" u-i="78385bf6-0" bind:__l="__l" u-p="{{b}}"/></view><view class="time data-v-78385bf6" style="{{'width:' + d}}">{{c}} " </view></view>
|
||||
<view class="{{['data-v-2cea66cb', 'message-audio', e && 'reserve']}}" bindtap="{{f}}"><view class="audio-icon-container data-v-2cea66cb"><view class="{{['data-v-2cea66cb', 'mask', a && 'play']}}"/><icon wx:if="{{b}}" class="icon data-v-2cea66cb" u-i="2cea66cb-0" bind:__l="__l" u-p="{{b}}"/></view><view class="time data-v-2cea66cb" style="{{'width:' + d}}">{{c}} " </view></view>
|
||||
@@ -1 +1 @@
|
||||
.data-v-78385bf6:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}.message-audio.data-v-78385bf6{flex-direction:row;flex:0 0 auto;cursor:pointer;-webkit-tap-highlight-color:transparent;overflow:hidden}.message-audio .audio-icon-container.data-v-78385bf6{width:16px;height:20px;position:relative;flex:0 0 auto;flex-direction:row;justify-content:flex-end;margin:0 7px 0 0;overflow:hidden}.message-audio .audio-icon-container .mask.data-v-78385bf6{position:absolute;z-index:1;width:105%;height:105%;left:0;top:0;transform-origin:right;transform:scaleX(0);background-color:#fbfbfb}.message-audio .audio-icon-container .mask.play.data-v-78385bf6{animation:audio-play-78385bf6 2s steps(1,end) infinite}@keyframes audio-play-78385bf6{0%{transform:scaleX(.7056)}50%{transform:scaleX(.3953)}75%{transform:scaleX(0);visibility:hidden}to{transform:scaleX(0);visibility:hidden}}.message-audio .time.data-v-78385bf6{max-width:165px;min-width:20px;text-align:start;white-space:nowrap}.message-audio.reserve.data-v-78385bf6{flex-direction:row-reverse}.message-audio.reserve .time.data-v-78385bf6{text-align:end}.message-audio.reserve .audio-icon-container.data-v-78385bf6{margin:0 0 0 7px}.message-audio.reserve .audio-icon-container .mask.data-v-78385bf6{transform-origin:left;background-color:#dceafd}.message-audio.reserve .icon.data-v-78385bf6{transform:rotate(180deg)}
|
||||
.data-v-2cea66cb:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}.message-audio.data-v-2cea66cb{flex-direction:row;flex:0 0 auto;cursor:pointer;-webkit-tap-highlight-color:transparent;overflow:hidden}.message-audio .audio-icon-container.data-v-2cea66cb{width:16px;height:20px;position:relative;flex:0 0 auto;flex-direction:row;justify-content:flex-end;margin:0 7px 0 0;overflow:hidden}.message-audio .audio-icon-container .mask.data-v-2cea66cb{position:absolute;z-index:1;width:105%;height:105%;left:0;top:0;transform-origin:right;transform:scaleX(0);background-color:#fbfbfb}.message-audio .audio-icon-container .mask.play.data-v-2cea66cb{animation:audio-play-2cea66cb 2s steps(1,end) infinite}@keyframes audio-play-2cea66cb{0%{transform:scaleX(.7056)}50%{transform:scaleX(.3953)}75%{transform:scaleX(0);visibility:hidden}to{transform:scaleX(0);visibility:hidden}}.message-audio .time.data-v-2cea66cb{max-width:165px;min-width:20px;text-align:start;white-space:nowrap}.message-audio.reserve.data-v-2cea66cb{flex-direction:row-reverse}.message-audio.reserve .time.data-v-2cea66cb{text-align:end}.message-audio.reserve .audio-icon-container.data-v-2cea66cb{margin:0 0 0 7px}.message-audio.reserve .audio-icon-container .mask.data-v-2cea66cb{transform-origin:left;background-color:#dceafd}.message-audio.reserve .icon.data-v-2cea66cb{transform:rotate(180deg)}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../../common/assets.js"),s=require("../../utils/utils.js"),t=require("../../../../utils/env.js");Math||(f+l+u+o+r+i+a)();const u=()=>"../../../common/Icon.js",o=()=>"./read-status/index.js",a=()=>"./message-quote/index.js",l=()=>"../../../common/Avatar/index.js",r=()=>"./message-translate/index.js",i=()=>"./message-convert/index.js",f=()=>"../../../common/RadioSelect/index.js",c=e.defineComponent({__name:"message-bubble",props:{messageItem:{default:()=>({})},content:{default:()=>({})},classNameList:{default:()=>[]},blinkMessageIDList:{default:()=>[]},isMultipleSelectMode:{type:Boolean,default:!1},isAudioPlayed:{type:Boolean,default:!1},multipleSelectedMessageIDList:{default:()=>[]}},emits:["resendMessage","blinkMessage","setReadReceiptPanelVisible","changeSelectMessageIDList","scrollTo"],setup(u,{emit:o}){const a=o,l=u,r=e.qt.TYPES,i=[r.MSG_LOCATION,r.MSG_TEXT,r.MSG_CUSTOM,r.MSG_MERGER,r.MSG_FACE],{blinkMessageIDList:f,messageItem:c}=e.toRefs(l),d=e.computed((()=>l.multipleSelectedMessageIDList.includes(c.value.ID))),p=e.computed((()=>"in"===c.value.flow&&"success"===c.value.status&&c.value.type===r.MSG_AUDIO&&!l.isAudioPlayed)),m=e.computed((()=>["message-bubble",d.value?"multiple-selected":"",...l.classNameList])),M=e.computed((()=>[r.MSG_IMAGE,r.MSG_VIDEO,r.MSG_MERGER].includes(c.value.type))),v=e.computed((()=>{let n=e.Wt.t("TUIChat.涉及敏感内容")+", ";return"out"===c.value.flow?n+=e.Wt.t("TUIChat.发送失败"):n+=e.Wt.t(c.value.type===r.MSG_AUDIO?"TUIChat.无法收听":"TUIChat.无法查看"),n})),g=e.computed((()=>{var e,n;return!!(null==(e=c.value)?void 0:e.ID)&&(null==(n=null==f?void 0:f.value)?void 0:n.includes(c.value.ID))}));function I(e){a("changeSelectMessageIDList",{type:e?"add":"remove",messageID:c.value.ID})}function S(e){a("blinkMessage",e)}function h(e){a("scrollTo",e)}function G(){a("setReadReceiptPanelVisible",!0,c.value)}return(u,o)=>e.e({a:l.isMultipleSelectMode},l.isMultipleSelectMode?{b:e.o$1(I),c:e.p({isSelected:e.unref(d)})}:{},{d:e.p({useSkeletonAnimation:!0,url:e.unref(c).avatar||""}),e:"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType},"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType?{f:e.t(l.content.showName)}:{},{g:(e.unref(c).type===e.unref(r).MSG_IMAGE||e.unref(c).type===e.unref(r).MSG_VIDEO)&&e.unref(c).hasRiskContent},e.unref(c).type!==e.unref(r).MSG_IMAGE&&e.unref(c).type!==e.unref(r).MSG_VIDEO||!e.unref(c).hasRiskContent?{}:{h:e.n(!e.unref(t.isPC)&&"message-risk-replace-h5"),i:"https://web.sdk.qcloud.com/component/TUIKit/assets/has_risk_default.png"},{j:e.unref(c).hasRiskContent},e.unref(c).hasRiskContent?{k:e.t(e.unref(v))}:{},{l:e.n("out"===e.unref(c).flow?"content-out":"content-in"),m:e.n(e.unref(c).hasRiskContent&&"content-has-risk"),n:e.n(e.unref(M)?"content-no-padding":""),o:e.n(e.unref(M)&&e.unref(g)?"blink-shadow":""),p:e.n(!e.unref(M)&&e.unref(g)?"blink-content":""),q:e.unref(p)},(e.unref(p),{}),{r:"fail"===e.unref(c).status||e.unref(c).hasRiskContent},"fail"===e.unref(c).status||e.unref(c).hasRiskContent?{s:e.o$1((e=>{var n;(null==(n=c.value)?void 0:n.hasRiskContent)||a("resendMessage")}))}:{},{t:"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)},"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)?{v:e.p({file:e.unref(n.loadingIcon),width:"15px",height:"15px"})}:{},{w:e.o$1(G),x:e.p({message:e.unref(s.shallowCopyMessage)(e.unref(c))}),y:e.n("out"===e.unref(c).flow&&"message-body-main-reverse"),z:e.o$1((()=>{})),A:e.n("in"===e.unref(c).flow?"":"reverse"),B:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),C:e.p({message:e.unref(c)}),D:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),E:e.p({message:e.unref(c)}),F:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),G:e.o$1(S),H:e.o$1(h),I:e.p({message:e.unref(c)}),J:"out"===e.unref(c).flow?1:"",K:e.n(e.unref(m))})}}),d=e._export_sfc(c,[["__scopeId","data-v-3bf6b8d2"]]);wx.createComponent(d);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../../common/assets.js"),s=require("../../utils/utils.js"),t=require("../../../../utils/env.js");Math||(f+l+u+o+r+i+a)();const u=()=>"../../../common/Icon.js",o=()=>"./read-status/index.js",a=()=>"./message-quote/index.js",l=()=>"../../../common/Avatar/index.js",r=()=>"./message-translate/index.js",i=()=>"./message-convert/index.js",f=()=>"../../../common/RadioSelect/index.js",c=e.defineComponent({__name:"message-bubble",props:{messageItem:{default:()=>({})},content:{default:()=>({})},classNameList:{default:()=>[]},blinkMessageIDList:{default:()=>[]},isMultipleSelectMode:{type:Boolean,default:!1},isAudioPlayed:{type:Boolean,default:!1},multipleSelectedMessageIDList:{default:()=>[]}},emits:["resendMessage","blinkMessage","setReadReceiptPanelVisible","changeSelectMessageIDList","scrollTo"],setup(u,{emit:o}){const a=o,l=u,r=e.qt.TYPES,i=[r.MSG_LOCATION,r.MSG_TEXT,r.MSG_CUSTOM,r.MSG_MERGER,r.MSG_FACE],{blinkMessageIDList:f,messageItem:c}=e.toRefs(l),d=e.computed((()=>l.multipleSelectedMessageIDList.includes(c.value.ID))),p=e.computed((()=>"in"===c.value.flow&&"success"===c.value.status&&c.value.type===r.MSG_AUDIO&&!l.isAudioPlayed)),m=e.computed((()=>["message-bubble",d.value?"multiple-selected":"",...l.classNameList])),M=e.computed((()=>[r.MSG_IMAGE,r.MSG_VIDEO,r.MSG_MERGER].includes(c.value.type))),v=e.computed((()=>{let n=e.Wt.t("TUIChat.涉及敏感内容")+", ";return"out"===c.value.flow?n+=e.Wt.t("TUIChat.发送失败"):n+=e.Wt.t(c.value.type===r.MSG_AUDIO?"TUIChat.无法收听":"TUIChat.无法查看"),n})),g=e.computed((()=>{var e,n;return!!(null==(e=c.value)?void 0:e.ID)&&(null==(n=null==f?void 0:f.value)?void 0:n.includes(c.value.ID))}));function I(e){a("changeSelectMessageIDList",{type:e?"add":"remove",messageID:c.value.ID})}function S(e){a("blinkMessage",e)}function h(e){a("scrollTo",e)}function G(){a("setReadReceiptPanelVisible",!0,c.value)}return(u,o)=>e.e({a:l.isMultipleSelectMode},l.isMultipleSelectMode?{b:e.o$1(I),c:e.p({isSelected:e.unref(d)})}:{},{d:e.p({useSkeletonAnimation:!0,url:e.unref(c).avatar||""}),e:"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType},"in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType?{f:e.t(l.content.showName)}:{},{g:(e.unref(c).type===e.unref(r).MSG_IMAGE||e.unref(c).type===e.unref(r).MSG_VIDEO)&&e.unref(c).hasRiskContent},e.unref(c).type!==e.unref(r).MSG_IMAGE&&e.unref(c).type!==e.unref(r).MSG_VIDEO||!e.unref(c).hasRiskContent?{}:{h:e.n(!e.unref(t.isPC)&&"message-risk-replace-h5"),i:"https://web.sdk.qcloud.com/component/TUIKit/assets/has_risk_default.png"},{j:e.unref(c).hasRiskContent},e.unref(c).hasRiskContent?{k:e.t(e.unref(v))}:{},{l:e.n("out"===e.unref(c).flow?"content-out":"content-in"),m:e.n(e.unref(c).hasRiskContent&&"content-has-risk"),n:e.n(e.unref(M)?"content-no-padding":""),o:e.n(e.unref(M)&&e.unref(g)?"blink-shadow":""),p:e.n(!e.unref(M)&&e.unref(g)?"blink-content":""),q:e.unref(p)},(e.unref(p),{}),{r:"fail"===e.unref(c).status||e.unref(c).hasRiskContent},"fail"===e.unref(c).status||e.unref(c).hasRiskContent?{s:e.o$1((e=>{var n;(null==(n=c.value)?void 0:n.hasRiskContent)||a("resendMessage")}))}:{},{t:"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)},"unSend"===e.unref(c).status&&i.includes(e.unref(c).type)?{v:e.p({file:e.unref(n.loadingIcon),width:"15px",height:"15px"})}:{},{w:e.o$1(G),x:e.p({message:e.unref(s.shallowCopyMessage)(e.unref(c))}),y:e.n("out"===e.unref(c).flow&&"message-body-main-reverse"),z:e.o$1((()=>{})),A:e.n("in"===e.unref(c).flow?"":"reverse"),B:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),C:e.p({message:e.unref(c)}),D:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),E:e.p({message:e.unref(c)}),F:e.n("out"===e.unref(c).flow?"reverse":"flex-row"),G:e.o$1(S),H:e.o$1(h),I:e.p({message:e.unref(c)}),J:"out"===e.unref(c).flow?1:"",K:e.n(e.unref(m))})}}),d=e._export_sfc(c,[["__scopeId","data-v-0db740be"]]);wx.createComponent(d);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-3bf6b8d2', K]}}"><radio-select wx:if="{{a}}" class="multiple-select-radio data-v-3bf6b8d2" bindonChange="{{b}}" u-i="3bf6b8d2-0" bind:__l="__l" u-p="{{c}}"/><view class="{{['data-v-3bf6b8d2', J && 'control-reverse']}}"><view class="message-bubble-content data-v-3bf6b8d2"><view class="{{['message-bubble-main-content', 'data-v-3bf6b8d2', A]}}"><avatar wx:if="{{d}}" class="data-v-3bf6b8d2" style="{{'flex:' + '0 0 auto'}}" u-i="3bf6b8d2-1" bind:__l="__l" u-p="{{d}}"/><view class="message-body data-v-3bf6b8d2" catchtap="{{z}}"><view wx:if="{{e}}" class="message-body-nick-name data-v-3bf6b8d2">{{f}}</view><view class="{{['data-v-3bf6b8d2', 'message-body-main', y]}}"><view class="{{['data-v-3bf6b8d2', 'blink', 'message-body-content', l, m, n, o, p]}}"><view class="content-main data-v-3bf6b8d2"><image wx:if="{{g}}" class="{{['data-v-3bf6b8d2', 'message-risk-replace', h]}}" src="{{i}}"></image><block wx:else><slot/></block></view><view wx:if="{{j}}" class="content-has-risk-tips data-v-3bf6b8d2">{{k}}</view></view><view wx:if="{{q}}" class="audio-unplay-mark data-v-3bf6b8d2"/><view wx:if="{{r}}" class="message-label fail data-v-3bf6b8d2" bindtap="{{s}}"> ! </view><icon wx:if="{{t}}" class="message-label loading-circle data-v-3bf6b8d2" u-i="3bf6b8d2-2" bind:__l="__l" u-p="{{v}}"/><read-status wx:if="{{x}}" class="message-label align-self-bottom data-v-3bf6b8d2" bindopenReadUserPanel="{{w}}" u-i="3bf6b8d2-3" bind:__l="__l" u-p="{{x}}"/></view></view></view><view class="message-bubble-extra-content data-v-3bf6b8d2"><message-translate wx:if="{{C}}" class="{{['data-v-3bf6b8d2', B]}}" u-i="3bf6b8d2-4" bind:__l="__l" u-p="{{C}}"/><message-convert wx:if="{{E}}" class="{{['data-v-3bf6b8d2', D]}}" u-i="3bf6b8d2-5" bind:__l="__l" u-p="{{E}}"/><message-quote wx:if="{{I}}" class="{{['data-v-3bf6b8d2', F]}}" bindblinkMessage="{{G}}" bindscrollTo="{{H}}" u-i="3bf6b8d2-6" bind:__l="__l" u-p="{{I}}"/></view></view></view></view>
|
||||
<view class="{{['data-v-0db740be', K]}}"><radio-select wx:if="{{a}}" class="multiple-select-radio data-v-0db740be" bindonChange="{{b}}" u-i="0db740be-0" bind:__l="__l" u-p="{{c}}"/><view class="{{['data-v-0db740be', J && 'control-reverse']}}"><view class="message-bubble-content data-v-0db740be"><view class="{{['message-bubble-main-content', 'data-v-0db740be', A]}}"><avatar wx:if="{{d}}" class="data-v-0db740be" style="{{'flex:' + '0 0 auto'}}" u-i="0db740be-1" bind:__l="__l" u-p="{{d}}"/><view class="message-body data-v-0db740be" catchtap="{{z}}"><view wx:if="{{e}}" class="message-body-nick-name data-v-0db740be">{{f}}</view><view class="{{['data-v-0db740be', 'message-body-main', y]}}"><view class="{{['data-v-0db740be', 'blink', 'message-body-content', l, m, n, o, p]}}"><view class="content-main data-v-0db740be"><image wx:if="{{g}}" class="{{['data-v-0db740be', 'message-risk-replace', h]}}" src="{{i}}"></image><block wx:else><slot/></block></view><view wx:if="{{j}}" class="content-has-risk-tips data-v-0db740be">{{k}}</view></view><view wx:if="{{q}}" class="audio-unplay-mark data-v-0db740be"/><view wx:if="{{r}}" class="message-label fail data-v-0db740be" bindtap="{{s}}"> ! </view><icon wx:if="{{t}}" class="message-label loading-circle data-v-0db740be" u-i="0db740be-2" bind:__l="__l" u-p="{{v}}"/><read-status wx:if="{{x}}" class="message-label align-self-bottom data-v-0db740be" bindopenReadUserPanel="{{w}}" u-i="0db740be-3" bind:__l="__l" u-p="{{x}}"/></view></view></view><view class="message-bubble-extra-content data-v-0db740be"><message-translate wx:if="{{C}}" class="{{['data-v-0db740be', B]}}" u-i="0db740be-4" bind:__l="__l" u-p="{{C}}"/><message-convert wx:if="{{E}}" class="{{['data-v-0db740be', D]}}" u-i="0db740be-5" bind:__l="__l" u-p="{{E}}"/><message-quote wx:if="{{I}}" class="{{['data-v-0db740be', F]}}" bindblinkMessage="{{G}}" bindscrollTo="{{H}}" u-i="0db740be-6" bind:__l="__l" u-p="{{I}}"/></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/convertVoiceToText.js"),r=e.defineComponent({__name:"convert-content",props:{message:{default:()=>({})},contentVisible:{type:Boolean}},emits:["toggleErrorStatus"],setup(r,{emit:n}){const o=n,s=r,a=e.ref(!1),u=e.ref("");return e.watch((()=>s.contentVisible),(e=>{e&&t.convertor.get(s.message).then((e=>{a.value=!0,u.value=e})).catch((e=>{a.value=!0,o("toggleErrorStatus",!0),u.value=e.message}))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(a)},e.unref(a)?{b:e.t(e.unref(u))}:{},{c:e.t(e.unref(e.Wt).t("TUIChat.转换中")),d:e.unref(a)?1:""})}}),n=e._export_sfc(r,[["__scopeId","data-v-b655443b"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/convertVoiceToText.js"),r=e.defineComponent({__name:"convert-content",props:{message:{default:()=>({})},contentVisible:{type:Boolean}},emits:["toggleErrorStatus"],setup(r,{emit:n}){const o=n,a=r,s=e.ref(!1),u=e.ref("");return e.watch((()=>a.contentVisible),(e=>{e&&t.convertor.get(a.message).then((e=>{s.value=!0,u.value=e})).catch((e=>{s.value=!0,o("toggleErrorStatus",!0),u.value=e.message}))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.t(e.unref(u))}:{},{c:e.t(e.unref(e.Wt).t("TUIChat.转换中")),d:e.unref(s)?1:""})}}),n=e._export_sfc(r,[["__scopeId","data-v-baaba9e9"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="message-convert-container data-v-b655443b"><view wx:if="{{a}}" class="{{['data-v-b655443b', 'convert-content', 'occur']}}">{{b}}</view><view class="{{['data-v-b655443b', 'loading', d && 'loading-end']}}">{{c}}... </view></view>
|
||||
<view class="message-convert-container data-v-baaba9e9"><view wx:if="{{a}}" class="{{['data-v-baaba9e9', 'convert-content', 'occur']}}">{{b}}</view><view class="{{['data-v-baaba9e9', 'loading', d && 'loading-end']}}">{{c}}... </view></view>
|
||||
@@ -1 +1 @@
|
||||
.message-convert-container.data-v-b655443b{min-height:20px;min-width:80px;position:relative;transition:width .15s ease-out,height .15s ease-out;font-size:14px}.message-convert-container .loading.data-v-b655443b{position:absolute;top:0;left:0;opacity:1;transition:opacity .3s ease-out}.message-convert-container .loading.loading-end.data-v-b655443b,.message-convert-container .convert-content.data-v-b655443b{opacity:0}.message-convert-container .convert-content.occur.data-v-b655443b{animation:occur-b655443b .3s ease-out .45s forwards}@keyframes occur-b655443b{to{opacity:1}}
|
||||
.message-convert-container.data-v-baaba9e9{min-height:20px;min-width:80px;position:relative;transition:width .15s ease-out,height .15s ease-out;font-size:14px}.message-convert-container .loading.data-v-baaba9e9{position:absolute;top:0;left:0;opacity:1;transition:opacity .3s ease-out}.message-convert-container .loading.loading-end.data-v-baaba9e9,.message-convert-container .convert-content.data-v-baaba9e9{opacity:0}.message-convert-container .convert-content.occur.data-v-baaba9e9{animation:occur-baaba9e9 .3s ease-out .45s forwards}@keyframes occur-baaba9e9{to{opacity:1}}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js"),Math||n();const n=()=>"./convert-content.js",o=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(n){const o=n,t=e.ref(!1),s=e.ref(!1),r=e.ref();let a=!0;function u(e){s.value=e}function c(e){if(void 0===e)return;a=!1;const n=e.get(o.message.conversationID)||[];for(let r=0;r<n.length;++r){const{messageID:e,visible:u}=n[r];if(e===o.message.ID&&void 0!==u){1===n.length&&u&&(a=!0),s.value=!1,t.value=u;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{voiceToTextInfo:c})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{voiceToTextInfo:c})})),(n,c)=>e.e({a:e.unref(t)},e.unref(t)?{b:e.o$1(u),c:e.p({message:o.message,contentVisible:e.unref(t),isSingleConvert:e.unref(a),convertWrapperRef:e.unref(r)}),d:"out"===o.message.flow?1:"",e:e.unref(s)?1:""}:{})}}),t=e._export_sfc(o,[["__scopeId","data-v-b66b81e1"]]);wx.createComponent(t);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js"),Math||n();const n=()=>"./convert-content.js",o=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(n){const o=n,t=e.ref(!1),s=e.ref(!1),r=e.ref();let a=!0;function u(e){s.value=e}function c(e){if(void 0===e)return;a=!1;const n=e.get(o.message.conversationID)||[];for(let r=0;r<n.length;++r){const{messageID:e,visible:u}=n[r];if(e===o.message.ID&&void 0!==u){1===n.length&&u&&(a=!0),s.value=!1,t.value=u;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{voiceToTextInfo:c})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{voiceToTextInfo:c})})),(n,c)=>e.e({a:e.unref(t)},e.unref(t)?{b:e.o$1(u),c:e.p({message:o.message,contentVisible:e.unref(t),isSingleConvert:e.unref(a),convertWrapperRef:e.unref(r)}),d:"out"===o.message.flow?1:"",e:e.unref(s)?1:""}:{})}}),t=e._export_sfc(o,[["__scopeId","data-v-873d2b86"]]);wx.createComponent(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" ref="convertWrapperRef" class="{{['data-v-b66b81e1', 'message-convert', d && 'reverse', e && 'error']}}"><convert-content wx:if="{{c}}" class="data-v-b66b81e1" bindtoggleErrorStatus="{{b}}" u-i="b66b81e1-0" bind:__l="__l" u-p="{{c}}"/></view>
|
||||
<view wx:if="{{a}}" ref="convertWrapperRef" class="{{['data-v-873d2b86', 'message-convert', d && 'reverse', e && 'error']}}"><convert-content wx:if="{{c}}" class="data-v-873d2b86" bindtoggleErrorStatus="{{b}}" u-i="873d2b86-0" bind:__l="__l" u-p="{{c}}"/></view>
|
||||
@@ -1 +1 @@
|
||||
.message-convert.data-v-b66b81e1{margin-top:4px;margin-left:44px;padding:10px;background-color:#f2f7ff;border-radius:10px;display:flex;flex-direction:column!important;transition:background-color .15s ease-out}.message-convert.error.data-v-b66b81e1{background-color:#ffdfdf}.message-convert.reverse.data-v-b66b81e1{margin-right:44px;margin-left:auto}
|
||||
.message-convert.data-v-873d2b86{margin-top:4px;margin-left:44px;padding:10px;background-color:#f2f7ff;border-radius:10px;display:flex;flex-direction:column!important;transition:background-color .15s ease-out}.message-convert.error.data-v-873d2b86{background-color:#ffdfdf}.message-convert.reverse.data-v-873d2b86{margin-right:44px;margin-left:auto}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../utils/type-check.js"),s=require("../../../../constant.js"),t=require("../../../../../common/assets.js"),r=require("../../../../../stores/counter.js");Math||u();const u=()=>"../../../common/Icon.js",f=e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(u){r.useCounterStore();const f=u,i=e.ref(),o=e.ref(),a=e.ref(),_=e.ref({businessID:""});e.watchEffect((()=>{i.value=f.content,o.value=f.messageItem;const{payload:e}=f.messageItem;_.value=e.data||"",_.value=n.JSONToObject(e.data),e.data===s.CHAT_MSG_CUSTOM_TYPE.SERVICE&&(a.value=n.JSONToObject(e.extension))}));return(r,u)=>e.e({a:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(a).title),c:e.unref(a).hyperlinks_text},e.unref(a).hyperlinks_text?{d:e.t(e.unref(a).hyperlinks_text.key),e:e.unref(a).hyperlinks_text.value}:{},{f:e.unref(a).item&&e.unref(a).item.length>0},e.unref(a).item&&e.unref(a).item.length>0?{g:e.f(e.unref(a).item,((s,t,r)=>e.e({a:e.unref(n.isUrl)(s.value)},e.unref(n.isUrl)(s.value)?{b:e.t(s.key),c:s.value}:{d:e.t(s.key)},{e:t})))}:{},{h:e.t(e.unref(a).description)}):e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE?{j:e.t(e.unref(e.Wt).t("message.custom.对本次服务评价")),k:e.f(Math.max(e.unref(_).score,0),((e,n,s)=>({a:"b4a7855a-0-"+s,b:n}))),l:e.p({file:e.unref(t.star)}),m:e.t(e.unref(_).comment)}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER?{o:e.unref(_).imageUrl,p:e.t(e.unref(_).title),q:e.t(e.unref(_).description),r:e.t(e.unref(_).price),s:e.o$1((n=>{return s=e.unref(_).link,void window.open(s);var s}))}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(_).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(_).link}:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK?{z:e.unref(_).link,A:e.o$1((n=>function(n){const s=JSON.stringify(n);e.index.redirectTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${s}`})}(e.unref(_))))}:{B:r.content.custom},{i:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE,n:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK,y:e.unref(_).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK})}}),i=e._export_sfc(f,[["__scopeId","data-v-b4a7855a"]]);wx.createComponent(i);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const n=require("../../../../utils/type-check.js"),s=require("../../../../constant.js"),t=require("../../../../../common/assets.js"),r=require("../../../../../stores/counter.js");Math||u();const u=()=>"../../../common/Icon.js",f=e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(u){r.useCounterStore();const f=u,i=e.ref(),o=e.ref(),a=e.ref(),c=e.ref({businessID:""});e.watchEffect((()=>{i.value=f.content,o.value=f.messageItem;const{payload:e}=f.messageItem;c.value=e.data||"",c.value=n.JSONToObject(e.data),e.data===s.CHAT_MSG_CUSTOM_TYPE.SERVICE&&(a.value=n.JSONToObject(e.extension))}));return(r,u)=>e.e({a:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE},e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).SERVICE?e.e({b:e.t(e.unref(a).title),c:e.unref(a).hyperlinks_text},e.unref(a).hyperlinks_text?{d:e.t(e.unref(a).hyperlinks_text.key),e:e.unref(a).hyperlinks_text.value}:{},{f:e.unref(a).item&&e.unref(a).item.length>0},e.unref(a).item&&e.unref(a).item.length>0?{g:e.f(e.unref(a).item,((s,t,r)=>e.e({a:e.unref(n.isUrl)(s.value)},e.unref(n.isUrl)(s.value)?{b:e.t(s.key),c:s.value}:{d:e.t(s.key)},{e:t})))}:{},{h:e.t(e.unref(a).description)}):e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE?{j:e.t(e.unref(e.Wt).t("message.custom.对本次服务评价")),k:e.f(Math.max(e.unref(c).score,0),((e,n,s)=>({a:"c2052009-0-"+s,b:n}))),l:e.p({file:e.unref(t.star)}),m:e.t(e.unref(c).comment)}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER?{o:e.unref(c).imageUrl,p:e.t(e.unref(c).title),q:e.t(e.unref(c).description),r:e.t(e.unref(c).price),s:e.o$1((n=>{return s=e.unref(c).link,void window.open(s);var s}))}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK?{v:e.t(e.unref(c).text),w:e.t(e.unref(e.Wt).t("message.custom.查看详情>>")),x:e.unref(c).link}:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK?{z:e.unref(c).link,A:e.o$1((n=>function(n){const s=JSON.stringify(n);e.index.redirectTo({url:`/pages/PKMessageprocessing/PKMessageprocessing?customData=${s}`})}(e.unref(c))))}:{B:r.content.custom},{i:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).EVALUATE,n:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).ORDER,t:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).LINK,y:e.unref(c).businessID===e.unref(s.CHAT_MSG_CUSTOM_TYPE).PK})}}),i=e._export_sfc(f,[["__scopeId","data-v-c2052009"]]);wx.createComponent(i);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="custom data-v-b4a7855a"><block wx:if="{{a}}"><view class="data-v-b4a7855a"><view class="data-v-b4a7855a"><label class="data-v-b4a7855a">{{b}}</label><navigator wx:if="{{c}}" class="data-v-b4a7855a" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-b4a7855a"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-b4a7855a"><navigator wx:if="{{item.a}}" class="data-v-b4a7855a" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-b4a7855a">{{item.d}}</view></view></view><view class="data-v-b4a7855a">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-b4a7855a"><view class="data-v-b4a7855a">{{j}}</view><view class="evaluate-list data-v-b4a7855a"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-b4a7855a"><icon wx:if="{{l}}" class="file-icon data-v-b4a7855a" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-b4a7855a">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-b4a7855a" bindtap="{{s}}"><image class="data-v-b4a7855a" src="{{o}}"/><view class="data-v-b4a7855a"><view class="data-v-b4a7855a">{{p}}</view><view class="data-v-b4a7855a">{{q}}</view><label class="data-v-b4a7855a">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-b4a7855a"><view class="data-v-b4a7855a">{{v}}</view><navigator class="data-v-b4a7855a" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-b4a7855a" bindtap="{{A}}"><image class="Custommessageimage data-v-b4a7855a" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-b4a7855a"><rich-text class="data-v-b4a7855a" nodes="{{B}}"/></label></block></view>
|
||||
<view class="custom data-v-c2052009"><block wx:if="{{a}}"><view class="data-v-c2052009"><view class="data-v-c2052009"><label class="data-v-c2052009">{{b}}</label><navigator wx:if="{{c}}" class="data-v-c2052009" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-c2052009"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-c2052009"><navigator wx:if="{{item.a}}" class="data-v-c2052009" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-c2052009">{{item.d}}</view></view></view><view class="data-v-c2052009">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-c2052009"><view class="data-v-c2052009">{{j}}</view><view class="evaluate-list data-v-c2052009"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-c2052009"><icon wx:if="{{l}}" class="file-icon data-v-c2052009" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-c2052009">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-c2052009" bindtap="{{s}}"><image class="data-v-c2052009" src="{{o}}"/><view class="data-v-c2052009"><view class="data-v-c2052009">{{p}}</view><view class="data-v-c2052009">{{q}}</view><label class="data-v-c2052009">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-c2052009"><view class="data-v-c2052009">{{v}}</view><navigator class="data-v-c2052009" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-c2052009" bindtap="{{A}}"><image class="Custommessageimage data-v-c2052009" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-c2052009"><rich-text class="data-v-c2052009" nodes="{{B}}"/></label></block></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-b4a7855a,div.data-v-b4a7855a,ul.data-v-b4a7855a,ol.data-v-b4a7855a,dt.data-v-b4a7855a,dd.data-v-b4a7855a,li.data-v-b4a7855a,dl.data-v-b4a7855a,h1.data-v-b4a7855a,h2.data-v-b4a7855a,h3.data-v-b4a7855a,h4.data-v-b4a7855a,p.data-v-b4a7855a{margin:0;padding:0;font-style:normal}ol.data-v-b4a7855a,ul.data-v-b4a7855a,li.data-v-b4a7855a{list-style:none}img.data-v-b4a7855a{border:0;vertical-align:middle;pointer-events:none}body.data-v-b4a7855a{color:#000;background:#fff}.clear.data-v-b4a7855a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-b4a7855a{color:#000;text-decoration:none;cursor:pointer}a.data-v-b4a7855a:hover{text-decoration:none}input.data-v-b4a7855a,textarea.data-v-b4a7855a{-webkit-user-select:auto;user-select:auto}input.data-v-b4a7855a:focus,input.data-v-b4a7855a:active,textarea.data-v-b4a7855a:focus,textarea.data-v-b4a7855a:active{outline:none}.chat-aside.data-v-b4a7855a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}a.data-v-b4a7855a{color:#679ce1}.custom.data-v-b4a7855a{font-size:18px}.custom h1.data-v-b4a7855a{font-size:14px;color:#000}.custom h1.data-v-b4a7855a,.custom a.data-v-b4a7855a,.custom p.data-v-b4a7855a{font-size:14px}.custom .evaluate ul.data-v-b4a7855a{display:flex;padding:10px 0}.custom .evaluate-list.data-v-b4a7855a{display:flex;flex-direction:row}.custom .evaluate-list-item.data-v-b4a7855a{padding:0 2px}.custom .order.data-v-b4a7855a{display:flex}.custom .order main.data-v-b4a7855a{padding-left:5px}.custom .order main p.data-v-b4a7855a{font-family:PingFangSC-Regular;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.custom .order main span.data-v-b4a7855a{font-family:PingFangSC-Regular;line-height:25px;color:#ff7201}.custom .order img.data-v-b4a7855a{width:67px;height:67px}.custom .pk.data-v-b4a7855a{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;background-color:#fff;border-radius:10px;padding:20px;box-sizing:border-box}.custom .pk h1.data-v-b4a7855a{font-size:18px;color:#333;margin-bottom:10px}.custom .pk .button-group.data-v-b4a7855a{display:flex;justify-content:center}.custom .pk .button-group .buttonAccept.data-v-b4a7855a{width:40%;height:60rpx;background-color:rgba(132,255,0,.333);border-radius:10px;border:2px solid #26ff00;color:#fff;font-size:16px;text-align:center;line-height:60rpx;margin-bottom:10px;border:none;cursor:pointer}.custom .pk .button-group .buttonRefuse.data-v-b4a7855a{width:40%;height:60rpx;background-color:rgba(255,0,0,.47);border:2px solid #ff0000;border-radius:10px;color:#fff;font-size:16px;line-height:60rpx;text-align:center;margin-bottom:10px;border:none;cursor:pointer}.Custommessageimage.data-v-b4a7855a{width:385rpx;height:195rpx}
|
||||
body.data-v-c2052009,div.data-v-c2052009,ul.data-v-c2052009,ol.data-v-c2052009,dt.data-v-c2052009,dd.data-v-c2052009,li.data-v-c2052009,dl.data-v-c2052009,h1.data-v-c2052009,h2.data-v-c2052009,h3.data-v-c2052009,h4.data-v-c2052009,p.data-v-c2052009{margin:0;padding:0;font-style:normal}ol.data-v-c2052009,ul.data-v-c2052009,li.data-v-c2052009{list-style:none}img.data-v-c2052009{border:0;vertical-align:middle;pointer-events:none}body.data-v-c2052009{color:#000;background:#fff}.clear.data-v-c2052009{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-c2052009{color:#000;text-decoration:none;cursor:pointer}a.data-v-c2052009:hover{text-decoration:none}input.data-v-c2052009,textarea.data-v-c2052009{-webkit-user-select:auto;user-select:auto}input.data-v-c2052009:focus,input.data-v-c2052009:active,textarea.data-v-c2052009:focus,textarea.data-v-c2052009:active{outline:none}.chat-aside.data-v-c2052009{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}a.data-v-c2052009{color:#679ce1}.custom.data-v-c2052009{font-size:18px}.custom h1.data-v-c2052009{font-size:14px;color:#000}.custom h1.data-v-c2052009,.custom a.data-v-c2052009,.custom p.data-v-c2052009{font-size:14px}.custom .evaluate ul.data-v-c2052009{display:flex;padding:10px 0}.custom .evaluate-list.data-v-c2052009{display:flex;flex-direction:row}.custom .evaluate-list-item.data-v-c2052009{padding:0 2px}.custom .order.data-v-c2052009{display:flex}.custom .order main.data-v-c2052009{padding-left:5px}.custom .order main p.data-v-c2052009{font-family:PingFangSC-Regular;width:145px;line-height:17px;font-size:14px;color:#999;letter-spacing:0;margin-bottom:6px;word-break:break-word}.custom .order main span.data-v-c2052009{font-family:PingFangSC-Regular;line-height:25px;color:#ff7201}.custom .order img.data-v-c2052009{width:67px;height:67px}.custom .pk.data-v-c2052009{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;background-color:#fff;border-radius:10px;padding:20px;box-sizing:border-box}.custom .pk h1.data-v-c2052009{font-size:18px;color:#333;margin-bottom:10px}.custom .pk .button-group.data-v-c2052009{display:flex;justify-content:center}.custom .pk .button-group .buttonAccept.data-v-c2052009{width:40%;height:60rpx;background-color:rgba(132,255,0,.333);border-radius:10px;border:2px solid #26ff00;color:#fff;font-size:16px;text-align:center;line-height:60rpx;margin-bottom:10px;border:none;cursor:pointer}.custom .pk .button-group .buttonRefuse.data-v-c2052009{width:40%;height:60rpx;background-color:rgba(255,0,0,.47);border:2px solid #ff0000;border-radius:10px;color:#fff;font-size:16px;line-height:60rpx;text-align:center;margin-bottom:10px;border:none;cursor:pointer}.Custommessageimage.data-v-c2052009{width:385rpx;height:195rpx}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js"),require("../../emoji-config/index.js");const o=e.defineComponent({__name:"message-face",props:{content:{type:Object,default:()=>({})}},setup(o){const t=o,n=e.ref(t.content.url);return e.onMounted((()=>{"custom"===t.content.type&&console.warn("CUSTOM_BIG_EMOJI_URL is required for custom emoji, please check your CUSTOM_BIG_EMOJI_URL.")})),(o,t)=>({a:e.unref(n)})}}),t=e._export_sfc(o,[["__scopeId","data-v-70c1417a"]]);wx.createComponent(t);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js"),require("../../emoji-config/index.js");const o=e.defineComponent({__name:"message-face",props:{content:{type:Object,default:()=>({})}},setup(o){const t=o,n=e.ref(t.content.url);return e.onMounted((()=>{"custom"===t.content.type&&console.warn("CUSTOM_BIG_EMOJI_URL is required for custom emoji, please check your CUSTOM_BIG_EMOJI_URL.")})),(o,t)=>({a:e.unref(n)})}}),t=e._export_sfc(o,[["__scopeId","data-v-a83600e4"]]);wx.createComponent(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="message-image data-v-70c1417a"><image mode="aspectFit" class="message-image data-v-70c1417a" src="{{a}}"></image></view>
|
||||
<view class="message-image data-v-a83600e4"><image mode="aspectFit" class="message-image data-v-a83600e4" src="{{a}}"></image></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-70c1417a,div.data-v-70c1417a,ul.data-v-70c1417a,ol.data-v-70c1417a,dt.data-v-70c1417a,dd.data-v-70c1417a,li.data-v-70c1417a,dl.data-v-70c1417a,h1.data-v-70c1417a,h2.data-v-70c1417a,h3.data-v-70c1417a,h4.data-v-70c1417a,p.data-v-70c1417a{margin:0;padding:0;font-style:normal}ol.data-v-70c1417a,ul.data-v-70c1417a,li.data-v-70c1417a{list-style:none}img.data-v-70c1417a{border:0;vertical-align:middle;pointer-events:none}body.data-v-70c1417a{color:#000;background:#fff}.clear.data-v-70c1417a{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-70c1417a{color:#000;text-decoration:none;cursor:pointer}a.data-v-70c1417a:hover{text-decoration:none}input.data-v-70c1417a,textarea.data-v-70c1417a{-webkit-user-select:auto;user-select:auto}input.data-v-70c1417a:focus,input.data-v-70c1417a:active,textarea.data-v-70c1417a:focus,textarea.data-v-70c1417a:active{outline:none}.chat-aside.data-v-70c1417a{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-image.data-v-70c1417a{width:80px;height:80px}
|
||||
body.data-v-a83600e4,div.data-v-a83600e4,ul.data-v-a83600e4,ol.data-v-a83600e4,dt.data-v-a83600e4,dd.data-v-a83600e4,li.data-v-a83600e4,dl.data-v-a83600e4,h1.data-v-a83600e4,h2.data-v-a83600e4,h3.data-v-a83600e4,h4.data-v-a83600e4,p.data-v-a83600e4{margin:0;padding:0;font-style:normal}ol.data-v-a83600e4,ul.data-v-a83600e4,li.data-v-a83600e4{list-style:none}img.data-v-a83600e4{border:0;vertical-align:middle;pointer-events:none}body.data-v-a83600e4{color:#000;background:#fff}.clear.data-v-a83600e4{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-a83600e4{color:#000;text-decoration:none;cursor:pointer}a.data-v-a83600e4:hover{text-decoration:none}input.data-v-a83600e4,textarea.data-v-a83600e4{-webkit-user-select:auto;user-select:auto}input.data-v-a83600e4:focus,input.data-v-a83600e4:active,textarea.data-v-a83600e4:focus,textarea.data-v-a83600e4:active{outline:none}.chat-aside.data-v-a83600e4{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-image.data-v-a83600e4{width:80px;height:80px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"message-file",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(n){const o=n,c=()=>{if(o.messageItem.hasRiskContent)return;const e={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(null==window?void 0:window.fetch)fetch(o.content.url,e).then((e=>e.blob())).then((e=>{const t=document.createElement("a"),n=window.URL.createObjectURL(e);t.href=n,t.download=o.content.name,t.click()}));else{const e=document.createElement("a");e.href=o.content.url,e.target="_blank",e.download=o.content.name,e.click()}};return(n,s)=>({a:e.p({file:e.unref(t.files)}),b:e.t(o.content.name),c:e.t(o.content.size),d:e.unref(e.Wt).t("TUIChat.单击下载"),e:e.o$1(c)})}}),c=e._export_sfc(o,[["__scopeId","data-v-37638193"]]);wx.createComponent(c);
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),t=require("../../../../../common/assets.js");Math||n();const n=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"message-file",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(n){const o=n,c=()=>{if(o.messageItem.hasRiskContent)return;const e={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(null==window?void 0:window.fetch)fetch(o.content.url,e).then((e=>e.blob())).then((e=>{const t=document.createElement("a"),n=window.URL.createObjectURL(e);t.href=n,t.download=o.content.name,t.click()}));else{const e=document.createElement("a");e.href=o.content.url,e.target="_blank",e.download=o.content.name,e.click()}};return(n,s)=>({a:e.p({file:e.unref(t.files)}),b:e.t(o.content.name),c:e.t(o.content.size),d:e.unref(e.Wt).t("TUIChat.单击下载"),e:e.o$1(c)})}}),c=e._export_sfc(o,[["__scopeId","data-v-e7e6191d"]]);wx.createComponent(c);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="file-message-montainer data-v-37638193" title="{{d}}" bindtap="{{e}}"><icon wx:if="{{a}}" class="file-icon data-v-37638193" u-i="37638193-0" bind:__l="__l" u-p="{{a}}"/><view class="data-v-37638193"><view class="data-v-37638193">{{b}}</view><view class="data-v-37638193">{{c}}</view></view></view>
|
||||
<view class="file-message-montainer data-v-e7e6191d" title="{{d}}" bindtap="{{e}}"><icon wx:if="{{a}}" class="file-icon data-v-e7e6191d" u-i="e7e6191d-0" bind:__l="__l" u-p="{{a}}"/><view class="data-v-e7e6191d"><view class="data-v-e7e6191d">{{b}}</view><view class="data-v-e7e6191d">{{c}}</view></view></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-37638193,div.data-v-37638193,ul.data-v-37638193,ol.data-v-37638193,dt.data-v-37638193,dd.data-v-37638193,li.data-v-37638193,dl.data-v-37638193,h1.data-v-37638193,h2.data-v-37638193,h3.data-v-37638193,h4.data-v-37638193,p.data-v-37638193{margin:0;padding:0;font-style:normal}ol.data-v-37638193,ul.data-v-37638193,li.data-v-37638193{list-style:none}img.data-v-37638193{border:0;vertical-align:middle;pointer-events:none}body.data-v-37638193{color:#000;background:#fff}.clear.data-v-37638193{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-37638193{color:#000;text-decoration:none;cursor:pointer}a.data-v-37638193:hover{text-decoration:none}input.data-v-37638193,textarea.data-v-37638193{-webkit-user-select:auto;user-select:auto}input.data-v-37638193:focus,input.data-v-37638193:active,textarea.data-v-37638193:focus,textarea.data-v-37638193:active{outline:none}.chat-aside.data-v-37638193{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.file-message-montainer.data-v-37638193{display:flex;flex-direction:row;cursor:pointer}.file-message-montainer .file-icon.data-v-37638193{margin:auto 8px}
|
||||
body.data-v-e7e6191d,div.data-v-e7e6191d,ul.data-v-e7e6191d,ol.data-v-e7e6191d,dt.data-v-e7e6191d,dd.data-v-e7e6191d,li.data-v-e7e6191d,dl.data-v-e7e6191d,h1.data-v-e7e6191d,h2.data-v-e7e6191d,h3.data-v-e7e6191d,h4.data-v-e7e6191d,p.data-v-e7e6191d{margin:0;padding:0;font-style:normal}ol.data-v-e7e6191d,ul.data-v-e7e6191d,li.data-v-e7e6191d{list-style:none}img.data-v-e7e6191d{border:0;vertical-align:middle;pointer-events:none}body.data-v-e7e6191d{color:#000;background:#fff}.clear.data-v-e7e6191d{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-e7e6191d{color:#000;text-decoration:none;cursor:pointer}a.data-v-e7e6191d:hover{text-decoration:none}input.data-v-e7e6191d,textarea.data-v-e7e6191d{-webkit-user-select:auto;user-select:auto}input.data-v-e7e6191d:focus,input.data-v-e7e6191d:active,textarea.data-v-e7e6191d:focus,textarea.data-v-e7e6191d:active{outline:none}.chat-aside.data-v-e7e6191d{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.file-message-montainer.data-v-e7e6191d{display:flex;flex-direction:row;cursor:pointer}.file-message-montainer .file-icon.data-v-e7e6191d{margin:auto 8px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=155,s=e.defineComponent({__name:"message-image",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},emits:["previewImage"],setup(s,{emit:a}){const n=a,o=s,r=e.ref({width:"auto",height:"auto"}),i=e=>{const{width:s,height:a}=e;if(0===s||0===a)return;let n=0,o=0;s>=a?(n=t,o=t*a/s):(n=t*s/a,o=t),r.value.width=n+"px",r.value.height=o+"px"};e.watchEffect((()=>{i(o.content)}));const c=e=>{i(e.detail)},u=()=>{var e;"success"!==(null==(e=o.messageItem)?void 0:e.status)&&1!==o.messageItem.progress||n("previewImage")};return(t,s)=>({a:o.content.url,b:e.unref(r).width,c:e.unref(r).height,d:e.o$1(c),e:e.o$1(u)})}}),a=e._export_sfc(s,[["__scopeId","data-v-861013c6"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=155,s=e.defineComponent({__name:"message-image",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},emits:["previewImage"],setup(s,{emit:a}){const n=a,o=s,r=e.ref({width:"auto",height:"auto"}),i=e=>{const{width:s,height:a}=e;if(0===s||0===a)return;let n=0,o=0;s>=a?(n=t,o=t*a/s):(n=t*s/a,o=t),r.value.width=n+"px",r.value.height=o+"px"};e.watchEffect((()=>{i(o.content)}));const u=e=>{i(e.detail)},c=()=>{var e;"success"!==(null==(e=o.messageItem)?void 0:e.status)&&1!==o.messageItem.progress||n("previewImage")};return(t,s)=>({a:o.content.url,b:e.unref(r).width,c:e.unref(r).height,d:e.o$1(u),e:e.o$1(c)})}}),a=e._export_sfc(s,[["__scopeId","data-v-b011a1d6"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="image-container data-v-861013c6" bindtap="{{e}}"><image class="message-image data-v-861013c6" mode="aspectFit" src="{{a}}" style="{{'width:' + b + ';' + ('height:' + c)}}" bindload="{{d}}"/></view>
|
||||
<view class="image-container data-v-b011a1d6" bindtap="{{e}}"><image class="message-image data-v-b011a1d6" mode="aspectFit" src="{{a}}" style="{{'width:' + b + ';' + ('height:' + c)}}" bindload="{{d}}"/></view>
|
||||
@@ -1 +1 @@
|
||||
.image-container.data-v-861013c6{position:relative;background-color:#f4f4f4;font-size:0}.image-container .message-image.data-v-861013c6{max-width:150px}
|
||||
.image-container.data-v-b011a1d6{position:relative;background-color:#f4f4f4;font-size:0}.image-container .message-image.data-v-b011a1d6{max-width:150px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-location",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,r=e.ref();return e.watchEffect((()=>{r.value=n.content})),(t,n)=>({a:e.t(e.unref(r).description),b:e.unref(r).url,c:e.unref(r).href})}}),n=e._export_sfc(t,[["__scopeId","data-v-a1bcf3a7"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-location",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,r=e.ref();return e.watchEffect((()=>{r.value=n.content})),(t,n)=>({a:e.t(e.unref(r).description),b:e.unref(r).url,c:e.unref(r).href})}}),n=e._export_sfc(t,[["__scopeId","data-v-394dfab9"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<navigator class="message-location data-v-a1bcf3a7" href="{{c}}" target="_blank" title="点击查看详情"><label class="el-icon-location-outline data-v-a1bcf3a7">{{a}}</label><image class="data-v-a1bcf3a7" src="{{b}}"></image></navigator>
|
||||
<navigator class="message-location data-v-394dfab9" href="{{c}}" target="_blank" title="点击查看详情"><label class="el-icon-location-outline data-v-394dfab9">{{a}}</label><image class="data-v-394dfab9" src="{{b}}"></image></navigator>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-a1bcf3a7,div.data-v-a1bcf3a7,ul.data-v-a1bcf3a7,ol.data-v-a1bcf3a7,dt.data-v-a1bcf3a7,dd.data-v-a1bcf3a7,li.data-v-a1bcf3a7,dl.data-v-a1bcf3a7,h1.data-v-a1bcf3a7,h2.data-v-a1bcf3a7,h3.data-v-a1bcf3a7,h4.data-v-a1bcf3a7,p.data-v-a1bcf3a7{margin:0;padding:0;font-style:normal}ol.data-v-a1bcf3a7,ul.data-v-a1bcf3a7,li.data-v-a1bcf3a7{list-style:none}img.data-v-a1bcf3a7{border:0;vertical-align:middle;pointer-events:none}body.data-v-a1bcf3a7{color:#000;background:#fff}.clear.data-v-a1bcf3a7{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-a1bcf3a7{color:#000;text-decoration:none;cursor:pointer}a.data-v-a1bcf3a7:hover{text-decoration:none}input.data-v-a1bcf3a7,textarea.data-v-a1bcf3a7{-webkit-user-select:auto;user-select:auto}input.data-v-a1bcf3a7:focus,input.data-v-a1bcf3a7:active,textarea.data-v-a1bcf3a7:focus,textarea.data-v-a1bcf3a7:active{outline:none}.chat-aside.data-v-a1bcf3a7{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-location.data-v-a1bcf3a7{display:flex;flex-direction:column}
|
||||
body.data-v-394dfab9,div.data-v-394dfab9,ul.data-v-394dfab9,ol.data-v-394dfab9,dt.data-v-394dfab9,dd.data-v-394dfab9,li.data-v-394dfab9,dl.data-v-394dfab9,h1.data-v-394dfab9,h2.data-v-394dfab9,h3.data-v-394dfab9,h4.data-v-394dfab9,p.data-v-394dfab9{margin:0;padding:0;font-style:normal}ol.data-v-394dfab9,ul.data-v-394dfab9,li.data-v-394dfab9{list-style:none}img.data-v-394dfab9{border:0;vertical-align:middle;pointer-events:none}body.data-v-394dfab9{color:#000;background:#fff}.clear.data-v-394dfab9{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-394dfab9{color:#000;text-decoration:none;cursor:pointer}a.data-v-394dfab9:hover{text-decoration:none}input.data-v-394dfab9,textarea.data-v-394dfab9{-webkit-user-select:auto;user-select:auto}input.data-v-394dfab9:focus,input.data-v-394dfab9:active,textarea.data-v-394dfab9:focus,textarea.data-v-394dfab9:active{outline:none}.chat-aside.data-v-394dfab9{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-location.data-v-394dfab9{display:flex;flex-direction:column}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const s=require("../../../../../utils/env.js"),a=require("../../../../common/Toast/index.js"),t=require("./interface.js"),o=require("../../../emoji-config/index.js"),r=require("../../../../common/Toast/type.js"),u=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["scrollTo","blinkMessage"],setup(u,{emit:n}){const m=n,c=u;let T=0;const i=e.ref(""),l=e.ref(!1),g=e.ref({}),E=e.computed((()=>{var s;try{const a=JSON.parse((null==(s=c.message)?void 0:s.cloudCustomData)||"{}"),t=e.Jt.getMessageModel(a.messageReply.messageID);return null==t?void 0:t.isRevoked}catch(a){return!0}}));async function p(){var t;if(E.value)return;const o=null==(t=g.value)?void 0:t.messageID,u=e.Jt.getData(e.o.CHAT,"messageList").some((e=>e.ID===o));if(o&&u)try{const a=await e.T("#messageScrollList","messageList"),t=await e.T("#tui-"+o,"messageList"),{scrollTop:r}=await e.P("#messageScrollList","messageList"),u=t.top+r-a.top-T++%2,n=t.top<a.top;if(!s.isUniFrameWork&&window){const e=document.getElementById("messageScrollList");n&&e&&(e.scrollTop=u)}else s.isUniFrameWork&&n&&m("scrollTo",u);m("blinkMessage",o)}catch(n){console.error(n)}else a.Toast({message:e.Wt.t("TUIChat.无法定位到原消息"),type:r.TOAST_TYPE.WARNING})}return e.onMounted((()=>{var s;try{const a=JSON.parse((null==(s=c.message)?void 0:s.cloudCustomData)||"{}");l.value=Boolean(a.messageReply),l.value&&(g.value=a.messageReply,i.value=function(s){let a="",o="";switch(s.messageType){case t.MessageQuoteTypeEnum.TYPE_TEXT:a="[文本]";break;case t.MessageQuoteTypeEnum.TYPE_CUSTOM:a="[自定义消息]";break;case t.MessageQuoteTypeEnum.TYPE_IMAGE:a="[图片]";break;case t.MessageQuoteTypeEnum.TYPE_SOUND:a="[音频]";break;case t.MessageQuoteTypeEnum.TYPE_VIDEO:a="[视频]";break;case t.MessageQuoteTypeEnum.TYPE_FILE:a="[文件]";break;case t.MessageQuoteTypeEnum.TYPE_LOCATION:a="[地理位置]";break;case t.MessageQuoteTypeEnum.TYPE_FACE:a="[动画表情]";break;case t.MessageQuoteTypeEnum.TYPE_GROUP_TIPS:a="[群提示]";break;case t.MessageQuoteTypeEnum.TYPE_MERGER:a="[聊天记录]";break;default:a="[消息]"}[t.MessageQuoteTypeEnum.TYPE_TEXT,t.MessageQuoteTypeEnum.TYPE_MERGER].includes(s.messageType)&&(o=s.messageAbstract);return o||e.Wt.t(`TUIChat.${a}`)}(g.value))}catch(a){l.value=!1}})),(s,a)=>e.e({a:e.unref(l)},e.unref(l)?e.e({b:e.unref(E)},e.unref(E)?{c:e.t(e.unref(e.Wt).t("TUIChat.引用内容已撤回"))}:{d:e.t(e.unref(g).messageSender),e:e.t(e.unref(o.transformTextWithKeysToEmojiNames)(e.unref(i)))},{f:"out"===s.message.flow?1:"",g:e.o$1(p)}):{})}}),n=e._export_sfc(u,[["__scopeId","data-v-e3a62db5"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const s=require("../../../../../utils/env.js"),a=require("../../../../common/Toast/index.js"),t=require("./interface.js"),o=require("../../../emoji-config/index.js"),r=require("../../../../common/Toast/type.js"),u=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["scrollTo","blinkMessage"],setup(u,{emit:n}){const m=n,c=u;let T=0;const i=e.ref(""),l=e.ref(!1),g=e.ref({}),E=e.computed((()=>{var s;try{const a=JSON.parse((null==(s=c.message)?void 0:s.cloudCustomData)||"{}"),t=e.Jt.getMessageModel(a.messageReply.messageID);return null==t?void 0:t.isRevoked}catch(a){return!0}}));async function p(){var t;if(E.value)return;const o=null==(t=g.value)?void 0:t.messageID,u=e.Jt.getData(e.o.CHAT,"messageList").some((e=>e.ID===o));if(o&&u)try{const a=await e.T("#messageScrollList","messageList"),t=await e.T("#tui-"+o,"messageList"),{scrollTop:r}=await e.P("#messageScrollList","messageList"),u=t.top+r-a.top-T++%2,n=t.top<a.top;if(!s.isUniFrameWork&&window){const e=document.getElementById("messageScrollList");n&&e&&(e.scrollTop=u)}else s.isUniFrameWork&&n&&m("scrollTo",u);m("blinkMessage",o)}catch(n){console.error(n)}else a.Toast({message:e.Wt.t("TUIChat.无法定位到原消息"),type:r.TOAST_TYPE.WARNING})}return e.onMounted((()=>{var s;try{const a=JSON.parse((null==(s=c.message)?void 0:s.cloudCustomData)||"{}");l.value=Boolean(a.messageReply),l.value&&(g.value=a.messageReply,i.value=function(s){let a="",o="";switch(s.messageType){case t.MessageQuoteTypeEnum.TYPE_TEXT:a="[文本]";break;case t.MessageQuoteTypeEnum.TYPE_CUSTOM:a="[自定义消息]";break;case t.MessageQuoteTypeEnum.TYPE_IMAGE:a="[图片]";break;case t.MessageQuoteTypeEnum.TYPE_SOUND:a="[音频]";break;case t.MessageQuoteTypeEnum.TYPE_VIDEO:a="[视频]";break;case t.MessageQuoteTypeEnum.TYPE_FILE:a="[文件]";break;case t.MessageQuoteTypeEnum.TYPE_LOCATION:a="[地理位置]";break;case t.MessageQuoteTypeEnum.TYPE_FACE:a="[动画表情]";break;case t.MessageQuoteTypeEnum.TYPE_GROUP_TIPS:a="[群提示]";break;case t.MessageQuoteTypeEnum.TYPE_MERGER:a="[聊天记录]";break;default:a="[消息]"}[t.MessageQuoteTypeEnum.TYPE_TEXT,t.MessageQuoteTypeEnum.TYPE_MERGER].includes(s.messageType)&&(o=s.messageAbstract);return o||e.Wt.t(`TUIChat.${a}`)}(g.value))}catch(a){l.value=!1}})),(s,a)=>e.e({a:e.unref(l)},e.unref(l)?e.e({b:e.unref(E)},e.unref(E)?{c:e.t(e.unref(e.Wt).t("TUIChat.引用内容已撤回"))}:{d:e.t(e.unref(g).messageSender),e:e.t(e.unref(o.transformTextWithKeysToEmojiNames)(e.unref(i)))},{f:"out"===s.message.flow?1:"",g:e.o$1(p)}):{})}}),n=e._export_sfc(u,[["__scopeId","data-v-ccb106a9"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-e3a62db5', 'reference-content', f && 'reverse']}}" bindtap="{{g}}"><view wx:if="{{b}}" class="revoked-text data-v-e3a62db5">{{c}}</view><view wx:else class="max-double-line data-v-e3a62db5">{{d}}: {{e}}</view></view>
|
||||
<view wx:if="{{a}}" class="{{['data-v-ccb106a9', 'reference-content', f && 'reverse']}}" bindtap="{{g}}"><view wx:if="{{b}}" class="revoked-text data-v-ccb106a9">{{c}}</view><view wx:else class="max-double-line data-v-ccb106a9">{{d}}: {{e}}</view></view>
|
||||
@@ -1 +1 @@
|
||||
.reference-content.data-v-e3a62db5{max-width:272px;margin-top:4px;margin-left:44px;padding:12px;font-size:12px;color:#666;word-wrap:break-word;word-break:break-all;background-color:#fbfbfb;border-radius:8px;line-height:16.8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.reverse.reference-content.data-v-e3a62db5{margin-right:44px;margin-left:auto}.revoked-text.data-v-e3a62db5{color:#999}.max-double-line.data-v-e3a62db5{word-break:break-all;overflow:hidden;display:-webkit-box;max-height:33px;-webkit-line-clamp:2;-webkit-box-orient:vertical}
|
||||
.reference-content.data-v-ccb106a9{max-width:272px;margin-top:4px;margin-left:44px;padding:12px;font-size:12px;color:#666;word-wrap:break-word;word-break:break-all;background-color:#fbfbfb;border-radius:8px;line-height:16.8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.reverse.reference-content.data-v-ccb106a9{margin-right:44px;margin-left:auto}.revoked-text.data-v-ccb106a9{color:#999}.max-double-line.data-v-ccb106a9{word-break:break-all;overflow:hidden;display:-webkit-box;max-height:33px;-webkit-line-clamp:2;-webkit-box-orient:vertical}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const s=require("../../../../../utils/env.js"),n=require("../../../emoji-config/index.js");Math||(i+r+a)();const r=()=>"../../../../common/Overlay/index.js",a=()=>"../../../../common/Drawer/index.js",i=()=>"../simple-message-list/index.js",t=e.defineComponent({__name:"index",props:{renderData:{},disabled:{type:Boolean,default:!1},messageItem:{default:()=>({})}},emits:["assignMessageIDInUniapp"],setup(r,{emit:a}){const i=a,t=r,o=e.ref(!1);function d(){t.disabled||(s.isUniFrameWork?i("assignMessageIDInUniapp",t.messageItem.ID):o.value=!0)}function m(){o.value=!1}return(r,a)=>e.e({a:e.t(t.renderData.title),b:e.f(t.renderData.abstractList.slice(0,7),((s,r,a)=>({a:e.t(e.unref(n.transformTextWithKeysToEmojiNames)(s)),b:r}))),c:e.t(e.unref(e.Wt).t("TUIChat.聊天记录")),d:e.o$1(d),e:!t.disabled&&e.unref(s.isPC)},!t.disabled&&e.unref(s.isPC)?{f:e.o$1(m),g:e.p({isMounted:e.unref(o),renderData:t.renderData,messageID:t.messageItem.ID}),h:e.o$1((e=>o.value=!1)),i:e.p({visible:e.unref(o)})}:t.disabled||!e.unref(s.isH5)||e.unref(s.isUniFrameWork)?{}:{k:e.o$1(m),l:e.p({isMounted:e.unref(o),renderData:t.renderData,messageID:t.messageItem.ID}),m:e.p({visible:e.unref(o),isFullScreen:!0,overlayColor:"transparent",popDirection:"right"})},{j:!t.disabled&&e.unref(s.isH5)&&!e.unref(s.isUniFrameWork)})}}),o=e._export_sfc(t,[["__scopeId","data-v-1f8b6bbf"]]);wx.createComponent(o);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const s=require("../../../../../utils/env.js"),a=require("../../../emoji-config/index.js");Math||(i+n+r)();const n=()=>"../../../../common/Overlay/index.js",r=()=>"../../../../common/Drawer/index.js",i=()=>"../simple-message-list/index.js",t=e.defineComponent({__name:"index",props:{renderData:{},disabled:{type:Boolean,default:!1},messageItem:{default:()=>({})}},emits:["assignMessageIDInUniapp"],setup(n,{emit:r}){const i=r,t=n,o=e.ref(!1);function d(){t.disabled||(s.isUniFrameWork?i("assignMessageIDInUniapp",t.messageItem.ID):o.value=!0)}function m(){o.value=!1}return(n,r)=>e.e({a:e.t(t.renderData.title),b:e.f(t.renderData.abstractList.slice(0,7),((s,n,r)=>({a:e.t(e.unref(a.transformTextWithKeysToEmojiNames)(s)),b:n}))),c:e.t(e.unref(e.Wt).t("TUIChat.聊天记录")),d:e.o$1(d),e:!t.disabled&&e.unref(s.isPC)},!t.disabled&&e.unref(s.isPC)?{f:e.o$1(m),g:e.p({isMounted:e.unref(o),renderData:t.renderData,messageID:t.messageItem.ID}),h:e.o$1((e=>o.value=!1)),i:e.p({visible:e.unref(o)})}:t.disabled||!e.unref(s.isH5)||e.unref(s.isUniFrameWork)?{}:{k:e.o$1(m),l:e.p({isMounted:e.unref(o),renderData:t.renderData,messageID:t.messageItem.ID}),m:e.p({visible:e.unref(o),isFullScreen:!0,overlayColor:"transparent",popDirection:"right"})},{j:!t.disabled&&e.unref(s.isH5)&&!e.unref(s.isUniFrameWork)})}}),o=e._export_sfc(t,[["__scopeId","data-v-1a0f406f"]]);wx.createComponent(o);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="data-v-1f8b6bbf"><view class="message-record-container data-v-1f8b6bbf" bindtap="{{d}}"><view class="record-title data-v-1f8b6bbf">{{a}}</view><view class="record-abstract-container data-v-1f8b6bbf"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="record-abstract-item data-v-1f8b6bbf">{{item.a}}</view></view><view class="record-footer data-v-1f8b6bbf">{{c}}</view></view><overlay wx:if="{{e}}" class="data-v-1f8b6bbf" u-s="{{['d']}}" bindonOverlayClick="{{h}}" u-i="1f8b6bbf-0" bind:__l="__l" u-p="{{i}}"><simple-message-list wx:if="{{g}}" class="data-v-1f8b6bbf" bindcloseOverlay="{{f}}" u-i="1f8b6bbf-1,1f8b6bbf-0" bind:__l="__l" u-p="{{g}}"/></overlay><drawer wx:elif="{{j}}" class="data-v-1f8b6bbf" u-s="{{['d']}}" u-i="1f8b6bbf-2" bind:__l="__l" u-p="{{m}}"><simple-message-list wx:if="{{l}}" class="data-v-1f8b6bbf" bindcloseOverlay="{{k}}" u-i="1f8b6bbf-3,1f8b6bbf-2" bind:__l="__l" u-p="{{l}}"/></drawer></view>
|
||||
<view class="data-v-1a0f406f"><view class="message-record-container data-v-1a0f406f" bindtap="{{d}}"><view class="record-title data-v-1a0f406f">{{a}}</view><view class="record-abstract-container data-v-1a0f406f"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="record-abstract-item data-v-1a0f406f">{{item.a}}</view></view><view class="record-footer data-v-1a0f406f">{{c}}</view></view><overlay wx:if="{{e}}" class="data-v-1a0f406f" u-s="{{['d']}}" bindonOverlayClick="{{h}}" u-i="1a0f406f-0" bind:__l="__l" u-p="{{i}}"><simple-message-list wx:if="{{g}}" class="data-v-1a0f406f" bindcloseOverlay="{{f}}" u-i="1a0f406f-1,1a0f406f-0" bind:__l="__l" u-p="{{g}}"/></overlay><drawer wx:elif="{{j}}" class="data-v-1a0f406f" u-s="{{['d']}}" u-i="1a0f406f-2" bind:__l="__l" u-p="{{m}}"><simple-message-list wx:if="{{l}}" class="data-v-1a0f406f" bindcloseOverlay="{{k}}" u-i="1a0f406f-3,1a0f406f-2" bind:__l="__l" u-p="{{l}}"/></drawer></view>
|
||||
@@ -1 +1 @@
|
||||
.data-v-1f8b6bbf:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}.message-record-container.data-v-1f8b6bbf{padding:10px 15px;border:1px solid #ddd;border-radius:10px;cursor:pointer;background-color:#fff;max-width:400px;min-width:180px;overflow:hidden}.message-record-container .record-abstract-container.data-v-1f8b6bbf{color:#bbb;font-size:12px;margin:8px 0}.message-record-container .record-footer.data-v-1f8b6bbf{color:#888;font-size:11px;padding-top:5px;border-top:1px solid #eee}
|
||||
.data-v-1a0f406f:not(not){display:flex;flex-direction:column;box-sizing:border-box;min-width:0}.message-record-container.data-v-1a0f406f{padding:10px 15px;border:1px solid #ddd;border-radius:10px;cursor:pointer;background-color:#fff;max-width:400px;min-width:180px;overflow:hidden}.message-record-container .record-abstract-container.data-v-1a0f406f{color:#bbb;font-size:12px;margin:8px 0}.message-record-container .record-footer.data-v-1a0f406f{color:#888;font-size:11px;padding-top:5px;border-top:1px solid #eee}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js"),require("../../emoji-config/index.js");const t=require("../../../../utils/env.js"),n=e.defineComponent({__name:"message-text",props:{content:{default:()=>({})},messageItem:{default:()=>({})},enableURLHighlight:{type:Boolean,default:!1}},setup(n){const a=n,l=e.ref([]);return e.watch((()=>a.messageItem),((t,n)=>{var o,r,s,u,i,m;(null==t?void 0:t.ID)!==(null==n?void 0:n.ID)&&(a.enableURLHighlight&&e.ss.reportFeature(208),a.messageItem.getMessageContent?l.value=null==(o=a.messageItem.getMessageContent())?void 0:o.text:l.value=null==(s=null==(r=e.Jt.getMessageModel(a.messageItem.ID))?void 0:r.getMessageContent())?void 0:s.text,l.value=l.value||(null==(u=a.content)?void 0:u.text),(null==(i=l.value)?void 0:i.length)?l.value=null==(m=l.value.map((t=>{if("img"===t.name&&"custom"===(null==t?void 0:t.type))return console.warn("CUSTOM_BASIC_EMOJI_URL is required for custom emoji."),t;if(a.enableURLHighlight&&"text"===t.name&&t.text){if(!e.A$1)return console.warn("parseTextAndValidateUrls not found. Please update @tencentcloud/universal-api to 2.3.7 or higher."),t;const n=e.A$1(t.text);if(n.length)return n.map((e=>({name:e.type,text:e.text,url:e.url})))}return t})))?void 0:m.flat():l.value=[])}),{deep:!0,immediate:!0}),(n,a)=>({a:e.f(e.unref(l),((n,a,l)=>e.e({a:"text"===n.name},"text"===n.name?{b:e.t(n.text)}:"url"===n.name?{d:e.t(n.text),e:e.o$1((a=>{var l;(l=n.url)&&(t.isUniFrameWork?e.i.navigateTo({url:`/pages/views/webview?url=${l}`}):e.i.open(l,"_blank"))}),a)}:{f:n.src,g:n.emojiKey},{c:"url"===n.name,h:a}))),b:e.n(e.unref(t.isPC)&&"text-select")})}}),a=e._export_sfc(n,[["__scopeId","data-v-0cc53a88"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js"),require("../../emoji-config/index.js");const t=require("../../../../utils/env.js"),n=e.defineComponent({__name:"message-text",props:{content:{default:()=>({})},messageItem:{default:()=>({})},enableURLHighlight:{type:Boolean,default:!1}},setup(n){const a=n,l=e.ref([]);return e.watch((()=>a.messageItem),((t,n)=>{var o,r,s,u,i,m;(null==t?void 0:t.ID)!==(null==n?void 0:n.ID)&&(a.enableURLHighlight&&e.ss.reportFeature(208),a.messageItem.getMessageContent?l.value=null==(o=a.messageItem.getMessageContent())?void 0:o.text:l.value=null==(s=null==(r=e.Jt.getMessageModel(a.messageItem.ID))?void 0:r.getMessageContent())?void 0:s.text,l.value=l.value||(null==(u=a.content)?void 0:u.text),(null==(i=l.value)?void 0:i.length)?l.value=null==(m=l.value.map((t=>{if("img"===t.name&&"custom"===(null==t?void 0:t.type))return console.warn("CUSTOM_BASIC_EMOJI_URL is required for custom emoji."),t;if(a.enableURLHighlight&&"text"===t.name&&t.text){if(!e.A$1)return console.warn("parseTextAndValidateUrls not found. Please update @tencentcloud/universal-api to 2.3.7 or higher."),t;const n=e.A$1(t.text);if(n.length)return n.map((e=>({name:e.type,text:e.text,url:e.url})))}return t})))?void 0:m.flat():l.value=[])}),{deep:!0,immediate:!0}),(n,a)=>({a:e.f(e.unref(l),((n,a,l)=>e.e({a:"text"===n.name},"text"===n.name?{b:e.t(n.text)}:"url"===n.name?{d:e.t(n.text),e:e.o$1((a=>{var l;(l=n.url)&&(t.isUniFrameWork?e.i.navigateTo({url:`/pages/views/webview?url=${l}`}):e.i.open(l,"_blank"))}),a)}:{f:n.src,g:n.emojiKey},{c:"url"===n.name,h:a}))),b:e.n(e.unref(t.isPC)&&"text-select")})}}),a=e._export_sfc(n,[["__scopeId","data-v-7d054f1e"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-0cc53a88', 'message-text-container', b]}}"><label wx:for="{{a}}" wx:for-item="item" wx:key="h" class="data-v-0cc53a88"><label wx:if="{{item.a}}" class="text data-v-0cc53a88">{{item.b}}</label><label wx:elif="{{item.c}}" class="url-link data-v-0cc53a88" bindtap="{{item.e}}">{{item.d}}</label><image wx:else class="emoji data-v-0cc53a88" src="{{item.f}}" alt="{{item.g}}"></image></label></view>
|
||||
<view class="{{['data-v-7d054f1e', 'message-text-container', b]}}"><label wx:for="{{a}}" wx:for-item="item" wx:key="h" class="data-v-7d054f1e"><label wx:if="{{item.a}}" class="text data-v-7d054f1e">{{item.b}}</label><label wx:elif="{{item.c}}" class="url-link data-v-7d054f1e" bindtap="{{item.e}}">{{item.d}}</label><image wx:else class="emoji data-v-7d054f1e" src="{{item.f}}" alt="{{item.g}}"></image></label></view>
|
||||
@@ -1 +1 @@
|
||||
.message-text-container.data-v-0cc53a88{display:inline;font-size:0;letter-spacing:-1px}.text-select.data-v-0cc53a88{-webkit-user-select:text;user-select:text}.text.data-v-0cc53a88::selection,.emoji.data-v-0cc53a88::selection,.url-link.data-v-0cc53a88::selection{background-color:#b4d5fe;color:inherit;cursor:text}.emoji.data-v-0cc53a88{font-size:0;vertical-align:bottom;width:20px;height:20px}.text.data-v-0cc53a88,.url-link.data-v-0cc53a88{font-size:14px;white-space:pre-wrap;word-break:break-all;letter-spacing:normal}.url-link.data-v-0cc53a88{color:#0366d6;text-decoration:none;word-break:break-all;cursor:text}.url-link.data-v-0cc53a88:hover:not(:active){cursor:pointer}.url-link.data-v-0cc53a88:visited{color:#0366d6}
|
||||
.message-text-container.data-v-7d054f1e{display:inline;font-size:0;letter-spacing:-1px}.text-select.data-v-7d054f1e{-webkit-user-select:text;user-select:text}.text.data-v-7d054f1e::selection,.emoji.data-v-7d054f1e::selection,.url-link.data-v-7d054f1e::selection{background-color:#b4d5fe;color:inherit;cursor:text}.emoji.data-v-7d054f1e{font-size:0;vertical-align:bottom;width:20px;height:20px}.text.data-v-7d054f1e,.url-link.data-v-7d054f1e{font-size:14px;white-space:pre-wrap;word-break:break-all;letter-spacing:normal}.url-link.data-v-7d054f1e{color:#0366d6;text-decoration:none;word-break:break-all;cursor:text}.url-link.data-v-7d054f1e:hover:not(:active){cursor:pointer}.url-link.data-v-7d054f1e:visited{color:#0366d6}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../utils/utils.js"),r=e.defineComponent({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(r){const u=r,{currTime:a,prevTime:i}=e.toRefs(u),n=e.ref(!1),s=e.ref("");return e.watch((()=>[a.value,i.value]),((e,r)=>{var u,m;(null==e?void 0:e.toString())!==(null==r?void 0:r.toString())&&(s.value=(u=a.value,m=i.value,n.value=!1,u<=0?"":!m||m<=0||u-m>=600?(n.value=!0,t.calculateTimestamp(1e3*u)):""))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(n)},e.unref(n)?{b:e.t(e.unref(s))}:{})}}),u=e._export_sfc(r,[["__scopeId","data-v-3ce7f312"]]);wx.createComponent(u);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../utils/utils.js"),r=e.defineComponent({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(r){const u=r,{currTime:a,prevTime:i}=e.toRefs(u),n=e.ref(!1),s=e.ref("");return e.watch((()=>[a.value,i.value]),((e,r)=>{var u,m;(null==e?void 0:e.toString())!==(null==r?void 0:r.toString())&&(s.value=(u=a.value,m=i.value,n.value=!1,u<=0?"":!m||m<=0||u-m>=600?(n.value=!0,t.calculateTimestamp(1e3*u)):""))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(n)},e.unref(n)?{b:e.t(e.unref(s))}:{})}}),u=e._export_sfc(r,[["__scopeId","data-v-c78b0657"]]);wx.createComponent(u);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="message-timestamp data-v-3ce7f312">{{b}}</view>
|
||||
<view wx:if="{{a}}" class="message-timestamp data-v-c78b0657">{{b}}</view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-3ce7f312,div.data-v-3ce7f312,ul.data-v-3ce7f312,ol.data-v-3ce7f312,dt.data-v-3ce7f312,dd.data-v-3ce7f312,li.data-v-3ce7f312,dl.data-v-3ce7f312,h1.data-v-3ce7f312,h2.data-v-3ce7f312,h3.data-v-3ce7f312,h4.data-v-3ce7f312,p.data-v-3ce7f312{margin:0;padding:0;font-style:normal}ol.data-v-3ce7f312,ul.data-v-3ce7f312,li.data-v-3ce7f312{list-style:none}img.data-v-3ce7f312{border:0;vertical-align:middle;pointer-events:none}body.data-v-3ce7f312{color:#000;background:#fff}.clear.data-v-3ce7f312{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-3ce7f312{color:#000;text-decoration:none;cursor:pointer}a.data-v-3ce7f312:hover{text-decoration:none}input.data-v-3ce7f312,textarea.data-v-3ce7f312{-webkit-user-select:auto;user-select:auto}input.data-v-3ce7f312:focus,input.data-v-3ce7f312:active,textarea.data-v-3ce7f312:focus,textarea.data-v-3ce7f312:active{outline:none}.chat-aside.data-v-3ce7f312{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-timestamp.data-v-3ce7f312{margin:10px auto;color:#999;font-size:12px;overflow-wrap:anywhere;display:flex;align-items:center;text-align:center}
|
||||
body.data-v-c78b0657,div.data-v-c78b0657,ul.data-v-c78b0657,ol.data-v-c78b0657,dt.data-v-c78b0657,dd.data-v-c78b0657,li.data-v-c78b0657,dl.data-v-c78b0657,h1.data-v-c78b0657,h2.data-v-c78b0657,h3.data-v-c78b0657,h4.data-v-c78b0657,p.data-v-c78b0657{margin:0;padding:0;font-style:normal}ol.data-v-c78b0657,ul.data-v-c78b0657,li.data-v-c78b0657{list-style:none}img.data-v-c78b0657{border:0;vertical-align:middle;pointer-events:none}body.data-v-c78b0657{color:#000;background:#fff}.clear.data-v-c78b0657{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-c78b0657{color:#000;text-decoration:none;cursor:pointer}a.data-v-c78b0657:hover{text-decoration:none}input.data-v-c78b0657,textarea.data-v-c78b0657{-webkit-user-select:auto;user-select:auto}input.data-v-c78b0657:focus,input.data-v-c78b0657:active,textarea.data-v-c78b0657:focus,textarea.data-v-c78b0657:active{outline:none}.chat-aside.data-v-c78b0657{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-timestamp.data-v-c78b0657{margin:10px auto;color:#999;font-size:12px;overflow-wrap:anywhere;display:flex;align-items:center;text-align:center}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-tip",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,o=e.computed((()=>{var e,t;return(null==(e=n.content)?void 0:e.text)||(null==(t=n.content)?void 0:t.custom)||""}));return(t,n)=>({a:e.t(e.unref(o))})}}),n=e._export_sfc(t,[["__scopeId","data-v-dc783ee0"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=e.defineComponent({__name:"message-tip",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,o=e.computed((()=>{var e,t;return(null==(e=n.content)?void 0:e.text)||(null==(t=n.content)?void 0:t.custom)||""}));return(t,n)=>({a:e.t(e.unref(o))})}}),n=e._export_sfc(t,[["__scopeId","data-v-a6439730"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="message-tip data-v-dc783ee0"><label class="data-v-dc783ee0">{{a}}</label></view>
|
||||
<view class="message-tip data-v-a6439730"><label class="data-v-a6439730">{{a}}</label></view>
|
||||
@@ -1 +1 @@
|
||||
body.data-v-dc783ee0,div.data-v-dc783ee0,ul.data-v-dc783ee0,ol.data-v-dc783ee0,dt.data-v-dc783ee0,dd.data-v-dc783ee0,li.data-v-dc783ee0,dl.data-v-dc783ee0,h1.data-v-dc783ee0,h2.data-v-dc783ee0,h3.data-v-dc783ee0,h4.data-v-dc783ee0,p.data-v-dc783ee0{margin:0;padding:0;font-style:normal}ol.data-v-dc783ee0,ul.data-v-dc783ee0,li.data-v-dc783ee0{list-style:none}img.data-v-dc783ee0{border:0;vertical-align:middle;pointer-events:none}body.data-v-dc783ee0{color:#000;background:#fff}.clear.data-v-dc783ee0{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-dc783ee0{color:#000;text-decoration:none;cursor:pointer}a.data-v-dc783ee0:hover{text-decoration:none}input.data-v-dc783ee0,textarea.data-v-dc783ee0{-webkit-user-select:auto;user-select:auto}input.data-v-dc783ee0:focus,input.data-v-dc783ee0:active,textarea.data-v-dc783ee0:focus,textarea.data-v-dc783ee0:active{outline:none}.chat-aside.data-v-dc783ee0{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-tip.data-v-dc783ee0{margin:0 auto 10px;padding:0 20px;color:#999;font-size:12px;overflow-wrap:anywhere;display:flex;place-content:center center;align-items:center;text-align:center}.message-tip-highlight.data-v-dc783ee0{animation:highlight-dc783ee0 1s infinite}@keyframes highlight-dc783ee0{50%{color:#ff9c19}}
|
||||
body.data-v-a6439730,div.data-v-a6439730,ul.data-v-a6439730,ol.data-v-a6439730,dt.data-v-a6439730,dd.data-v-a6439730,li.data-v-a6439730,dl.data-v-a6439730,h1.data-v-a6439730,h2.data-v-a6439730,h3.data-v-a6439730,h4.data-v-a6439730,p.data-v-a6439730{margin:0;padding:0;font-style:normal}ol.data-v-a6439730,ul.data-v-a6439730,li.data-v-a6439730{list-style:none}img.data-v-a6439730{border:0;vertical-align:middle;pointer-events:none}body.data-v-a6439730{color:#000;background:#fff}.clear.data-v-a6439730{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-a6439730{color:#000;text-decoration:none;cursor:pointer}a.data-v-a6439730:hover{text-decoration:none}input.data-v-a6439730,textarea.data-v-a6439730{-webkit-user-select:auto;user-select:auto}input.data-v-a6439730:focus,input.data-v-a6439730:active,textarea.data-v-a6439730:focus,textarea.data-v-a6439730:active{outline:none}.chat-aside.data-v-a6439730{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-tip.data-v-a6439730{margin:0 auto 10px;padding:0 20px;color:#999;font-size:12px;overflow-wrap:anywhere;display:flex;place-content:center center;align-items:center;text-align:center}.message-tip-highlight.data-v-a6439730{animation:highlight-a6439730 1s infinite}@keyframes highlight-a6439730{50%{color:#ff9c19}}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=require("../../../../../../common/assets.js");Math||(o+t)();const t=()=>"../../../../common/Icon.js",o=()=>"./translation-content.js",s=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(t){const o=t,s=e.ref(!1),a=e.ref(!1),r=e.ref();let u=!0;function f(e){a.value=e}function i(e){if(void 0===e)return;u=!1;const n=e.get(o.message.conversationID)||[];for(let t=0;t<n.length;++t){const{messageID:e,visible:r}=n[t];if(e===o.message.ID&&void 0!==r){1===n.length&&r&&(u=!0),a.value=!1,s.value=r;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{translateTextInfo:i})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{translateTextInfo:i})})),(t,i)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.o$1(f),c:e.p({message:o.message,translationContentVisible:e.unref(s),translationWrapperRef:e.unref(r),isSingleTranslation:e.unref(u)}),d:e.p({file:e.unref(n.checkIcon),size:"13px"}),e:e.t(e.unref(e.Wt).t("TUIChat.由IM提供翻译支持")),f:"out"===o.message.flow?1:"",g:e.unref(a)?1:""}:{})}}),a=e._export_sfc(s,[["__scopeId","data-v-7bda794e"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=require("../../../../../../common/assets.js");Math||(o+t)();const t=()=>"../../../../common/Icon.js",o=()=>"./translation-content.js",s=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(t){const o=t,s=e.ref(!1),a=e.ref(!1),r=e.ref();let u=!0;function c(e){a.value=e}function f(e){if(void 0===e)return;u=!1;const n=e.get(o.message.conversationID)||[];for(let t=0;t<n.length;++t){const{messageID:e,visible:r}=n[t];if(e===o.message.ID&&void 0!==r){1===n.length&&r&&(u=!0),a.value=!1,s.value=r;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{translateTextInfo:f})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{translateTextInfo:f})})),(t,f)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.o$1(c),c:e.p({message:o.message,translationContentVisible:e.unref(s),translationWrapperRef:e.unref(r),isSingleTranslation:e.unref(u)}),d:e.p({file:e.unref(n.checkIcon),size:"13px"}),e:e.t(e.unref(e.Wt).t("TUIChat.由IM提供翻译支持")),f:"out"===o.message.flow?1:"",g:e.unref(a)?1:""}:{})}}),a=e._export_sfc(s,[["__scopeId","data-v-8bab923c"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" ref="translationWrapperRef" class="{{['data-v-7bda794e', 'message-translation', f && 'reverse', g && 'error']}}"><translation-content wx:if="{{c}}" class="data-v-7bda794e" bindtoggleErrorStatus="{{b}}" u-i="7bda794e-0" bind:__l="__l" u-p="{{c}}"/><view class="copyright data-v-7bda794e"><icon wx:if="{{d}}" class="data-v-7bda794e" u-i="7bda794e-1" bind:__l="__l" u-p="{{d}}"/><view class="copyright-text data-v-7bda794e">{{e}}</view></view></view>
|
||||
<view wx:if="{{a}}" ref="translationWrapperRef" class="{{['data-v-8bab923c', 'message-translation', f && 'reverse', g && 'error']}}"><translation-content wx:if="{{c}}" class="data-v-8bab923c" bindtoggleErrorStatus="{{b}}" u-i="8bab923c-0" bind:__l="__l" u-p="{{c}}"/><view class="copyright data-v-8bab923c"><icon wx:if="{{d}}" class="data-v-8bab923c" u-i="8bab923c-1" bind:__l="__l" u-p="{{d}}"/><view class="copyright-text data-v-8bab923c">{{e}}</view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.message-translation.data-v-7bda794e{margin-top:4px;margin-left:44px;padding:10px;background-color:#f2f7ff;border-radius:10px;display:flex;flex-direction:column!important;transition:background-color .15s ease-out}.message-translation.error.data-v-7bda794e{background-color:#ffdfdf}.message-translation .copyright.data-v-7bda794e{display:flex;align-items:center;margin-top:10px}.message-translation .copyright .copyright-text.data-v-7bda794e{margin-left:2px;font-size:12px;color:#999}.message-translation.reverse.data-v-7bda794e{margin-right:44px;margin-left:auto}
|
||||
.message-translation.data-v-8bab923c{margin-top:4px;margin-left:44px;padding:10px;background-color:#f2f7ff;border-radius:10px;display:flex;flex-direction:column!important;transition:background-color .15s ease-out}.message-translation.error.data-v-8bab923c{background-color:#ffdfdf}.message-translation .copyright.data-v-8bab923c{display:flex;align-items:center;margin-top:10px}.message-translation .copyright .copyright-text.data-v-8bab923c{margin-left:2px;font-size:12px;color:#999}.message-translation.reverse.data-v-8bab923c{margin-right:44px;margin-left:auto}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/translation.js"),n=e.defineComponent({__name:"translation-content",props:{message:{default:()=>({})},translationContentVisible:{type:Boolean},isSingleTranslation:{type:Boolean},translationWrapperRef:{}},setup(n){const a=n,r=e.ref(!1),s=e.ref(""),o=e.ref([]);return e.watch((()=>a.translationContentVisible),(e=>{e&&t.translator.get(a.message).then((e=>{r.value=!0,o.value=e})).catch((e=>{r.value=!0,emits("toggleErrorStatus",!0),s.value=e.message}))}),{immediate:!0}),(t,n)=>e.e({a:e.unref(r)},e.unref(r)?e.e({b:e.unref(o).length>0},e.unref(o).length>0?{c:e.f(e.unref(o),((t,n,a)=>e.e({a:"face"===t.type},"face"===t.type?{b:t.value}:{c:e.t(t.value)},{d:n})))}:{d:e.t(e.unref(s))},{e:`translation-content-${a.message.ID}`}):{},{f:e.t(e.unref(e.Wt).t("TUIChat.翻译中")),g:e.unref(r)?1:""})}}),a=e._export_sfc(n,[["__scopeId","data-v-9359ed9c"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/translation.js"),n=e.defineComponent({__name:"translation-content",props:{message:{default:()=>({})},translationContentVisible:{type:Boolean},isSingleTranslation:{type:Boolean},translationWrapperRef:{}},setup(n){const a=n,r=e.ref(!1),s=e.ref(""),o=e.ref([]);return e.watch((()=>a.translationContentVisible),(e=>{e&&t.translator.get(a.message).then((e=>{r.value=!0,o.value=e})).catch((e=>{r.value=!0,emits("toggleErrorStatus",!0),s.value=e.message}))}),{immediate:!0}),(t,n)=>e.e({a:e.unref(r)},e.unref(r)?e.e({b:e.unref(o).length>0},e.unref(o).length>0?{c:e.f(e.unref(o),((t,n,a)=>e.e({a:"face"===t.type},"face"===t.type?{b:t.value}:{c:e.t(t.value)},{d:n})))}:{d:e.t(e.unref(s))},{e:`translation-content-${a.message.ID}`}):{},{f:e.t(e.unref(e.Wt).t("TUIChat.翻译中")),g:e.unref(r)?1:""})}}),a=e._export_sfc(n,[["__scopeId","data-v-937aa6a8"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="message-translation-container data-v-9359ed9c"><view wx:if="{{a}}" id="{{e}}" class="{{['data-v-9359ed9c', 'translation-content', 'occur']}}"><block wx:if="{{b}}"><label wx:for="{{c}}" wx:for-item="text" wx:key="d" class="data-v-9359ed9c"><image wx:if="{{text.a}}" class="text-face data-v-9359ed9c" src="{{text.b}}"></image><label wx:else class="text-plain data-v-9359ed9c">{{text.c}}</label></label></block><block wx:else>{{d}}</block></view><view class="{{['data-v-9359ed9c', 'loading', g && 'loading-end']}}">{{f}}... </view></view>
|
||||
<view class="message-translation-container data-v-937aa6a8"><view wx:if="{{a}}" id="{{e}}" class="{{['data-v-937aa6a8', 'translation-content', 'occur']}}"><block wx:if="{{b}}"><label wx:for="{{c}}" wx:for-item="text" wx:key="d" class="data-v-937aa6a8"><image wx:if="{{text.a}}" class="text-face data-v-937aa6a8" src="{{text.b}}"></image><label wx:else class="text-plain data-v-937aa6a8">{{text.c}}</label></label></block><block wx:else>{{d}}</block></view><view class="{{['data-v-937aa6a8', 'loading', g && 'loading-end']}}">{{f}}... </view></view>
|
||||
@@ -1 +1 @@
|
||||
.message-translation-container.data-v-9359ed9c{min-height:16px;min-width:80px;position:relative;transition:width .15s ease-out,height .15s ease-out;font-size:14px}.message-translation-container .loading.data-v-9359ed9c{position:absolute;top:0;left:0;opacity:1;transition:opacity .3s ease-out}.message-translation-container .loading.loading-end.data-v-9359ed9c,.message-translation-container .translation-content.data-v-9359ed9c{opacity:0}.message-translation-container .translation-content.occur.data-v-9359ed9c{animation:occur-9359ed9c .3s ease-out .45s forwards}@keyframes occur-9359ed9c{to{opacity:1}}.message-translation-container .translation-content .text-face.data-v-9359ed9c{width:20px;height:20px}
|
||||
.message-translation-container.data-v-937aa6a8{min-height:16px;min-width:80px;position:relative;transition:width .15s ease-out,height .15s ease-out;font-size:14px}.message-translation-container .loading.data-v-937aa6a8{position:absolute;top:0;left:0;opacity:1;transition:opacity .3s ease-out}.message-translation-container .loading.loading-end.data-v-937aa6a8,.message-translation-container .translation-content.data-v-937aa6a8{opacity:0}.message-translation-container .translation-content.occur.data-v-937aa6a8{animation:occur-937aa6a8 .3s ease-out .45s forwards}@keyframes occur-937aa6a8{to{opacity:1}}.message-translation-container .translation-content .text-face.data-v-937aa6a8{width:20px;height:20px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),s=require("../../../../../common/assets.js");Math||t();const t=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"message-video",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(t){const o=t;function n(){const s=encodeURIComponent(o.content.url);e.index.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${s}`})}return(t,c)=>e.e({a:o.content.snapshotUrl,b:"success"===o.messageItem.status||1===o.messageItem.progress},"success"===o.messageItem.status||1===o.messageItem.progress?{c:e.p({file:e.unref(s.playIcon)})}:{},{d:e.o$1(n)})}}),n=e._export_sfc(o,[["__scopeId","data-v-0e694d11"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../common/vendor.js"),s=require("../../../../../common/assets.js");Math||t();const t=()=>"../../../common/Icon.js",o=e.defineComponent({__name:"message-video",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(t){const o=t;function n(){const s=encodeURIComponent(o.content.url);e.index.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${s}`})}return(t,a)=>e.e({a:o.content.snapshotUrl,b:"success"===o.messageItem.status||1===o.messageItem.progress},"success"===o.messageItem.status||1===o.messageItem.progress?{c:e.p({file:e.unref(s.playIcon)})}:{},{d:e.o$1(n)})}}),n=e._export_sfc(o,[["__scopeId","data-v-4865446a"]]);wx.createComponent(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="message-video data-v-0e694d11"><view class="message-video-box data-v-0e694d11" bindtap="{{d}}"><image src="{{a}}" class="message-video-box data-v-0e694d11"/><icon wx:if="{{b}}" class="video-play data-v-0e694d11" u-i="0e694d11-0" bind:__l="__l" u-p="{{c}}"/></view></view>
|
||||
<view class="message-video data-v-4865446a"><view class="message-video-box data-v-4865446a" bindtap="{{d}}"><image src="{{a}}" class="message-video-box data-v-4865446a"/><icon wx:if="{{b}}" class="video-play data-v-4865446a" u-i="4865446a-0" bind:__l="__l" u-p="{{c}}"/></view></view>
|
||||
@@ -1 +1 @@
|
||||
.message-video.data-v-0e694d11{position:relative}.message-video-box.data-v-0e694d11{width:120px;max-width:120px;background-color:rgba(0,0,0,.3);border-radius:6px;height:200px;font-size:0}.message-video .video-play.data-v-0e694d11{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
|
||||
.message-video.data-v-4865446a{position:relative}.message-video-box.data-v-4865446a{width:120px;max-width:120px;background-color:rgba(0,0,0,.3);border-radius:6px;height:200px;font-size:0}.message-video .video-play.data-v-4865446a{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../config.js"),n=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["openReadUserPanel"],setup(n,{emit:a}){const s=a,o=n,r=t.ChatConfig.getFeatureConfig("ReadStatus"),u=e.qt.TYPES,c=e.ref(e.Jt.getData(e.o.USER,"displayMessageReadReceipt"));e.onMounted((()=>{e.Jt.watch(e.o.USER,{displayMessageReadReceipt:g})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.USER,{displayMessageReadReceipt:g})}));const i=e.computed((()=>{if(!r)return!1;if(!c.value)return!1;const{ID:t,type:n,flow:a,status:s,hasRiskContent:i,conversationID:d,conversationType:p,needReadReceipt:R=!1}=o.message;if(i)return!1;const{groupProfile:l}=e.Jt.getConversationModel(d)||{};if((null==l?void 0:l.type)===u.GRP_AVCHATROOM||(null==l?void 0:l.type)===u.GRP_COMMUNITY)return!1;if(n===u.MSG_CUSTOM){const n=e.Jt.getMessageModel(t);if(null!==(null==n?void 0:n.getSignalingInfo()))return!1}return"out"===a&&"success"===s&&("GROUP"===p?R:"C2C"===p)})),d=e.computed((()=>{const{conversationType:e,needReadReceipt:t=!1,isPeerRead:n=!1}=o.message,{readCount:a=0,unreadCount:s=0,isPeerRead:r=!1}=o.message.readReceiptInfo;return"C2C"===e?t?r?0:1:n?0:1:"GROUP"===e?t?0===a?1:0===s?2:4:3:1})),p=e.computed((()=>{const{readCount:t=0}=o.message.readReceiptInfo;switch(d.value){case 0:return e.Wt.t("TUIChat.已读");case 1:return e.Wt.t("TUIChat.未读");case 2:return e.Wt.t("TUIChat.全部已读");case 4:return`${t}${e.Wt.t("TUIChat.人已读")}`;default:return""}})),R=e.computed((()=>{const{conversationType:e}=o.message;return"C2C"===e?0!==d.value:"GROUP"===e&&2!==d.value})),l=e.computed((()=>o.message.needReadReceipt&&"GROUP"===o.message.conversationType&&(4===d.value||1===d.value)));function f(){l.value&&s("openReadUserPanel")}function g(e){c.value=e}return(t,n)=>({a:e.t(e.unref(p)),b:e.unref(i),c:e.unref(R)?1:"",d:e.unref(l)?1:"",e:e.o$1(f)})}}),a=e._export_sfc(n,[["__scopeId","data-v-a27dab90"]]);wx.createComponent(a);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../config.js"),n=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["openReadUserPanel"],setup(n,{emit:a}){const s=a,o=n,r=t.ChatConfig.getFeatureConfig("ReadStatus"),u=e.qt.TYPES,c=e.ref(e.Jt.getData(e.o.USER,"displayMessageReadReceipt"));e.onMounted((()=>{e.Jt.watch(e.o.USER,{displayMessageReadReceipt:g})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.USER,{displayMessageReadReceipt:g})}));const i=e.computed((()=>{if(!r)return!1;if(!c.value)return!1;const{ID:t,type:n,flow:a,status:s,hasRiskContent:i,conversationID:d,conversationType:p,needReadReceipt:R=!1}=o.message;if(i)return!1;const{groupProfile:l}=e.Jt.getConversationModel(d)||{};if((null==l?void 0:l.type)===u.GRP_AVCHATROOM||(null==l?void 0:l.type)===u.GRP_COMMUNITY)return!1;if(n===u.MSG_CUSTOM){const n=e.Jt.getMessageModel(t);if(null!==(null==n?void 0:n.getSignalingInfo()))return!1}return"out"===a&&"success"===s&&("GROUP"===p?R:"C2C"===p)})),d=e.computed((()=>{const{conversationType:e,needReadReceipt:t=!1,isPeerRead:n=!1}=o.message,{readCount:a=0,unreadCount:s=0,isPeerRead:r=!1}=o.message.readReceiptInfo;return"C2C"===e?t?r?0:1:n?0:1:"GROUP"===e?t?0===a?1:0===s?2:4:3:1})),p=e.computed((()=>{const{readCount:t=0}=o.message.readReceiptInfo;switch(d.value){case 0:return e.Wt.t("TUIChat.已读");case 1:return e.Wt.t("TUIChat.未读");case 2:return e.Wt.t("TUIChat.全部已读");case 4:return`${t}${e.Wt.t("TUIChat.人已读")}`;default:return""}})),R=e.computed((()=>{const{conversationType:e}=o.message;return"C2C"===e?0!==d.value:"GROUP"===e&&2!==d.value})),l=e.computed((()=>o.message.needReadReceipt&&"GROUP"===o.message.conversationType&&(4===d.value||1===d.value)));function f(){l.value&&s("openReadUserPanel")}function g(e){c.value=e}return(t,n)=>({a:e.t(e.unref(p)),b:e.unref(i),c:e.unref(R)?1:"",d:e.unref(l)?1:"",e:e.o$1(f)})}}),a=e._export_sfc(n,[["__scopeId","data-v-3007312d"]]);wx.createComponent(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view hidden="{{!b}}" class="{{['data-v-a27dab90', 'message-label', c && 'unread', d && 'finger-point']}}" bindtap="{{e}}"><label class="data-v-a27dab90">{{a}}</label></view>
|
||||
<view hidden="{{!b}}" class="{{['data-v-3007312d', 'message-label', c && 'unread', d && 'finger-point']}}" bindtap="{{e}}"><label class="data-v-3007312d">{{a}}</label></view>
|
||||
@@ -1 +1 @@
|
||||
.message-label.data-v-a27dab90{align-self:flex-end;font-size:12px;color:#b6b8ba;word-break:keep-all;flex:0 0 auto}.message-label.unread.data-v-a27dab90{color:#679ce1!important}.finger-point.data-v-a27dab90{cursor:pointer;-webkit-tap-highlight-color:transparent}
|
||||
.message-label.data-v-3007312d{align-self:flex-end;font-size:12px;color:#b6b8ba;word-break:keep-all;flex:0 0 auto}.message-label.unread.data-v-3007312d{color:#679ce1!important}.finger-point.data-v-3007312d{cursor:pointer;-webkit-tap-highlight-color:transparent}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const a=require("../../../../../../common/assets.js"),t=require("../../../emoji-config/index.js"),s=require("../../../../../utils/env.js"),o=require("../../../emoji-config/custom-emoji.js"),n=require("../../../emoji-config/default-emoji.js");Math||(r+d+u)();const r=()=>"../../../../common/Icon.js",u=()=>"./message-container.js",d=()=>"../message-record/index.js",i=e.defineComponent({__name:"index",props:{messageID:{default:""},isMounted:{type:Boolean,default:!1}},emits:["closeOverlay"],setup(r,{emit:u}){const d=u,i=r,m=e.qt.TYPES,y=e.ref(!1),f=e.ref([]),l=e.ref({title:"",messageList:[]});e.ref(),e.watch((()=>f.value.length),(async a=>{if(y.value=!1,a<1)return;const t=f.value[f.value.length-1];if(t.downloadKey&&0===t.messageList.length)try{const a=await e.Qt.downloadMergedMessages({payload:t,type:e.qt.TYPES.MSG_MERGER});f.value[f.value.length-1]=a.payload}catch(s){y.value=!0}l.value=f.value[f.value.length-1]})),e.watch((()=>i.isMounted),(a=>{if(a){if(!i.messageID)throw new Error("messageID is required when first render of simple-message-list.");const a=e.Jt.getMessageModel(i.messageID).getMessage().payload;f.value=[a]}else f.value=[]}),{immediate:!0});const p=e.computed((()=>f.value.length>1)),g=e.computed((()=>{var e;return!!(null==(e=l.value)?void 0:e.messageList)&&l.value.messageList.length>0}));function c(){f.value.pop(),f.value.length<1&&d("closeOverlay")}function M(e){let a="";return e.indexOf("@custom")>-1?a=o.CUSTOM_BIG_EMOJI_URL+e:(a=n.DEFAULT_BIG_EMOJI_URL+e,-1===a.indexOf("@2x")?a+="@2x.png":a+=".png"),a}return(o,n)=>e.e({a:e.p({file:e.unref(a.backIcon),size:"18px"}),b:e.unref(p)},e.unref(p)?{c:e.t(e.unref(e.Wt).t("TUIChat.返回"))}:{d:e.t(e.unref(e.Wt).t("TUIChat.关闭"))},{e:e.o$1(c),f:e.t(e.unref(l).title),g:e.unref(y)},e.unref(y)?{}:e.unref(g)?{i:e.f(e.unref(l).messageList,((o,n,r)=>e.e({a:o.messageBody[0].type===e.unref(m).MSG_TEXT},o.messageBody[0].type===e.unref(m).MSG_TEXT?{b:e.f(e.unref(t.parseTextToRenderArray)(o.messageBody[0].payload.text),((a,t,s)=>e.e({a:"text"===a.type},"text"===a.type?{b:e.t(a.content)}:{c:a.content},{d:t})))}:o.messageBody[0].type===e.unref(m).MSG_IMAGE?{d:o.messageBody[0].payload.imageInfoArray[2].url}:o.messageBody[0].type===e.unref(m).MSG_VIDEO?e.e({f:e.unref(s.isUniFrameWork)},e.unref(s.isUniFrameWork)?{g:o.messageBody[0].payload.thumbUrl,h:"b55c57af-2-"+r+",b55c57af-1-"+r,i:e.p({file:e.unref(a.playIcon)}),j:e.o$1((a=>function(a){if(s.isUniFrameWork){const t=encodeURIComponent(a);e.index.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${t}`})}}(o.messageBody[0].payload.remoteVideoUrl)),o.ID)}:{k:o.messageBody[0].payload.remoteVideoUrl,l:o.messageBody[0].payload.thumbUrl}):o.messageBody[0].type===e.unref(m).MSG_AUDIO?{n:e.t(e.unref(e.Wt).t("TUIChat.语音")),o:e.t(o.messageBody[0].payload.second)}:o.messageBody[0].type===e.unref(m).MSG_FACE?{q:M(o.messageBody[0].payload.data)}:o.messageBody[0].type===e.unref(m).MSG_FILE?{s:e.t(e.unref(e.Wt).t("TUIChat.[文件]"))}:o.messageBody[0].type===e.unref(m).MSG_LOCATION?{v:e.t(e.unref(e.Wt).t("TUIChat.[地理位置]"))}:o.messageBody[0].type===e.unref(m).MSG_MERGER?{x:"b55c57af-3-"+r+",b55c57af-1-"+r,y:e.p({disabled:!0,renderData:o.messageBody[0].payload}),z:e.o$1((e=>{return a=e,t=o,f.value.push(t.messageBody[0].payload),void a.stopPropagation();var a,t}),o.ID)}:o.messageBody[0].type===e.unref(m).MSG_CUSTOM?{B:e.t(e.unref(e.Wt).t("TUIChat.[自定义消息]"))}:{},{c:o.messageBody[0].type===e.unref(m).MSG_IMAGE,e:o.messageBody[0].type===e.unref(m).MSG_VIDEO,m:o.messageBody[0].type===e.unref(m).MSG_AUDIO,p:o.messageBody[0].type===e.unref(m).MSG_FACE,r:o.messageBody[0].type===e.unref(m).MSG_FILE,t:o.messageBody[0].type===e.unref(m).MSG_LOCATION,w:o.messageBody[0].type===e.unref(m).MSG_MERGER,A:o.messageBody[0].type===e.unref(m).MSG_CUSTOM,C:"b55c57af-1-"+r,D:e.p({sender:o.nick,avatar:o.avatar,type:o.messageBody[0].type,time:o.time}),E:o.ID})))}:{},{h:e.unref(g),j:e.unref(s.isMobile)?1:""})}}),m=e._export_sfc(i,[["__scopeId","data-v-b55c57af"]]);wx.createComponent(m);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../../../../common/assets.js"),a=require("../../../emoji-config/index.js"),s=require("../../../../../utils/env.js"),o=require("../../../emoji-config/custom-emoji.js"),n=require("../../../emoji-config/default-emoji.js");Math||(r+d+u)();const r=()=>"../../../../common/Icon.js",u=()=>"./message-container.js",d=()=>"../message-record/index.js",f=e.defineComponent({__name:"index",props:{messageID:{default:""},isMounted:{type:Boolean,default:!1}},emits:["closeOverlay"],setup(r,{emit:u}){const d=u,f=r,i=e.qt.TYPES,m=e.ref(!1),y=e.ref([]),l=e.ref({title:"",messageList:[]});e.ref(),e.watch((()=>y.value.length),(async t=>{if(m.value=!1,t<1)return;const a=y.value[y.value.length-1];if(a.downloadKey&&0===a.messageList.length)try{const t=await e.Qt.downloadMergedMessages({payload:a,type:e.qt.TYPES.MSG_MERGER});y.value[y.value.length-1]=t.payload}catch(s){m.value=!0}l.value=y.value[y.value.length-1]})),e.watch((()=>f.isMounted),(t=>{if(t){if(!f.messageID)throw new Error("messageID is required when first render of simple-message-list.");const t=e.Jt.getMessageModel(f.messageID).getMessage().payload;y.value=[t]}else y.value=[]}),{immediate:!0});const p=e.computed((()=>y.value.length>1)),g=e.computed((()=>{var e;return!!(null==(e=l.value)?void 0:e.messageList)&&l.value.messageList.length>0}));function c(){y.value.pop(),y.value.length<1&&d("closeOverlay")}function M(e){let t="";return e.indexOf("@custom")>-1?t=o.CUSTOM_BIG_EMOJI_URL+e:(t=n.DEFAULT_BIG_EMOJI_URL+e,-1===t.indexOf("@2x")?t+="@2x.png":t+=".png"),t}return(o,n)=>e.e({a:e.p({file:e.unref(t.backIcon),size:"18px"}),b:e.unref(p)},e.unref(p)?{c:e.t(e.unref(e.Wt).t("TUIChat.返回"))}:{d:e.t(e.unref(e.Wt).t("TUIChat.关闭"))},{e:e.o$1(c),f:e.t(e.unref(l).title),g:e.unref(m)},e.unref(m)?{}:e.unref(g)?{i:e.f(e.unref(l).messageList,((o,n,r)=>e.e({a:o.messageBody[0].type===e.unref(i).MSG_TEXT},o.messageBody[0].type===e.unref(i).MSG_TEXT?{b:e.f(e.unref(a.parseTextToRenderArray)(o.messageBody[0].payload.text),((t,a,s)=>e.e({a:"text"===t.type},"text"===t.type?{b:e.t(t.content)}:{c:t.content},{d:a})))}:o.messageBody[0].type===e.unref(i).MSG_IMAGE?{d:o.messageBody[0].payload.imageInfoArray[2].url}:o.messageBody[0].type===e.unref(i).MSG_VIDEO?e.e({f:e.unref(s.isUniFrameWork)},e.unref(s.isUniFrameWork)?{g:o.messageBody[0].payload.thumbUrl,h:"366f76ff-2-"+r+",366f76ff-1-"+r,i:e.p({file:e.unref(t.playIcon)}),j:e.o$1((t=>function(t){if(s.isUniFrameWork){const a=encodeURIComponent(t);e.index.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${a}`})}}(o.messageBody[0].payload.remoteVideoUrl)),o.ID)}:{k:o.messageBody[0].payload.remoteVideoUrl,l:o.messageBody[0].payload.thumbUrl}):o.messageBody[0].type===e.unref(i).MSG_AUDIO?{n:e.t(e.unref(e.Wt).t("TUIChat.语音")),o:e.t(o.messageBody[0].payload.second)}:o.messageBody[0].type===e.unref(i).MSG_FACE?{q:M(o.messageBody[0].payload.data)}:o.messageBody[0].type===e.unref(i).MSG_FILE?{s:e.t(e.unref(e.Wt).t("TUIChat.[文件]"))}:o.messageBody[0].type===e.unref(i).MSG_LOCATION?{v:e.t(e.unref(e.Wt).t("TUIChat.[地理位置]"))}:o.messageBody[0].type===e.unref(i).MSG_MERGER?{x:"366f76ff-3-"+r+",366f76ff-1-"+r,y:e.p({disabled:!0,renderData:o.messageBody[0].payload}),z:e.o$1((e=>{return t=e,a=o,y.value.push(a.messageBody[0].payload),void t.stopPropagation();var t,a}),o.ID)}:o.messageBody[0].type===e.unref(i).MSG_CUSTOM?{B:e.t(e.unref(e.Wt).t("TUIChat.[自定义消息]"))}:{},{c:o.messageBody[0].type===e.unref(i).MSG_IMAGE,e:o.messageBody[0].type===e.unref(i).MSG_VIDEO,m:o.messageBody[0].type===e.unref(i).MSG_AUDIO,p:o.messageBody[0].type===e.unref(i).MSG_FACE,r:o.messageBody[0].type===e.unref(i).MSG_FILE,t:o.messageBody[0].type===e.unref(i).MSG_LOCATION,w:o.messageBody[0].type===e.unref(i).MSG_MERGER,A:o.messageBody[0].type===e.unref(i).MSG_CUSTOM,C:"366f76ff-1-"+r,D:e.p({sender:o.nick,avatar:o.avatar,type:o.messageBody[0].type,time:o.time}),E:o.ID})))}:{},{h:e.unref(g),j:e.unref(s.isMobile)?1:""})}}),i=e._export_sfc(f,[["__scopeId","data-v-366f76ff"]]);wx.createComponent(i);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['data-v-b55c57af', 'simple-message-list-container', j && 'simple-message-list-container-mobile']}}"><view class="header-container data-v-b55c57af"><label class="back data-v-b55c57af" bindtap="{{e}}"><icon wx:if="{{a}}" class="close-icon data-v-b55c57af" u-i="b55c57af-0" bind:__l="__l" u-p="{{a}}"/><label wx:if="{{b}}" class="data-v-b55c57af">{{c}}</label><label wx:else class="data-v-b55c57af">{{d}}</label></label><label class="title data-v-b55c57af">{{f}}</label></view><view wx:if="{{g}}" class="data-v-b55c57af"> Load Merge Message Error </view><view wx:elif="{{h}}" ref="simpleMessageListRef" class="message-list data-v-b55c57af"><view wx:for="{{i}}" wx:for-item="item" wx:key="E" class="{{['data-v-b55c57af', 'message-item']}}"><message-container wx:if="{{item.D}}" class="data-v-b55c57af" u-s="{{['d']}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{item.D}}"><view wx:if="{{item.a}}" class="message-text data-v-b55c57af"><label wx:for="{{item.b}}" wx:for-item="textInfo" wx:key="d" class="message-text-container data-v-b55c57af"><label wx:if="{{textInfo.a}}" class="text data-v-b55c57af">{{textInfo.b}}</label><image wx:else class="simple-emoji data-v-b55c57af" src="{{textInfo.c}}" alt="small-face"></image></label></view><view wx:elif="{{item.c}}" class="message-image data-v-b55c57af"><image class="image data-v-b55c57af" src="{{item.d}}" mode="widthFix" alt="image"></image></view><view wx:elif="{{item.e}}" class="message-video data-v-b55c57af"><view wx:if="{{item.f}}" class="data-v-b55c57af" bindtap="{{item.j}}"><image class="image data-v-b55c57af" src="{{item.g}}" mode="widthFix" alt="image"/><icon wx:if="{{item.i}}" class="video-play-icon data-v-b55c57af" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"/></view><video wx:else class="video data-v-b55c57af" controls poster="{{item.l}}"><audio class="data-v-b55c57af" src="{{item.k}}" type="video/mp4"></audio></video></view><view wx:elif="{{item.m}}" class="message-audio data-v-b55c57af"><label class="data-v-b55c57af">{{item.n}} </label><label class="data-v-b55c57af">{{item.o}}s</label></view><view wx:elif="{{item.p}}" class="message-face data-v-b55c57af"><image class="image data-v-b55c57af" src="{{item.q}}" alt="face"></image></view><view wx:elif="{{item.r}}" class="message-file data-v-b55c57af">{{item.s}}</view><view wx:elif="{{item.t}}" class="data-v-b55c57af">{{item.v}}</view><view wx:elif="{{item.w}}" class="message-merger data-v-b55c57af" capture-bind:tap="{{item.z}}"><message-record wx:if="{{item.y}}" class="data-v-b55c57af" u-i="{{item.x}}" bind:__l="__l" u-p="{{item.y}}"/></view><view wx:elif="{{item.A}}" class="data-v-b55c57af">{{item.B}}</view></message-container></view></view></view>
|
||||
<view class="{{['data-v-366f76ff', 'simple-message-list-container', j && 'simple-message-list-container-mobile']}}"><view class="header-container data-v-366f76ff"><label class="back data-v-366f76ff" bindtap="{{e}}"><icon wx:if="{{a}}" class="close-icon data-v-366f76ff" u-i="366f76ff-0" bind:__l="__l" u-p="{{a}}"/><label wx:if="{{b}}" class="data-v-366f76ff">{{c}}</label><label wx:else class="data-v-366f76ff">{{d}}</label></label><label class="title data-v-366f76ff">{{f}}</label></view><view wx:if="{{g}}" class="data-v-366f76ff"> Load Merge Message Error </view><view wx:elif="{{h}}" ref="simpleMessageListRef" class="message-list data-v-366f76ff"><view wx:for="{{i}}" wx:for-item="item" wx:key="E" class="{{['data-v-366f76ff', 'message-item']}}"><message-container wx:if="{{item.D}}" class="data-v-366f76ff" u-s="{{['d']}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{item.D}}"><view wx:if="{{item.a}}" class="message-text data-v-366f76ff"><label wx:for="{{item.b}}" wx:for-item="textInfo" wx:key="d" class="message-text-container data-v-366f76ff"><label wx:if="{{textInfo.a}}" class="text data-v-366f76ff">{{textInfo.b}}</label><image wx:else class="simple-emoji data-v-366f76ff" src="{{textInfo.c}}" alt="small-face"></image></label></view><view wx:elif="{{item.c}}" class="message-image data-v-366f76ff"><image class="image data-v-366f76ff" src="{{item.d}}" mode="widthFix" alt="image"></image></view><view wx:elif="{{item.e}}" class="message-video data-v-366f76ff"><view wx:if="{{item.f}}" class="data-v-366f76ff" bindtap="{{item.j}}"><image class="image data-v-366f76ff" src="{{item.g}}" mode="widthFix" alt="image"/><icon wx:if="{{item.i}}" class="video-play-icon data-v-366f76ff" u-i="{{item.h}}" bind:__l="__l" u-p="{{item.i}}"/></view><video wx:else class="video data-v-366f76ff" controls poster="{{item.l}}"><audio class="data-v-366f76ff" src="{{item.k}}" type="video/mp4"></audio></video></view><view wx:elif="{{item.m}}" class="message-audio data-v-366f76ff"><label class="data-v-366f76ff">{{item.n}} </label><label class="data-v-366f76ff">{{item.o}}s</label></view><view wx:elif="{{item.p}}" class="message-face data-v-366f76ff"><image class="image data-v-366f76ff" src="{{item.q}}" alt="face"></image></view><view wx:elif="{{item.r}}" class="message-file data-v-366f76ff">{{item.s}}</view><view wx:elif="{{item.t}}" class="data-v-366f76ff">{{item.v}}</view><view wx:elif="{{item.w}}" class="message-merger data-v-366f76ff" capture-bind:tap="{{item.z}}"><message-record wx:if="{{item.y}}" class="data-v-366f76ff" u-i="{{item.x}}" bind:__l="__l" u-p="{{item.y}}"/></view><view wx:elif="{{item.A}}" class="data-v-366f76ff">{{item.B}}</view></message-container></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.data-v-b55c57af:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.simple-message-list-container.data-v-b55c57af{position:relative;overflow:hidden;width:40vw;min-width:550px;height:calc(100vh - 200px);background-color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:8px}.simple-message-list-container-mobile.data-v-b55c57af{width:100vw;height:100vh;min-width:auto;border-radius:0}.simple-message-list-container .header-container.data-v-b55c57af{width:100%;text-align:center;font-weight:700;position:absolute;top:0;left:0;z-index:1;height:60px;justify-content:center;align-items:center;padding:0 70px;background-color:#fff}.simple-message-list-container .header-container .back.data-v-b55c57af{flex-direction:row;align-items:center;position:absolute;left:10px;cursor:pointer}.simple-message-list-container .header-container .title.data-v-b55c57af{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.simple-message-list-container .message-list.data-v-b55c57af{padding:60px 20px 20px;flex:1 1 auto;overflow:hidden auto}.message-item.data-v-b55c57af{flex-direction:row;margin:10px 0}.message-text.data-v-b55c57af{flex-flow:row wrap;display:inline}.message-text-container.data-v-b55c57af{display:inline;flex:0 0 auto;flex-direction:row}.message-text-container .text.data-v-b55c57af{vertical-align:bottom;display:inline;word-break:break-all}.message-text-container .simple-emoji.data-v-b55c57af{display:inline-flex;width:20px;height:20px}.message-image.data-v-b55c57af{max-width:180px;border-radius:10px;overflow:hidden}.message-image .image.data-v-b55c57af{max-width:180px}.message-face.data-v-b55c57af{max-width:100px}.message-face .image.data-v-b55c57af{width:80px;height:80px}.message-audio.data-v-b55c57af{flex-direction:row}.message-video.data-v-b55c57af{position:relative}.message-video .image.data-v-b55c57af{max-width:180px}.message-video .video-play-icon.data-v-b55c57af{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.message-video .video.data-v-b55c57af{max-width:150px;width:inherit;height:inherit;border-radius:10px}.message-combine.data-v-b55c57af{max-width:300px}
|
||||
.data-v-366f76ff:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.simple-message-list-container.data-v-366f76ff{position:relative;overflow:hidden;width:40vw;min-width:550px;height:calc(100vh - 200px);background-color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:8px}.simple-message-list-container-mobile.data-v-366f76ff{width:100vw;height:100vh;min-width:auto;border-radius:0}.simple-message-list-container .header-container.data-v-366f76ff{width:100%;text-align:center;font-weight:700;position:absolute;top:0;left:0;z-index:1;height:60px;justify-content:center;align-items:center;padding:0 70px;background-color:#fff}.simple-message-list-container .header-container .back.data-v-366f76ff{flex-direction:row;align-items:center;position:absolute;left:10px;cursor:pointer}.simple-message-list-container .header-container .title.data-v-366f76ff{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.simple-message-list-container .message-list.data-v-366f76ff{padding:60px 20px 20px;flex:1 1 auto;overflow:hidden auto}.message-item.data-v-366f76ff{flex-direction:row;margin:10px 0}.message-text.data-v-366f76ff{flex-flow:row wrap;display:inline}.message-text-container.data-v-366f76ff{display:inline;flex:0 0 auto;flex-direction:row}.message-text-container .text.data-v-366f76ff{vertical-align:bottom;display:inline;word-break:break-all}.message-text-container .simple-emoji.data-v-366f76ff{display:inline-flex;width:20px;height:20px}.message-image.data-v-366f76ff{max-width:180px;border-radius:10px;overflow:hidden}.message-image .image.data-v-366f76ff{max-width:180px}.message-face.data-v-366f76ff{max-width:100px}.message-face .image.data-v-366f76ff{width:80px;height:80px}.message-audio.data-v-366f76ff{flex-direction:row}.message-video.data-v-366f76ff{position:relative}.message-video .image.data-v-366f76ff{max-width:180px}.message-video .video-play-icon.data-v-366f76ff{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.message-video .video.data-v-366f76ff{max-width:150px;width:inherit;height:inherit;border-radius:10px}.message-combine.data-v-366f76ff{max-width:300px}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/utils.js");Math||a();const a=()=>"../../../../common/Avatar/index.js",r=e.defineComponent({__name:"message-container",props:{sender:{default:""},avatar:{default:""},type:{},time:{}},setup(a){const r=a,n=e.qt.TYPES,s=e.computed((()=>[n.MSG_IMAGE,n.MSG_VIDEO,n.MSG_MERGER].includes(r.type)));return(a,n)=>({a:e.p({url:r.avatar}),b:e.t(r.sender),c:e.unref(s)?1:"",d:e.t(e.unref(t.calculateTimestamp)(1e3*r.time))})}}),n=e._export_sfc(r,[["__scopeId","data-v-2b89a6f6"]]);wx.createComponent(n);
|
||||
"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/utils.js");Math||a();const a=()=>"../../../../common/Avatar/index.js",r=e.defineComponent({__name:"message-container",props:{sender:{default:""},avatar:{default:""},type:{},time:{}},setup(a){const r=a,n=e.qt.TYPES,s=e.computed((()=>[n.MSG_IMAGE,n.MSG_VIDEO,n.MSG_MERGER].includes(r.type)));return(a,n)=>({a:e.p({url:r.avatar}),b:e.t(r.sender),c:e.unref(s)?1:"",d:e.t(e.unref(t.calculateTimestamp)(1e3*r.time))})}}),n=e._export_sfc(r,[["__scopeId","data-v-4fbcde0e"]]);wx.createComponent(n);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user