wujingling0908 5 days ago
commit 8497c4634a
  1. 4
      src/assets/style/chat.css
  2. 2
      src/components/chat-content.vue
  3. 3
      src/components/footer-bar-input.vue
  4. 25
      src/components/text-folding.vue

@ -85,10 +85,10 @@ button:disabled,
margin-top: 10rem; margin-top: 10rem;
display: inline-block; display: inline-block;
line-height: 11rem; line-height: 11rem;
background-color: #dadada; /* background-color: #dadada; */
padding: 5rem 5rem; padding: 5rem 5rem;
border-radius: 5rem; border-radius: 5rem;
color: #fff; color: #7E849F;
white-space: nowrap; white-space: nowrap;
} }

@ -36,7 +36,7 @@
class="time-show" class="time-show"
v-if="item.fromFlag && item.fromFlag != 'other' && item.msgText && item.timestamp" v-if="item.fromFlag && item.fromFlag != 'other' && item.msgText && item.timestamp"
> >
<span class="session-tips">{{ FormatDate(item.timestamp, 'yyyy年MM月dd日 hh:mm') }}</span> <span class="session-tips">{{ FormatDate(item.timestamp, 'MM月dd日 hh:mm') }}</span>
</div> </div>
<!-- <div class="chat-content-other" v-if="item.fromFlag == 'other'"> <!-- <div class="chat-content-other" v-if="item.fromFlag == 'other'">
<span class="session-tips" v-html="item.msgText"></span> <span class="session-tips" v-html="item.msgText"></span>

@ -889,10 +889,9 @@ watch(sendMessage, (newValue, oldValue) => {
textarea:-moz-placeholder, textarea:-moz-placeholder,
textarea:-webkit-input-placeholder, textarea:-webkit-input-placeholder,
textarea:-ms-input-placeholder { textarea:-ms-input-placeholder {
opacity: 0.5;
font-family: SourceHanSansCN-Normal; font-family: SourceHanSansCN-Normal;
font-size: 14rem; font-size: 14rem;
color: #999999; color: #b5bace;
letter-spacing: 0; letter-spacing: 0;
text-align: justify; text-align: justify;
} }

@ -1,10 +1,6 @@
<template> <template>
<div class="text-template-box" v-if="introduce"> <div class="text-template-box" v-if="introduce">
<div <div class="text-folding-box" :class="showTotal ? 'total-introduce' : 'detailed-introduce'" ref="textFolding">
class="text-folding-box"
:class="showTotal ? 'total-introduce' : 'detailed-introduce'"
ref="textFolding"
>
<div class="question-answer-con" v-if="introduce" ref="desc"> <div class="question-answer-con" v-if="introduce" ref="desc">
<policy-list :data="itemlist" :tips1="tips1" :tips2="tips2" @descHeightChange="descHeightChange" /> <policy-list :data="itemlist" :tips1="tips1" :tips2="tips2" @descHeightChange="descHeightChange" />
<xuqi-policy-list :data="itemlist" @descHeightChange="descHeightChange" /> <xuqi-policy-list :data="itemlist" @descHeightChange="descHeightChange" />
@ -80,29 +76,10 @@ const tips1 = ref('')
const tips2 = ref('') const tips2 = ref('')
const cmd = ref('') const cmd = ref('')
// 小程序 webview 里开放标签不生效(仅公众号 H5 可渲染),改为提取标签的 path
// 用 wx.miniProgram.navigateTo 自动跳转;公众号 H5 环境仍靠用户点击开放标签
function autoLaunchWeapp() {
if (props.isHistory) return
if (!utils.isMiniProgram()) return
const raw = String(props.introduce || props.itemlist?.msgText || '')
const m = raw.match(/<wx-open-launch-weapp[^>]*\spath="([^"]+)"/)
if (!m) return
const key = `weapp_auto_jump_${props.itemlist?.timestamp || ''}`
if (sessionStorage.getItem(key)) return
sessionStorage.setItem(key, '1')
console.log(m[1], 11111)
setTimeout(() => {
console.log(21212,m);
wx.miniProgram.navigateTo({ url: m[1] })
}, 500)
}
onMounted(() => { onMounted(() => {
processedEmoji() processedEmoji()
descHeightChange() descHeightChange()
cmd.value = props.itemlist.cmd cmd.value = props.itemlist.cmd
autoLaunchWeapp()
nextTick(() => { nextTick(() => {
initGlobalCallbacks() initGlobalCallbacks()
}) })

Loading…
Cancel
Save