消息
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
<template>
|
||||
<div class="Navigation">
|
||||
<image
|
||||
src="../../../static/Navigationimg.png"
|
||||
mode="scaleToFill"
|
||||
class="Navigationimg"
|
||||
/>
|
||||
<image @click="Returnfunc" src="../../../static/Return.png" mode="scaleToFill" class="Return" />
|
||||
</div>
|
||||
<div class="dingweizhibox">
|
||||
|
||||
</div>
|
||||
<div class="chat">
|
||||
<div :class="['tui-chat', !isPC && 'tui-chat-h5']">
|
||||
<div
|
||||
@@ -114,6 +125,8 @@ import TUIChatConfig from './config';
|
||||
import { onLoad, onUnload } from '@dcloudio/uni-app';
|
||||
import { initChat, logout } from './entry-chat-only.ts';
|
||||
|
||||
|
||||
|
||||
onLoad((options) => {
|
||||
initChat(options);
|
||||
});
|
||||
@@ -214,6 +227,12 @@ const handleGroup = () => {
|
||||
headerExtensionList.value[0].listener.onClicked({ groupID: groupID.value });
|
||||
};
|
||||
|
||||
function Returnfunc(){
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
|
||||
function changeToolbarDisplayType(type: ToolbarDisplayType) {
|
||||
inputToolbarDisplayType.value = inputToolbarDisplayType.value === type ? 'none' : type;
|
||||
if (inputToolbarDisplayType.value !== 'none' && isUniFrameWork) {
|
||||
@@ -301,5 +320,47 @@ function onCurrentConversationUpdate(conversation: IConversationModel) {
|
||||
currentConversationID.value = conversationID;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss" src="./style/index.scss"></style>
|
||||
<style>
|
||||
.dingweizhibox{
|
||||
width: 100%;
|
||||
height: 15%;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.chat {
|
||||
display: block;
|
||||
height: 100%;
|
||||
height: 85%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
<template>
|
||||
<div class="Navigation">
|
||||
<image
|
||||
src="../../../static/Navigationimg.png"
|
||||
mode="scaleToFill"
|
||||
class="Navigationimg"
|
||||
/>
|
||||
<!-- <image @click="" src="../../../static/Return.png" mode="scaleToFill" class="Return" /> -->
|
||||
</div>
|
||||
<div
|
||||
class="tui-conversation"
|
||||
@click="handleClickConv"
|
||||
@@ -6,10 +14,7 @@
|
||||
@touchend="handleTouchEnd"
|
||||
>
|
||||
<TUISearch searchType="global" />
|
||||
<ConversationHeader
|
||||
v-if="isShowConversationHeader"
|
||||
ref="headerRef"
|
||||
/>
|
||||
<ConversationHeader v-if="isShowConversationHeader" ref="headerRef" />
|
||||
<ConversationNetwork />
|
||||
<ConversationList
|
||||
ref="conversationListDomRef"
|
||||
@@ -18,23 +23,27 @@
|
||||
@getPassingRef="getPassingRef"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<tabBar></tabBar>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { TUIStore, StoreName } from '@tencentcloud/chat-uikit-engine';
|
||||
import { TUIGlobal } from '@tencentcloud/universal-api';
|
||||
import { ref } from '../../adapter-vue';
|
||||
import TUISearch from '../TUISearch/index.vue';
|
||||
import ConversationList from './conversation-list/index.vue';
|
||||
import ConversationHeader from './conversation-header/index.vue';
|
||||
import ConversationNetwork from './conversation-network/index.vue';
|
||||
import { onHide } from '@dcloudio/uni-app';
|
||||
import { TUIStore, StoreName } from "@tencentcloud/chat-uikit-engine";
|
||||
import { TUIGlobal } from "@tencentcloud/universal-api";
|
||||
import { ref } from "../../adapter-vue";
|
||||
import TUISearch from "../TUISearch/index.vue";
|
||||
import ConversationList from "./conversation-list/index.vue";
|
||||
import ConversationHeader from "./conversation-header/index.vue";
|
||||
import ConversationNetwork from "./conversation-network/index.vue";
|
||||
import { onHide } from "@dcloudio/uni-app";
|
||||
import tabBar from "../../../components/tabBar/tabBar.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
// uniapp packaged mini-programs are integrated by default, and the default initialization entry file is imported here
|
||||
// TUIChatKit init needs to be encapsulated because uni vue2 will report an error when compiling H5 directly through conditional compilation
|
||||
import './entry.ts';
|
||||
import "./entry.ts";
|
||||
// #endif
|
||||
|
||||
const emits = defineEmits(['handleSwitchConversation']);
|
||||
const emits = defineEmits(["handleSwitchConversation"]);
|
||||
|
||||
const totalUnreadCount = ref(0);
|
||||
const headerRef = ref<typeof ConversationHeader>();
|
||||
@@ -57,9 +66,9 @@ TUIStore.watch(StoreName.CUSTOM, {
|
||||
|
||||
const handleSwitchConversation = (conversationID: string) => {
|
||||
TUIGlobal?.navigateTo({
|
||||
url: '/TUIKit/components/TUIChat/index',
|
||||
url: "/TUIKit/components/TUIChat/index",
|
||||
});
|
||||
emits('handleSwitchConversation', conversationID);
|
||||
emits("handleSwitchConversation", conversationID);
|
||||
};
|
||||
|
||||
const closeChildren = () => {
|
||||
@@ -81,23 +90,23 @@ const handleTouchStart = (e: any) => {
|
||||
const handleTouchEnd = (e: any) => {
|
||||
const x = e.changedTouches[0].clientX;
|
||||
const y = e.changedTouches[0].clientY;
|
||||
let turn = '';
|
||||
let turn = "";
|
||||
if (x - touchX.value > 50 && Math.abs(y - touchY.value) < 50) {
|
||||
// Swipe right
|
||||
turn = 'right';
|
||||
turn = "right";
|
||||
} else if (x - touchX.value < -50 && Math.abs(y - touchY.value) < 50) {
|
||||
// Swipe left
|
||||
turn = 'left';
|
||||
turn = "left";
|
||||
}
|
||||
if (y - touchY.value > 50 && Math.abs(x - touchX.value) < 50) {
|
||||
// Swipe down
|
||||
turn = 'down';
|
||||
turn = "down";
|
||||
} else if (y - touchY.value < -50 && Math.abs(x - touchX.value) < 50) {
|
||||
// Swipe up
|
||||
turn = 'up';
|
||||
turn = "up";
|
||||
}
|
||||
// Operate according to the direction
|
||||
if (turn === 'down' || turn === 'up') {
|
||||
if (turn === "down" || turn === "up") {
|
||||
closeChildren();
|
||||
}
|
||||
};
|
||||
@@ -106,5 +115,35 @@ const getPassingRef = (ref) => {
|
||||
ref.value = conversationListDomRef.value;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
/* .Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
} */
|
||||
</style>
|
||||
<style lang="scss" scoped src="./style/index.scss"></style>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.tui-conversation {
|
||||
background: #fff;
|
||||
|
||||
}
|
||||
|
||||
.network {
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
z-index: 3;
|
||||
padding: 7px 9px;
|
||||
border-bottom: none;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 3px 7px 0 #0003;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -67,7 +66,6 @@
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 15px;
|
||||
background: red;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ let tabList = reactive([
|
||||
iconPath: "../../static/Pk.png",
|
||||
selectedIconPath: "../../static/PkClick.png",
|
||||
text: "PK",
|
||||
pagePath: "../../pages/Home/Home",
|
||||
pagePath: "/pages/Home/Home",
|
||||
middleClass: "",
|
||||
},
|
||||
{
|
||||
@@ -62,7 +62,6 @@ let tabList = reactive([
|
||||
iconPath: "../../static/Message.png",
|
||||
selectedIconPath: "../../static/Messageclick.png",
|
||||
text: "消息",
|
||||
pagePath: "../../pages/index/index",
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/Mine.png",
|
||||
@@ -111,7 +110,9 @@ const disabledScroll = () => {
|
||||
};
|
||||
//tab点击事件
|
||||
function handlePush(item, index) {
|
||||
if (item.pagePath) {
|
||||
if (item.text === "消息") {
|
||||
uni.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
}else {
|
||||
uni.switchTab({
|
||||
url: item.pagePath,
|
||||
});
|
||||
|
||||
29
pages.json
29
pages.json
@@ -6,23 +6,16 @@
|
||||
"navigationBarTitleText": "首页"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "uni-app"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Message/Message",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Mine/Mine",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的"
|
||||
}
|
||||
},{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "聊天"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [
|
||||
@@ -113,17 +106,13 @@
|
||||
"pagePath": "pages/Home/Home",
|
||||
"text": "组件"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "API"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/Message/Message",
|
||||
"text": "消息"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/Mine/Mine",
|
||||
"text": "我的"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "聊天"
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
@@ -26,21 +26,21 @@ export default {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
this.requestSomething();
|
||||
// this.requestSomething();
|
||||
},
|
||||
methods: {
|
||||
requestSomething() {
|
||||
wx.request({
|
||||
url: "http://192.168.0.218:8086/user/login", // 请求的 URL
|
||||
method: "POST", // 请求方式
|
||||
success: (res) => {
|
||||
console.log("请求成功", res.data); // 处理成功的响应
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("请求失败", err); // 处理失败的响应
|
||||
},
|
||||
});
|
||||
},
|
||||
// requestSomething() {
|
||||
// wx.request({
|
||||
// url: "http://192.168.0.218:8086/user/login", // 请求的 URL
|
||||
// method: "POST", // 请求方式
|
||||
// success: (res) => {
|
||||
// console.log("请求成功", res.data); // 处理成功的响应
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// console.error("请求失败", err); // 处理失败的响应
|
||||
// },
|
||||
// });
|
||||
// },
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式定义 */
|
||||
</style>
|
||||
@@ -1,23 +1,22 @@
|
||||
<template></template>
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.openConversationList();
|
||||
},
|
||||
methods: {
|
||||
openConversationList() {
|
||||
uni.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
},
|
||||
},
|
||||
};
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式定义 */
|
||||
</style>
|
||||
/* 样式定义 */
|
||||
</style>
|
||||
BIN
static/Navigationimg.png
Normal file
BIN
static/Navigationimg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
static/Return.png
Normal file
BIN
static/Return.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/components/TUIConversation/index2.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/TUIKit/components/TUIConversation/index2.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index2.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvY29tcG9uZW50cy9UVUlDb252ZXJzYXRpb24vaW5kZXgudnVl"],"sourcesContent":["import MiniProgramPage from 'D:/项目/tk-mini-program/TUIKit/components/TUIConversation/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,wBAAe,eAAA;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\nimport { TUILogin } from '@tencentcloud/tui-core';\r\n\r\n\r\n\r\n\r\n\r\nlet vueVersion = 2;\r\n\r\nvueVersion = 3;\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\nuni.$SDKAppID = 1600086550; // Your SDKAppID\r\nuni.$userID = '123'; // Your userID\r\nuni.$userSig = 'eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwoZGxlDh4pTsxIKCzBQlK0MzAwMDCzNTUwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZuYGxpbALVATclMB5qaUmwRlpvkHBmcHWps7hScoe3sm6PtmRxZXOWZkZYbWGKYXlVo6ByUUlqRbqtUCwBTujBs'; // Your userSig\r\n\r\nexport default {\r\n onLaunch: function () {\r\n\t TUILogin.login({\r\n\t SDKAppID: uni.$SDKAppID,\r\n\t userID: uni.$userID, \r\n\t userSig: uni.$userSig, \r\n\t useUploadPlugin: true, // If you need to send rich media messages, please set to true.\r\n\t framework: `vue${vueVersion}` // framework used vue2 / vue3\r\n\t }).catch(() => {});\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,html,body,page {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","TUILogin","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;AAOA,IAAI,aAAa;AAEjB,aAAa;AAObA,cAAAA,MAAI,YAAY;AAChBA,cAAAA,MAAI,UAAU;AACdA,cAAAA,MAAI,WAAW;AAEf,MAAe,YAAA;AAAA,EACb,UAAU,WAAY;AACtBC,kBAAAA,EAAS,MAAM;AAAA,MACb,UAAUD,cAAI,MAAA;AAAA,MACd,QAAQA,cAAI,MAAA;AAAA,MACZ,SAASA,cAAI,MAAA;AAAA,MACb,iBAAiB;AAAA;AAAA,MACjB,WAAW,MAAM,UAAU;AAAA;AAAA,IAAA,CAC5B,EAAE,MAAM,MAAM;AAAA,IAAA,CAAE;AAAA,EACjB;AACF;ACfO,SAAS,YAAY;AAC1B,QAAM,MAAME,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\nimport { TUILogin } from '@tencentcloud/tui-core';\r\n\r\n\r\n\r\n\r\n\r\nlet vueVersion = 2;\r\n\r\nvueVersion = 3;\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\nuni.$SDKAppID = 1600086550; // Your SDKAppID\r\nuni.$userID = '123'; // Your userID\r\nuni.$userSig = 'eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwoZGxlDh4pTsxIKCzBQlK0MzAwMDCzNTUwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmZuYGxpbALVATclMB5qaUmwRlpvkHBmcHWps7hScoe3sm6PtmRxZXOWZkZYbWGKYXlVo6ByUUlqRbqtUCwBTujBs'; // Your userSig\r\n\r\nexport default {\r\n onLaunch: function () {\r\n\t TUILogin.login({\r\n\t SDKAppID: uni.$SDKAppID,\r\n\t userID: uni.$userID, \r\n\t userSig: uni.$userSig, \r\n\t useUploadPlugin: true, // If you need to send rich media messages, please set to true.\r\n\t framework: `vue${vueVersion}` // framework used vue2 / vue3\r\n\t }).catch(() => {});\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,html,body,page {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","TUILogin","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;AAOA,IAAI,aAAa;AAEjB,aAAa;AAObA,cAAAA,MAAI,YAAY;AAChBA,cAAAA,MAAI,UAAU;AACdA,cAAAA,MAAI,WAAW;AAEf,MAAe,YAAA;AAAA,EACb,UAAU,WAAY;AACtBC,kBAAAA,EAAS,MAAM;AAAA,MACb,UAAUD,cAAI,MAAA;AAAA,MACd,QAAQA,cAAI,MAAA;AAAA,MACZ,SAASA,cAAI,MAAA;AAAA,MACb,iBAAiB;AAAA;AAAA,MACjB,WAAW,MAAM,UAAU;AAAA;AAAA,IAAA,CAC5B,EAAE,MAAM,MAAM;AAAA,IAAA,CAAE;AAAA,EACjB;AACF;ACfO,SAAS,YAAY;AAC1B,QAAM,MAAME,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n this.requestSomething();\r\n },\r\n methods: {\r\n requestSomething() {\r\n wx.request({\r\n url: \"http://192.168.0.218:8086/user/login\", // 请求的 URL\r\n method: \"POST\", // 请求方式\r\n success: (res) => {\r\n console.log(\"请求成功\", res.data); // 处理成功的响应\r\n },\r\n fail: (err) => {\r\n console.error(\"请求失败\", err); // 处理失败的响应\r\n },\r\n });\r\n },\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 1300rpx;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx","uni"],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AACP,SAAK,iBAAgB;AAAA,EACtB;AAAA,EACD,SAAS;AAAA,IACP,mBAAmB;AACjBA,oBAAAA,KAAG,QAAQ;AAAA,QACT,KAAK;AAAA;AAAA,QACL,QAAQ;AAAA;AAAA,QACR,SAAS,CAAC,QAAQ;AAChBC,wBAAA,MAAA,MAAA,OAAA,6BAAY,QAAQ,IAAI,IAAI;AAAA,QAC7B;AAAA,QACD,MAAM,CAAC,QAAQ;AACbA,0EAAc,QAAQ,GAAG;AAAA,QAC1B;AAAA,MACH,CAAC;AAAA,IACF;AAAA,EACF;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;ACjDA,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n // this.requestSomething();\r\n },\r\n methods: {\r\n // requestSomething() {\r\n // wx.request({\r\n // url: \"http://192.168.0.218:8086/user/login\", // 请求的 URL\r\n // method: \"POST\", // 请求方式\r\n // success: (res) => {\r\n // console.log(\"请求成功\", res.data); // 处理成功的响应\r\n // },\r\n // fail: (err) => {\r\n // console.error(\"请求失败\", err); // 处理失败的响应\r\n // },\r\n // });\r\n // },\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 1300rpx;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaR;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;ACjDA,GAAG,WAAW,eAAe;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template></template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n };\r\n },\r\n onLoad() {\r\n this.openConversationList();\r\n },\r\n methods: {\r\n openConversationList() {\r\n uni.navigateTo({ url: \"/TUIKit/components/TUIConversation/index\" });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n/* 样式定义 */\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AAGA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA;EAEV;AAAA,EACD,SAAS;AACR,SAAK,qBAAoB;AAAA,EACzB;AAAA,EACD,SAAS;AAAA,IACP,uBAAuB;AACrBA,oBAAAA,MAAI,WAAW,EAAE,KAAK,2CAA4C,CAAA;AAAA,IACnE;AAAA,EACF;AACH;;;;;AChBA,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n /* 样式定义 */\r\n</style>","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;AAII,MAAK,YAAU;AAAA,EACX,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,EAET;AACJ;;;;;ACfJ,GAAG,WAAW,eAAe;"}
|
||||
@@ -1 +1 @@
|
||||
<view class="chat data-v-04dfedea"><view class="{{['data-v-04dfedea', 'tui-chat', O]}}"><view wx:if="{{a}}" class="{{['data-v-04dfedea', 'tui-chat-default', b]}}"><slot/></view><view wx:if="{{c}}" class="{{['data-v-04dfedea', 'tui-chat', K]}}"><chat-header wx:if="{{h}}" class="{{['data-v-04dfedea', 'tui-chat-header', d, e]}}" bindcloseChat="{{f}}" bindopenGroupManagement="{{g}}" u-i="04dfedea-0" bind:__l="__l" u-p="{{h}}"/><forward class="data-v-04dfedea" bindtoggleMultipleSelectMode="{{i}}" u-i="04dfedea-1" bind:__l="__l"/><message-list wx:if="{{o}}" u-r="messageListRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-list', k]}}" bindhandleEditor="{{l}}" bindcloseInputToolBar="{{m}}" bindtoggleMultipleSelectMode="{{n}}" u-i="04dfedea-2" bind:__l="__l" u-p="{{o}}"/><view wx:if="{{p}}" class="{{['data-v-04dfedea', 'tui-chat-leave-group', r && 'tui-chat-leave-group-mobile']}}">{{q}}</view><multiple-select-panel wx:elif="{{s}}" class="data-v-04dfedea" bindoneByOneForwardMessage="{{t}}" bindmergeForwardMessage="{{v}}" bindtoggleMultipleSelectMode="{{w}}" u-i="04dfedea-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{x}}" class="{{['data-v-04dfedea', 'tui-chat-message-input-toolbar', y, z]}}" bindinsertEmoji="{{A}}" bindchangeToolbarDisplayType="{{B}}" bindscrollToLatestMessage="{{C}}" u-i="04dfedea-4" bind:__l="__l" u-p="{{D}}"/><message-input wx:if="{{J}}" u-r="messageInputRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-input', F, G, H]}}" bindchangeToolbarDisplayType="{{I}}" u-i="04dfedea-5" bind:__l="__l" u-p="{{J}}"/></block></view><view wx:if="{{L}}" class="group-profile data-v-04dfedea" bindtap="{{N}}">{{M}}</view></view></view>
|
||||
<view class="Navigation data-v-04dfedea"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-04dfedea"/><image bindtap="{{b}}" src="{{c}}" mode="scaleToFill" class="Return data-v-04dfedea"/></view><view class="dingweizhibox data-v-04dfedea"></view><view class="chat data-v-04dfedea"><view class="{{['data-v-04dfedea', 'tui-chat', R]}}"><view wx:if="{{d}}" class="{{['data-v-04dfedea', 'tui-chat-default', e]}}"><slot/></view><view wx:if="{{f}}" class="{{['data-v-04dfedea', 'tui-chat', N]}}"><chat-header wx:if="{{k}}" class="{{['data-v-04dfedea', 'tui-chat-header', g, h]}}" bindcloseChat="{{i}}" bindopenGroupManagement="{{j}}" u-i="04dfedea-0" bind:__l="__l" u-p="{{k}}"/><forward class="data-v-04dfedea" bindtoggleMultipleSelectMode="{{l}}" u-i="04dfedea-1" bind:__l="__l"/><message-list wx:if="{{r}}" u-r="messageListRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-list', n]}}" bindhandleEditor="{{o}}" bindcloseInputToolBar="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="04dfedea-2" bind:__l="__l" u-p="{{r}}"/><view wx:if="{{s}}" class="{{['data-v-04dfedea', 'tui-chat-leave-group', v && 'tui-chat-leave-group-mobile']}}">{{t}}</view><multiple-select-panel wx:elif="{{w}}" class="data-v-04dfedea" bindoneByOneForwardMessage="{{x}}" bindmergeForwardMessage="{{y}}" bindtoggleMultipleSelectMode="{{z}}" u-i="04dfedea-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{A}}" class="{{['data-v-04dfedea', 'tui-chat-message-input-toolbar', B, C]}}" bindinsertEmoji="{{D}}" bindchangeToolbarDisplayType="{{E}}" bindscrollToLatestMessage="{{F}}" u-i="04dfedea-4" bind:__l="__l" u-p="{{G}}"/><message-input wx:if="{{M}}" u-r="messageInputRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-input', I, J, K]}}" bindchangeToolbarDisplayType="{{L}}" u-i="04dfedea-5" bind:__l="__l" u-p="{{M}}"/></block></view><view wx:if="{{O}}" class="group-profile data-v-04dfedea" bindtap="{{Q}}">{{P}}</view></view></view>
|
||||
@@ -1,3 +1,34 @@
|
||||
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
/* .Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
} */
|
||||
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
@@ -119,7 +150,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
z-index: 3;
|
||||
padding: 7px 9px;
|
||||
border-bottom: none;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 3px 7px 0 #0003;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -135,7 +165,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 15px;
|
||||
background: red;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -168,9 +197,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
transform: rotate(90deg);
|
||||
width: 0.5px;
|
||||
}
|
||||
.tui-conversation.data-v-40b33296 {
|
||||
background: #fff;
|
||||
}
|
||||
.network-content.data-v-40b33296 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
@@ -561,7 +587,7 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
|
||||
}
|
||||
.chat.data-v-04dfedea {
|
||||
display: block;
|
||||
height: 100%;
|
||||
height: 85%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tui-chat-h5-message-list.data-v-04dfedea {
|
||||
@@ -612,4 +638,44 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dingweizhibox{
|
||||
width: 100%;
|
||||
height: 15%;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,6 @@ input.data-v-c7a8f8e3:focus, input.data-v-c7a8f8e3:active, textarea.data-v-c7a8f
|
||||
z-index: 3;
|
||||
padding: 7px 9px;
|
||||
border-bottom: none;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 3px 7px 0 #0003;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -135,7 +134,6 @@ input.data-v-c7a8f8e3:focus, input.data-v-c7a8f8e3:active, textarea.data-v-c7a8f
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 15px;
|
||||
background: red;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -168,9 +166,6 @@ input.data-v-c7a8f8e3:focus, input.data-v-c7a8f8e3:active, textarea.data-v-c7a8f
|
||||
transform: rotate(90deg);
|
||||
width: 0.5px;
|
||||
}
|
||||
.tui-conversation.data-v-c7a8f8e3 {
|
||||
background: #fff;
|
||||
}
|
||||
.network-content.data-v-c7a8f8e3 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
|
||||
@@ -119,7 +119,6 @@ input.data-v-36a06860:focus, input.data-v-36a06860:active, textarea.data-v-36a06
|
||||
z-index: 3;
|
||||
padding: 7px 9px;
|
||||
border-bottom: none;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 3px 7px 0 #0003;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -135,7 +134,6 @@ input.data-v-36a06860:focus, input.data-v-36a06860:active, textarea.data-v-36a06
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 15px;
|
||||
background: red;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -168,9 +166,6 @@ input.data-v-36a06860:focus, input.data-v-36a06860:active, textarea.data-v-36a06
|
||||
transform: rotate(90deg);
|
||||
width: 0.5px;
|
||||
}
|
||||
.tui-conversation.data-v-36a06860 {
|
||||
background: #fff;
|
||||
}
|
||||
.network-content.data-v-36a06860 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"t-u-i-search": "../TUISearch/index",
|
||||
"conversation-list": "./conversation-list/index",
|
||||
"conversation-header": "./conversation-header/index",
|
||||
"conversation-network": "./conversation-network/index"
|
||||
"conversation-network": "./conversation-network/index",
|
||||
"tab-bar": "../../../components/tabBar/tabBar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="tui-conversation data-v-40b33296" bindtap="{{g}}" bindtouchstart="{{h}}" bindtouchend="{{i}}"><t-u-i-search wx:if="{{a}}" class="data-v-40b33296" u-i="40b33296-0" bind:__l="__l" u-p="{{a}}"/><conversation-header wx:if="{{b}}" class="r data-v-40b33296" u-r="headerRef" u-i="40b33296-1" bind:__l="__l"/><conversation-network class="data-v-40b33296" u-i="40b33296-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-40b33296" bindhandleSwitchConversation="{{e}}" bindgetPassingRef="{{f}}" u-i="40b33296-3" bind:__l="__l"/></view>
|
||||
<view class="Navigation data-v-40b33296"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-40b33296"/></view><view class="tui-conversation data-v-40b33296" bindtap="{{h}}" bindtouchstart="{{i}}" bindtouchend="{{j}}"><t-u-i-search wx:if="{{b}}" class="data-v-40b33296" u-i="40b33296-0" bind:__l="__l" u-p="{{b}}"/><conversation-header wx:if="{{c}}" class="r data-v-40b33296" u-r="headerRef" u-i="40b33296-1" bind:__l="__l"/><conversation-network class="data-v-40b33296" u-i="40b33296-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-40b33296" bindhandleSwitchConversation="{{f}}" bindgetPassingRef="{{g}}" u-i="40b33296-3" bind:__l="__l"/></view><view class="data-v-40b33296"><tab-bar class="data-v-40b33296" u-i="40b33296-4" bind:__l="__l"></tab-bar></view>
|
||||
@@ -115,7 +115,7 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
|
||||
}
|
||||
.chat.data-v-04dfedea {
|
||||
display: block;
|
||||
height: 100%;
|
||||
height: 85%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tui-chat-h5-message-list.data-v-04dfedea {
|
||||
@@ -167,6 +167,47 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dingweizhibox{
|
||||
width: 100%;
|
||||
height: 15%;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
@@ -434,6 +475,37 @@ input.data-v-32d81a7d:focus, input.data-v-32d81a7d:active, textarea.data-v-32d81
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
z-index: 999;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
/* .Return {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
left: 40rpx;
|
||||
z-index: 999;
|
||||
} */
|
||||
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
@@ -555,7 +627,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
z-index: 3;
|
||||
padding: 7px 9px;
|
||||
border-bottom: none;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 3px 7px 0 #0003;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -571,7 +642,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 15px;
|
||||
background: red;
|
||||
color: #fff;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -604,9 +674,6 @@ input.data-v-40b33296:focus, input.data-v-40b33296:active, textarea.data-v-40b33
|
||||
transform: rotate(90deg);
|
||||
width: 0.5px;
|
||||
}
|
||||
.tui-conversation.data-v-40b33296 {
|
||||
background: #fff;
|
||||
}
|
||||
.network-content.data-v-40b33296 {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
require("../adapter-vue.js");
|
||||
const TUIKit_utils_env = require("../utils/env.js");
|
||||
const TUIKit_components_TUIChat_config = require("./TUIChat/config.js");
|
||||
@@ -107,6 +108,11 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
const handleGroup = () => {
|
||||
headerExtensionList.value[0].listener.onClicked({ groupID: groupID.value });
|
||||
};
|
||||
function Returnfunc() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
function changeToolbarDisplayType(type) {
|
||||
inputToolbarDisplayType.value = inputToolbarDisplayType.value === type ? "none" : type;
|
||||
if (inputToolbarDisplayType.value !== "none" && TUIKit_utils_env.isUniFrameWork) {
|
||||
@@ -178,62 +184,65 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: !common_vendor.unref(currentConversationID)
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.o$1(Returnfunc),
|
||||
c: common_assets._imports_1,
|
||||
d: !common_vendor.unref(currentConversationID)
|
||||
}, !common_vendor.unref(currentConversationID) ? {
|
||||
b: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-default")
|
||||
e: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-default")
|
||||
} : {}, {
|
||||
c: common_vendor.unref(currentConversationID)
|
||||
f: common_vendor.unref(currentConversationID)
|
||||
}, common_vendor.unref(currentConversationID) ? common_vendor.e({
|
||||
d: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-H5-header"),
|
||||
e: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uniapp-header"),
|
||||
f: common_vendor.o$1(closeChat),
|
||||
g: common_vendor.o$1(handleGroup),
|
||||
h: common_vendor.p({
|
||||
g: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-H5-header"),
|
||||
h: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uniapp-header"),
|
||||
i: common_vendor.o$1(closeChat),
|
||||
j: common_vendor.o$1(handleGroup),
|
||||
k: common_vendor.p({
|
||||
isGroup: common_vendor.unref(isGroup),
|
||||
headerExtensionList: common_vendor.unref(headerExtensionList)
|
||||
}),
|
||||
i: common_vendor.o$1(toggleMultipleSelectMode),
|
||||
j: common_vendor.sr(messageListRef, "04dfedea-2", {
|
||||
l: common_vendor.o$1(toggleMultipleSelectMode),
|
||||
m: common_vendor.sr(messageListRef, "04dfedea-2", {
|
||||
"k": "messageListRef"
|
||||
}),
|
||||
k: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-list"),
|
||||
l: common_vendor.o$1(handleEditor),
|
||||
m: common_vendor.o$1(() => changeToolbarDisplayType("none")),
|
||||
n: common_vendor.o$1(toggleMultipleSelectMode),
|
||||
o: common_vendor.p({
|
||||
n: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-list"),
|
||||
o: common_vendor.o$1(handleEditor),
|
||||
p: common_vendor.o$1(() => changeToolbarDisplayType("none")),
|
||||
q: common_vendor.o$1(toggleMultipleSelectMode),
|
||||
r: common_vendor.p({
|
||||
isGroup: common_vendor.unref(isGroup),
|
||||
groupID: common_vendor.unref(groupID),
|
||||
isNotInGroup: common_vendor.unref(isNotInGroup),
|
||||
isMultipleSelectMode: common_vendor.unref(isMultipleSelectMode)
|
||||
}),
|
||||
p: common_vendor.unref(isNotInGroup)
|
||||
s: common_vendor.unref(isNotInGroup)
|
||||
}, common_vendor.unref(isNotInGroup) ? {
|
||||
q: common_vendor.t(common_vendor.unref(leaveGroupReasonText)),
|
||||
r: common_vendor.unref(TUIKit_utils_env.isMobile) ? 1 : ""
|
||||
t: common_vendor.t(common_vendor.unref(leaveGroupReasonText)),
|
||||
v: common_vendor.unref(TUIKit_utils_env.isMobile) ? 1 : ""
|
||||
} : common_vendor.unref(isMultipleSelectMode) ? {
|
||||
t: common_vendor.o$1(oneByOneForwardMessage),
|
||||
v: common_vendor.o$1(mergeForwardMessage),
|
||||
w: common_vendor.o$1(toggleMultipleSelectMode)
|
||||
x: common_vendor.o$1(oneByOneForwardMessage),
|
||||
y: common_vendor.o$1(mergeForwardMessage),
|
||||
z: common_vendor.o$1(toggleMultipleSelectMode)
|
||||
} : common_vendor.e({
|
||||
x: common_vendor.unref(isInputToolbarShow)
|
||||
A: common_vendor.unref(isInputToolbarShow)
|
||||
}, common_vendor.unref(isInputToolbarShow) ? {
|
||||
y: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input-toolbar"),
|
||||
z: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input-toolbar"),
|
||||
A: common_vendor.o$1(insertEmoji),
|
||||
B: common_vendor.o$1(changeToolbarDisplayType),
|
||||
C: common_vendor.o$1(scrollToLatestMessage),
|
||||
D: common_vendor.p({
|
||||
B: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input-toolbar"),
|
||||
C: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input-toolbar"),
|
||||
D: common_vendor.o$1(insertEmoji),
|
||||
E: common_vendor.o$1(changeToolbarDisplayType),
|
||||
F: common_vendor.o$1(scrollToLatestMessage),
|
||||
G: common_vendor.p({
|
||||
displayType: common_vendor.unref(inputToolbarDisplayType)
|
||||
})
|
||||
} : {}, {
|
||||
E: common_vendor.sr(messageInputRef, "04dfedea-5", {
|
||||
H: common_vendor.sr(messageInputRef, "04dfedea-5", {
|
||||
"k": "messageInputRef"
|
||||
}),
|
||||
F: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input"),
|
||||
G: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input"),
|
||||
H: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isWeChat) && "tui-chat-wx-message-input"),
|
||||
I: common_vendor.o$1(changeToolbarDisplayType),
|
||||
J: common_vendor.p({
|
||||
I: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input"),
|
||||
J: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input"),
|
||||
K: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isWeChat) && "tui-chat-wx-message-input"),
|
||||
L: common_vendor.o$1(changeToolbarDisplayType),
|
||||
M: common_vendor.p({
|
||||
enableAt: common_vendor.unref(featureConfig).InputMention,
|
||||
isMuted: false,
|
||||
muteText: common_vendor.unref(common_vendor.Wt).t("TUIChat.您已被管理员禁言"),
|
||||
@@ -241,15 +250,15 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
inputToolbarDisplayType: common_vendor.unref(inputToolbarDisplayType)
|
||||
})
|
||||
}), {
|
||||
s: common_vendor.unref(isMultipleSelectMode),
|
||||
K: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
|
||||
w: common_vendor.unref(isMultipleSelectMode),
|
||||
N: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
|
||||
}) : {}, {
|
||||
L: !common_vendor.unref(isNotInGroup) && !common_vendor.unref(TUIKit_utils_env.isApp) && common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && common_vendor.unref(isGroup) && common_vendor.unref(headerExtensionList).length > 0
|
||||
O: !common_vendor.unref(isNotInGroup) && !common_vendor.unref(TUIKit_utils_env.isApp) && common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && common_vendor.unref(isGroup) && common_vendor.unref(headerExtensionList).length > 0
|
||||
}, !common_vendor.unref(isNotInGroup) && !common_vendor.unref(TUIKit_utils_env.isApp) && common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && common_vendor.unref(isGroup) && common_vendor.unref(headerExtensionList).length > 0 ? {
|
||||
M: common_vendor.t(common_vendor.unref(headerExtensionList)[0].text),
|
||||
N: common_vendor.o$1(handleGroup)
|
||||
P: common_vendor.t(common_vendor.unref(headerExtensionList)[0].text),
|
||||
Q: common_vendor.o$1(handleGroup)
|
||||
} : {}, {
|
||||
O: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
|
||||
R: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
|
||||
});
|
||||
};
|
||||
}
|
||||
@@ -539,12 +548,13 @@ const _sfc_main$1 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
const MiniProgramPage$1 = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main$1, [["__scopeId", "data-v-61238656"]]);
|
||||
TUIKit_components_TUIGroup_server.TUIGroupServer.getInstance();
|
||||
if (!Math) {
|
||||
(TUISearch + ConversationHeader + ConversationNetwork + ConversationList)();
|
||||
(TUISearch + ConversationHeader + ConversationNetwork + ConversationList + tabBar)();
|
||||
}
|
||||
const TUISearch = () => "./TUISearch/index.js";
|
||||
const ConversationList = () => "./TUIConversation/conversation-list/index.js";
|
||||
const ConversationHeader = () => "./TUIConversation/conversation-header/index.js";
|
||||
const ConversationNetwork = () => "./TUIConversation/conversation-network/index.js";
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "index",
|
||||
emits: ["handleSwitchConversation"],
|
||||
@@ -609,23 +619,24 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.p({
|
||||
searchType: "global"
|
||||
}),
|
||||
b: common_vendor.unref(isShowConversationHeader)
|
||||
c: common_vendor.unref(isShowConversationHeader)
|
||||
}, common_vendor.unref(isShowConversationHeader) ? {
|
||||
c: common_vendor.sr(headerRef, "40b33296-1", {
|
||||
d: common_vendor.sr(headerRef, "40b33296-1", {
|
||||
"k": "headerRef"
|
||||
})
|
||||
} : {}, {
|
||||
d: common_vendor.sr(conversationListDomRef, "40b33296-3", {
|
||||
e: common_vendor.sr(conversationListDomRef, "40b33296-3", {
|
||||
"k": "conversationListDomRef"
|
||||
}),
|
||||
e: common_vendor.o$1(handleSwitchConversation),
|
||||
f: common_vendor.o$1(getPassingRef),
|
||||
g: common_vendor.o$1(handleClickConv),
|
||||
h: common_vendor.o$1(handleTouchStart),
|
||||
i: common_vendor.o$1(handleTouchEnd)
|
||||
f: common_vendor.o$1(handleSwitchConversation),
|
||||
g: common_vendor.o$1(getPassingRef),
|
||||
h: common_vendor.o$1(handleClickConv),
|
||||
i: common_vendor.o$1(handleTouchStart),
|
||||
j: common_vendor.o$1(handleTouchEnd)
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
3
unpackage/dist/dev/mp-weixin/app.js
vendored
3
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -3,9 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
if (!Math) {
|
||||
"./pages/Home/Home.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/Message/Message.js";
|
||||
"./pages/Mine/Mine.js";
|
||||
"./pages/index/index.js";
|
||||
"./TUIKit/components/TUIConversation/index.js";
|
||||
"./TUIKit/components/TUIChat/index.js";
|
||||
"./TUIKit/components/TUIChat/video-play.js";
|
||||
|
||||
17
unpackage/dist/dev/mp-weixin/app.json
vendored
17
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -1,9 +1,8 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/Home/Home",
|
||||
"pages/index/index",
|
||||
"pages/Message/Message",
|
||||
"pages/Mine/Mine"
|
||||
"pages/Mine/Mine",
|
||||
"pages/index/index"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
@@ -31,17 +30,13 @@
|
||||
"pagePath": "pages/Home/Home",
|
||||
"text": "组件"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "API"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/Message/Message",
|
||||
"text": "消息"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/Mine/Mine",
|
||||
"text": "我的"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "聊天"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
12
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
12
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
@@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
const _imports_0$2 = "/static/HomeBackground.png";
|
||||
const _imports_0$3 = "/static/HomeBackground.png";
|
||||
const _imports_0$2 = "/static/Navigationimg.png";
|
||||
const _imports_1$1 = "/static/Return.png";
|
||||
const createGroup = "/assets/start-group.6d6b5fbb.svg";
|
||||
const C2C = "/assets/icon-c2c.d80299ab.svg";
|
||||
const settingSVG = "/assets/setting.a15e5daf.svg";
|
||||
@@ -76,9 +78,11 @@ exports.ForwardEachIcon = ForwardEachIcon;
|
||||
exports.ForwardMergeIcon = ForwardMergeIcon;
|
||||
exports.SearchDefaultIcon = SearchDefaultIcon;
|
||||
exports._imports_0 = _imports_0$2;
|
||||
exports._imports_0$1 = _imports_0$1;
|
||||
exports._imports_0$2 = _imports_0;
|
||||
exports._imports_1 = _imports_1;
|
||||
exports._imports_0$1 = _imports_0$3;
|
||||
exports._imports_0$2 = _imports_0$1;
|
||||
exports._imports_0$3 = _imports_0;
|
||||
exports._imports_1 = _imports_1$1;
|
||||
exports._imports_1$1 = _imports_1;
|
||||
exports.addSVG = addSVG;
|
||||
exports.audioIcon = audioIcon$1;
|
||||
exports.audioIcon$1 = audioIcon;
|
||||
|
||||
15
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
15
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -6875,9 +6875,9 @@ function populateParameters(fromRes, toRes) {
|
||||
appVersion: "1.0.0",
|
||||
appVersionCode: "100",
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.64",
|
||||
uniCompilerVersion: "4.64",
|
||||
uniRuntimeVersion: "4.64",
|
||||
uniCompileVersion: "4.65",
|
||||
uniCompilerVersion: "4.65",
|
||||
uniRuntimeVersion: "4.65",
|
||||
uniPlatform: "mp-weixin",
|
||||
deviceBrand,
|
||||
deviceModel: model,
|
||||
@@ -7026,9 +7026,9 @@ const getAppBaseInfo = {
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
uniCompileVersion: "4.64",
|
||||
uniCompilerVersion: "4.64",
|
||||
uniRuntimeVersion: "4.64"
|
||||
uniCompileVersion: "4.65",
|
||||
uniCompilerVersion: "4.65",
|
||||
uniRuntimeVersion: "4.65"
|
||||
};
|
||||
extend(toRes, parameters);
|
||||
}
|
||||
@@ -7770,7 +7770,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.0.107,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_9hN2YW";
|
||||
const id = "mp-weixin_KIydzX";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
@@ -29635,5 +29635,4 @@ exports.withDefaults = withDefaults;
|
||||
exports.withDirectives = withDirectives;
|
||||
exports.withModifiers = withModifiers;
|
||||
exports.withScopeId = withScopeId;
|
||||
exports.wx$1 = wx$1;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|
||||
|
||||
@@ -124,9 +124,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.title)
|
||||
}, $data.Gender ? {
|
||||
b: common_assets._imports_1
|
||||
b: common_assets._imports_1$1
|
||||
} : {
|
||||
c: common_assets._imports_1
|
||||
c: common_assets._imports_1$1
|
||||
}, {
|
||||
d: common_vendor.t(item.gender),
|
||||
e: common_vendor.t(item.id),
|
||||
@@ -134,7 +134,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
g: "4813d59a-0-" + i0
|
||||
});
|
||||
}),
|
||||
b: common_assets._imports_0$2,
|
||||
b: common_assets._imports_0$3,
|
||||
c: $data.Gender,
|
||||
d: $data.Gender ? 1 : "",
|
||||
e: !$data.Gender ? 1 : ""
|
||||
|
||||
@@ -12,7 +12,7 @@ const _sfc_main = {
|
||||
iconPath: "../../static/Pk.png",
|
||||
selectedIconPath: "../../static/PkClick.png",
|
||||
text: "PK",
|
||||
pagePath: "../../pages/Home/Home",
|
||||
pagePath: "/pages/Home/Home",
|
||||
middleClass: ""
|
||||
},
|
||||
{
|
||||
@@ -32,8 +32,7 @@ const _sfc_main = {
|
||||
{
|
||||
iconPath: "../../static/Message.png",
|
||||
selectedIconPath: "../../static/Messageclick.png",
|
||||
text: "消息",
|
||||
pagePath: "../../pages/index/index"
|
||||
text: "消息"
|
||||
},
|
||||
{
|
||||
iconPath: "../../static/Mine.png",
|
||||
@@ -48,9 +47,9 @@ const _sfc_main = {
|
||||
});
|
||||
common_vendor.index.getSystemInfo({
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:83", "机型", res.deviceType);
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:82", "机型", res.deviceType);
|
||||
if (res.safeArea.top > 40) {
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:85", "苹果的底部栏大小", res.safeArea.top);
|
||||
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:84", "苹果的底部栏大小", res.safeArea.top);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -67,7 +66,9 @@ const _sfc_main = {
|
||||
return false;
|
||||
};
|
||||
function handlePush(item, index) {
|
||||
if (item.pagePath) {
|
||||
if (item.text === "消息") {
|
||||
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
} else {
|
||||
common_vendor.index.switchTab({
|
||||
url: item.pagePath
|
||||
});
|
||||
|
||||
@@ -37,7 +37,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: $data.Select ? 1 : "",
|
||||
g: common_vendor.o$1((...args) => $options.screening && $options.screening(...args)),
|
||||
h: common_vendor.o$1((...args) => $options.Search && $options.Search(...args)),
|
||||
i: common_assets._imports_0$1
|
||||
i: common_assets._imports_0$2
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ce2f6748"]]);
|
||||
|
||||
29
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
29
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -10,23 +10,20 @@ const _sfc_main = {
|
||||
return {};
|
||||
},
|
||||
onLoad() {
|
||||
this.requestSomething();
|
||||
},
|
||||
methods: {
|
||||
requestSomething() {
|
||||
common_vendor.wx$1.request({
|
||||
url: "http://192.168.0.218:8086/user/login",
|
||||
// 请求的 URL
|
||||
method: "POST",
|
||||
// 请求方式
|
||||
success: (res) => {
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:37", "请求成功", res.data);
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("error", "at pages/Home/Home.vue:40", "请求失败", err);
|
||||
}
|
||||
});
|
||||
}
|
||||
// requestSomething() {
|
||||
// wx.request({
|
||||
// url: "http://192.168.0.218:8086/user/login", // 请求的 URL
|
||||
// method: "POST", // 请求方式
|
||||
// success: (res) => {
|
||||
// uni.__f__('log','at pages/Home/Home.vue:37',"请求成功", res.data); // 处理成功的响应
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// uni.__f__('error','at pages/Home/Home.vue:40',"请求失败", err); // 处理失败的响应
|
||||
// },
|
||||
// });
|
||||
// },
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
@@ -49,7 +46,7 @@ if (!Math) {
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_assets._imports_0
|
||||
a: common_assets._imports_0$1
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7ffebbf4"]]);
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d4fc3199"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Message/Message.js.map
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "消息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
/* 样式定义 */
|
||||
@@ -7,12 +7,9 @@ const _sfc_main = {
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.openConversationList();
|
||||
},
|
||||
methods: {
|
||||
openConversationList() {
|
||||
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
}
|
||||
// 方法定义
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarTitleText": "聊天",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
|
||||
/* 样式定义 */
|
||||
/* 样式定义 */
|
||||
|
||||
BIN
unpackage/dist/dev/mp-weixin/static/Navigationimg.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/Navigationimg.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/Return.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/Return.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Reference in New Issue
Block a user