修改未发送图片名称

This commit is contained in:
tangxinyue 2026-06-01 10:03:09 +08:00
parent 37cf237ff1
commit cffb2c29fb
1 changed files with 1160 additions and 1143 deletions

View File

@ -87,7 +87,7 @@
@click="sendMessage"> @click="sendMessage">
</image> </image>
<image v-if="phone == 'oppo'" class="right-icon" <image v-if="phone == 'oppo'" class="right-icon"
:src="`/static/image/phone-message/oppo/${isSend ? 'send' : 'unsend'}.png`" :src="`/static/image/phone-message/oppo/${isSend ? 'send' : 'unSend'}.png`"
@click="sendMessage"> @click="sendMessage">
</image> </image>
<image v-if="phone == 'huawei'" class="right-icon" <image v-if="phone == 'huawei'" class="right-icon"
@ -108,8 +108,16 @@
</view> </view>
</template> </template>
<script setup> <script setup>
import { reactive, onMounted, computed, toRefs } from 'vue' import {
import { dateUtil, util } from '@/utils/common.js'; reactive,
onMounted,
computed,
toRefs
} from 'vue'
import {
dateUtil,
util
} from '@/utils/common.js';
const props = defineProps({ const props = defineProps({
// //
phone: { phone: {
@ -150,7 +158,12 @@ const data = reactive({
lastClickTime: 0 lastClickTime: 0
}) })
let { isSend, content, simIndex, scrollTop } = toRefs(data) let {
isSend,
content,
simIndex,
scrollTop
} = toRefs(data)
const emit = defineEmits(['send', 'dblclick-left', 'dblclick-right', 'title-click']) const emit = defineEmits(['send', 'dblclick-left', 'dblclick-right', 'title-click'])
const onInput = (e) => { const onInput = (e) => {
@ -287,7 +300,9 @@ const showInfo = computed(() => {
default: default:
break; break;
} }
return { placeholder } return {
placeholder
}
}) })
/** /**
@ -312,7 +327,9 @@ const chooseImage = () => {
let h = image.height; let h = image.height;
// EXIF // EXIF
if (image.orientation && ['left', 'right', 'left-mirrored', 'right-mirrored'].includes(image.orientation)) { if (image.orientation && ['left', 'right', 'left-mirrored',
'right-mirrored'
].includes(image.orientation)) {
w = image.height; w = image.height;
h = image.width; h = image.width;
} }
@ -323,7 +340,8 @@ const chooseImage = () => {
const date = dateUtil.now("YYYY-MM-DD HH:mm") const date = dateUtil.now("YYYY-MM-DD HH:mm")
// HTMLimg // HTMLimg
const content = `<img src="${finalPath}" style="width: ${width}; height: ${height}; border-radius: 16rpx; display: block;" />`; const content =
`<img src="${finalPath}" style="width: ${width}; height: ${height}; border-radius: 16rpx; display: block;" />`;
const params = { const params = {
content: content, content: content,
imgUrl: finalPath, imgUrl: finalPath,
@ -339,9 +357,11 @@ const chooseImage = () => {
// //
setTimeout(() => { setTimeout(() => {
data.scrollTop = 99999 + Math.random(); data.scrollTop = 99999 + Math.random();
uni.createSelectorQuery().select('.bottom-box').boundingClientRect(rect => { uni.createSelectorQuery().select('.bottom-box')
.boundingClientRect(rect => {
if (rect) { if (rect) {
data.bottomBoxHeight = rect.height; data.bottomBoxHeight = rect
.height;
} }
}).exec(); }).exec();
}, 100); }, 100);
@ -398,9 +418,6 @@ onMounted(() => {
}, 300); }, 300);
}) })
</script> </script>
<style> <style>
@import '@/common/main.css'; @import '@/common/main.css';