优化页面

This commit is contained in:
pengxiaolong
2025-06-12 22:16:09 +08:00
parent 931d867c09
commit de99d32c01
63 changed files with 973 additions and 335 deletions

View File

@@ -1,5 +1,20 @@
<template>
<view style="display: flex;" />
<div class="Navigation">
<div class="Navigation-name">
{{ Title }}
</div>
<image
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png"
mode="scaleToFill"
class="Navigationimg"
/>
<image
@click="Returnfunc"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
class="Return"
/>
</div>
</template>
<script setup lang="ts">
@@ -18,6 +33,7 @@ const props = defineProps(['isGroup']);
const currentConversation = ref<IConversationModel>();
const typingStatus = ref(false);
const Title = ref('Global'); // 初始化为默认标题
// #ifdef APP-PLUS
onNavigationBarButtonTap(() => {
@@ -42,10 +58,14 @@ if (!props.isGroup) {
}
// #endif
const setChatHeaderContent = (content: string) => {
TUIGlobal?.setNavigationBarTitle({
title: content || '云通信 IM',
function Returnfunc() {
uni.navigateBack({
delta: 1,
});
}
const setChatHeaderContent = (content: string | undefined) => {
Title.value = content || 'Global'; // 确保默认值存在
};
onMounted(() => {
@@ -80,9 +100,44 @@ function onCurrentConversationUpdated(conversation: IConversationModel) {
function onTypingStatusUpdated(status: boolean) {
typingStatus.value = status;
if (typingStatus.value) {
setChatHeaderContent(TUITranslateService.t('TUIChat.对方正在输入'));
setChatHeaderContent(TUITranslateService.t('TUIChat.对方正在输入...'));
} else {
setChatHeaderContent(currentConversation.value?.getShowName());
}
}
</script>
<style>
.Return {
width: 46rpx;
height: 46rpx;
position: absolute;
top: 110rpx;
left: 40rpx;
z-index: 999;
font-weight: bold;
}
.Navigationimg {
width: 100%;
height: 240rpx;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.Navigation-name{
position: absolute;
top: 110rpx;
left: 320rpx;
font-size: 36rpx;
color: #000000;
font-weight: bold;
}
.Navigation{
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 240rpx;
}
</style>

View File

@@ -1,23 +1,6 @@
<template>
<!-- <div class="Navigation">
<div class="Navigation-name">
{{currentConversationID}}
</div>
<image
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png"
mode="scaleToFill"
class="Navigationimg"
/>
<image
@click="Returnfunc"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
class="Return"
/>
</div> -->
<div class="dingweizhibox">
</div>
<ChatHeader class="ChatHeadercss"/>
<div class="dingweizhibox"></div>
<div class="chat">
<div :class="['tui-chat', !isPC && 'tui-chat-h5']">
<div
@@ -27,17 +10,6 @@
<slot />
</div>
<div v-if="currentConversationID" :class="['tui-chat', !isPC && 'tui-chat-h5']">
<ChatHeader
:class="[
'tui-chat-header',
!isPC && 'tui-chat-H5-header',
isUniFrameWork && 'tui-chat-uniapp-header',
]"
:isGroup="isGroup"
:headerExtensionList="headerExtensionList"
@closeChat="closeChat"
@openGroupManagement="handleGroup"
/>
<Forward @toggleMultipleSelectMode="toggleMultipleSelectMode" />
<MessageList
ref="messageListRef"
@@ -145,9 +117,9 @@ const counter = useCounterStore();
let myitem = ref();
let youritem = ref();
let MessageListinfo = ref();
onLoad((options) => {
initChat(options);
try{
myitem.value = JSON.parse(options.myitem);
console.log(myitem.value);
youritem.value = JSON.parse(options.youritem);
@@ -156,6 +128,7 @@ onLoad((options) => {
setTimeout(() => {
sendCustomMessage(myitem.value, youritem.value);
}, 1000);
}catch(e){}
});
onUnload(() => {
@@ -183,7 +156,7 @@ const messageInputRef = ref();
const messageListRef = ref<InstanceType<typeof MessageList>>();
const headerExtensionList = ref<ExtensionInfo[]>([]);
const featureConfig = TUIChatConfig.getFeatureConfig();
let marginTopcss = ref("0px");
onMounted(() => {
TUIStore.watch(StoreName.CONV, {
currentConversation: onCurrentConversationUpdate,
@@ -347,19 +320,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) {
uni.$emit("scroll-to-bottom");
}
}
function scrollToLatestMessage() {
messageListRef.value?.scrollToLatestMessage();
}
@@ -455,59 +421,12 @@ function onCurrentConversationUpdate(conversation: IConversationModel) {
width: 100%;
height: 15%;
}
.tui-chat{
width: 100%;
height: 15%;
}
.tui-chat-h5 {
width: 100%;
height: 100%;
}
.tui-chat-uniapp-header{
width: 100%;
height: 100%;
}
.Navigation {
width: 100%;
height: 10%;
.ChatHeadercss{
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;
}
.Navigation-name{
width: 50rpx;
height: 50rpx;
position: absolute;
top: 100rpx;
left: 300rpx;
z-index: 999;
height: 15%;
}
</style>

View File

@@ -1,5 +1,4 @@
<template>
<div class="Navigation-left"> </div>
<div class="Navigation">
<image
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png"

View File

@@ -114,7 +114,7 @@ function handlePush(item, index) {
if (index === 3) {
VerifyLogin().then((res) => {
if (res) {
uni.navigateTo({
uni.redirectTo({
url: "/TUIKit/components/TUIConversation/index",
animationType: "none",
});
@@ -173,7 +173,7 @@ function handlePush(item, index) {
position: relative;
position: fixed;
bottom: 0;
z-index: 999;
z-index: 2;
background-size: contain;
width: 100vw;
background-color: #ffffff;

View File

@@ -12,8 +12,8 @@
class="MakeAppointment"
>PK大厅</view
>
<!-- <view @click="screening" class="Screening">筛选</view>
<image @click="Search" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png" class="filter-icon" /> -->
<view @click="screening" class="Screening">筛选</view>
<!-- <image @click="Search" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png" class="filter-icon" /> -->
</view>
</template>

View File

@@ -1,11 +1,15 @@
<template>
<view class="page">
<image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" class="HomeBackground"></image>
<image
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
class="HomeBackground"
></image>
</view>
<view class="top-navigation-container">
<top-navigation
@RealTimePk="goRealTimePk"
@MakeAppointmentPK="goMakeAppointmentPK"
@screening="goScreening"
></top-navigation>
</view>
<view class="Advertisement" @click="goAdvertisement">
@@ -61,6 +65,116 @@
<view class="tabBar">
<tabBar :tabIndex="0"></tabBar>
</view>
<uni-popup ref="popup" position="right">
<view class="popup-container">
<view class="popup-title">筛选条件</view>
<!-- 国家 -->
<view class="p-country">
<wht-select
style="width: 350rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#a3a3a3"
@change="country"
:options="Country"
:filterable="filterable"
placeholder="请选择国家"
:value="countrys"
/>
</view>
<!-- 性别 -->
<view class="popup-sex">
<view class="p-sex">
<wht-select
style="width: 350rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#a3a3a3"
@change="gender"
:options="Gender"
placeholder="性别"
:value="genders"
/>
</view>
<view class="Gendericoncss">
<image
v-if="genders === 0"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png"
mode="scaleToFill"
/>
<image
v-if="genders === 1"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png"
mode="scaleToFill"
/>
<image
v-if="genders === 2"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png"
mode="scaleToFill"
/>
</view>
</view>
<!-- 金币 -->
<view class="popup-coin">
<view class="p-coin">
<view class="p-coin-title">最小金币数</view>
<uni-number-box
:max="9999999999"
background="ffffff"
v-model="minNumberCoins"
></uni-number-box>
<view class="Hintcss" v-if="minNumberCoins == '' && HintCion === true"
>请填写金币数量</view
>
</view>
<view>_</view>
<view class="p-coin">
<view class="p-coin-title">最大金币数</view>
<uni-number-box
:max="9999999999"
background="#ffffff"
v-model="maxNumberCoins"
></uni-number-box>
<view class="Hintcss" v-if="maxNumberCoins == '' && HintCion === true"
>请填写金币数量</view
>
</view>
</view>
<!-- 时间 -->
<view class="p-time" v-if="listtype === 2">
<view class="p-coin-title">最小PK时间</view>
<uni-datetime-picker
type="datetime"
hide-second="true"
v-model="mindatetimesingle"
/>
<view class="Hintcss" v-if="mindatetimesingle == '' && HintTime === true"
>请选择日期</view
>
</view>
<view class="p-time" v-if="listtype === 2">
<view class="p-coin-title">最大PK时间</view>
<uni-datetime-picker
type="datetime"
hide-second="true"
v-model="maxdatetimesingle"
/>
<view class="Hintcss" v-if="maxdatetimesingle == '' && HintTime === true"
>请选择日期</view
>
</view>
<view class="popup-btn">
<view class="popup-btn-cancel" @click="closePopup">取消</view>
<view class="popup-btn-confirm" @click="confirm">确定</view>
<view class="popup-btn-clear" @click="clear">清空</view>
</view>
</view>
</uni-popup>
</template>
<script>
@@ -71,6 +185,7 @@ import TUIlogin from "../../components/TUILogin.js";
import request from "../../components/request.js";
import formatDate from "../../components/formatDate.js";
import { useCounterStore } from "@/stores/counter";
import optionsArray from "../../components/NationalDictionary.js";
const counter = useCounterStore();
export default {
inject: ["$global"],
@@ -87,6 +202,21 @@ export default {
RealTimePklist: [], // PK大厅列表数据
MakeAppointmentPKlist: [], // 今日PK列表数据
listtype: 1, // 列表类型 1 当天 2 大于当天
filterable: true, //是否可搜索
Country: optionsArray,
countrys: "", //国家
genders: 0, //性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 },
],
minNumberCoins: "", //最小金币数
maxNumberCoins: "", //最大金币数
mindatetimesingle: "", //最小PK时间
maxdatetimesingle: "", //最大PK时间
HintCion: false, //金币提示信息
HintTime: false, //时间提示信息
ConfirmStatus: false, //确认弹窗状态
};
},
mounted() {
@@ -121,10 +251,112 @@ export default {
}, 1000);
},
methods: {
//关闭弹窗(取消)
closePopup() {
this.$refs.popup.close();
},
//确认弹窗
confirm() {
//判断金币是否有为空
this.ConfirmStatus = true;
console.log(
this.minNumberCoins,
this.maxNumberCoins,
this.mindatetimesingle,
this.maxdatetimesingle
);
if (
(this.minNumberCoins === "" && this.maxNumberCoins !== "") ||
(this.minNumberCoins !== "" && this.maxNumberCoins === "")
) {
this.HintCion = true;
return;
}
if (
(this.mindatetimesingle === "" && this.maxdatetimesingle !== "") ||
(this.mindatetimesingle !== "" && this.maxdatetimesingle === "")
) {
this.HintTime = true;
return;
}
if (
this.genders === 0 &&
this.countrys === "" &&
this.minNumberCoins === "" &&
this.maxNumberCoins === "" &&
this.mindatetimesingle === "" &&
this.maxdatetimesingle === ""
) {
if (this.listtype === 1) {
this.MakeAppointmentPKlist = [];
} else {
this.RealTimePklist = [];
}
this.list = [];
this.pkList({ type: this.listtype });
this.closePopup();
return;
}
this.closePopup();
this.page = 0;
this.list = [];
if (this.listtype === 1) {
this.MakeAppointmentPKlist = [];
this.pkList({
type: this.listtype,
sex: this.genders,
coin: {
start: this.minNumberCoins,
end: this.maxNumberCoins,
},
country: this.countrys,
});
} else {
this.RealTimePklist = [];
this.pkList({
sex: this.genders,
coin: {
start: this.minNumberCoins,
end: this.maxNumberCoins,
},
country: this.countrys,
pkTime: {
start: this.mindatetimesingle,
end: this.maxdatetimesingle,
},
});
}
},
//清空弹窗
clear() {
this.genders = 0;
this.countrys = "";
this.minNumberCoins = "";
this.maxNumberCoins = "";
this.mindatetimesingle = "";
this.maxdatetimesingle = "";
this.ConfirmStatus = false;
},
//获取国家
country(item) {
this.countrys = item.value;
console.log(item);
},
//获取性别
gender(item) {
this.genders = item.value;
console.log(item);
},
// 打开弹窗(筛选条件)
goScreening() {
this.$refs.popup.open("right");
},
//今日
goMakeAppointmentPK() {
this.listtype = 1;
this.list = this.MakeAppointmentPKlist;
},
//大厅
goRealTimePk() {
this.listtype = 2;
this.list = this.RealTimePklist;
@@ -142,14 +374,43 @@ export default {
this.RealTimePklist = [];
}
this.triggered = true;
this.pkList({ type: this.listtype });
if (this.ConfirmStatus) {
if (
this.genders === 0 &&
this.countrys === "" &&
this.minNumberCoins === "" &&
this.maxNumberCoins === "" &&
this.mindatetimesingle === "" &&
this.maxdatetimesingle === ""
) {
this.pkList({ type: this.listtype });
} else {
if (
(this.minNumberCoins === "" && this.maxNumberCoins !== "") ||
(this.minNumberCoins !== "" && this.maxNumberCoins === "")
) {
this.pkList({ type: this.listtype });
return;
}
if (
(this.mindatetimesingle === "" && this.maxdatetimesingle !== "") ||
(this.mindatetimesingle !== "" && this.maxdatetimesingle === "")
) {
this.pkList({ type: this.listtype });
return;
}
this.confirm();
}
}else{
this.pkList({ type: this.listtype });
}
},
async goDetail(item) {
uni.showLoading({
title: "加载中...",
mask: true,
});
console.log("id", item.id,this.info.id);
console.log("id", item.id, this.info.id);
//获取详情
const res = await request({
url: "pk/pkInfoDetail",
@@ -260,7 +521,7 @@ export default {
left: 0;
width: 100%;
height: 100rpx;
z-index: 100;
z-index: 2;
}
.contentList {
position: fixed;
@@ -315,7 +576,8 @@ export default {
}
.Gendermale {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
@@ -324,7 +586,8 @@ export default {
margin-right: 10rpx;
}
.Genderfemale {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
@@ -350,7 +613,7 @@ export default {
line-height: 38rpx;
font-weight: 600;
}
.no-content{
.no-content {
position: absolute;
top: 50%;
left: 50%;
@@ -360,4 +623,126 @@ export default {
line-height: 40rpx;
text-align: center;
}
.popup-container {
height: 1626px;
width: 650rpx;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png);
border-radius: 15rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title {
font-size: 50rpx;
line-height: 50rpx;
margin-top: 250rpx;
font-weight: bold;
background: linear-gradient(135deg, #00afb2, #4fcacd);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
}
.p-country {
width: 500rpx;
height: 100rpx;
margin-top: 80rpx;
}
.popup-sex {
width: 500rpx;
height: 100rpx;
margin-top: 40rpx;
display: flex;
justify-content: space-between;
}
.p-sex {
width: 420rpx;
height: 100rpx;
}
.Gendericoncss {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.popup-coin {
width: 500rpx;
margin-top: 40rpx;
display: flex;
}
.p-coin {
width: 500rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.p-coin-title {
font-size: 20rpx;
color: #a3a3a3;
}
.p-time {
width: 500rpx;
margin-top: 40rpx;
}
.popup-btn-cancel {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
margin-right: 20rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.popup-btn-confirm {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
margin-right: 20rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcd9d, #5fdeba);
}
.popup-btn-clear {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #cd924f, #debc5f);
}
.Hintcss {
font-size: 18rpx;
color: #ff5555;
}
.popup-btn {
width: 600rpx;
height: 100rpx;
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 400rpx;
}
</style>

View File

@@ -216,7 +216,7 @@ export default {
// 退出登录
logout(){
uni.clearStorage()
TUILogin.logout;
TUILogin.logout();
uni.reLaunch({
url: "/pages/login/login",
});

View File

@@ -177,11 +177,12 @@ export default {
});
},
methods: {
//性别
gender(item) {
this.genders = item.value;
console.log(item);
},
//国家
country(item) {
this.countrys = item.value;
console.log(item);

View File

@@ -64,7 +64,7 @@ export default {
// 微信登录
wxLogin(e) {
uni.showLoading({
title: "登录中...",
title: "修改中...",
mask: true,
});

View File

@@ -88,7 +88,7 @@ export default {
name: this.Filename,
})
.then((ress) => {
this.picture = ress;
this.picture = ress.split("/").pop();
const res = request({
url: "user/inputUserInfo",
method: "POST",

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=e.defineComponent({__name:"index",props:["isGroup"],emits:["openGroupManagement"],setup(t,{emit:n}){const o=e.ref(),a=e.ref(!1),u=t=>{var n;null==(n=e.i)||n.setNavigationBarTitle({title:t||"云通信 IM"})};function r(e){var t;o.value=e,a.value||u(null==(t=null==o?void 0:o.value)?void 0:t.getShowName())}function i(t){var n;a.value=t,a.value?u(e.Wt.t("TUIChat.对方正在输入")):u(null==(n=o.value)?void 0:n.getShowName())}return e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:r}),e.Jt.watch(e.o.CHAT,{typingStatus:i})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:r}),e.Jt.unwatch(e.o.CHAT,{typingStatus:i})})),e.onLoad((()=>{var e;u(null==(e=o.value)?void 0:e.getShowName())})),(e,t)=>({})}});wx.createComponent(t);
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=e.defineComponent({__name:"index",props:["isGroup"],emits:["openGroupManagement"],setup(t,{emit:n}){const o=e.ref(),a=e.ref(!1),u=e.ref("Global");function r(){e.index.navigateBack({delta:1})}const i=e=>{u.value=e||"Global"};function l(e){var t;o.value=e,a.value||i(null==(t=null==o?void 0:o.value)?void 0:t.getShowName())}function v(t){var n;a.value=t,a.value?i(e.Wt.t("TUIChat.对方正在输入...")):i(null==(n=o.value)?void 0:n.getShowName())}return e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:l}),e.Jt.watch(e.o.CHAT,{typingStatus:v})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:l}),e.Jt.unwatch(e.o.CHAT,{typingStatus:v})})),e.onLoad((()=>{var e;i(null==(e=o.value)?void 0:e.getShowName())})),(t,n)=>({a:e.t(e.unref(u)),b:e.o$1(r)})}});wx.createComponent(t);

View File

@@ -1 +1 @@
<view style="display:none"/>
<view class="Navigation"><view class="Navigation-name">{{a}}</view><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg"/><image bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" class="Return"/></view>

View File

@@ -0,0 +1 @@
.Return{width:46rpx;height:46rpx;position:absolute;top:110rpx;left:40rpx;z-index:999;font-weight:700}.Navigationimg{width:100%;height:240rpx;position:absolute;top:0;left:0;z-index:-1}.Navigation-name{position:absolute;top:110rpx;left:320rpx;font-size:36rpx;color:#000;font-weight:700}.Navigation{position:fixed;top:0;left:0;z-index:999;width:100%;height:240rpx}

View File

@@ -1 +1 @@
<view class="Navigation data-v-6aa6f0c6"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg data-v-6aa6f0c6"/><image bindtap="{{a}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" class="Return data-v-6aa6f0c6"/></view><view class="dingweizhibox data-v-6aa6f0c6"></view><view class="chat data-v-6aa6f0c6"><view class="{{['data-v-6aa6f0c6', 'tui-chat', P]}}"><view wx:if="{{b}}" class="{{['data-v-6aa6f0c6', 'tui-chat-default', c]}}"><slot/></view><view wx:if="{{d}}" class="{{['data-v-6aa6f0c6', 'tui-chat', L]}}"><chat-header wx:if="{{i}}" class="{{['data-v-6aa6f0c6', 'tui-chat-header', e, f]}}" bindcloseChat="{{g}}" bindopenGroupManagement="{{h}}" u-i="6aa6f0c6-0" bind:__l="__l" u-p="{{i}}"/><forward class="data-v-6aa6f0c6" bindtoggleMultipleSelectMode="{{j}}" u-i="6aa6f0c6-1" bind:__l="__l"/><message-list wx:if="{{p}}" u-r="messageListRef" class="{{['r', 'data-v-6aa6f0c6', 'tui-chat-message-list', l]}}" bindhandleEditor="{{m}}" bindcloseInputToolBar="{{n}}" bindtoggleMultipleSelectMode="{{o}}" u-i="6aa6f0c6-2" bind:__l="__l" u-p="{{p}}"/><view wx:if="{{q}}" class="{{['data-v-6aa6f0c6', 'tui-chat-leave-group', s && 'tui-chat-leave-group-mobile']}}">{{r}}</view><multiple-select-panel wx:elif="{{t}}" class="data-v-6aa6f0c6" bindoneByOneForwardMessage="{{v}}" bindmergeForwardMessage="{{w}}" bindtoggleMultipleSelectMode="{{x}}" u-i="6aa6f0c6-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{y}}" class="{{['data-v-6aa6f0c6', 'tui-chat-message-input-toolbar', z, A]}}" bindinsertEmoji="{{B}}" bindchangeToolbarDisplayType="{{C}}" bindscrollToLatestMessage="{{D}}" u-i="6aa6f0c6-4" bind:__l="__l" u-p="{{E}}"/><message-input wx:if="{{K}}" u-r="messageInputRef" class="{{['r', 'data-v-6aa6f0c6', 'tui-chat-message-input', G, H, I]}}" bindchangeToolbarDisplayType="{{J}}" u-i="6aa6f0c6-5" bind:__l="__l" u-p="{{K}}"/></block></view><view wx:if="{{M}}" class="group-profile data-v-6aa6f0c6" bindtap="{{O}}">{{N}}</view></view></view>
<chat-header class="ChatHeadercss data-v-4e191a28" u-i="4e191a28-0" bind:__l="__l"/><view class="dingweizhibox data-v-4e191a28"></view><view class="chat data-v-4e191a28"><view class="{{['data-v-4e191a28', 'tui-chat', J]}}"><view wx:if="{{a}}" class="{{['data-v-4e191a28', 'tui-chat-default', b]}}"><slot/></view><view wx:if="{{c}}" class="{{['data-v-4e191a28', 'tui-chat', F]}}"><forward class="data-v-4e191a28" bindtoggleMultipleSelectMode="{{d}}" u-i="4e191a28-1" bind:__l="__l"/><message-list wx:if="{{j}}" u-r="messageListRef" class="{{['r', 'data-v-4e191a28', 'tui-chat-message-list', f]}}" bindhandleEditor="{{g}}" bindcloseInputToolBar="{{h}}" bindtoggleMultipleSelectMode="{{i}}" u-i="4e191a28-2" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="{{['data-v-4e191a28', 'tui-chat-leave-group', m && 'tui-chat-leave-group-mobile']}}">{{l}}</view><multiple-select-panel wx:elif="{{n}}" class="data-v-4e191a28" bindoneByOneForwardMessage="{{o}}" bindmergeForwardMessage="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="4e191a28-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{r}}" class="{{['data-v-4e191a28', 'tui-chat-message-input-toolbar', s, t]}}" bindinsertEmoji="{{v}}" bindchangeToolbarDisplayType="{{w}}" bindscrollToLatestMessage="{{x}}" u-i="4e191a28-4" bind:__l="__l" u-p="{{y}}"/><message-input wx:if="{{E}}" u-r="messageInputRef" class="{{['r', 'data-v-4e191a28', 'tui-chat-message-input', A, B, C]}}" bindchangeToolbarDisplayType="{{D}}" u-i="4e191a28-5" bind:__l="__l" u-p="{{E}}"/></block></view><view wx:if="{{G}}" class="group-profile data-v-4e191a28" bindtap="{{I}}">{{H}}</view></view></view>

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
<view class="Navigation-left data-v-bfb163a9"></view><view class="Navigation data-v-bfb163a9"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg data-v-bfb163a9"/><view class="Return data-v-bfb163a9">消息</view></view><view class="tui-conversation data-v-bfb163a9" bindtap="{{g}}" bindtouchstart="{{h}}" bindtouchend="{{i}}"><t-u-i-search wx:if="{{a}}" class="data-v-bfb163a9" u-i="bfb163a9-0" bind:__l="__l" u-p="{{a}}"/><conversation-header wx:if="{{b}}" class="r data-v-bfb163a9" u-r="headerRef" u-i="bfb163a9-1" bind:__l="__l"/><conversation-network class="data-v-bfb163a9" u-i="bfb163a9-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-bfb163a9" bindhandleSwitchConversation="{{e}}" bindgetPassingRef="{{f}}" u-i="bfb163a9-3" bind:__l="__l"/></view><view class="data-v-bfb163a9"><tab-bar wx:if="{{j}}" class="data-v-bfb163a9" u-i="bfb163a9-4" bind:__l="__l" u-p="{{j}}"></tab-bar></view>
<view class="Navigation data-v-f2dd85a2"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg data-v-f2dd85a2"/><view class="Return data-v-f2dd85a2">消息</view></view><view class="tui-conversation data-v-f2dd85a2" bindtap="{{g}}" bindtouchstart="{{h}}" bindtouchend="{{i}}"><t-u-i-search wx:if="{{a}}" class="data-v-f2dd85a2" u-i="f2dd85a2-0" bind:__l="__l" u-p="{{a}}"/><conversation-header wx:if="{{b}}" class="r data-v-f2dd85a2" u-r="headerRef" u-i="f2dd85a2-1" bind:__l="__l"/><conversation-network class="data-v-f2dd85a2" u-i="f2dd85a2-2" bind:__l="__l"/><conversation-list u-r="conversationListDomRef" class="tui-conversation-list r data-v-f2dd85a2" bindhandleSwitchConversation="{{e}}" bindgetPassingRef="{{f}}" u-i="f2dd85a2-3" bind:__l="__l"/></view><view class="data-v-f2dd85a2"><tab-bar wx:if="{{j}}" class="data-v-f2dd85a2" u-i="f2dd85a2-4" bind:__l="__l" u-p="{{j}}"></tab-bar></view>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../VerifyLogin.js");Math||a();const a=()=>"../../pages/NewAddedPk/NewAddedPk2.js",o={__name:"tabBar",props:{tabIndex:Number},setup(a){let o=e.ref(!1),n=e.reactive([{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/PKClick.png",text:"PK",pagePath:"/pages/Home/Home",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forum.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forumclick.png",text:"论坛",pagePath:"/pages/Forum/Forum",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",text:"",pagePath:"/pages/c/c",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Message.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Messageclick.png",text:"消息"},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mine.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mineclick.png",text:"我的",pagePath:"/pages/Mine/Mine",middleClass:""}]);e.onMounted((()=>{!function(){let e=n.length;if(e%2){o.value=!0;let t=Math.floor(e/2);n[t].middleClass="mid-button"}}()})),e.index.getSystemInfo({success:function(e){console.log("机型",e.deviceType),e.safeArea.top>40&&console.log("苹果的底部栏大小",e.safeArea.top)}});const s=e.ref();const c=()=>!1;function i(a,o){3===o?t.VerifyLogin().then((t=>{t&&e.index.navigateTo({url:"/TUIKit/components/TUIConversation/index",animationType:"none"})})):2===o?t.VerifyLogin().then((e=>{e&&s.value.open()})):4===o?t.VerifyLogin().then((t=>{t&&e.index.switchTab({url:"/pages/Mine/Mine",animationType:"none"})})):e.index.switchTab({url:a.pagePath})}return(t,l)=>({a:e.f(e.unref(n),((t,o,n)=>({a:a.tabIndex==o?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:a.tabIndex==o?"#1DD2F9":"#A7A3A3",d:e.n("list-item flex flex-column flex-middle "+t.middleClass),e:e.o$1((e=>i(t,o)),o),f:o}))),b:e.n(!0===e.unref(o)?"tab-list-middle":"tab-list-default"),c:e.o$1(c),d:e.sr(s,"3fcabaeb-0",{k:"createModule"})})}},n=e._export_sfc(o,[["__scopeId","data-v-3fcabaeb"]]);wx.createComponent(n);
"use strict";const e=require("../../common/vendor.js"),t=require("../VerifyLogin.js");Math||a();const a=()=>"../../pages/NewAddedPk/NewAddedPk2.js",o={__name:"tabBar",props:{tabIndex:Number},setup(a){let o=e.ref(!1),n=e.reactive([{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Pk.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/PKClick.png",text:"PK",pagePath:"/pages/Home/Home",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forum.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Forumclick.png",text:"论坛",pagePath:"/pages/Forum/Forum",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/jiahao.png",text:"",pagePath:"/pages/c/c",middleClass:""},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Message.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Messageclick.png",text:"消息"},{iconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mine.png",selectedIconPath:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Mineclick.png",text:"我的",pagePath:"/pages/Mine/Mine",middleClass:""}]);e.onMounted((()=>{!function(){let e=n.length;if(e%2){o.value=!0;let t=Math.floor(e/2);n[t].middleClass="mid-button"}}()})),e.index.getSystemInfo({success:function(e){console.log("机型",e.deviceType),e.safeArea.top>40&&console.log("苹果的底部栏大小",e.safeArea.top)}});const s=e.ref();const c=()=>!1;function i(a,o){3===o?t.VerifyLogin().then((t=>{t&&e.index.redirectTo({url:"/TUIKit/components/TUIConversation/index",animationType:"none"})})):2===o?t.VerifyLogin().then((e=>{e&&s.value.open()})):4===o?t.VerifyLogin().then((t=>{t&&e.index.switchTab({url:"/pages/Mine/Mine",animationType:"none"})})):e.index.switchTab({url:a.pagePath})}return(t,l)=>({a:e.f(e.unref(n),((t,o,n)=>({a:a.tabIndex==o?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:a.tabIndex==o?"#1DD2F9":"#A7A3A3",d:e.n("list-item flex flex-column flex-middle "+t.middleClass),e:e.o$1((e=>i(t,o)),o),f:o}))),b:e.n(!0===e.unref(o)?"tab-list-middle":"tab-list-default"),c:e.o$1(c),d:e.sr(s,"9fec1596-0",{k:"createModule"})})}},n=e._export_sfc(o,[["__scopeId","data-v-9fec1596"]]);wx.createComponent(n);

View File

@@ -1 +1 @@
<view class="tab-block data-v-3fcabaeb"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-3fcabaeb', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-3fcabaeb', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-3fcabaeb"><image class="item-img data-v-3fcabaeb" src="{{item.a}}"/></view><view class="item-text font-20 data-v-3fcabaeb" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-3fcabaeb" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-3fcabaeb" u-r="createModule" u-i="3fcabaeb-0" bind:__l="__l"></new-added-pk></view>
<view class="tab-block data-v-9fec1596"><view class="{{['tab-list', 'flex', 'flex-center', 'data-v-9fec1596', b]}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-9fec1596', item.d]}}" bindtap="{{item.e}}"><view class="item-img-box data-v-9fec1596"><image class="item-img data-v-9fec1596" src="{{item.a}}"/></view><view class="item-text font-20 data-v-9fec1596" style="{{'color:' + item.c}}">{{item.b}}</view></view></view><view class="data-v-9fec1596" catchtouchmove="{{c}}"></view><new-added-pk class="createModule r data-v-9fec1596" u-r="createModule" u-i="9fec1596-0" bind:__l="__l"></new-added-pk></view>

View File

@@ -1 +1 @@
.flex.data-v-3fcabaeb{display:flex;flex-flow:row wrap}.flex-center.data-v-3fcabaeb{align-items:center;justify-content:center}.flex-column.data-v-3fcabaeb{flex-direction:column;align-items:center}.flex-middle.data-v-3fcabaeb{align-items:center}.font-20.data-v-3fcabaeb{font-size:20rpx}.tab-block.data-v-3fcabaeb{position:relative;position:fixed;bottom:0;z-index:999;background-size:contain;width:100vw;background-color:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-block .tab-list.data-v-3fcabaeb{height:100rpx;padding:0;z-index:0}.tab-block .createModule.data-v-3fcabaeb{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.tab-block .tab-list-default.data-v-3fcabaeb{background-color:#fff;border-top:1px #dddddd solid}.tab-block .tab-list-middle.data-v-3fcabaeb{position:relative;background-size:cover}.tab-block .list-item.data-v-3fcabaeb{flex:1}.tab-block .list-item .item-img-box.data-v-3fcabaeb{width:38rpx;height:38rpx;margin-bottom:9rpx;position:relative}.tab-block .list-item .item-img.data-v-3fcabaeb{width:38rpx;height:38rpx;color:red}.tab-block .mid-button.data-v-3fcabaeb{position:relative}.tab-block .mid-button .item-img-box.data-v-3fcabaeb{width:150rpx;height:150rpx;margin-bottom:9rpx;position:absolute;z-index:10;top:-104rpx}.tab-block .mid-button .item-img.data-v-3fcabaeb{width:150rpx;height:150rpx}.tab-block .mid-button .item-text.data-v-3fcabaeb{font-size:20rpx;position:absolute;z-index:1002;bottom:-40rpx;color:#393a41}.tab-block .tab-bar.data-v-3fcabaeb{height:30rpx;background-color:#fff}
.flex.data-v-9fec1596{display:flex;flex-flow:row wrap}.flex-center.data-v-9fec1596{align-items:center;justify-content:center}.flex-column.data-v-9fec1596{flex-direction:column;align-items:center}.flex-middle.data-v-9fec1596{align-items:center}.font-20.data-v-9fec1596{font-size:20rpx}.tab-block.data-v-9fec1596{position:relative;position:fixed;bottom:0;z-index:999;background-size:contain;width:100vw;background-color:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.tab-block .tab-list.data-v-9fec1596{height:100rpx;padding:0;z-index:0}.tab-block .createModule.data-v-9fec1596{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.tab-block .tab-list-default.data-v-9fec1596{background-color:#fff;border-top:1px #dddddd solid}.tab-block .tab-list-middle.data-v-9fec1596{position:relative;background-size:cover}.tab-block .list-item.data-v-9fec1596{flex:1}.tab-block .list-item .item-img-box.data-v-9fec1596{width:38rpx;height:38rpx;margin-bottom:9rpx;position:relative}.tab-block .list-item .item-img.data-v-9fec1596{width:38rpx;height:38rpx;color:red}.tab-block .mid-button.data-v-9fec1596{position:relative}.tab-block .mid-button .item-img-box.data-v-9fec1596{width:150rpx;height:150rpx;margin-bottom:9rpx;position:absolute;z-index:10;top:-104rpx}.tab-block .mid-button .item-img.data-v-9fec1596{width:150rpx;height:150rpx}.tab-block .mid-button .item-text.data-v-9fec1596{font-size:20rpx;position:absolute;z-index:1002;bottom:-40rpx;color:#393a41}.tab-block .tab-bar.data-v-9fec1596{height:30rpx;background-color:#fff}

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/TUILogin.js"),i=require("../../components/request.js"),s=require("../../components/formatDate.js"),o=require("../../stores/counter.js").useCounterStore(),a={inject:["$global"],data:()=>({info:{},myuserSig:"",chatInfo:{},page:0,size:10,list:[],detailsdata:{},triggered:!1,RealTimePklist:[],MakeAppointmentPKlist:[],listtype:1}),mounted(){this.pkList({type:2}),this.pkList({type:1})},onLoad(){e.index.getStorage({key:"userinfo",success:i=>{this.info=i.data,o.$patch({myitem:this.info}),e.index.getStorage({key:"myuserSig",success:i=>{this.myuserSig=i.data,e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data,t.TUIlogin(this.chatInfo.appId,this.info.id,this.myuserSig.userSig)}})}})}}),setTimeout((()=>{e.index.switchTab({url:"/pages/Home/Home"})}),1e3)},methods:{goMakeAppointmentPK(){this.listtype=1,this.list=this.MakeAppointmentPKlist},goRealTimePk(){this.listtype=2,this.list=this.RealTimePklist},goAdvertisement(){e.index.navigateTo({url:"/pages/pkDetail/pkDetail"})},onRefresherRefresh(){this.page=0,this.list=[],1===this.listtype?this.MakeAppointmentPKlist=[]:this.RealTimePklist=[],this.triggered=!0,this.pkList({type:this.listtype})},async goDetail(t){e.index.showLoading({title:"加载中...",mask:!0}),console.log("id",t.id,this.info.id);const s=await i.request({url:"pk/pkInfoDetail",method:"POST",data:{id:t.id,userId:this.info.id},userInfo:!0});console.log("res",s),this.detailsdata=s.data,200===s.code?0!==s.data.length?(e.index.hideLoading(),console.log("res.data",s.data),e.index.navigateTo({url:"/pages/pkDetail/pkDetail",success:e=>{e.eventChannel.emit("itemDetail",{item:this.detailsdata})}})):(e.index.hideLoading(),this.openPopupQuantity()):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},formatDate:s.formatDate,async pkList(e){const t=await i.request({url:"pk/pkList",method:"POST",data:{status:0,page:this.page,size:this.size,condition:e,userId:this.info.id},userInfo:!1});console.log(t),200===t.code&&(this.triggered=!1,1===e.type?(this.MakeAppointmentPKlist.push(...t.data),e.type==this.listtype&&(this.list=this.MakeAppointmentPKlist)):(this.RealTimePklist.push(...t.data),e.type==this.listtype&&(this.list=this.RealTimePklist)))}},onScrollToLower(){this.page++,this.pkList({type:this.listtype})},components:{topNavigation:()=>"../../components/topNavigation/topNavigation.js",Advertisement:()=>"../../components/Advertisement/Advertisement.js",tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){(e.resolveComponent("top-navigation")+e.resolveComponent("advertisement")+e.resolveComponent("uni-card")+e.resolveComponent("tabBar"))()}Math;const n=e._export_sfc(a,[["render",function(t,i,s,o,a,n){return e.e({a:e.o$1(n.goRealTimePk),b:e.o$1(n.goMakeAppointmentPK),c:e.o$1(((...e)=>n.goAdvertisement&&n.goAdvertisement(...e))),d:0!==a.list.length},0!==a.list.length?{e:e.f(a.list,((t,i,s)=>e.e({a:t.anchorIcon,b:e.t(t.disPlayId),c:"2"===t.sex},(t.sex,{}),{d:e.t("1"===t.sex?"男":"女"),e:"1"===t.sex?1:"",f:"2"===t.sex?1:"",g:e.t(n.formatDate(t.pkTime)),h:e.t(t.coin+"K"),i:e.o$1((e=>n.goDetail(t)),i),j:i,k:"afa23f9e-2-"+s})))}:{},{f:0===a.list.length},(a.list.length,{}),{g:e.o$1(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),h:e.o$1(((...e)=>t.onScrollToLower&&t.onScrollToLower(...e))),i:a.triggered,j:e.p({tabIndex:0})})}],["__scopeId","data-v-afa23f9e"]]);wx.createPage(n);
"use strict";const t=require("../../common/vendor.js"),e=require("../../components/TUILogin.js"),i=require("../../components/request.js"),s=require("../../components/formatDate.js"),o=require("../../stores/counter.js").useCounterStore(),a={inject:["$global"],data:()=>({info:{},myuserSig:"",chatInfo:{},page:0,size:10,list:[],detailsdata:{},triggered:!1,RealTimePklist:[],MakeAppointmentPKlist:[],listtype:1}),mounted(){this.pkList({type:2}),this.pkList({type:1})},onLoad(){t.index.getStorage({key:"userinfo",success:i=>{this.info=i.data,o.$patch({myitem:this.info}),t.index.getStorage({key:"myuserSig",success:i=>{this.myuserSig=i.data,t.index.getStorage({key:"chatInfo",success:t=>{this.chatInfo=t.data,console.log("chatInfo",this.chatInfo),e.TUIlogin(this.chatInfo.appId,this.info.id,this.myuserSig.userSig)}})}})}}),setTimeout((()=>{t.index.switchTab({url:"/pages/Home/Home"})}),1e3)},methods:{goMakeAppointmentPK(){this.listtype=1,this.list=this.MakeAppointmentPKlist},goRealTimePk(){this.listtype=2,this.list=this.RealTimePklist},goAdvertisement(){t.index.navigateTo({url:"/pages/pkDetail/pkDetail"})},onRefresherRefresh(){this.page=0,this.list=[],1===this.listtype?this.MakeAppointmentPKlist=[]:this.RealTimePklist=[],this.triggered=!0,this.pkList({type:this.listtype})},async goDetail(e){t.index.showLoading({title:"加载中...",mask:!0}),console.log("id",e.id,this.info.id);const s=await i.request({url:"pk/pkInfoDetail",method:"POST",data:{id:e.id,userId:this.info.id},userInfo:!0});console.log("res",s),this.detailsdata=s.data,200===s.code?0!==s.data.length?(t.index.hideLoading(),console.log("res.data",s.data),t.index.navigateTo({url:"/pages/pkDetail/pkDetail",success:t=>{t.eventChannel.emit("itemDetail",{item:this.detailsdata})}})):(t.index.hideLoading(),this.openPopupQuantity()):(t.index.hideLoading(),t.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},formatDate:s.formatDate,async pkList(t){const e=await i.request({url:"pk/pkList",method:"POST",data:{status:0,page:this.page,size:this.size,condition:t,userId:this.info.id},userInfo:!1});console.log(e),200===e.code&&(this.triggered=!1,1===t.type?(this.MakeAppointmentPKlist.push(...e.data),t.type==this.listtype&&(this.list=this.MakeAppointmentPKlist)):(this.RealTimePklist.push(...e.data),t.type==this.listtype&&(this.list=this.RealTimePklist)))}},onScrollToLower(){this.page++,this.pkList({type:this.listtype})},components:{topNavigation:()=>"../../components/topNavigation/topNavigation.js",Advertisement:()=>"../../components/Advertisement/Advertisement.js",tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){(t.resolveComponent("top-navigation")+t.resolveComponent("advertisement")+t.resolveComponent("uni-card")+t.resolveComponent("tabBar"))()}Math;const n=t._export_sfc(a,[["render",function(e,i,s,o,a,n){return t.e({a:t.o$1(n.goRealTimePk),b:t.o$1(n.goMakeAppointmentPK),c:t.o$1(((...t)=>n.goAdvertisement&&n.goAdvertisement(...t))),d:0!==a.list.length},0!==a.list.length?{e:t.f(a.list,((e,i,s)=>t.e({a:e.anchorIcon,b:t.t(e.disPlayId),c:"2"===e.sex},(e.sex,{}),{d:t.t("1"===e.sex?"男":"女"),e:"1"===e.sex?1:"",f:"2"===e.sex?1:"",g:t.t(n.formatDate(e.pkTime)),h:t.t(e.coin+"K"),i:t.o$1((t=>n.goDetail(e)),i),j:i,k:"62142dc4-2-"+s})))}:{},{f:0===a.list.length},(a.list.length,{}),{g:t.o$1(((...t)=>n.onRefresherRefresh&&n.onRefresherRefresh(...t))),h:t.o$1(((...t)=>e.onScrollToLower&&e.onScrollToLower(...t))),i:a.triggered,j:t.p({tabIndex:0})})}],["__scopeId","data-v-62142dc4"]]);wx.createPage(n);

View File

@@ -1 +1 @@
<view class="page data-v-afa23f9e"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" class="HomeBackground data-v-afa23f9e"></image></view><view class="top-navigation-container data-v-afa23f9e"><top-navigation class="data-v-afa23f9e" bindRealTimePk="{{a}}" bindMakeAppointmentPK="{{b}}" u-i="afa23f9e-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-afa23f9e" bindtap="{{c}}"><advertisement class="data-v-afa23f9e" u-i="afa23f9e-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-afa23f9e"><scroll-view scroll-y="true" class="scroll data-v-afa23f9e" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{g}}" lower-threshold="100" bindscrolltolower="{{h}}" refresher-triggered="{{i}}"><block wx:if="{{d}}"><uni-card wx:for="{{e}}" wx:for-item="item" wx:key="j" class="data-v-afa23f9e" u-s="{{['d']}}" u-i="{{item.k}}" bind:__l="__l"><view class="content-list data-v-afa23f9e" bindtap="{{item.i}}"><image class="headShot data-v-afa23f9e" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-afa23f9e"><view class="cardname data-v-afa23f9e">{{item.b}}</view><view class="content-list-info data-v-afa23f9e"><view class="{{['data-v-afa23f9e', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-afa23f9e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-afa23f9e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-afa23f9e">{{item.d}}</view></view><view class="RoomID data-v-afa23f9e">PK时间: {{item.g}}</view><view class="Charm data-v-afa23f9e">金币:</view><view class="charmValue data-v-afa23f9e">{{item.h}}</view></view></view></view></uni-card></block><view wx:if="{{f}}" class="no-content data-v-afa23f9e">暂无内容</view></scroll-view></view><view class="tabBar data-v-afa23f9e"><tab-bar wx:if="{{j}}" class="data-v-afa23f9e" u-i="afa23f9e-3" bind:__l="__l" u-p="{{j}}"></tab-bar></view>
<view class="page data-v-62142dc4"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" class="HomeBackground data-v-62142dc4"></image></view><view class="top-navigation-container data-v-62142dc4"><top-navigation class="data-v-62142dc4" bindRealTimePk="{{a}}" bindMakeAppointmentPK="{{b}}" u-i="62142dc4-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-62142dc4" bindtap="{{c}}"><advertisement class="data-v-62142dc4" u-i="62142dc4-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-62142dc4"><scroll-view scroll-y="true" class="scroll data-v-62142dc4" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{g}}" lower-threshold="100" bindscrolltolower="{{h}}" refresher-triggered="{{i}}"><block wx:if="{{d}}"><uni-card wx:for="{{e}}" wx:for-item="item" wx:key="j" class="data-v-62142dc4" u-s="{{['d']}}" u-i="{{item.k}}" bind:__l="__l"><view class="content-list data-v-62142dc4" bindtap="{{item.i}}"><image class="headShot data-v-62142dc4" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-62142dc4"><view class="cardname data-v-62142dc4">{{item.b}}</view><view class="content-list-info data-v-62142dc4"><view class="{{['data-v-62142dc4', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-62142dc4" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-62142dc4" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-62142dc4">{{item.d}}</view></view><view class="RoomID data-v-62142dc4">PK时间: {{item.g}}</view><view class="Charm data-v-62142dc4">金币:</view><view class="charmValue data-v-62142dc4">{{item.h}}</view></view></view></view></uni-card></block><view wx:if="{{f}}" class="no-content data-v-62142dc4">暂无内容</view></scroll-view></view><view class="tabBar data-v-62142dc4"><tab-bar wx:if="{{j}}" class="data-v-62142dc4" u-i="62142dc4-3" bind:__l="__l" u-p="{{j}}"></tab-bar></view>

View File

@@ -1 +1 @@
.page.data-v-afa23f9e{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-afa23f9e{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-afa23f9e{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-afa23f9e{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:100}.contentList.data-v-afa23f9e{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-afa23f9e{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-afa23f9e{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-afa23f9e{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-afa23f9e{display:flex;align-items:center}.cardname.data-v-afa23f9e{font-size:31rpx;color:#161616;line-height:38rpx}.Genderimg.data-v-afa23f9e{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-afa23f9e{color:#fff;font-size:14rpx}.Gendermale.data-v-afa23f9e{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-afa23f9e{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-afa23f9e{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-afa23f9e{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-afa23f9e{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-afa23f9e{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}
.page.data-v-62142dc4{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-62142dc4{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-62142dc4{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-62142dc4{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:100}.contentList.data-v-62142dc4{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-62142dc4{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-62142dc4{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-62142dc4{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-62142dc4{display:flex;align-items:center}.cardname.data-v-62142dc4{font-size:31rpx;color:#161616;line-height:38rpx}.Genderimg.data-v-62142dc4{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-62142dc4{color:#fff;font-size:14rpx}.Gendermale.data-v-62142dc4{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-62142dc4{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-62142dc4{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-62142dc4{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-62142dc4{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-62142dc4{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}

View File

@@ -1 +1 @@
"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[]}),onShow(){o.index.getStorage({key:"userinfo",success:o=>{this.userinfo=o.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord()}})},methods:{formatDate:t.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((o=>{200==o.code?(this.pkInformationdata=o.data,console.log(this.pkInformationdata)):console.log(o.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((o=>{200==o.code?(this.myPkRecorddata=o.data,console.log(this.myPkRecorddata)):console.log(o.msg)}))},pkInformation(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){o.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){o.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){o.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){o.index.clearStorage(),o.A.logout,o.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){o.resolveComponent("tabBar")()}Math;const r=o._export_sfc(a,[["render",function(e,t,n,a,r,i){return o.e({a:r.userinfo.headerIcon,b:o.t(r.userinfo.nickName),c:o.o$1(((...o)=>i.goSetting&&i.goSetting(...o))),d:o.o$1(((...o)=>i.pkInformation&&i.pkInformation(...o))),e:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{f:o.f(r.pkInformationdata,((e,t,n)=>({a:e.anchorIcon,b:o.t(i.formatDate(e.pkTime)),c:o.t(e.coin),d:t})))}:{},{g:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{h:o.o$1(((...o)=>i.pkRecord&&i.pkRecord(...o))),i:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{j:o.f(r.myPkRecorddata,((e,t,n)=>o.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:o.t(e.pkNumber),e:o.t(i.TimeFormatting(e.pkTime)),f:t})))}:{},{k:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{l:o.o$1(((...o)=>i.contact&&i.contact(...o))),m:o.o$1(((...o)=>i.serviceProtocol&&i.serviceProtocol(...o))),n:o.o$1(((...o)=>i.logout&&i.logout(...o))),o:o.p({tabIndex:4})})}],["__scopeId","data-v-3f47806b"]]);wx.createPage(r);
"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[]}),onShow(){o.index.getStorage({key:"userinfo",success:o=>{this.userinfo=o.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord()}})},methods:{formatDate:t.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((o=>{200==o.code?(this.pkInformationdata=o.data,console.log(this.pkInformationdata)):console.log(o.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((o=>{200==o.code?(this.myPkRecorddata=o.data,console.log(this.myPkRecorddata)):console.log(o.msg)}))},pkInformation(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){o.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){o.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){o.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){o.index.clearStorage(),o.A.logout(),o.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){o.resolveComponent("tabBar")()}Math;const r=o._export_sfc(a,[["render",function(e,t,n,a,r,i){return o.e({a:r.userinfo.headerIcon,b:o.t(r.userinfo.nickName),c:o.o$1(((...o)=>i.goSetting&&i.goSetting(...o))),d:o.o$1(((...o)=>i.pkInformation&&i.pkInformation(...o))),e:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{f:o.f(r.pkInformationdata,((e,t,n)=>({a:e.anchorIcon,b:o.t(i.formatDate(e.pkTime)),c:o.t(e.coin),d:t})))}:{},{g:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{h:o.o$1(((...o)=>i.pkRecord&&i.pkRecord(...o))),i:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{j:o.f(r.myPkRecorddata,((e,t,n)=>o.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:o.t(e.pkNumber),e:o.t(i.TimeFormatting(e.pkTime)),f:t})))}:{},{k:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{l:o.o$1(((...o)=>i.contact&&i.contact(...o))),m:o.o$1(((...o)=>i.serviceProtocol&&i.serviceProtocol(...o))),n:o.o$1(((...o)=>i.logout&&i.logout(...o))),o:o.p({tabIndex:4})})}],["__scopeId","data-v-d61e5b2e"]]);wx.createPage(r);

View File

@@ -1 +1 @@
<view class="container data-v-3f47806b"><view class="bg data-v-3f47806b"><image class="bgImg data-v-3f47806b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="PersonalInformation data-v-3f47806b"><view class="header data-v-3f47806b"><image src="{{a}}" style="width:144.5rpx;height:144.5rpx;border-radius:72.25rpx" mode="scaleToFill" class="headerIcon data-v-3f47806b"/></view><view class="data-v-3f47806b"><view class="name data-v-3f47806b">{{b}}</view></view><view class="Settings data-v-3f47806b" bindtap="{{c}}"><image class="SettingsIcon data-v-3f47806b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Settings.png" mode="scaleToFill"/></view></view><view class="content data-v-3f47806b"><view class="PKInformation data-v-3f47806b"><view class="title data-v-3f47806b"><view class="titleText data-v-3f47806b">PK信息</view><view class="titleLine data-v-3f47806b"></view><view class="titleMore data-v-3f47806b" bindtap="{{d}}">更多PK信息<image class="data-v-3f47806b" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="card data-v-3f47806b"><block wx:if="{{e}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="d" class="cardContent data-v-3f47806b"><view class="cardImg data-v-3f47806b"><image class="data-v-3f47806b" src="{{item.a}}" style="width:80rpx;height:80rpx;border-radius:72.25rpx" mode="scaleToFill"/></view><view class="Time data-v-3f47806b">{{item.b}}</view><view class="gold data-v-3f47806b">{{item.c}}K</view></view></block><view wx:if="{{g}}" class="no-content data-v-3f47806b">暂无内容</view></view></view><view class="myPkRecord data-v-3f47806b"><view class="title data-v-3f47806b"><view class="titleText data-v-3f47806b">我的PK记录</view><view class="titleLine data-v-3f47806b"></view><view class="myPkRecordMore data-v-3f47806b" bindtap="{{h}}">更多PK记录<image class="data-v-3f47806b" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="card data-v-3f47806b"><block wx:if="{{i}}"><view wx:for="{{j}}" wx:for-item="item" wx:key="f" class="cardContent data-v-3f47806b"><view class="cardImg data-v-3f47806b"><image class="data-v-3f47806b" style="width:80rpx;height:80rpx;border-radius:72.25rpx" src="{{item.a}}" mode="scaleToFill"/></view><view wx:if="{{item.b}}" class="Failure data-v-3f47806b"> 失败 </view><view wx:elif="{{item.c}}" class="Result data-v-3f47806b"> 胜利 </view><view class="Session data-v-3f47806b"> 共{{item.d}}场 </view><view class="Time data-v-3f47806b">{{item.e}}</view></view></block><view wx:if="{{k}}" class="no-content data-v-3f47806b">暂无内容</view></view></view><view class="PKInformation data-v-3f47806b"><view class="title data-v-3f47806b"><view class="titleText data-v-3f47806b">专属客服</view><view class="titleLine data-v-3f47806b"></view></view></view><view class="card data-v-3f47806b"><view class="service data-v-3f47806b" bindtap="{{l}}"><image class="data-v-3f47806b" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/service.png" mode="scaleToFill"/><view class="cardtext data-v-3f47806b">联系客服</view></view><view class="service data-v-3f47806b" bindtap="{{m}}"><image class="data-v-3f47806b" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Agreement.png" mode="scaleToFill"/><view class="cardtext data-v-3f47806b">服务协议</view></view><view class="service data-v-3f47806b" bindtap="{{n}}"><image class="data-v-3f47806b" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/logout.png" mode="scaleToFill"/><view class="cardtext data-v-3f47806b">退出登录</view></view></view></view></view><view class="copyright data-v-3f47806b">版权所有 © 2025 ...................</view><view class="tabBar data-v-3f47806b"><tab-bar wx:if="{{o}}" class="data-v-3f47806b" u-i="3f47806b-0" bind:__l="__l" u-p="{{o}}"></tab-bar></view>
<view class="container data-v-d61e5b2e"><view class="bg data-v-d61e5b2e"><image class="bgImg data-v-d61e5b2e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="PersonalInformation data-v-d61e5b2e"><view class="header data-v-d61e5b2e"><image src="{{a}}" style="width:144.5rpx;height:144.5rpx;border-radius:72.25rpx" mode="scaleToFill" class="headerIcon data-v-d61e5b2e"/></view><view class="data-v-d61e5b2e"><view class="name data-v-d61e5b2e">{{b}}</view></view><view class="Settings data-v-d61e5b2e" bindtap="{{c}}"><image class="SettingsIcon data-v-d61e5b2e" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Settings.png" mode="scaleToFill"/></view></view><view class="content data-v-d61e5b2e"><view class="PKInformation data-v-d61e5b2e"><view class="title data-v-d61e5b2e"><view class="titleText data-v-d61e5b2e">PK信息</view><view class="titleLine data-v-d61e5b2e"></view><view class="titleMore data-v-d61e5b2e" bindtap="{{d}}">更多PK信息<image class="data-v-d61e5b2e" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="card data-v-d61e5b2e"><block wx:if="{{e}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="d" class="cardContent data-v-d61e5b2e"><view class="cardImg data-v-d61e5b2e"><image class="data-v-d61e5b2e" src="{{item.a}}" style="width:80rpx;height:80rpx;border-radius:72.25rpx" mode="scaleToFill"/></view><view class="Time data-v-d61e5b2e">{{item.b}}</view><view class="gold data-v-d61e5b2e">{{item.c}}K</view></view></block><view wx:if="{{g}}" class="no-content data-v-d61e5b2e">暂无内容</view></view></view><view class="myPkRecord data-v-d61e5b2e"><view class="title data-v-d61e5b2e"><view class="titleText data-v-d61e5b2e">我的PK记录</view><view class="titleLine data-v-d61e5b2e"></view><view class="myPkRecordMore data-v-d61e5b2e" bindtap="{{h}}">更多PK记录<image class="data-v-d61e5b2e" style="width:10.5rpx;height:20.04rpx;margin-left:10rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="card data-v-d61e5b2e"><block wx:if="{{i}}"><view wx:for="{{j}}" wx:for-item="item" wx:key="f" class="cardContent data-v-d61e5b2e"><view class="cardImg data-v-d61e5b2e"><image class="data-v-d61e5b2e" style="width:80rpx;height:80rpx;border-radius:72.25rpx" src="{{item.a}}" mode="scaleToFill"/></view><view wx:if="{{item.b}}" class="Failure data-v-d61e5b2e"> 失败 </view><view wx:elif="{{item.c}}" class="Result data-v-d61e5b2e"> 胜利 </view><view class="Session data-v-d61e5b2e"> 共{{item.d}}场 </view><view class="Time data-v-d61e5b2e">{{item.e}}</view></view></block><view wx:if="{{k}}" class="no-content data-v-d61e5b2e">暂无内容</view></view></view><view class="PKInformation data-v-d61e5b2e"><view class="title data-v-d61e5b2e"><view class="titleText data-v-d61e5b2e">专属客服</view><view class="titleLine data-v-d61e5b2e"></view></view></view><view class="card data-v-d61e5b2e"><view class="service data-v-d61e5b2e" bindtap="{{l}}"><image class="data-v-d61e5b2e" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/service.png" mode="scaleToFill"/><view class="cardtext data-v-d61e5b2e">联系客服</view></view><view class="service data-v-d61e5b2e" bindtap="{{m}}"><image class="data-v-d61e5b2e" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Agreement.png" mode="scaleToFill"/><view class="cardtext data-v-d61e5b2e">服务协议</view></view><view class="service data-v-d61e5b2e" bindtap="{{n}}"><image class="data-v-d61e5b2e" style="width:48.28rpx;height:48.09rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/logout.png" mode="scaleToFill"/><view class="cardtext data-v-d61e5b2e">退出登录</view></view></view></view></view><view class="copyright data-v-d61e5b2e">版权所有 © 2025 ...................</view><view class="tabBar data-v-d61e5b2e"><tab-bar wx:if="{{o}}" class="data-v-d61e5b2e" u-i="d61e5b2e-0" bind:__l="__l" u-p="{{o}}"></tab-bar></view>

View File

@@ -1 +1 @@
.bg.data-v-3f47806b{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-3f47806b{width:100%;height:100%}.PersonalInformation.data-v-3f47806b{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.header.data-v-3f47806b{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-3f47806b{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-3f47806b{width:100%;height:100%}.name.data-v-3f47806b{width:400rpx;font-size:36.26rpx;font-weight:500;color:#161616;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content.data-v-3f47806b{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.PKInformation.data-v-3f47806b,.myPkRecord.data-v-3f47806b{margin-top:48.5rpx}.title.data-v-3f47806b{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-3f47806b{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-3f47806b{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.titleMore.data-v-3f47806b{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-3f47806b{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-3f47806b{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-3f47806b:first-child{margin-left:30rpx}.cardContent.data-v-3f47806b{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-3f47806b{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-3f47806b,.gold.data-v-3f47806b{font-size:18rpx;text-align:center;margin-top:10rpx}.Failure.data-v-3f47806b{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-3f47806b{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-3f47806b{font-weight:700;font-size:18rpx;margin-top:10rpx}.service.data-v-3f47806b{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-3f47806b{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-3f47806b{font-size:23rpx;color:#929292;text-align:center;position:fixed;bottom:250rpx;left:0;right:0;height:50rpx}.no-content.data-v-3f47806b{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}
.bg.data-v-d61e5b2e{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-d61e5b2e{width:100%;height:100%}.PersonalInformation.data-v-d61e5b2e{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.header.data-v-d61e5b2e{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-d61e5b2e{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-d61e5b2e{width:100%;height:100%}.name.data-v-d61e5b2e{width:400rpx;font-size:36.26rpx;font-weight:500;color:#161616;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content.data-v-d61e5b2e{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.PKInformation.data-v-d61e5b2e,.myPkRecord.data-v-d61e5b2e{margin-top:48.5rpx}.title.data-v-d61e5b2e{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-d61e5b2e{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-d61e5b2e{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.titleMore.data-v-d61e5b2e{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-d61e5b2e{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-d61e5b2e{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-d61e5b2e:first-child{margin-left:30rpx}.cardContent.data-v-d61e5b2e{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-d61e5b2e{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-d61e5b2e,.gold.data-v-d61e5b2e{font-size:18rpx;text-align:center;margin-top:10rpx}.Failure.data-v-d61e5b2e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-d61e5b2e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-d61e5b2e{font-weight:700;font-size:18rpx;margin-top:10rpx}.service.data-v-d61e5b2e{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-d61e5b2e{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-d61e5b2e{font-size:23rpx;color:#929292;text-align:center;position:fixed;bottom:250rpx;left:0;right:0;height:50rpx}.no-content.data-v-d61e5b2e{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),i=require("../../components/request.js"),n=require("../../components/postFile.js"),s=require("../../components/generateFileName.js"),t={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},userSig:""}),onLoad(i){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=e.data.headerIcon}}),e.index.getStorage({key:"userSig",success:e=>{this.userSig=e.data}})},methods:{cancel(){e.index.navigateBack({delta:1})},inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:i}=e.detail;this.userinfo=i},wxLogin(t){e.index.showLoading({title:"登录中...",mask:!0}),n.uploadFile({path:this.userinfo,name:s.generateFileName()}).then((n=>{console.log(n.split("/").pop()),i.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:n.split("/").pop(),nickName:this.name,usersig:this.userSig.userSig},userInfo:!0}).then((i=>{200===i.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",i.data.info),e.index.hideLoading(),e.index.navigateBack({delta:1})):e.index.showToast({title:"修改失败",icon:"none"})}))})).catch((e=>{console.log(e)}))}}};const a=e._export_sfc(t,[["render",function(i,n,s,t,a,o){return{a:a.userinfo,b:e.o$1(((...e)=>o.Userinfo&&o.Userinfo(...e))),c:e.o$1(((...e)=>o.inputName&&o.inputName(...e))),d:e.o$1(((...e)=>o.wxLogin&&o.wxLogin(...e))),e:e.o$1(((...e)=>o.cancel&&o.cancel(...e)))}}],["__scopeId","data-v-db16201c"]]);wx.createPage(a);
"use strict";const e=require("../../common/vendor.js"),i=require("../../components/request.js"),n=require("../../components/postFile.js"),s=require("../../components/generateFileName.js"),t={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},userSig:""}),onLoad(i){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=e.data.headerIcon}}),e.index.getStorage({key:"userSig",success:e=>{this.userSig=e.data}})},methods:{cancel(){e.index.navigateBack({delta:1})},inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:i}=e.detail;this.userinfo=i},wxLogin(t){e.index.showLoading({title:"修改中...",mask:!0}),n.uploadFile({path:this.userinfo,name:s.generateFileName()}).then((n=>{console.log(n.split("/").pop()),i.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:n.split("/").pop(),nickName:this.name,usersig:this.userSig.userSig},userInfo:!0}).then((i=>{200===i.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",i.data.info),e.index.hideLoading(),e.index.navigateBack({delta:1})):e.index.showToast({title:"修改失败",icon:"none"})}))})).catch((e=>{console.log(e)}))}}};const a=e._export_sfc(t,[["render",function(i,n,s,t,a,o){return{a:a.userinfo,b:e.o$1(((...e)=>o.Userinfo&&o.Userinfo(...e))),c:e.o$1(((...e)=>o.inputName&&o.inputName(...e))),d:e.o$1(((...e)=>o.wxLogin&&o.wxLogin(...e))),e:e.o$1(((...e)=>o.cancel&&o.cancel(...e)))}}],["__scopeId","data-v-b4cbc3b8"]]);wx.createPage(a);

View File

@@ -1 +1 @@
<view class="container data-v-db16201c"><button class="login-btn data-v-db16201c" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-db16201c" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-db16201c" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-db16201c" bindtap="{{d}}">修改</button><button class="weui-btn data-v-db16201c" bindtap="{{e}}">取消</button></view>
<view class="container data-v-b4cbc3b8"><button class="login-btn data-v-b4cbc3b8" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-b4cbc3b8" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-b4cbc3b8" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-b4cbc3b8" bindtap="{{d}}">修改</button><button class="weui-btn data-v-b4cbc3b8" bindtap="{{e}}">取消</button></view>

View File

@@ -1 +1 @@
.container.data-v-db16201c{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-db16201c{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-db16201c{width:100%;height:100%;border-radius:50%}.weui-input.data-v-db16201c{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-db16201c{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}
.container.data-v-b4cbc3b8{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-b4cbc3b8{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-b4cbc3b8{width:100%;height:100%;border-radius:50%}.weui-input.data-v-b4cbc3b8{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-b4cbc3b8{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),i=require("../../components/request.js"),s=require("../../components/postFile.js"),t=require("../../components/generateFileName.js"),n=require("../../stores/counter.js").useCounterStore(),o={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},userSig:"",lastPage:"",picture:"",Filename:t.generateFileName()}),onLoad(i){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"userSig",success:e=>{this.userSig=e.data}}),e.index.getStorage({key:"lastPage",success:e=>{this.lastPage="/"+e.data},fail:()=>{this.lastPage="/pages/Home/Home"}})},methods:{inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:i}=e.detail;this.userinfo=i},async wxLogin(t){if(""!==this.name&&""!==this.userinfo){e.index.showLoading({title:"登录中...",mask:!0});const{code:t}=await e.index.login({provider:"weixin",onlyAuthorize:!0});s.uploadFile({path:this.userinfo,name:this.Filename}).then((s=>{this.picture=s,i.request({url:"user/inputUserInfo",method:"POST",data:{id:this.id,headerIcon:this.Filename,nickName:this.name,code:t,usersig:this.userSig.userSig},userInfo:!1}).then((i=>{200===i.code?(e.index.showToast({title:"登录成功",icon:"success"}),e.index.setStorageSync("userinfo",i.data.info),n.$patch({myitem:i.data.info}),e.index.hideLoading(),e.index.reLaunch({url:this.lastPage})):e.index.showToast({title:"登录失败",icon:"none"})}))})).catch((e=>{console.log(e)}))}else e.index.showToast({title:"请填写头像昵称",icon:"success",duration:3e3})}}};const a=e._export_sfc(o,[["render",function(i,s,t,n,o,a){return{a:o.userinfo,b:e.o$1(((...e)=>a.Userinfo&&a.Userinfo(...e))),c:e.o$1(((...e)=>a.inputName&&a.inputName(...e))),d:e.o$1(((...e)=>a.wxLogin&&a.wxLogin(...e)))}}],["__scopeId","data-v-580015eb"]]);wx.createPage(a);
"use strict";const e=require("../../common/vendor.js"),i=require("../../components/request.js"),s=require("../../components/postFile.js"),t=require("../../components/generateFileName.js"),n=require("../../stores/counter.js").useCounterStore(),o={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},userSig:"",lastPage:"",picture:"",Filename:t.generateFileName()}),onLoad(i){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"userSig",success:e=>{this.userSig=e.data}}),e.index.getStorage({key:"lastPage",success:e=>{this.lastPage="/"+e.data},fail:()=>{this.lastPage="/pages/Home/Home"}})},methods:{inputName(e){this.name=e.detail.value},async Userinfo(e){const{avatarUrl:i}=e.detail;this.userinfo=i},async wxLogin(t){if(""!==this.name&&""!==this.userinfo){e.index.showLoading({title:"登录中...",mask:!0});const{code:t}=await e.index.login({provider:"weixin",onlyAuthorize:!0});s.uploadFile({path:this.userinfo,name:this.Filename}).then((s=>{this.picture=s.split("/").pop(),i.request({url:"user/inputUserInfo",method:"POST",data:{id:this.id,headerIcon:this.Filename,nickName:this.name,code:t,usersig:this.userSig.userSig},userInfo:!1}).then((i=>{200===i.code?(e.index.showToast({title:"登录成功",icon:"success"}),e.index.setStorageSync("userinfo",i.data.info),n.$patch({myitem:i.data.info}),e.index.hideLoading(),e.index.reLaunch({url:this.lastPage})):e.index.showToast({title:"登录失败",icon:"none"})}))})).catch((e=>{console.log(e)}))}else e.index.showToast({title:"请填写头像昵称",icon:"success",duration:3e3})}}};const a=e._export_sfc(o,[["render",function(i,s,t,n,o,a){return{a:o.userinfo,b:e.o$1(((...e)=>a.Userinfo&&a.Userinfo(...e))),c:e.o$1(((...e)=>a.inputName&&a.inputName(...e))),d:e.o$1(((...e)=>a.wxLogin&&a.wxLogin(...e)))}}],["__scopeId","data-v-e6c386ec"]]);wx.createPage(a);

View File

@@ -1 +1 @@
<view class="container data-v-580015eb"><button class="login-btn data-v-580015eb" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-580015eb" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-580015eb" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-580015eb" bindtap="{{d}}">登录</button></view>
<view class="container data-v-e6c386ec"><button class="login-btn data-v-e6c386ec" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-e6c386ec" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-e6c386ec" placeholder="请输入昵称" bindblur="{{c}}"/><button class="weui-btn data-v-e6c386ec" bindtap="{{d}}">登录</button></view>

View File

@@ -1 +1 @@
.container.data-v-580015eb{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-580015eb{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-580015eb{width:100%;height:100%;border-radius:50%}.weui-input.data-v-580015eb{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-580015eb{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}
.container.data-v-e6c386ec{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.login-btn.data-v-e6c386ec{width:200rpx;height:200rpx;border-radius:50%;padding:0;margin-bottom:60rpx}.avatar.data-v-e6c386ec{width:100%;height:100%;border-radius:50%}.weui-input.data-v-e6c386ec{width:80%;text-align:center;margin-bottom:40rpx}.weui-btn.data-v-e6c386ec{width:40%;margin-top:20rpx;background-color:rgba(17,203,42,0);color:#fff}

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"index.js","sources":["TUIKit/components/TUIChat/chat-header/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvY29tcG9uZW50cy9UVUlDaGF0L2NoYXQtaGVhZGVyL2luZGV4LnZ1ZQ"],"sourcesContent":["<template>\r\n <view style=\"display: flex;\" />\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { onMounted, onUnmounted, ref } from '../../../adapter-vue';\r\nimport {\r\n TUIStore,\r\n StoreName,\r\n IConversationModel,\r\n TUITranslateService,\r\n} from '@tencentcloud/chat-uikit-engine';\r\nimport { TUIGlobal } from '@tencentcloud/universal-api';\r\nimport { onLoad, onNavigationBarButtonTap } from '@dcloudio/uni-app';\r\n\r\nconst emits = defineEmits(['openGroupManagement']);\r\nconst props = defineProps(['isGroup']);\r\n\r\nconst currentConversation = ref<IConversationModel>();\r\nconst typingStatus = ref(false);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nconst setChatHeaderContent = (content: string) => {\r\n TUIGlobal?.setNavigationBarTitle({\r\n title: content || '云通信 IM',\r\n });\r\n};\r\n\r\nonMounted(() => {\r\n TUIStore.watch(StoreName.CONV, {\r\n currentConversation: onCurrentConversationUpdated,\r\n });\r\n TUIStore.watch(StoreName.CHAT, {\r\n typingStatus: onTypingStatusUpdated,\r\n });\r\n});\r\n\r\nonUnmounted(() => {\r\n TUIStore.unwatch(StoreName.CONV, {\r\n currentConversation: onCurrentConversationUpdated,\r\n });\r\n TUIStore.unwatch(StoreName.CHAT, {\r\n typingStatus: onTypingStatusUpdated,\r\n });\r\n});\r\n\r\nonLoad(() => {\r\n setChatHeaderContent(currentConversation.value?.getShowName());\r\n});\r\n\r\nfunction onCurrentConversationUpdated(conversation: IConversationModel) {\r\n currentConversation.value = conversation;\r\n if (!typingStatus.value) {\r\n setChatHeaderContent(currentConversation?.value?.getShowName());\r\n }\r\n}\r\n\r\nfunction onTypingStatusUpdated(status: boolean) {\r\n typingStatus.value = status;\r\n if (typingStatus.value) {\r\n setChatHeaderContent(TUITranslateService.t('TUIChat.对方正在输入'));\r\n } else {\r\n setChatHeaderContent(currentConversation.value?.getShowName());\r\n }\r\n}\r\n</script>\r\n","import Component from 'D:/项目/tk-mini-program/TUIKit/components/TUIChat/chat-header/index.vue'\nwx.createComponent(Component)"],"names":["ref","TUIGlobal","onMounted","TUIStore","StoreName","onUnmounted","onLoad","TUITranslateService","Component"],"mappings":";;;;;;;;AAkBA,UAAM,sBAAsBA,cAAAA;AACtB,UAAA,eAAeA,kBAAI,KAAK;AAyBxB,UAAA,uBAAuB,CAAC,YAAoB;;AAChDC,0BAAAA,MAAAA,mBAAW,sBAAsB;AAAA,QAC/B,OAAO,WAAW;AAAA,MAAA;AAAA,IACnB;AAGHC,kBAAAA,UAAU,MAAM;AACLC,uBAAA,MAAMC,gBAAU,MAAM;AAAA,QAC7B,qBAAqB;AAAA,MAAA,CACtB;AACQD,uBAAA,MAAMC,gBAAU,MAAM;AAAA,QAC7B,cAAc;AAAA,MAAA,CACf;AAAA,IAAA,CACF;AAEDC,kBAAAA,YAAY,MAAM;AACPF,uBAAA,QAAQC,gBAAU,MAAM;AAAA,QAC/B,qBAAqB;AAAA,MAAA,CACtB;AACQD,uBAAA,QAAQC,gBAAU,MAAM;AAAA,QAC/B,cAAc;AAAA,MAAA,CACf;AAAA,IAAA,CACF;AAEDE,kBAAAA,OAAO,MAAM;;AACU,4BAAA,yBAAoB,UAApB,mBAA2B,aAAa;AAAA,IAAA,CAC9D;AAED,aAAS,6BAA6B,cAAkC;;AACtE,0BAAoB,QAAQ;AACxB,UAAA,CAAC,aAAa,OAAO;AACF,8BAAA,gEAAqB,UAArB,mBAA4B,aAAa;AAAA,MAChE;AAAA,IACF;AAEA,aAAS,sBAAsB,QAAiB;;AAC9C,mBAAa,QAAQ;AACrB,UAAI,aAAa,OAAO;AACD,6BAAAC,cAAA,GAAoB,EAAE,gBAAgB,CAAC;AAAA,MAAA,OACvD;AACgB,8BAAA,yBAAoB,UAApB,mBAA2B,aAAa;AAAA,MAC/D;AAAA,IACF;;;;;;ACrFA,GAAG,gBAAgBC,SAAS;"}
{"version":3,"file":"index.js","sources":["TUIKit/components/TUIChat/chat-header/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9UVUlLaXQvY29tcG9uZW50cy9UVUlDaGF0L2NoYXQtaGVhZGVyL2luZGV4LnZ1ZQ"],"sourcesContent":["<template>\r\n <div class=\"Navigation\">\r\n <div class=\"Navigation-name\">\r\n {{ Title }}\r\n </div>\r\n <image\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png\"\r\n mode=\"scaleToFill\"\r\n class=\"Navigationimg\"\r\n />\r\n <image\r\n @click=\"Returnfunc\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png\"\r\n mode=\"scaleToFill\"\r\n class=\"Return\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { onMounted, onUnmounted, ref } from '../../../adapter-vue';\r\nimport {\r\n TUIStore,\r\n StoreName,\r\n IConversationModel,\r\n TUITranslateService,\r\n} from '@tencentcloud/chat-uikit-engine';\r\nimport { TUIGlobal } from '@tencentcloud/universal-api';\r\nimport { onLoad, onNavigationBarButtonTap } from '@dcloudio/uni-app';\r\n\r\nconst emits = defineEmits(['openGroupManagement']);\r\nconst props = defineProps(['isGroup']);\r\n\r\nconst currentConversation = ref<IConversationModel>();\r\nconst typingStatus = ref(false);\r\nconst Title = ref('Global'); // 初始化为默认标题\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nfunction Returnfunc() {\r\n uni.navigateBack({\r\n delta: 1,\r\n });\r\n}\r\n\r\nconst setChatHeaderContent = (content: string | undefined) => {\r\n Title.value = content || 'Global'; // 确保默认值存在\r\n};\r\n\r\nonMounted(() => {\r\n TUIStore.watch(StoreName.CONV, {\r\n currentConversation: onCurrentConversationUpdated,\r\n });\r\n TUIStore.watch(StoreName.CHAT, {\r\n typingStatus: onTypingStatusUpdated,\r\n });\r\n});\r\n\r\nonUnmounted(() => {\r\n TUIStore.unwatch(StoreName.CONV, {\r\n currentConversation: onCurrentConversationUpdated,\r\n });\r\n TUIStore.unwatch(StoreName.CHAT, {\r\n typingStatus: onTypingStatusUpdated,\r\n });\r\n});\r\n\r\nonLoad(() => {\r\n setChatHeaderContent(currentConversation.value?.getShowName());\r\n});\r\n\r\nfunction onCurrentConversationUpdated(conversation: IConversationModel) {\r\n currentConversation.value = conversation;\r\n if (!typingStatus.value) {\r\n setChatHeaderContent(currentConversation?.value?.getShowName());\r\n }\r\n}\r\n\r\nfunction onTypingStatusUpdated(status: boolean) {\r\n typingStatus.value = status;\r\n if (typingStatus.value) {\r\n setChatHeaderContent(TUITranslateService.t('TUIChat.对方正在输入...'));\r\n } else {\r\n setChatHeaderContent(currentConversation.value?.getShowName());\r\n }\r\n}\r\n</script>\r\n<style>\r\n.Return {\r\n width: 46rpx;\r\n height: 46rpx;\r\n position: absolute;\r\n top: 110rpx;\r\n left: 40rpx;\r\n z-index: 999;\r\n font-weight: bold;\r\n}\r\n.Navigationimg {\r\n width: 100%;\r\n height: 240rpx;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n z-index: -1;\r\n}\r\n.Navigation-name{\r\n position: absolute;\r\n top: 110rpx;\r\n left: 320rpx;\r\n font-size: 36rpx;\r\n color: #000000;\r\n font-weight: bold;\r\n}\r\n.Navigation{\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n z-index: 999;\r\n width: 100%;\r\n height: 240rpx;\r\n}\r\n</style>","import Component from 'D:/项目/tk-mini-program/TUIKit/components/TUIChat/chat-header/index.vue'\nwx.createComponent(Component)"],"names":["ref","uni","onMounted","TUIStore","StoreName","onUnmounted","onLoad","TUITranslateService","Component"],"mappings":";;;;;;;;AAiCA,UAAM,sBAAsBA,cAAAA;AACtB,UAAA,eAAeA,kBAAI,KAAK;AACxB,UAAA,QAAQA,kBAAI,QAAQ;AAyB1B,aAAS,aAAa;AACpBC,oBAAAA,MAAI,aAAa;AAAA,QACf,OAAO;AAAA,MAAA,CACR;AAAA,IACH;AAEM,UAAA,uBAAuB,CAAC,YAAgC;AAC5D,YAAM,QAAQ,WAAW;AAAA,IAAA;AAG3BC,kBAAAA,UAAU,MAAM;AACLC,uBAAA,MAAMC,gBAAU,MAAM;AAAA,QAC7B,qBAAqB;AAAA,MAAA,CACtB;AACQD,uBAAA,MAAMC,gBAAU,MAAM;AAAA,QAC7B,cAAc;AAAA,MAAA,CACf;AAAA,IAAA,CACF;AAEDC,kBAAAA,YAAY,MAAM;AACPF,uBAAA,QAAQC,gBAAU,MAAM;AAAA,QAC/B,qBAAqB;AAAA,MAAA,CACtB;AACQD,uBAAA,QAAQC,gBAAU,MAAM;AAAA,QAC/B,cAAc;AAAA,MAAA,CACf;AAAA,IAAA,CACF;AAEDE,kBAAAA,OAAO,MAAM;;AACU,4BAAA,yBAAoB,UAApB,mBAA2B,aAAa;AAAA,IAAA,CAC9D;AAED,aAAS,6BAA6B,cAAkC;;AACtE,0BAAoB,QAAQ;AACxB,UAAA,CAAC,aAAa,OAAO;AACF,8BAAA,gEAAqB,UAArB,mBAA4B,aAAa;AAAA,MAChE;AAAA,IACF;AAEA,aAAS,sBAAsB,QAAiB;;AAC9C,mBAAa,QAAQ;AACrB,UAAI,aAAa,OAAO;AACD,6BAAAC,cAAA,GAAoB,EAAE,mBAAmB,CAAC;AAAA,MAAA,OAC1D;AACgB,8BAAA,yBAAoB,UAApB,mBAA2B,aAAa;AAAA,MAC/D;AAAA,IACF;;;;;;;;;ACzGA,GAAG,gBAAgBC,SAAS;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"topNavigation.js","sources":["components/topNavigation/topNavigation.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RvcE5hdmlnYXRpb24vdG9wTmF2aWdhdGlvbi52dWU"],"sourcesContent":["<template>\r\n <view class=\"topNavigation\">\r\n <view\r\n @click=\"MakeAppointmentPK\"\r\n :class=\"{ Selectcss: !Select, NoSelectcss: Select }\"\r\n class=\"RealTime\"\r\n >今日PK</view\r\n >\r\n <view\r\n @click=\"RealTimePk\"\r\n :class=\"{ Selectcss: Select, NoSelectcss: !Select }\"\r\n class=\"MakeAppointment\"\r\n >PK大厅</view\r\n >\r\n <!-- <view @click=\"screening\" class=\"Screening\">筛选</view>\r\n <image @click=\"Search\" src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png\" class=\"filter-icon\" /> -->\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n Select: false,\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");\r\n },\r\n RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n screening() {\r\n this.$emit(\"screening\");//触发筛选事件\r\n },\r\n Search() {\r\n this.$emit(\"Search\");//触发搜索事件\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.topNavigation {\r\n width: 100%;\r\n height: 114.5rpx;\r\n display: flex;\r\n align-items: center;\r\n}\r\n.Screening {\r\n width: 93rpx;\r\n height: 50rpx;\r\n background: #ffffff;\r\n border-radius: 4rpx;\r\n font-size: 23rpx;\r\n color: #3b3b3b;\r\n text-align: center;\r\n line-height: 50rpx;\r\n}\r\n.filter-icon {\r\n width: 33rpx;\r\n height: 33rpx;\r\n}\r\n.RealTime {\r\n margin: 0 39rpx 0 41rpx;\r\n}\r\n.MakeAppointment {\r\n margin-right: 233rpx;\r\n}\r\n.Screening {\r\n margin-right: 20rpx;\r\n}\r\n.Selectcss {\r\n width: 146rpx;\r\n height: 39rpx;\r\n font-size: 42rpx;\r\n color: #0e1011;\r\n font-weight: 600;\r\n}\r\n.NoSelectcss {\r\n font-weight: 600;\r\n height: 29rpx;\r\n color: #727a7b;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/components/topNavigation/topNavigation.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;AAoBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA;EAEX;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;AAAA,IACD,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,YAAY;AACV,WAAK,MAAM,WAAW;AAAA,IACvB;AAAA,IACD,SAAS;AACP,WAAK,MAAM,QAAQ;AAAA,IACpB;AAAA,EACF;AACH;;;;;;;;;;;;AC7CA,GAAG,gBAAgB,SAAS;"}
{"version":3,"file":"topNavigation.js","sources":["components/topNavigation/topNavigation.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RvcE5hdmlnYXRpb24vdG9wTmF2aWdhdGlvbi52dWU"],"sourcesContent":["<template>\r\n <view class=\"topNavigation\">\r\n <view\r\n @click=\"MakeAppointmentPK\"\r\n :class=\"{ Selectcss: !Select, NoSelectcss: Select }\"\r\n class=\"RealTime\"\r\n >今日PK</view\r\n >\r\n <view\r\n @click=\"RealTimePk\"\r\n :class=\"{ Selectcss: Select, NoSelectcss: !Select }\"\r\n class=\"MakeAppointment\"\r\n >PK大厅</view\r\n >\r\n <view @click=\"screening\" class=\"Screening\">筛选</view>\r\n <!-- <image @click=\"Search\" src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png\" class=\"filter-icon\" /> -->\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n Select: false,\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");\r\n },\r\n RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n screening() {\r\n this.$emit(\"screening\");//触发筛选事件\r\n },\r\n Search() {\r\n this.$emit(\"Search\");//触发搜索事件\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.topNavigation {\r\n width: 100%;\r\n height: 114.5rpx;\r\n display: flex;\r\n align-items: center;\r\n}\r\n.Screening {\r\n width: 93rpx;\r\n height: 50rpx;\r\n background: #ffffff;\r\n border-radius: 4rpx;\r\n font-size: 23rpx;\r\n color: #3b3b3b;\r\n text-align: center;\r\n line-height: 50rpx;\r\n}\r\n.filter-icon {\r\n width: 33rpx;\r\n height: 33rpx;\r\n}\r\n.RealTime {\r\n margin: 0 39rpx 0 41rpx;\r\n}\r\n.MakeAppointment {\r\n margin-right: 233rpx;\r\n}\r\n.Screening {\r\n margin-right: 20rpx;\r\n}\r\n.Selectcss {\r\n width: 146rpx;\r\n height: 39rpx;\r\n font-size: 42rpx;\r\n color: #0e1011;\r\n font-weight: 600;\r\n}\r\n.NoSelectcss {\r\n font-weight: 600;\r\n height: 29rpx;\r\n color: #727a7b;\r\n}\r\n</style>\r\n","import Component from 'D:/项目/tk-mini-program/components/topNavigation/topNavigation.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;AAoBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA;EAEX;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;AAAA,IACD,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,YAAY;AACV,WAAK,MAAM,WAAW;AAAA,IACvB;AAAA,IACD,SAAS;AACP,WAAK,MAAM,QAAQ;AAAA,IACpB;AAAA,EACF;AACH;;;;;;;;;;;;;AC7CA,GAAG,gBAAgB,SAAS;"}

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

File diff suppressed because one or more lines are too long

View File

@@ -45,13 +45,15 @@ const _sfc_main = {
});
},
methods: {
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:182", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:183", item);
},
//国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:187", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:188", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {

View File

@@ -8,11 +8,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
setup(__props, { emit: __emit }) {
const currentConversation = common_vendor.ref();
const typingStatus = common_vendor.ref(false);
const setChatHeaderContent = (content) => {
var _a;
(_a = common_vendor.i) == null ? void 0 : _a.setNavigationBarTitle({
title: content || "云通信 IM"
const Title = common_vendor.ref("Global");
function Returnfunc() {
common_vendor.index.navigateBack({
delta: 1
});
}
const setChatHeaderContent = (content) => {
Title.value = content || "Global";
};
common_vendor.onMounted(() => {
common_vendor.Jt.watch(common_vendor.o.CONV, {
@@ -45,13 +48,16 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
var _a;
typingStatus.value = status;
if (typingStatus.value) {
setChatHeaderContent(common_vendor.Wt.t("TUIChat.对方正在输入"));
setChatHeaderContent(common_vendor.Wt.t("TUIChat.对方正在输入..."));
} else {
setChatHeaderContent((_a = currentConversation.value) == null ? void 0 : _a.getShowName());
}
}
return (_ctx, _cache) => {
return {};
return {
a: common_vendor.t(common_vendor.unref(Title)),
b: common_vendor.o$1(Returnfunc)
};
};
}
});

View File

@@ -1 +1 @@
<view style="display:flex"/>
<view class="Navigation"><view class="Navigation-name">{{a}}</view><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg"/><image bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" class="Return"/></view>

View File

@@ -0,0 +1,34 @@
.Return {
width: 46rpx;
height: 46rpx;
position: absolute;
top: 110rpx;
left: 40rpx;
z-index: 999;
font-weight: bold;
}
.Navigationimg {
width: 100%;
height: 240rpx;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.Navigation-name{
position: absolute;
top: 110rpx;
left: 320rpx;
font-size: 36rpx;
color: #000000;
font-weight: bold;
}
.Navigation{
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 240rpx;
}

View File

@@ -1 +1 @@
<view class="dingweizhibox data-v-04dfedea"></view><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>
<chat-header class="ChatHeadercss data-v-04dfedea" u-i="04dfedea-0" bind:__l="__l"/><view class="dingweizhibox data-v-04dfedea"></view><view class="chat data-v-04dfedea"><view class="{{['data-v-04dfedea', 'tui-chat', J]}}"><view wx:if="{{a}}" class="{{['data-v-04dfedea', 'tui-chat-default', b]}}"><slot/></view><view wx:if="{{c}}" class="{{['data-v-04dfedea', 'tui-chat', F]}}"><forward class="data-v-04dfedea" bindtoggleMultipleSelectMode="{{d}}" u-i="04dfedea-1" bind:__l="__l"/><message-list wx:if="{{j}}" u-r="messageListRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-list', f]}}" bindhandleEditor="{{g}}" bindcloseInputToolBar="{{h}}" bindtoggleMultipleSelectMode="{{i}}" u-i="04dfedea-2" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="{{['data-v-04dfedea', 'tui-chat-leave-group', m && 'tui-chat-leave-group-mobile']}}">{{l}}</view><multiple-select-panel wx:elif="{{n}}" class="data-v-04dfedea" bindoneByOneForwardMessage="{{o}}" bindmergeForwardMessage="{{p}}" bindtoggleMultipleSelectMode="{{q}}" u-i="04dfedea-3" bind:__l="__l"/><block wx:else><message-input-toolbar wx:if="{{r}}" class="{{['data-v-04dfedea', 'tui-chat-message-input-toolbar', s, t]}}" bindinsertEmoji="{{v}}" bindchangeToolbarDisplayType="{{w}}" bindscrollToLatestMessage="{{x}}" u-i="04dfedea-4" bind:__l="__l" u-p="{{y}}"/><message-input wx:if="{{E}}" u-r="messageInputRef" class="{{['r', 'data-v-04dfedea', 'tui-chat-message-input', A, B, C]}}" bindchangeToolbarDisplayType="{{D}}" u-i="04dfedea-5" bind:__l="__l" u-p="{{E}}"/></block></view><view wx:if="{{G}}" class="group-profile data-v-04dfedea" bindtap="{{I}}">{{H}}</view></view></view>

View File

@@ -650,58 +650,11 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
width: 100%;
height: 15%;
}
.tui-chat{
width: 100%;
height: 15%;
}
.tui-chat-h5 {
width: 100%;
height: 100%;
}
.tui-chat-uniapp-header{
width: 100%;
height: 100%;
}
.Navigation {
width: 100%;
height: 10%;
.ChatHeadercss{
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;
}
.Navigation-name{
width: 50rpx;
height: 50rpx;
position: absolute;
top: 100rpx;
left: 300rpx;
z-index: 999;
height: 15%;
}

View File

@@ -1 +1 @@
<view class="Navigation-left data-v-40b33296"></view><view class="Navigation data-v-40b33296"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg data-v-40b33296"/><view class="Return data-v-40b33296">消息</view></view><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="data-v-40b33296"><tab-bar wx:if="{{j}}" class="data-v-40b33296" u-i="40b33296-4" bind:__l="__l" u-p="{{j}}"></tab-bar></view>
<view class="Navigation data-v-40b33296"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Navigationimg.png" mode="scaleToFill" class="Navigationimg data-v-40b33296"/><view class="Return data-v-40b33296">消息</view></view><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="data-v-40b33296"><tab-bar wx:if="{{j}}" class="data-v-40b33296" u-i="40b33296-4" bind:__l="__l" u-p="{{j}}"></tab-bar></view>

View File

@@ -172,60 +172,13 @@ input.data-v-04dfedea:focus, input.data-v-04dfedea:active, textarea.data-v-04dfe
width: 100%;
height: 15%;
}
.tui-chat{
width: 100%;
height: 15%;
}
.tui-chat-h5 {
width: 100%;
height: 100%;
}
.tui-chat-uniapp-header{
width: 100%;
height: 100%;
}
.Navigation {
width: 100%;
height: 10%;
.ChatHeadercss{
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;
}
.Navigation-name{
width: 50rpx;
height: 50rpx;
position: absolute;
top: 100rpx;
left: 300rpx;
z-index: 999;
height: 15%;
}
/**

View File

@@ -33,24 +33,25 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
const counter = stores_counter.useCounterStore();
let myitem = common_vendor.ref();
let youritem = common_vendor.ref();
common_vendor.ref();
common_vendor.onLoad((options) => {
TUIKit_components_TUIChat_entryChatOnly.initChat(options);
myitem.value = JSON.parse(options.myitem);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:152", myitem.value);
youritem.value = JSON.parse(options.youritem);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:154", youritem.value);
counter.$patch({ youritem: youritem.value });
setTimeout(() => {
sendCustomMessage(myitem.value, youritem.value);
}, 1e3);
try {
myitem.value = JSON.parse(options.myitem);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:124", myitem.value);
youritem.value = JSON.parse(options.youritem);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:126", youritem.value);
counter.$patch({ youritem: youritem.value });
setTimeout(() => {
sendCustomMessage(myitem.value, youritem.value);
}, 1e3);
} catch (e) {
}
});
common_vendor.onUnload(() => {
TUIKit_components_TUIChat_entryChatOnly.logout(false).then(() => {
}).catch(() => {
});
});
const emits = __emit;
const groupID = common_vendor.ref(void 0);
const isGroup = common_vendor.ref(false);
const isNotInGroup = common_vendor.ref(false);
@@ -62,6 +63,7 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
const messageListRef = common_vendor.ref();
const headerExtensionList = common_vendor.ref([]);
const featureConfig = TUIKit_components_TUIChat_config.ChatConfig.getFeatureConfig();
common_vendor.ref("0px");
common_vendor.onMounted(() => {
common_vendor.Jt.watch(common_vendor.o.CONV, {
currentConversation: onCurrentConversationUpdate
@@ -101,7 +103,7 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
}).then((res) => {
var _a, _b, _c, _d, _e;
if (res.code === 200) {
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:230", "发送成功", res.data);
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/index.vue:203", "发送成功", res.data);
const keyid = components_generateMsgId.generateMsgId();
const payload = {
data: JSON.stringify({
@@ -182,10 +184,6 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
const reset = () => {
common_vendor.Xt.switchConversation("");
};
const closeChat = (conversationID) => {
emits("closeChat", conversationID);
reset();
};
const insertEmoji = (emojiObj) => {
var _a;
(_a = messageInputRef.value) == null ? void 0 : _a.insertEmoji(emojiObj);
@@ -292,56 +290,48 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
} : {}, {
c: 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({
isGroup: common_vendor.unref(isGroup),
headerExtensionList: common_vendor.unref(headerExtensionList)
}),
i: common_vendor.o$1(toggleMultipleSelectMode),
j: common_vendor.sr(messageListRef, "04dfedea-2", {
d: common_vendor.o$1(toggleMultipleSelectMode),
e: 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({
f: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-list"),
g: common_vendor.o$1(handleEditor),
h: common_vendor.o$1(() => changeToolbarDisplayType("none")),
i: common_vendor.o$1(toggleMultipleSelectMode),
j: 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)
k: 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 : ""
l: common_vendor.t(common_vendor.unref(leaveGroupReasonText)),
m: 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)
o: common_vendor.o$1(oneByOneForwardMessage),
p: common_vendor.o$1(mergeForwardMessage),
q: common_vendor.o$1(toggleMultipleSelectMode)
} : common_vendor.e({
x: common_vendor.unref(isInputToolbarShow)
r: 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({
s: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input-toolbar"),
t: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input-toolbar"),
v: common_vendor.o$1(insertEmoji),
w: common_vendor.o$1(changeToolbarDisplayType),
x: common_vendor.o$1(scrollToLatestMessage),
y: common_vendor.p({
displayType: common_vendor.unref(inputToolbarDisplayType)
})
} : {}, {
E: common_vendor.sr(messageInputRef, "04dfedea-5", {
z: 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({
A: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5-message-input"),
B: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isUniFrameWork) && "tui-chat-uni-message-input"),
C: common_vendor.n(common_vendor.unref(TUIKit_utils_env.isWeChat) && "tui-chat-wx-message-input"),
D: common_vendor.o$1(changeToolbarDisplayType),
E: common_vendor.p({
enableAt: common_vendor.unref(featureConfig).InputMention,
isMuted: false,
muteText: common_vendor.unref(common_vendor.Wt).t("TUIChat.您已被管理员禁言"),
@@ -349,15 +339,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")
n: common_vendor.unref(isMultipleSelectMode),
F: 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
G: !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)
H: common_vendor.t(common_vendor.unref(headerExtensionList)[0].text),
I: common_vendor.o$1(handleGroup)
} : {}, {
O: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
J: common_vendor.n(!common_vendor.unref(TUIKit_utils_env.isPC) && "tui-chat-h5")
});
};
}

View File

@@ -8012,7 +8012,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() {
const hosts = "192.168.0.116,127.0.0.1";
const port = "8090";
const id = "mp-weixin_fSlzTk";
const id = "mp-weixin_EIGcbG";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@@ -77,7 +77,7 @@ const _sfc_main = {
if (index === 3) {
components_VerifyLogin.VerifyLogin().then((res) => {
if (res) {
common_vendor.index.navigateTo({
common_vendor.index.redirectTo({
url: "/TUIKit/components/TUIConversation/index",
animationType: "none"
});

View File

@@ -45,7 +45,7 @@
position: relative;
position: fixed;
bottom: 0;
z-index: 999;
z-index: 2;
background-size: contain;
width: 100vw;
background-color: #ffffff;

View File

@@ -33,7 +33,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
c: $data.Select ? 1 : "",
d: common_vendor.o$1((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
e: $data.Select ? 1 : "",
f: !$data.Select ? 1 : ""
f: !$data.Select ? 1 : "",
g: common_vendor.o$1((...args) => $options.screening && $options.screening(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ce2f6748"]]);

View File

@@ -1 +1 @@
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">PK大厅</view></view>
<view class="topNavigation data-v-ce2f6748"><view bindtap="{{a}}" class="{{[b && 'Selectcss', c && 'NoSelectcss', 'RealTime', 'data-v-ce2f6748']}}">今日PK</view><view bindtap="{{d}}" class="{{[e && 'Selectcss', f && 'NoSelectcss', 'MakeAppointment', 'data-v-ce2f6748']}}">PK大厅</view><view bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view></view>

View File

@@ -4,6 +4,7 @@ const components_TUILogin = require("../../components/TUILogin.js");
const components_request = require("../../components/request.js");
const components_formatDate = require("../../components/formatDate.js");
const stores_counter = require("../../stores/counter.js");
const components_NationalDictionary = require("../../components/NationalDictionary.js");
const topNavigation = () => "../../components/topNavigation/topNavigation.js";
const Advertisement = () => "../../components/Advertisement/Advertisement.js";
const tabBar = () => "../../components/tabBar/tabBar.js";
@@ -29,8 +30,33 @@ const _sfc_main = {
// PK大厅列表数据
MakeAppointmentPKlist: [],
// 今日PK列表数据
listtype: 1
listtype: 1,
// 列表类型 1 当天 2 大于当天
filterable: true,
//是否可搜索
Country: components_NationalDictionary.optionsArray,
countrys: "",
//国家
genders: 0,
//性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 }
],
minNumberCoins: "",
//最小金币数
maxNumberCoins: "",
//最大金币数
mindatetimesingle: "",
//最小PK时间
maxdatetimesingle: "",
//最大PK时间
HintCion: false,
//金币提示信息
HintTime: false,
//时间提示信息
ConfirmStatus: false
//确认弹窗状态
};
},
mounted() {
@@ -51,7 +77,7 @@ const _sfc_main = {
key: "chatInfo",
success: (res3) => {
this.chatInfo = res3.data;
common_vendor.index.__f__("log", "at pages/Home/Home.vue:111", "chatInfo", this.chatInfo);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:241", "chatInfo", this.chatInfo);
components_TUILogin.TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);
}
});
@@ -64,10 +90,100 @@ const _sfc_main = {
}, 1e3);
},
methods: {
//关闭弹窗(取消)
closePopup() {
this.$refs.popup.close();
},
//确认弹窗
confirm() {
this.ConfirmStatus = true;
common_vendor.index.__f__(
"log",
"at pages/Home/Home.vue:262",
this.minNumberCoins,
this.maxNumberCoins,
this.mindatetimesingle,
this.maxdatetimesingle
);
if (this.minNumberCoins === "" && this.maxNumberCoins !== "" || this.minNumberCoins !== "" && this.maxNumberCoins === "") {
this.HintCion = true;
return;
}
if (this.mindatetimesingle === "" && this.maxdatetimesingle !== "" || this.mindatetimesingle !== "" && this.maxdatetimesingle === "") {
this.HintTime = true;
return;
}
if (this.genders === 0 && this.countrys === "" && this.minNumberCoins === "" && this.maxNumberCoins === "" && this.mindatetimesingle === "" && this.maxdatetimesingle === "") {
if (this.listtype === 1) {
this.MakeAppointmentPKlist = [];
} else {
this.RealTimePklist = [];
}
this.list = [];
this.pkList({ type: this.listtype });
this.closePopup();
return;
}
this.closePopup();
this.page = 0;
this.list = [];
if (this.listtype === 1) {
this.MakeAppointmentPKlist = [];
this.pkList({
type: this.listtype,
sex: this.genders,
coin: {
start: this.minNumberCoins,
end: this.maxNumberCoins
},
country: this.countrys
});
} else {
this.RealTimePklist = [];
this.pkList({
sex: this.genders,
coin: {
start: this.minNumberCoins,
end: this.maxNumberCoins
},
country: this.countrys,
pkTime: {
start: this.mindatetimesingle,
end: this.maxdatetimesingle
}
});
}
},
//清空弹窗
clear() {
this.genders = 0;
this.countrys = "";
this.minNumberCoins = "";
this.maxNumberCoins = "";
this.mindatetimesingle = "";
this.maxdatetimesingle = "";
this.ConfirmStatus = false;
},
//获取国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/Home/Home.vue:343", item);
},
//获取性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/Home/Home.vue:348", item);
},
// 打开弹窗(筛选条件)
goScreening() {
this.$refs.popup.open("right");
},
//今日
goMakeAppointmentPK() {
this.listtype = 1;
this.list = this.MakeAppointmentPKlist;
},
//大厅
goRealTimePk() {
this.listtype = 2;
this.list = this.RealTimePklist;
@@ -84,14 +200,30 @@ const _sfc_main = {
this.RealTimePklist = [];
}
this.triggered = true;
this.pkList({ type: this.listtype });
if (this.ConfirmStatus) {
if (this.genders === 0 && this.countrys === "" && this.minNumberCoins === "" && this.maxNumberCoins === "" && this.mindatetimesingle === "" && this.maxdatetimesingle === "") {
this.pkList({ type: this.listtype });
} else {
if (this.minNumberCoins === "" && this.maxNumberCoins !== "" || this.minNumberCoins !== "" && this.maxNumberCoins === "") {
this.pkList({ type: this.listtype });
return;
}
if (this.mindatetimesingle === "" && this.maxdatetimesingle !== "" || this.mindatetimesingle !== "" && this.maxdatetimesingle === "") {
this.pkList({ type: this.listtype });
return;
}
this.confirm();
}
} else {
this.pkList({ type: this.listtype });
}
},
async goDetail(item) {
common_vendor.index.showLoading({
title: "加载中...",
mask: true
});
common_vendor.index.__f__("log", "at pages/Home/Home.vue:152", "id", item.id, this.info.id);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:413", "id", item.id, this.info.id);
const res = await components_request.request({
url: "pk/pkInfoDetail",
method: "POST",
@@ -101,12 +233,12 @@ const _sfc_main = {
},
userInfo: true
});
common_vendor.index.__f__("log", "at pages/Home/Home.vue:163", "res", res);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:424", "res", res);
this.detailsdata = res.data;
if (res.code === 200) {
if (res.data.length !== 0) {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/Home/Home.vue:168", "res.data", res.data);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:429", "res.data", res.data);
common_vendor.index.navigateTo({
url: "/pages/pkDetail/pkDetail",
success: (res2) => {
@@ -142,7 +274,7 @@ const _sfc_main = {
},
userInfo: false
});
common_vendor.index.__f__("log", "at pages/Home/Home.vue:206", res);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:467", res);
if (res.code === 200) {
this.triggered = false;
if (condition.type === 1) {
@@ -174,20 +306,29 @@ if (!Array) {
const _component_advertisement = common_vendor.resolveComponent("advertisement");
const _component_uni_card = common_vendor.resolveComponent("uni-card");
const _easycom_tabBar2 = common_vendor.resolveComponent("tabBar");
(_component_top_navigation + _component_advertisement + _component_uni_card + _easycom_tabBar2)();
const _easycom_wht_select2 = common_vendor.resolveComponent("wht-select");
const _easycom_uni_number_box2 = common_vendor.resolveComponent("uni-number-box");
const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_component_top_navigation + _component_advertisement + _component_uni_card + _easycom_tabBar2 + _easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_popup2)();
}
const _easycom_tabBar = () => "../../components/tabBar/tabBar.js";
const _easycom_wht_select = () => "../../uni_modules/wht-select/components/wht-select/wht-select.js";
const _easycom_uni_number_box = () => "../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js";
const _easycom_uni_datetime_picker = () => "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
_easycom_tabBar();
(_easycom_tabBar + _easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o$1($options.goRealTimePk),
b: common_vendor.o$1($options.goMakeAppointmentPK),
c: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args)),
d: $data.list.length !== 0
c: common_vendor.o$1($options.goScreening),
d: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args)),
e: $data.list.length !== 0
}, $data.list.length !== 0 ? {
e: common_vendor.f($data.list, (item, index, i0) => {
f: common_vendor.f($data.list, (item, index, i0) => {
return common_vendor.e({
a: item.anchorIcon,
b: common_vendor.t(item.disPlayId),
@@ -204,13 +345,83 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}, {
f: $data.list.length === 0
g: $data.list.length === 0
}, $data.list.length === 0 ? {} : {}, {
g: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
h: common_vendor.o$1((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args)),
i: $data.triggered,
j: common_vendor.p({
h: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
i: common_vendor.o$1((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args)),
j: $data.triggered,
k: common_vendor.p({
tabIndex: 0
}),
l: common_vendor.o$1($options.country),
m: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#a3a3a3",
options: $data.Country,
filterable: $data.filterable,
placeholder: "请选择国家",
value: $data.countrys
}),
n: common_vendor.o$1($options.gender),
o: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#a3a3a3",
options: $data.Gender,
placeholder: "性别",
value: $data.genders
}),
p: $data.genders === 0
}, $data.genders === 0 ? {} : {}, {
q: $data.genders === 1
}, $data.genders === 1 ? {} : {}, {
r: $data.genders === 2
}, $data.genders === 2 ? {} : {}, {
s: common_vendor.o$1(($event) => $data.minNumberCoins = $event),
t: common_vendor.p({
max: 9999999999,
background: "ffffff",
modelValue: $data.minNumberCoins
}),
v: $data.minNumberCoins == "" && $data.HintCion === true
}, $data.minNumberCoins == "" && $data.HintCion === true ? {} : {}, {
w: common_vendor.o$1(($event) => $data.maxNumberCoins = $event),
x: common_vendor.p({
max: 9999999999,
background: "#ffffff",
modelValue: $data.maxNumberCoins
}),
y: $data.maxNumberCoins == "" && $data.HintCion === true
}, $data.maxNumberCoins == "" && $data.HintCion === true ? {} : {}, {
z: $data.listtype === 2
}, $data.listtype === 2 ? common_vendor.e({
A: common_vendor.o$1(($event) => $data.mindatetimesingle = $event),
B: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.mindatetimesingle
}),
C: $data.mindatetimesingle == "" && $data.HintTime === true
}, $data.mindatetimesingle == "" && $data.HintTime === true ? {} : {}) : {}, {
D: $data.listtype === 2
}, $data.listtype === 2 ? common_vendor.e({
E: common_vendor.o$1(($event) => $data.maxdatetimesingle = $event),
F: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.maxdatetimesingle
}),
G: $data.maxdatetimesingle == "" && $data.HintTime === true
}, $data.maxdatetimesingle == "" && $data.HintTime === true ? {} : {}) : {}, {
H: common_vendor.o$1((...args) => $options.closePopup && $options.closePopup(...args)),
I: common_vendor.o$1((...args) => $options.confirm && $options.confirm(...args)),
J: common_vendor.o$1((...args) => $options.clear && $options.clear(...args)),
K: common_vendor.sr("popup", "7ffebbf4-4"),
L: common_vendor.p({
position: "right"
})
});
}

View File

@@ -3,6 +3,10 @@
"usingComponents": {
"top-navigation": "../../components/topNavigation/topNavigation",
"advertisement": "../../components/Advertisement/Advertisement",
"tab-bar": "../../components/tabBar/tabBar"
"tab-bar": "../../components/tabBar/tabBar",
"wht-select": "../../uni_modules/wht-select/components/wht-select/wht-select",
"uni-number-box": "../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box",
"uni-datetime-picker": "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@
left: 0;
width: 100%;
height: 100rpx;
z-index: 100;
z-index: 2;
}
.contentList.data-v-7ffebbf4 {
position: fixed;
@@ -79,7 +79,8 @@
font-size: 14rpx;
}
.Gendermale.data-v-7ffebbf4 {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
@@ -88,7 +89,8 @@
margin-right: 10rpx;
}
.Genderfemale.data-v-7ffebbf4 {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
@@ -114,7 +116,7 @@
line-height: 38rpx;
font-weight: 600;
}
.no-content.data-v-7ffebbf4{
.no-content.data-v-7ffebbf4 {
position: absolute;
top: 50%;
left: 50%;
@@ -124,3 +126,125 @@
line-height: 40rpx;
text-align: center;
}
.popup-container.data-v-7ffebbf4 {
height: 1626px;
width: 650rpx;
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png);
border-radius: 15rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title.data-v-7ffebbf4 {
font-size: 50rpx;
line-height: 50rpx;
margin-top: 250rpx;
font-weight: bold;
background: linear-gradient(135deg, #00afb2, #4fcacd);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
}
.p-country.data-v-7ffebbf4 {
width: 500rpx;
height: 100rpx;
margin-top: 80rpx;
}
.popup-sex.data-v-7ffebbf4 {
width: 500rpx;
height: 100rpx;
margin-top: 40rpx;
display: flex;
justify-content: space-between;
}
.p-sex.data-v-7ffebbf4 {
width: 420rpx;
height: 100rpx;
}
.Gendericoncss.data-v-7ffebbf4 {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon.data-v-7ffebbf4 {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.popup-coin.data-v-7ffebbf4 {
width: 500rpx;
margin-top: 40rpx;
display: flex;
}
.p-coin.data-v-7ffebbf4 {
width: 500rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.p-coin-title.data-v-7ffebbf4 {
font-size: 20rpx;
color: #a3a3a3;
}
.p-time.data-v-7ffebbf4 {
width: 500rpx;
margin-top: 40rpx;
}
.popup-btn-cancel.data-v-7ffebbf4 {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
margin-right: 20rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.popup-btn-confirm.data-v-7ffebbf4 {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
margin-right: 20rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcd9d, #5fdeba);
}
.popup-btn-clear.data-v-7ffebbf4 {
width: 170rpx;
height: 60rpx;
font-size: 30rpx;
color: #ffffff;
line-height: 60rpx;
text-align: center;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #cd924f, #debc5f);
}
.Hintcss.data-v-7ffebbf4 {
font-size: 18rpx;
color: #ff5555;
}
.popup-btn.data-v-7ffebbf4 {
width: 600rpx;
height: 100rpx;
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 400rpx;
}

View File

@@ -100,7 +100,7 @@ const _sfc_main = {
// 退出登录
logout() {
common_vendor.index.clearStorage();
common_vendor.A.logout;
common_vendor.A.logout();
common_vendor.index.reLaunch({
url: "/pages/login/login"
});

View File

@@ -48,7 +48,7 @@ const _sfc_main = {
// 微信登录
wxLogin(e) {
common_vendor.index.showLoading({
title: "登录中...",
title: "修改中...",
mask: true
});
components_postFile.uploadFile({

View File

@@ -67,7 +67,7 @@ const _sfc_main = {
path: this.userinfo,
name: this.Filename
}).then((ress) => {
this.picture = ress;
this.picture = ress.split("/").pop();
components_request.request({
url: "user/inputUserInfo",
method: "POST",