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;
display: inline-block;
line-height: 11rem;
background-color: #dadada;
/* background-color: #dadada; */
padding: 5rem 5rem;
border-radius: 5rem;
color: #fff;
color: #7E849F;
white-space: nowrap;
}

@ -36,7 +36,7 @@
class="time-show"
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 class="chat-content-other" v-if="item.fromFlag == 'other'">
<span class="session-tips" v-html="item.msgText"></span>

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

@ -1,10 +1,6 @@
<template>
<div class="text-template-box" v-if="introduce">
<div
class="text-folding-box"
:class="showTotal ? 'total-introduce' : 'detailed-introduce'"
ref="textFolding"
>
<div class="text-folding-box" :class="showTotal ? 'total-introduce' : 'detailed-introduce'" ref="textFolding">
<div class="question-answer-con" v-if="introduce" ref="desc">
<policy-list :data="itemlist" :tips1="tips1" :tips2="tips2" @descHeightChange="descHeightChange" />
<xuqi-policy-list :data="itemlist" @descHeightChange="descHeightChange" />
@ -80,29 +76,10 @@ const tips1 = ref('')
const tips2 = 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(() => {
processedEmoji()
descHeightChange()
cmd.value = props.itemlist.cmd
autoLaunchWeapp()
nextTick(() => {
initGlobalCallbacks()
})

Loading…
Cancel
Save