alipay-emulator/pages/message/chat-page/chat-page.vue

37 lines
605 B
Vue

<template>
<view>
<ChatLayout :phone="data.phone" :chatInfo="data.data"></ChatLayout>
</view>
</template>
<script setup>
import ChatLayout from '@/components/message/chat/chat-layout.vue'
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onPageScroll
} from "@dcloudio/uni-app";
import {
stringUtil,
util
} from '@/utils/common.js';
const data = reactive({
phone: "iphone",
data: {}
})
onLoad((options) => {
console.log(options)
if (options.phone) {
data.phone = options.phone
}
if (options.data) {
data.data = JSON.parse(options.data)
}
})
</script>
<style lang="less"></style>