优化页面
This commit is contained in:
@@ -1,218 +0,0 @@
|
||||
<template>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
refresher-threshold="40"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
>
|
||||
<uni-card v-for="(item, index) in list">
|
||||
<view class="content-list" @click="goDetail(item)">
|
||||
<!-- `````````````````````````` -->
|
||||
<image class="headShot" :src="item.anchorIcon" mode="scaleToFill" />
|
||||
<!-- `````````````````````````````````````` -->
|
||||
<view class="content-list-title">
|
||||
<view class="cardname">{{ item.anchorId }}</view>
|
||||
<view class="content-list-info">
|
||||
<view
|
||||
:class="{ Gendermale: item.sex === '1', Genderfemale: item.sex === '2' }"
|
||||
>
|
||||
<image
|
||||
v-if="item.sex === '2'"
|
||||
class="Genderimg"
|
||||
src="../../static/female.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<image
|
||||
v-else
|
||||
class="Genderimg"
|
||||
src="../../static/male.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="age">{{ item.sex === "1" ? "男" : "女" }}</view>
|
||||
</view>
|
||||
<view class="RoomID">PK时间: {{ formatDate(item.pkTime) }}</view>
|
||||
<view class="Charm">金币:</view>
|
||||
<view class="charmValue"> {{ item.coin + "K" }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- `````````````````````````````````````````````````````` -->
|
||||
</view>
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../components/request.js";
|
||||
import formatDate from "../../components/formatDate.js";
|
||||
export default {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
return {
|
||||
page: 0, //页码
|
||||
size: 10, //每页条数
|
||||
list: [], // 列表数据
|
||||
detailsdata: {}, //详情数据
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 页面加载完成后请求数据
|
||||
this.pkList();
|
||||
},
|
||||
methods: {
|
||||
onRefresherRefresh() {
|
||||
this.page = 0;
|
||||
this.list = [];
|
||||
this.pkList();
|
||||
},
|
||||
async goDetail(item) {
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask: true,
|
||||
});
|
||||
console.log("id", item.id);
|
||||
const res = await request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id,
|
||||
},
|
||||
userInfo: true,
|
||||
});
|
||||
console.log("res", res);
|
||||
this.detailsdata = res.data;
|
||||
if (res.code === 200) {
|
||||
if (res.data.length !== 0) {
|
||||
uni.hideLoading();
|
||||
console.log("res.data", res.data);
|
||||
uni.navigateTo({
|
||||
url: "/pages/pkDetail/pkDetail",
|
||||
success: (res) => {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item: this.detailsdata,
|
||||
});
|
||||
},
|
||||
});
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
this.openPopupQuantity();
|
||||
}
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: "加载失败",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
},
|
||||
formatDate: formatDate,
|
||||
async pkList() {
|
||||
const res = await request({
|
||||
url: "pk/pkList",
|
||||
method: "POST",
|
||||
data: {
|
||||
status: 0,
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
},
|
||||
userInfo: false,
|
||||
});
|
||||
console.log(res);
|
||||
if (res.code === 200) {
|
||||
this.list.push(...res.data);
|
||||
console.log(this.list);
|
||||
}
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.pkList();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.scroll {
|
||||
height: 90%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.content-list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 712rpx;
|
||||
height: 161rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.headShot {
|
||||
width: 101rpx;
|
||||
height: 101rpx;
|
||||
border-radius: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 33rpx;
|
||||
}
|
||||
.content-list-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.cardname {
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Genderimg {
|
||||
width: 15rpx;
|
||||
height: 15rpx;
|
||||
margin-left: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.age {
|
||||
color: #ffffff;
|
||||
font-size: 14rpx;
|
||||
}
|
||||
|
||||
.Gendermale {
|
||||
background: url(../../static/maleimg.png) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.Genderfemale {
|
||||
background: url(../../static/femaleimg.png) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.RoomID {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Charm {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.charmValue {
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
@@ -117,7 +117,10 @@ function handlePush(item, index) {
|
||||
return;
|
||||
}
|
||||
if (item.text === "消息") {
|
||||
uni.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
uni.navigateTo({
|
||||
url: "/TUIKit/components/TUIConversation/index",
|
||||
animationType: 'none',
|
||||
});
|
||||
}else {
|
||||
uni.switchTab({
|
||||
url: item.pagePath,
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
@click="MakeAppointmentPK"
|
||||
:class="{ Selectcss: !Select, NoSelectcss: Select }"
|
||||
class="RealTime"
|
||||
>预约PK</view
|
||||
>PK大厅</view
|
||||
>
|
||||
<view
|
||||
@click="RealTimePk"
|
||||
:class="{ Selectcss: Select, NoSelectcss: !Select }"
|
||||
class="MakeAppointment"
|
||||
>实时PK</view
|
||||
>今日PK</view
|
||||
>
|
||||
<view @click="screening" class="Screening">筛选</view>
|
||||
<image @click="Search" src="../../static/Searching.png" class="filter-icon" />
|
||||
<!-- <view @click="screening" class="Screening">筛选</view>
|
||||
<image @click="Search" src="../../static/Searching.png" class="filter-icon" /> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
"navigationBarTitleText": "修改pk信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
"style": {
|
||||
"navigationBarTitleText": "PK记录详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/PKMessageprocessing/PKMessageprocessing",
|
||||
"style": {
|
||||
|
||||
@@ -3,13 +3,59 @@
|
||||
<image src="../../static/HomeBackground.png" class="HomeBackground"></image>
|
||||
</view>
|
||||
<view class="top-navigation-container">
|
||||
<top-navigation></top-navigation>
|
||||
<top-navigation
|
||||
@RealTimePk="goRealTimePk"
|
||||
@MakeAppointmentPK="goMakeAppointmentPK"
|
||||
></top-navigation>
|
||||
</view>
|
||||
<view class="Advertisement" @click="goAdvertisement">
|
||||
<advertisement></advertisement>
|
||||
</view>
|
||||
<view class="contentList">
|
||||
<contentList></contentList>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
refresher-threshold="40"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
:refresher-triggered="triggered"
|
||||
>
|
||||
<uni-card v-for="(item, index) in list">
|
||||
<view class="content-list" @click="goDetail(item)">
|
||||
<!-- `````````````````````````` -->
|
||||
<image class="headShot" :src="item.anchorIcon" mode="scaleToFill" />
|
||||
<!-- `````````````````````````````````````` -->
|
||||
<view class="content-list-title">
|
||||
<view class="cardname">{{ item.anchorId }}</view>
|
||||
<view class="content-list-info">
|
||||
<view
|
||||
:class="{ Gendermale: item.sex === '1', Genderfemale: item.sex === '2' }"
|
||||
>
|
||||
<image
|
||||
v-if="item.sex === '2'"
|
||||
class="Genderimg"
|
||||
src="../../static/female.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<image
|
||||
v-else
|
||||
class="Genderimg"
|
||||
src="../../static/male.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="age">{{ item.sex === "1" ? "男" : "女" }}</view>
|
||||
</view>
|
||||
<view class="RoomID">PK时间: {{ formatDate(item.pkTime) }}</view>
|
||||
<view class="Charm">金币:</view>
|
||||
<view class="charmValue"> {{ item.coin + "K" }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- `````````````````````````````````````````````````````` -->
|
||||
</view>
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="tabBar">
|
||||
<tabBar></tabBar>
|
||||
@@ -19,11 +65,12 @@
|
||||
<script>
|
||||
import topNavigation from "../../components/topNavigation/topNavigation";
|
||||
import Advertisement from "../../components/Advertisement/Advertisement";
|
||||
import contentList from "../../components/contentList/contentList";
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
import TUIlogin from "../../components/TUILogin.js";
|
||||
import { useCounterStore } from '@/stores/counter'
|
||||
const counter = useCounterStore()
|
||||
import request from "../../components/request.js";
|
||||
import formatDate from "../../components/formatDate.js";
|
||||
import { useCounterStore } from "@/stores/counter";
|
||||
const counter = useCounterStore();
|
||||
export default {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
@@ -31,14 +78,23 @@ export default {
|
||||
info: {},
|
||||
myuserSig: "",
|
||||
chatInfo: {},
|
||||
page: 0, //页码
|
||||
size: 10, //每页条数
|
||||
list: [], // 列表数据
|
||||
detailsdata: {}, //详情数据
|
||||
triggered: false, //下拉刷新标识
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 页面加载完成后请求数据
|
||||
this.pkList();
|
||||
},
|
||||
onLoad() {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.info = res.data;
|
||||
counter.$patch({ myitem:this.info})
|
||||
counter.$patch({ myitem: this.info });
|
||||
uni.getStorage({
|
||||
key: "myuserSig",
|
||||
success: (res) => {
|
||||
@@ -61,18 +117,92 @@ export default {
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
},
|
||||
methods: {
|
||||
goRealTimePk() {
|
||||
console.log("goRealTimePk");
|
||||
},
|
||||
goMakeAppointmentPK() {
|
||||
console.log("goMakeAppointmentPK");
|
||||
},
|
||||
goAdvertisement() {
|
||||
// this.$global.lastPage = getCurrentPages().router;
|
||||
uni.navigateTo({ url: "/pages/pkDetail/pkDetail" });
|
||||
},
|
||||
onRefresherRefresh() {
|
||||
this.page = 0;
|
||||
this.list = [];
|
||||
this.triggered = true;
|
||||
this.pkList();
|
||||
},
|
||||
async goDetail(item) {
|
||||
uni.showLoading({
|
||||
title: "加载中...",
|
||||
mask: true,
|
||||
});
|
||||
console.log("id", item.id);
|
||||
const res = await request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id,
|
||||
},
|
||||
userInfo: true,
|
||||
});
|
||||
console.log("res", res);
|
||||
this.detailsdata = res.data;
|
||||
if (res.code === 200) {
|
||||
if (res.data.length !== 0) {
|
||||
uni.hideLoading();
|
||||
console.log("res.data", res.data);
|
||||
uni.navigateTo({
|
||||
url: "/pages/pkDetail/pkDetail",
|
||||
success: (res) => {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item: this.detailsdata,
|
||||
});
|
||||
},
|
||||
});
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
this.openPopupQuantity();
|
||||
}
|
||||
} else {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: "加载失败",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
},
|
||||
formatDate: formatDate,
|
||||
async pkList() {
|
||||
const res = await request({
|
||||
url: "pk/pkList",
|
||||
method: "POST",
|
||||
data: {
|
||||
status: 0,
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
},
|
||||
userInfo: false,
|
||||
});
|
||||
console.log(res);
|
||||
if (res.code === 200) {
|
||||
this.list.push(...res.data);
|
||||
console.log(this.list);
|
||||
this.triggered = false;
|
||||
}
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.pkList();
|
||||
},
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
Advertisement,
|
||||
contentList,
|
||||
tabBar,
|
||||
},
|
||||
};
|
||||
@@ -110,10 +240,90 @@ export default {
|
||||
}
|
||||
.contentList {
|
||||
position: fixed;
|
||||
top: 400rpx;
|
||||
top: 412rpx;
|
||||
left: 0;
|
||||
bottom: -30rpx;
|
||||
bottom: 114.5rpx;
|
||||
width: 100%;
|
||||
/* height: 1300rpx; */
|
||||
}
|
||||
.scroll {
|
||||
height: 90%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.content-list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 712rpx;
|
||||
height: 161rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.headShot {
|
||||
width: 101rpx;
|
||||
height: 101rpx;
|
||||
border-radius: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 33rpx;
|
||||
}
|
||||
.content-list-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.cardname {
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Genderimg {
|
||||
width: 15rpx;
|
||||
height: 15rpx;
|
||||
margin-left: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.age {
|
||||
color: #ffffff;
|
||||
font-size: 14rpx;
|
||||
}
|
||||
|
||||
.Gendermale {
|
||||
background: url(../../static/maleimg.png) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.Genderfemale {
|
||||
background: url(../../static/femaleimg.png) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.RoomID {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Charm {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.charmValue {
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
||||
333
pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue
Normal file
333
pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue
Normal file
@@ -0,0 +1,333 @@
|
||||
<template>
|
||||
<view class="details-pkrecords">
|
||||
<view class="bg">
|
||||
<image
|
||||
class="bgImg"
|
||||
src="../../../../static/HomeBackground.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="../../../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="title">PK记录详情</view>
|
||||
<view class="pkrecords">
|
||||
<view class="card">
|
||||
<!-- 主播A -->
|
||||
<view class="AnchorA">
|
||||
<view class="AnchorAImg">
|
||||
<!-- 头像 -->
|
||||
<image class="AnchorAImgcss" :src="item.anchorIconA" mode="scaleToFill" />
|
||||
</view>
|
||||
<!-- 皇冠 -->
|
||||
<image
|
||||
class="Crown"
|
||||
src="../../../../static/Crown.png"
|
||||
mode="scaleToFill"
|
||||
v-if="item.winnerAnchorId == item.anchorIdA"
|
||||
/>
|
||||
<view class="AnchorAinfo">
|
||||
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
||||
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
||||
<view class="AnchorAICon">
|
||||
<view class="AnchorAIContext">实际打金币:</view>
|
||||
<view class="AnchorAIConNum">{{ item.userAcoin }}K</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 图标 -->
|
||||
<view class="vstext">
|
||||
<view class="Vtext">V</view>
|
||||
<view class="Stext">S</view>
|
||||
</view>
|
||||
<!-- 主播B -->
|
||||
<view class="AnchorB">
|
||||
<view class="AnchorBinfo">
|
||||
<view class="AnchorAname">{{ item.anchorIdB }} </view>
|
||||
<view class="AnchorATime"> {{ formatDate(item.pkTime) }} </view>
|
||||
<view class="AnchorAICon">
|
||||
<view class="AnchorAIContext">实际打金币:</view>
|
||||
<view class="AnchorAIConNum">{{ item.userBcoin }}K</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="AnchorAImg">
|
||||
<!-- 头像 -->
|
||||
<image class="AnchorBImgcss" :src="item.anchorIconB" mode="scaleToFill" />
|
||||
</view>
|
||||
<!-- 皇冠 -->
|
||||
<image
|
||||
class="Crown"
|
||||
src="../../../../static/Crown.png"
|
||||
mode="scaleToFill"
|
||||
v-if="item.winnerAnchorId == item.anchorIdB"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pkrecords-content">
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
>
|
||||
<uni-card v-for="(items,index) in coinNumlist" :key="index">
|
||||
<view class="contentcard">
|
||||
<view class="contentcard-titleA":style="{'background-color': items.anchorIdA == items.winnerAnchorId ? '#00fbff5d' : '#ff000049'}">
|
||||
<view>金币数量</view>
|
||||
<view>{{items.anchorCoinA}}K</view>
|
||||
</view>
|
||||
<view class="contentcard-titleB" :style="{'background-color': items.anchorIdB == items.winnerAnchorId ? '#00fbff5d' : '#ff000049'}">
|
||||
<view>金币数量</view>
|
||||
<view>{{items.anchorCoinB}}K</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../../../components/request.js";
|
||||
import formatDate from "../../../../components/formatDate.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
item: {},
|
||||
coinNumlist: [{
|
||||
winnerAnchorId: 1,
|
||||
anchorIdA: 1,
|
||||
anchorIdB: 2,
|
||||
anchorCoinA: 2,
|
||||
anchorCoinB: 3,
|
||||
}],
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
// 获取源页面的eventChannel对象
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
// 监听itemDetail事件
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item; // 将接收到的数据赋值给item
|
||||
console.log("接收到的数据:", this.item);
|
||||
// this.getCoinNum(this.item)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 获取具体金币数量
|
||||
getCoinNum(item) {
|
||||
const res = request({
|
||||
url: "user/pkRecordDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id,
|
||||
},
|
||||
userInfo: true,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.coinNumlist = res.data;
|
||||
}else{
|
||||
console.log("获取金币数量失败")
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
formatDate: formatDate,
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 280rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.pkrecords {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
}
|
||||
/* 卡片 */
|
||||
.card {
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 28.55rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorA {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorB {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorAImg {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #b1b1b1;
|
||||
display: flex;
|
||||
}
|
||||
.AnchorAinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.AnchorBinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.AnchorAname {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorATime {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAICon {
|
||||
display: flex;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAIContext {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
.AnchorAIConNum {
|
||||
font-weight: bold;
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorAImgcss {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #f7da60 solid 2rpx;
|
||||
border-left: #ffeeab solid 2rpx;
|
||||
border-bottom: #ffeeab solid 2rpx;
|
||||
border-right: #f7da60 solid 2rpx;
|
||||
}
|
||||
.AnchorBImgcss {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #ffc6ba solid 2rpx;
|
||||
border-left: #ffc6ba solid 2rpx;
|
||||
border-bottom: #5ddadd solid 2rpx;
|
||||
border-right: #5ddadd solid 2rpx;
|
||||
}
|
||||
.Crown {
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
}
|
||||
.vstext {
|
||||
display: flex;
|
||||
}
|
||||
.Vtext {
|
||||
font-size: 45.8rpx;
|
||||
color: #f0836c;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-left: 26rpx;
|
||||
}
|
||||
.Stext {
|
||||
font-size: 45.8rpx;
|
||||
color: #58d8db;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
.pkrecords-content {
|
||||
position: absolute;
|
||||
top: 240rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.scroll{
|
||||
width: 750rpx;
|
||||
height: 1100rpx;
|
||||
}
|
||||
.contentcard{
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
border-radius: 15rpx;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
margin-left:28.55rpx;
|
||||
margin-top: 13rpx;
|
||||
}
|
||||
.contentcard-titleA{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-right: #100e0f solid 1rpx;
|
||||
border-top-left-radius: 15rpx;
|
||||
border-bottom-left-radius: 15rpx;
|
||||
}
|
||||
.contentcard-titleB{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-top-right-radius: 15rpx;
|
||||
border-bottom-right-radius: 15rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -6,6 +6,7 @@
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="title">PK信息</view>
|
||||
<view class="content">
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
@@ -15,6 +16,7 @@
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
:refresher-triggered="triggered"
|
||||
>
|
||||
<uni-card class="card" v-for="(item, index) in pkList" :key="index">
|
||||
<view class="Profile">
|
||||
@@ -61,7 +63,8 @@
|
||||
</view>
|
||||
<view class="time">PK时间:{{ formatDate(item.pkTime) }}</view>
|
||||
</view>
|
||||
<view class="handle" v-if="item.status === 0">
|
||||
<view class="handle">
|
||||
<!-- <view class="handle" v-if="item.status === 0"> -->
|
||||
<view class="recompose" @click="onRecompose(item)">
|
||||
<image
|
||||
style="width: 46rpx; height: 46rpx"
|
||||
@@ -81,13 +84,13 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<Recompose ref="createModule" class="createModule" :message="parentMessage" ></Recompose>
|
||||
<Recompose ref="createModule" class="createModule" :message="parentMessage"></Recompose>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../../components/request.js";
|
||||
import formatDate from "../../../components/formatDate.js";
|
||||
import Recompose from "../minecomponents/recompose/recompose.vue";
|
||||
import Recompose from "../minecomponents/recompose/recompose.vue";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -97,6 +100,7 @@ export default {
|
||||
page: 0,
|
||||
createModule: null,
|
||||
parentMessage: null,
|
||||
triggered: false,
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -113,12 +117,26 @@ export default {
|
||||
this.createModule = this.$refs.createModule; // 挂载后赋值
|
||||
},
|
||||
methods: {
|
||||
onRefresherRefresh() {
|
||||
this.page = 0;
|
||||
this.pkList = [];
|
||||
this.getpkList();
|
||||
this.triggered = true;
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.getpkList();
|
||||
},
|
||||
onRefresherRefres() {
|
||||
this.page = 0;
|
||||
this.pkList = [];
|
||||
this.getpkList();
|
||||
this.triggered = true;
|
||||
},
|
||||
onBack() {
|
||||
uni.navigateBack(
|
||||
{
|
||||
delta: 1,
|
||||
}
|
||||
);
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
formatDate: formatDate,
|
||||
getpkList() {
|
||||
@@ -133,18 +151,19 @@ export default {
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkList = res.data;
|
||||
this.pkList.push(...res.data);
|
||||
console.log(this.pkList);
|
||||
this.triggered = false;
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
onRecompose(item) {
|
||||
this.createModule.open()
|
||||
this.parentMessage = item
|
||||
this.parentMessage = item;
|
||||
this.createModule.open();
|
||||
},
|
||||
onExpurgate(item){
|
||||
onExpurgate(item) {
|
||||
const res = request({
|
||||
url: "pk/deletePkDataWithId",
|
||||
method: "POST",
|
||||
@@ -155,21 +174,19 @@ export default {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
uni.showToast({
|
||||
title: "删除成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
this.getpkList()
|
||||
title: "删除成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
this.getpkList();
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
components: {
|
||||
Recompose ,
|
||||
Recompose,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -189,11 +206,19 @@ export default {
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -306,11 +331,11 @@ export default {
|
||||
height: 46rpx;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
.createModule{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 998;
|
||||
width: 100vw;
|
||||
}
|
||||
.createModule {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 998;
|
||||
width: 100vw;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,125 +1,417 @@
|
||||
<template>
|
||||
<view class="pkRecord">
|
||||
<view>返回</view>
|
||||
<view>pk记录</view>
|
||||
<view></view>
|
||||
<view class="pkRecord">
|
||||
<view class="bg">
|
||||
<image class="bgImg" src="../../../static/HomeBackground.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<view class="PkPosted">我发布的PK</view>
|
||||
<view>我邀请的PK</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
refresher-threshold="40"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
>
|
||||
<uni-card v-for="(item, index) in list">
|
||||
<view class="Return" @click="onBack">
|
||||
<image class="ReturnImg" src="../../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
<view class="title">PK记录</view>
|
||||
<!-- 导航栏 -->
|
||||
<view class="navigation">
|
||||
<view class="navigationItem">
|
||||
<view
|
||||
class="navigationItemTitle"
|
||||
@click="toggleActive(1)"
|
||||
:class="{ active: current === 1 }"
|
||||
>我发布的PK</view
|
||||
>
|
||||
<view
|
||||
class="navigationItemTitle"
|
||||
@click="toggleActive(2)"
|
||||
:class="{ active: current === 2 }"
|
||||
>我邀请的PK</view
|
||||
>
|
||||
</view>
|
||||
<view
|
||||
class="slide"
|
||||
:style="{ left: sliderPosition + 'rpx', transition: 'left 0.3s ease-in-out' }"
|
||||
>{{ slidetext }}</view
|
||||
>
|
||||
</view>
|
||||
<!-- 内容 -->
|
||||
<view class="content">
|
||||
<view class="Anchor">
|
||||
<view class="avatar">主播1头像(赢方头像框王冠)</view>
|
||||
<view class="AnchorInfo">
|
||||
<view>主播昵称</view>
|
||||
<view>pk时间</view>
|
||||
<view>实际打了多少金币</view>
|
||||
<scroll-view
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
refresher-threshold="40"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
lower-threshold="100"
|
||||
@scrolltolower="onScrollToLower"
|
||||
:refresher-triggered="triggered"
|
||||
>
|
||||
<uni-card v-for="(item, index) in pkRecordlist" :key="index" >
|
||||
<view class="card" @click="onItemClick(item)">
|
||||
<!-- 主播A -->
|
||||
<view class="AnchorA">
|
||||
<view class="AnchorAImg">
|
||||
<!-- 头像 -->
|
||||
<image class="AnchorAImgcss" :src="item.anchorIconA" mode="scaleToFill" />
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
VS
|
||||
</view>
|
||||
<view class="Anchor">
|
||||
<view class="AnchorInfo">
|
||||
<view>主播昵称</view>
|
||||
<view>pk时间</view>
|
||||
<view>实际打了多少金币</view>
|
||||
<!-- 皇冠 -->
|
||||
<image class="Crown" src="../../../static/Crown.png" mode="scaleToFill" v-if="item.winnerAnchorId == item.anchorIdA"/>
|
||||
<view class="AnchorAinfo">
|
||||
<view class="AnchorAname"> {{ item.anchorIdA }} </view>
|
||||
<view class="AnchorATime">{{ formatDate(item.pkTime) }}</view>
|
||||
<view class="AnchorAICon">
|
||||
<view class="AnchorAIContext">实际打金币:</view>
|
||||
<view class="AnchorAIConNum">{{ item.userAcoin }}K</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="avatar">主播1头像</view>
|
||||
</view>
|
||||
<!-- 图标 -->
|
||||
<view class="vstext">
|
||||
<view class="Vtext">V</view>
|
||||
<view class="Stext">S</view>
|
||||
</view>
|
||||
<!-- 主播B -->
|
||||
<view class="AnchorB">
|
||||
<view class="AnchorBinfo">
|
||||
<view class="AnchorAname">{{ item.anchorIdB }} </view>
|
||||
<view class="AnchorATime"> {{ formatDate(item.pkTime) }} </view>
|
||||
<view class="AnchorAICon">
|
||||
<view class="AnchorAIContext">实际打金币:</view>
|
||||
<view class="AnchorAIConNum">{{ item.userBcoin }}K</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="AnchorAImg">
|
||||
<!-- 头像 -->
|
||||
<image class="AnchorBImgcss" :src="item.anchorIconB" mode="scaleToFill" />
|
||||
</view>
|
||||
<!-- 皇冠 -->
|
||||
<image class="Crown" src="../../../static/Crown.png" mode="scaleToFill" v-if="item.winnerAnchorId == item.anchorIdB"/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
]
|
||||
}
|
||||
import request from "../../../components/request.js";
|
||||
import formatDate from "../../../components/formatDate.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
triggered: false, // 下拉刷新状态
|
||||
current: 1, // 初始激活状态
|
||||
buttonWidth: 238.55, // 按钮宽度
|
||||
gap: 0, // 按钮间距
|
||||
slidetext: "我发布的PK", // 导航栏文字
|
||||
pkmyRecordlist: [], // PK记录列表
|
||||
pkInvitationRecordlist: [], // PK记录列表
|
||||
pkRecordlist: [{
|
||||
winnerId: "1",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "123",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "456",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "123",
|
||||
senderB: "456",
|
||||
},
|
||||
{
|
||||
winnerId: "2",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "789",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "101",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "789",
|
||||
senderB: "101",
|
||||
},
|
||||
], // PK记录列表
|
||||
userinfo: {}, // 用户信息
|
||||
page: 0, // 页码
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
this.getPkRecordList(1);
|
||||
this.getPkRecordList(2);
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时执行
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
sliderPosition() {
|
||||
const { current, buttonWidth, gap } = this;
|
||||
const containerPadding = 0; // 容器内边距
|
||||
const offset = (buttonWidth + gap) * (current - 1);
|
||||
return containerPadding + offset + 375;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onRefresherRefresh() {
|
||||
this.triggered = true;
|
||||
this.page = 0;
|
||||
this.getPkRecordList(this.current);
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.getPkRecordList(this.current);
|
||||
},
|
||||
onItemClick(item) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
success: (res) => {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item: item,
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
onBack() {
|
||||
uni.navigateBack(
|
||||
{
|
||||
delta: 1,
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
formatDate: formatDate,
|
||||
//获取我发布的PK记录列表
|
||||
getPkRecordList(type) {
|
||||
const res = request({
|
||||
url: "user/handlePkInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
type: type,
|
||||
userId: this.userinfo.id,
|
||||
page: this.page,
|
||||
size: 10,
|
||||
},
|
||||
userInfo: true,
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.triggered = false;
|
||||
if (type === 1) {
|
||||
this.pkmyRecordlist.push(...res.data);
|
||||
console.log(this.pkRecordlist);
|
||||
if (this.current === 1) {
|
||||
this.pkRecordlist = this.pkmyRecordlist;
|
||||
}
|
||||
} else {
|
||||
this.pkInvitationRecordlist.push(...res.data);
|
||||
console.log(this.pkInvitationRecordlist);
|
||||
if (this.current === 2) {
|
||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
//按钮点击
|
||||
toggleActive(val) {
|
||||
this.current = val;
|
||||
this.slidetext = val === 1 ? "我发布的PK" : "我邀请的PK";
|
||||
if (val === 1) {
|
||||
this.pkRecordlist = this.pkmyRecordlist;
|
||||
}else{
|
||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.pkRecord{
|
||||
width: 100vw;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
padding-top: 40rpx;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
.content{
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.avatar{
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
font-size: 20rpx;
|
||||
background-color: aqua;
|
||||
}
|
||||
.Anchor{
|
||||
display: flex;
|
||||
}
|
||||
.AnchorInfo{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 10rpx;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.PkPosted{
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
width: 45%;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
.Navigation{
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
</style>
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
/* 导航栏 */
|
||||
.navigation {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
height: 68.7rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.navigationItem {
|
||||
width: 477.1rpx;
|
||||
height: 68.7rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #4fcacd;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
.navigationItemTitle {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.slide {
|
||||
position: absolute;
|
||||
width: 238.55rpx;
|
||||
height: 68.7rpx;
|
||||
background-image: linear-gradient(135deg, #e4ffff, #ffffff);
|
||||
border-radius: 50rpx;
|
||||
text-align: center;
|
||||
line-height: 68.7rpx;
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #4fcacd;
|
||||
margin-left: -238.55rpx;
|
||||
}
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 300rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.scroll {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
/* 卡片 */
|
||||
.card {
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 28.55rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorA {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorB {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorAImg {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #b1b1b1;
|
||||
display: flex;
|
||||
}
|
||||
.AnchorAinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.AnchorBinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.AnchorAname {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorATime {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAICon {
|
||||
display: flex;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAIContext {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
.AnchorAIConNum {
|
||||
font-weight: bold;
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorAImgcss {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #f7da60 solid 2rpx;
|
||||
border-left: #ffeeab solid 2rpx;
|
||||
border-bottom: #ffeeab solid 2rpx;
|
||||
border-right: #f7da60 solid 2rpx;
|
||||
}
|
||||
.AnchorBImgcss {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #ffc6ba solid 2rpx;
|
||||
border-left: #ffc6ba solid 2rpx;
|
||||
border-bottom: #5ddadd solid 2rpx;
|
||||
border-right: #5ddadd solid 2rpx;
|
||||
}
|
||||
.Crown{
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
}
|
||||
.vstext {
|
||||
display: flex;
|
||||
}
|
||||
.Vtext {
|
||||
font-size: 45.8rpx;
|
||||
color: #f0836c;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-left: 26rpx;
|
||||
}
|
||||
.Stext {
|
||||
font-size: 45.8rpx;
|
||||
color: #58d8db;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -22,8 +22,9 @@
|
||||
placeholder-style="color:#666666"
|
||||
@input="NameAnchor"
|
||||
placeholder="主播名称"
|
||||
:value="nameAnchor"
|
||||
/>
|
||||
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
|
||||
<view v-if="nameAnchor === ''|| nameAnchor === null && Hint === true" class="Hint"
|
||||
>请填写主播名称</view
|
||||
>
|
||||
</view>
|
||||
@@ -43,8 +44,9 @@
|
||||
:options="Country"
|
||||
:filterable = "filterable"
|
||||
placeholder="请选择国家"
|
||||
:value="countrys"
|
||||
/>
|
||||
<view v-if="countrys === '' && Hint === true" class="Hint">请选择国家</view>
|
||||
<view v-if="countrys === ''|| countrys===null && Hint === true" class="Hint">请选择国家</view>
|
||||
</view>
|
||||
<view class="Gender">
|
||||
<view class="Gendercs">
|
||||
@@ -58,30 +60,31 @@
|
||||
@change="gender"
|
||||
:options="Gender"
|
||||
placeholder="性别"
|
||||
:value="message.sex === '1'?1:2"
|
||||
/>
|
||||
</view>
|
||||
<view class="Gendericoncss">
|
||||
<image
|
||||
v-if="genders === 0"
|
||||
v-if="genders === 0 || message.sex === '0'"
|
||||
class="Gendericon"
|
||||
src="../../../../static/ask.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<image
|
||||
v-if="genders === 1"
|
||||
v-if="genders === 1||message.sex === '1'"
|
||||
class="Gendericon"
|
||||
src="../../../../static/man.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<image
|
||||
v-if="genders === 2"
|
||||
v-if="genders === 2||message.sex === '2'"
|
||||
class="Gendericon"
|
||||
src="../../../../static/girl.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="genders === 0 && Hint === true" class="Hintcss">请选择性别</view>
|
||||
<view v-if="genders === 0 || genders===null && Hint === true" class="Hintcss">请选择性别</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -89,11 +92,11 @@
|
||||
<view class="goldCoin">
|
||||
<view class="number-box">
|
||||
<view class="number-box-title">金币数量:</view>
|
||||
<uni-number-box background="#03ABA8" v-model="numberCoins"></uni-number-box>
|
||||
<uni-number-box background="#03ABA8" v-model="numberCoins" ></uni-number-box>
|
||||
<view class="number-box-title">单位:</view>
|
||||
<view class="number-box-unit">K</view>
|
||||
</view>
|
||||
<view v-if="numberCoins === '' && Hint === true" class="Hint"
|
||||
<view v-if="numberCoins === ''|| numberCoins === null && Hint === true" class="Hint"
|
||||
>请填写金币数量</view
|
||||
>
|
||||
</view>
|
||||
@@ -104,7 +107,7 @@
|
||||
hide-second="true"
|
||||
v-model="datetimesingle"
|
||||
/>
|
||||
<view v-if="datetimesingle === '' && Hint === true" class="Hint"
|
||||
<view v-if="datetimesingle === ''|| datetimesingle === null && Hint === true" class="Hint"
|
||||
>请选择日期</view
|
||||
>
|
||||
</view>
|
||||
@@ -115,7 +118,7 @@
|
||||
<uni-number-box background="#03ABA8" v-model="session"></uni-number-box>
|
||||
<view class="number-box-title">次</view>
|
||||
</view>
|
||||
<view v-if="session === '' && Hint === true" class="Hint"
|
||||
<view v-if="session === ''|| session === null && Hint === true" class="Hint"
|
||||
>请填写场数</view
|
||||
>
|
||||
</view>
|
||||
@@ -136,14 +139,16 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import message from "@tencentcloud/chat-uikit-uniapp/locales/en/message.js";
|
||||
|
||||
import optionsArray from "../../../../components/NationalDictionary.js";
|
||||
import request from "../../../../components/request.js";
|
||||
import formatDate from "../../../../components/formatDate.js";
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
genders: 0, //性别
|
||||
genders: "", //性别
|
||||
Gender: [
|
||||
{ label: "男", value: 1 },
|
||||
{ label: "女", value: 2 },
|
||||
@@ -152,18 +157,32 @@ export default {
|
||||
countrys: "", //国家
|
||||
nameAnchor: "", //主播名称
|
||||
numberCoins: "", //金币数量
|
||||
session: "", //场数
|
||||
remarks: "", //备注
|
||||
session: '', //场数
|
||||
remarks: '', //备注
|
||||
Display: false,
|
||||
Hint: false,
|
||||
datetimesingle: "", //日期
|
||||
id: null, //用户id
|
||||
datetimesingle: '', //日期
|
||||
id: "", //用户id
|
||||
sendingTime: "", //发送时间
|
||||
filterable: true, //是否可搜索
|
||||
};
|
||||
},
|
||||
props: {
|
||||
message
|
||||
message:{
|
||||
type: Object,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
message(newQuestion, oldQuestion) {
|
||||
this.numberCoins = newQuestion.coin;
|
||||
this.session = newQuestion.pkNumber;
|
||||
this.remarks = newQuestion.remark;
|
||||
this.datetimesingle = formatDate(newQuestion.pkTime);
|
||||
this.id = newQuestion.senderId;
|
||||
this.nameAnchor = newQuestion.anchorId;
|
||||
this.countrys = newQuestion.country;
|
||||
this.genders = newQuestion.sex === "1" ? 1 : 2;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
uni.getStorage({
|
||||
@@ -174,22 +193,23 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//性别
|
||||
gender(item) {
|
||||
this.genders = item.value;
|
||||
console.log(item);
|
||||
},
|
||||
|
||||
//日期
|
||||
country(item) {
|
||||
this.countrys = item.value;
|
||||
console.log(item);
|
||||
},
|
||||
|
||||
handleOverlayClick(event) {
|
||||
if (event.target === this.$el) {
|
||||
this.Display = false;
|
||||
this.Hint = false;
|
||||
}
|
||||
},
|
||||
// //主播名称
|
||||
// handleOverlayClick(event) {
|
||||
// if (event.target === this.$el) {
|
||||
// this.Display = false;
|
||||
// this.Hint = false;
|
||||
// }
|
||||
// },
|
||||
open() {
|
||||
if (this.Display) {
|
||||
this.Display = false;
|
||||
@@ -211,16 +231,15 @@ export default {
|
||||
},
|
||||
|
||||
async Publish() {
|
||||
console.log("````````````````````````````````````````````",message);
|
||||
|
||||
//判断是否为空
|
||||
if (
|
||||
this.nameAnchor === "" ||
|
||||
this.genders === "" ||
|
||||
this.numberCoins === "" ||
|
||||
this.countrys === "" ||
|
||||
this.datetimesingle === ""||
|
||||
this.session === ""
|
||||
this.nameAnchor == "" && this.nameAnchor == null ||
|
||||
this.genders == "" && this.genders == null ||
|
||||
this.numberCoins =="" && this.numberCoins == null ||
|
||||
this.datetimesingle == "" && this.datetimesingle == null ||
|
||||
this.countrys == "" && his.countrys == null ||
|
||||
this.datetimesingle == "" && this.datetimesingle == null ||
|
||||
this.session == "" && this.session == null
|
||||
) {
|
||||
this.Hint = true;
|
||||
return;
|
||||
|
||||
BIN
static/Crown.png
Normal file
BIN
static/Crown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n counter.$patch({ myitem:this.info})\r\n },\r\n fail: () => {\r\n },\r\n })\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\nimport { createSSRApp } from 'vue';\r\nimport * as Pinia from 'pinia';\r\n\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App);\r\n\tapp.use(Pinia.createPinia());\r\n\treturn {\r\n\t\tapp,\r\n\t\tPinia, // 此处必须将 Pinia 返回\r\n\t};\r\n}"],"names":["uni","createSSRApp","App","Pinia.createPinia","Pinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAK,CAAA;AAAA,MACpC;AAAA,MACA,MAAM,MAAM;AAAA,MACZ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC3B,QAAM,MAAMC,2BAAaC,SAAG;AAC5B,MAAI,IAAIC,cAAiB,YAAA,CAAE;AAC3B,SAAO;AAAA,IACN;AAAA,IACF,OAAEC,cAAK;AAAA;AAAA,EACP;AACA;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n counter.$patch({ myitem:this.info})\r\n },\r\n fail: () => {\r\n },\r\n })\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\nimport { createSSRApp } from 'vue';\r\nimport * as Pinia from 'pinia';\r\n\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App);\r\n\tapp.use(Pinia.createPinia());\r\n\treturn {\r\n\t\tapp,\r\n\t\tPinia, // 此处必须将 Pinia 返回\r\n\t};\r\n}"],"names":["uni","createSSRApp","App","Pinia.createPinia","Pinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAK,CAAA;AAAA,MACpC;AAAA,MACA,MAAM,MAAM;AAAA,MACZ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC3B,QAAM,MAAMC,2BAAaC,SAAG;AAC5B,MAAI,IAAIC,cAAiB,YAAA,CAAE;AAC3B,SAAO;AAAA,IACN;AAAA,IACF,OAAEC,cAAK;AAAA;AAAA,EACP;AACA;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"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=\"../../static/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 RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");//触发预约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,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;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=\"../../static/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 RealTimePk() {\r\n this.Select = true;\r\n this.$emit(\"RealTimePk\");//触发实时PK事件\r\n },\r\n MakeAppointmentPK() {\r\n this.Select = false;\r\n this.$emit(\"MakeAppointmentPK\");//触发预约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,aAAa;AACX,WAAK,SAAS;AACd,WAAK,MAAM,YAAY;AAAA,IACxB;AAAA,IACD,oBAAoB;AAClB,WAAK,SAAS;AACd,WAAK,MAAM,mBAAmB;AAAA,IAC/B;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
File diff suppressed because one or more lines are too long
8
unpackage/dist/dev/mp-weixin/NewAddedPk.js
vendored
8
unpackage/dist/dev/mp-weixin/NewAddedPk.js
vendored
@@ -163,7 +163,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: $data.Display
|
||||
}, $data.Display ? common_vendor.e({
|
||||
b: common_vendor.o$1(($event) => $options.open()),
|
||||
c: common_assets._imports_0$4,
|
||||
c: common_assets._imports_0$2,
|
||||
d: common_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
|
||||
e: $data.nameAnchor === "" && $data.Hint === true
|
||||
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
|
||||
@@ -190,15 +190,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
k: $data.genders === 0
|
||||
}, $data.genders === 0 ? {
|
||||
l: common_assets._imports_1$3
|
||||
l: common_assets._imports_1$2
|
||||
} : {}, {
|
||||
m: $data.genders === 1
|
||||
}, $data.genders === 1 ? {
|
||||
n: common_assets._imports_2$1
|
||||
n: common_assets._imports_2$3
|
||||
} : {}, {
|
||||
o: $data.genders === 2
|
||||
}, $data.genders === 2 ? {
|
||||
p: common_assets._imports_3$1
|
||||
p: common_assets._imports_3$2
|
||||
} : {}, {
|
||||
q: $data.genders === 0 && $data.Hint === true
|
||||
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.js
vendored
1
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -8,6 +8,7 @@ if (!Math) {
|
||||
"./pages/Mine/minecomponents/contact.js";
|
||||
"./pages/Mine/minecomponents/pkInformation.js";
|
||||
"./pages/Mine/minecomponents/recompose/recompose.js";
|
||||
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
|
||||
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/login/login.js";
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.json
vendored
1
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -6,6 +6,7 @@
|
||||
"pages/Mine/minecomponents/contact",
|
||||
"pages/Mine/minecomponents/pkInformation",
|
||||
"pages/Mine/minecomponents/recompose/recompose",
|
||||
"pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
"pages/PKMessageprocessing/PKMessageprocessing",
|
||||
"pages/index/index",
|
||||
"pages/login/login",
|
||||
|
||||
44
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
44
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
@@ -1,28 +1,28 @@
|
||||
"use strict";
|
||||
const _imports_0$4 = "/static/HomeBackground.png";
|
||||
const _imports_1$3 = "/static/Settings.png";
|
||||
const _imports_2$1 = "/static/More.png";
|
||||
const _imports_0$2 = "/static/HomeBackground.png";
|
||||
const _imports_3$2 = "/static/female.png";
|
||||
const _imports_2$3 = "/static/male.png";
|
||||
const _imports_1$2 = "/static/Settings.png";
|
||||
const _imports_2$2 = "/static/More.png";
|
||||
const _imports_3$1 = "/static/service.png";
|
||||
const _imports_4$2 = "/static/Agreement.png";
|
||||
const _imports_5$2 = "/static/logout.png";
|
||||
const _imports_1$2 = "/static/Return.png";
|
||||
const _imports_0$3 = "/static/female.png";
|
||||
const _imports_1$1 = "/static/male.png";
|
||||
const _imports_1$1 = "/static/Return.png";
|
||||
const _imports_2$1 = "/static/Crown.png";
|
||||
const _imports_4$1 = "/static/species.png";
|
||||
const _imports_5$1 = "/static/recompose.png";
|
||||
const _imports_6 = "/static/expurgate.png";
|
||||
const _imports_0$2 = "/static/Fork.png";
|
||||
const _imports_0$1 = "/static/Fork.png";
|
||||
const _imports_1 = "/static/ask.png";
|
||||
const _imports_2 = "/static/man.png";
|
||||
const _imports_3 = "/static/girl.png";
|
||||
const _imports_4 = "/static/gold.png";
|
||||
const _imports_5 = "/static/session.png";
|
||||
const _imports_0$1 = "/static/Navigationimg.png";
|
||||
const _imports_0 = "/static/Navigationimg.png";
|
||||
const createGroup = "/assets/start-group.6d6b5fbb.svg";
|
||||
const C2C = "/assets/icon-c2c.d80299ab.svg";
|
||||
const settingSVG = "/assets/setting.a15e5daf.svg";
|
||||
const muteIcon = "/assets/mute.94c8513a.svg";
|
||||
const _imports_0 = "/static/Searching.png";
|
||||
const faceIcon = "/assets/face-uni.e33f5632.png";
|
||||
const moreIcon = "/assets/more-uni.030c2d9a.png";
|
||||
const ForwardEachIcon = "/assets/forward-each.9e79e381.svg";
|
||||
@@ -95,19 +95,19 @@ exports.ForwardMergeIcon = ForwardMergeIcon;
|
||||
exports.InvitationDark = InvitationDark;
|
||||
exports.InvitationLight = InvitationLight;
|
||||
exports.SearchDefaultIcon = SearchDefaultIcon;
|
||||
exports._imports_0 = _imports_0$1;
|
||||
exports._imports_0$1 = _imports_0$4;
|
||||
exports._imports_0$2 = _imports_0$3;
|
||||
exports._imports_0$3 = _imports_0;
|
||||
exports._imports_0$4 = _imports_0$2;
|
||||
exports._imports_1 = _imports_1$2;
|
||||
exports._imports_1$1 = _imports_1$3;
|
||||
exports._imports_1$2 = _imports_1$1;
|
||||
exports._imports_1$3 = _imports_1;
|
||||
exports._imports_2 = _imports_2$1;
|
||||
exports._imports_2$1 = _imports_2;
|
||||
exports._imports_3 = _imports_3$1;
|
||||
exports._imports_3$1 = _imports_3;
|
||||
exports._imports_0 = _imports_0;
|
||||
exports._imports_0$1 = _imports_0$2;
|
||||
exports._imports_0$2 = _imports_0$1;
|
||||
exports._imports_1 = _imports_1$1;
|
||||
exports._imports_1$1 = _imports_1$2;
|
||||
exports._imports_1$2 = _imports_1;
|
||||
exports._imports_2 = _imports_2$3;
|
||||
exports._imports_2$1 = _imports_2$2;
|
||||
exports._imports_2$2 = _imports_2$1;
|
||||
exports._imports_2$3 = _imports_2;
|
||||
exports._imports_3 = _imports_3$2;
|
||||
exports._imports_3$1 = _imports_3$1;
|
||||
exports._imports_3$2 = _imports_3;
|
||||
exports._imports_4 = _imports_4$2;
|
||||
exports._imports_4$1 = _imports_4$1;
|
||||
exports._imports_4$2 = _imports_4;
|
||||
|
||||
587
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
587
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -8012,7 +8012,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.1.112,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_y9-tOf";
|
||||
const id = "mp-weixin_-W8ZIk";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
@@ -30430,296 +30430,303 @@ const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
||||
const onReady = /* @__PURE__ */ createHook(ON_READY);
|
||||
const onUnload = /* @__PURE__ */ createHook(ON_UNLOAD);
|
||||
var dayjs_min = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
var hasRequiredDayjs_min;
|
||||
function requireDayjs_min() {
|
||||
if (hasRequiredDayjs_min)
|
||||
return dayjs_min.exports;
|
||||
hasRequiredDayjs_min = 1;
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
var dayjs_minExports = dayjs_min.exports;
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
return dayjs_min.exports;
|
||||
}
|
||||
var dayjs_minExports = requireDayjs_min();
|
||||
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
||||
var localeData$1 = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
@@ -30831,7 +30838,7 @@ const isSameOrBefore = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrBeforeExp
|
||||
var zhCn = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
!function(e2, _2) {
|
||||
module2.exports = _2(dayjs_minExports);
|
||||
module2.exports = _2(requireDayjs_min());
|
||||
}(commonjsGlobal, function(e2) {
|
||||
function _2(e3) {
|
||||
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
||||
|
||||
@@ -105,7 +105,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, item.sex === "2" ? {
|
||||
d: common_assets._imports_0$2
|
||||
} : {
|
||||
e: common_assets._imports_1$2
|
||||
e: common_assets._imports_1$1
|
||||
}, {
|
||||
f: common_vendor.t(item.sex === "1" ? "男" : "女"),
|
||||
g: item.sex === "1" ? 1 : "",
|
||||
|
||||
@@ -78,7 +78,10 @@ const _sfc_main = {
|
||||
return;
|
||||
}
|
||||
if (item.text === "消息") {
|
||||
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/TUIKit/components/TUIConversation/index",
|
||||
animationType: "none"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.switchTab({
|
||||
url: item.pagePath
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
@@ -34,10 +33,7 @@ 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 : "",
|
||||
g: common_vendor.o$1((...args) => $options.screening && $options.screening(...args)),
|
||||
h: common_vendor.o$1((...args) => $options.Search && $options.Search(...args)),
|
||||
i: common_assets._imports_0$3
|
||||
f: !$data.Select ? 1 : ""
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ce2f6748"]]);
|
||||
|
||||
@@ -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 bindtap="{{g}}" class="Screening data-v-ce2f6748">筛选</view><image bindtap="{{h}}" src="{{i}}" class="filter-icon data-v-ce2f6748"/></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>
|
||||
128
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
128
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -1,11 +1,12 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
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 common_assets = require("../../common/assets.js");
|
||||
const topNavigation = () => "../../components/topNavigation/topNavigation.js";
|
||||
const Advertisement = () => "../../components/Advertisement/Advertisement.js";
|
||||
const contentList = () => "../../components/contentList/contentList.js";
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const counter = stores_counter.useCounterStore();
|
||||
const _sfc_main = {
|
||||
@@ -14,9 +15,22 @@ const _sfc_main = {
|
||||
return {
|
||||
info: {},
|
||||
myuserSig: "",
|
||||
chatInfo: {}
|
||||
chatInfo: {},
|
||||
page: 0,
|
||||
//页码
|
||||
size: 10,
|
||||
//每页条数
|
||||
list: [],
|
||||
// 列表数据
|
||||
detailsdata: {},
|
||||
//详情数据
|
||||
triggered: false
|
||||
//下拉刷新标识
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.pkList();
|
||||
},
|
||||
onLoad() {
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
@@ -40,33 +54,131 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
goRealTimePk() {
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:123", "goRealTimePk");
|
||||
},
|
||||
goMakeAppointmentPK() {
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:126", "goMakeAppointmentPK");
|
||||
},
|
||||
goAdvertisement() {
|
||||
common_vendor.index.navigateTo({ url: "/pages/pkDetail/pkDetail" });
|
||||
},
|
||||
onRefresherRefresh() {
|
||||
this.page = 0;
|
||||
this.list = [];
|
||||
this.triggered = true;
|
||||
this.pkList();
|
||||
},
|
||||
async goDetail(item) {
|
||||
common_vendor.index.showLoading({
|
||||
title: "加载中...",
|
||||
mask: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:143", "id", item.id);
|
||||
const res = await components_request.request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id
|
||||
},
|
||||
userInfo: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:152", "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:157", "res.data", res.data);
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/pkDetail/pkDetail",
|
||||
success: (res2) => {
|
||||
res2.eventChannel.emit("itemDetail", {
|
||||
item: this.detailsdata
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
this.openPopupQuantity();
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "加载失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
async pkList() {
|
||||
const res = await components_request.request({
|
||||
url: "pk/pkList",
|
||||
method: "POST",
|
||||
data: {
|
||||
status: 0,
|
||||
page: this.page,
|
||||
size: this.size
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:191", res);
|
||||
if (res.code === 200) {
|
||||
this.list.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Home/Home.vue:194", this.list);
|
||||
this.triggered = false;
|
||||
}
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.pkList();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
topNavigation,
|
||||
Advertisement,
|
||||
contentList,
|
||||
tabBar
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_top_navigation = common_vendor.resolveComponent("top-navigation");
|
||||
const _component_advertisement = common_vendor.resolveComponent("advertisement");
|
||||
const _easycom_contentList2 = common_vendor.resolveComponent("contentList");
|
||||
const _component_uni_card = common_vendor.resolveComponent("uni-card");
|
||||
const _easycom_tabBar2 = common_vendor.resolveComponent("tabBar");
|
||||
(_component_top_navigation + _component_advertisement + _easycom_contentList2 + _easycom_tabBar2)();
|
||||
(_component_top_navigation + _component_advertisement + _component_uni_card + _easycom_tabBar2)();
|
||||
}
|
||||
const _easycom_contentList = () => "../../components/contentList/contentList.js";
|
||||
const _easycom_tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
if (!Math) {
|
||||
(_easycom_contentList + _easycom_tabBar)();
|
||||
_easycom_tabBar();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args))
|
||||
b: common_vendor.o$1($options.goRealTimePk),
|
||||
c: common_vendor.o$1($options.goMakeAppointmentPK),
|
||||
d: common_vendor.o$1((...args) => $options.goAdvertisement && $options.goAdvertisement(...args)),
|
||||
e: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
c: item.sex === "2"
|
||||
}, item.sex === "2" ? {
|
||||
d: common_assets._imports_3
|
||||
} : {
|
||||
e: common_assets._imports_2
|
||||
}, {
|
||||
f: common_vendor.t(item.sex === "1" ? "男" : "女"),
|
||||
g: item.sex === "1" ? 1 : "",
|
||||
h: item.sex === "2" ? 1 : "",
|
||||
i: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
j: common_vendor.t(item.coin + "K"),
|
||||
k: common_vendor.o$1(($event) => $options.goDetail(item)),
|
||||
l: "7ffebbf4-2-" + i0
|
||||
});
|
||||
}),
|
||||
f: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||
g: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args)),
|
||||
h: $data.triggered
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-7ffebbf4"]]);
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"usingComponents": {
|
||||
"top-navigation": "../../components/topNavigation/topNavigation",
|
||||
"advertisement": "../../components/Advertisement/Advertisement",
|
||||
"content-list": "../../components/contentList/contentList",
|
||||
"tab-bar": "../../components/tabBar/tabBar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="page data-v-7ffebbf4"><image src="{{a}}" class="HomeBackground data-v-7ffebbf4"></image></view><view class="top-navigation-container data-v-7ffebbf4"><top-navigation class="data-v-7ffebbf4" u-i="7ffebbf4-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-7ffebbf4" bindtap="{{b}}"><advertisement class="data-v-7ffebbf4" u-i="7ffebbf4-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-7ffebbf4"><content-list class="data-v-7ffebbf4" u-i="7ffebbf4-2" bind:__l="__l"></content-list></view><view class="tabBar data-v-7ffebbf4"><tab-bar class="data-v-7ffebbf4" u-i="7ffebbf4-3" bind:__l="__l"></tab-bar></view>
|
||||
<view class="page data-v-7ffebbf4"><image src="{{a}}" class="HomeBackground data-v-7ffebbf4"></image></view><view class="top-navigation-container data-v-7ffebbf4"><top-navigation class="data-v-7ffebbf4" bindRealTimePk="{{b}}" bindMakeAppointmentPK="{{c}}" u-i="7ffebbf4-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-7ffebbf4" bindtap="{{d}}"><advertisement class="data-v-7ffebbf4" u-i="7ffebbf4-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-7ffebbf4"><scroll-view scroll-y="true" class="scroll data-v-7ffebbf4" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{f}}" lower-threshold="100" bindscrolltolower="{{g}}" refresher-triggered="{{h}}"><uni-card wx:for="{{e}}" wx:for-item="item" class="data-v-7ffebbf4" u-s="{{['d']}}" u-i="{{item.l}}" bind:__l="__l"><view class="content-list data-v-7ffebbf4" bindtap="{{item.k}}"><image class="headShot data-v-7ffebbf4" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-7ffebbf4"><view class="cardname data-v-7ffebbf4">{{item.b}}</view><view class="content-list-info data-v-7ffebbf4"><view class="{{['data-v-7ffebbf4', item.g && 'Gendermale', item.h && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-7ffebbf4" src="{{item.d}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-7ffebbf4" src="{{item.e}}" mode="scaleToFill"/><view class="age data-v-7ffebbf4">{{item.f}}</view></view><view class="RoomID data-v-7ffebbf4">PK时间: {{item.i}}</view><view class="Charm data-v-7ffebbf4">金币:</view><view class="charmValue data-v-7ffebbf4">{{item.j}}</view></view></view></view></uni-card></scroll-view></view><view class="tabBar data-v-7ffebbf4"><tab-bar class="data-v-7ffebbf4" u-i="7ffebbf4-3" bind:__l="__l"></tab-bar></view>
|
||||
@@ -29,9 +29,88 @@
|
||||
}
|
||||
.contentList.data-v-7ffebbf4 {
|
||||
position: fixed;
|
||||
top: 400rpx;
|
||||
top: 412rpx;
|
||||
left: 0;
|
||||
bottom: -30rpx;
|
||||
bottom: 114.5rpx;
|
||||
width: 100%;
|
||||
/* height: 1300rpx; */
|
||||
}
|
||||
.scroll.data-v-7ffebbf4 {
|
||||
height: 90%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.content-list.data-v-7ffebbf4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 712rpx;
|
||||
height: 161rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.headShot.data-v-7ffebbf4 {
|
||||
width: 101rpx;
|
||||
height: 101rpx;
|
||||
border-radius: 50rpx;
|
||||
margin-left: 30rpx;
|
||||
margin-right: 33rpx;
|
||||
}
|
||||
.content-list-info.data-v-7ffebbf4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.cardname.data-v-7ffebbf4 {
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Genderimg.data-v-7ffebbf4 {
|
||||
width: 15rpx;
|
||||
height: 15rpx;
|
||||
margin-left: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.age.data-v-7ffebbf4 {
|
||||
color: #ffffff;
|
||||
font-size: 14rpx;
|
||||
}
|
||||
.Gendermale.data-v-7ffebbf4 {
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAfCAYAAABZGLWTAAAAAXNSR0IArs4c6QAAAilJREFUWEftWTtPFFEU/r6ZJUuJiSQujwKRCfQkttJobJRY6Ax/ABNNKGiBAmwtTNZk9w+40BCtiDZYSmI/kxmFAmGNkIgdhFmPuUPW7C6vWVZ3ZhimnfP6zr3ncc8hQnz3PS/b5eOuAPcAGQV5EyLXSGZCsP9TEhHxQf6EyDrAz2Dlwy9df78yNHRwniKeRTC+sdHVeXA4TfApgOvnCYvw/65ACvvZjpdvBwb2TrPjVLCPbdfSyFcEuiME0ZRqAXYoMlUaMUonMR4De2d1NZPL9eYBTjalKVbEUiyXt55/HBvza82qA6uA3ujpX6LIo1jZfgFjhFz+vr35pBZwHVjLdgtgkk+00StSLA0bKt8E31+wKkZ18s0FnBhvFpGJagwHYI+yru8mKRmF9bBKWvvZjKGydADWdL7MEzIbVkDS6ETjwqJxa45Bw1DBt5jX0Vb9u7uno4+m4zwg9HetSos7v6DykKbt5Uk8i7uxrdongtcK7CcSt1sVFnt+wRpNx/txGbPwsYqrWknT8Q4JtP310u6bIIBPy/Gk3Yqj0peuk01XzKYkG0uQjVNVZ9PUQaWqNz569bgLBGeiKgn/W69AXiwOG7Ppe88qz1q2a+EyTio0baJkDAbTxvoZlOMWkj1VDDmDUmSpmi5WAedy/XlAEjw3ZrFc3jx7blx7CSz7qyX8nayNALFDalPVGG281Fe7nkaP1G/xMAoiui0exAfUFg/rAJra4v0Bqcv8upqc0XEAAAAASUVORK5CYII=) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.Genderfemale.data-v-7ffebbf4 {
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAfCAYAAABZGLWTAAAAAXNSR0IArs4c6QAAAi1JREFUWEflWU1rE1EUPaeGFGEiCShIdVXQrZuCW1e6U3BT2j9gwSYTcZVi5WFlZlVMTIXkDyhuBJe66rKCm24rdCV+NIWUZEBb41yZ0ZYk9mMyETLPN9u5575z7nv3fdxLRPg+5PPjExdw3fd5Q8ApUiYB5gCkIsD/tUkHkKYINwl5L/Dffv3MN5eq1d2TBuJxBqKKWS8t90HMATh7krMR/t+GoGbtcZmqvHMUjyPFem5+RjBWAXBuhCIGHbpB+LZVqr44DPiXWFHXUl76ygqIO4OOlBh7Qd3aW5+nWu10c+oRK0qlvHTzJYjbiSEelwjxyvqem6ZSB4J7xLYcu0adZ7QvMCKon1moBPtN+B2I/ZOjz+MGMqk4wp/dz+FQbFMVs6lx2dBsM4oa30Znl5dzqrwTim27hUcAF6Oi9bOTpUzp6UMGF4bzE2MfE36ODhvf7S+f/ItsOfM3yVOvh/WWdLzIz1tsO4UVkHeTTnZofiLP2HLsNRJXh3aWcAcE3gUzuwVSpyth3LA22HbtHyN6vcQlHRfXCcRKXLRuONNmtrAFGJKzLddeI8zZjU06Zw26QRl1Nw5fPY69BOKBbkdJZL6Cx5mFyqJ579kgQv9vpYKzVqkcVht7alBtx65pXVXsX9eCeuawGlRgZ1R18bdgQ+rG3avAc4szAtGwI0B7P0f7V/XxvZ4nxaz3TaNez2ku816MXk93VLq7eCSnBJgEMMIuHpoENkUG6+L9AlWo7Kxo5cagAAAAAElFTkSuQmCC) no-repeat center;
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.RoomID.data-v-7ffebbf4 {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.Charm.data-v-7ffebbf4 {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.charmValue.data-v-7ffebbf4 {
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
line-height: 38rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: common_vendor.t($data.userinfo.nickName),
|
||||
d: common_assets._imports_1$1,
|
||||
e: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
|
||||
f: common_assets._imports_2,
|
||||
f: common_assets._imports_2$1,
|
||||
g: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
|
||||
h: common_vendor.f($data.pkInformationdata, (item, index, i0) => {
|
||||
return {
|
||||
@@ -138,9 +138,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: index
|
||||
};
|
||||
}),
|
||||
i: common_assets._imports_2,
|
||||
i: common_assets._imports_2$1,
|
||||
j: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
|
||||
k: common_assets._imports_3,
|
||||
k: common_assets._imports_3$1,
|
||||
l: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
m: common_assets._imports_4,
|
||||
n: common_assets._imports_5,
|
||||
|
||||
93
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js
vendored
Normal file
93
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const components_request = require("../../../../components/request.js");
|
||||
const components_formatDate = require("../../../../components/formatDate.js");
|
||||
const common_assets = require("../../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
item: {},
|
||||
coinNumlist: [{
|
||||
winnerAnchorId: 1,
|
||||
anchorIdA: 1,
|
||||
anchorIdB: 2,
|
||||
anchorCoinA: 2,
|
||||
anchorCoinB: 3
|
||||
}]
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:114", "接收到的数据:", this.item);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 获取具体金币数量
|
||||
getCoinNum(item) {
|
||||
components_request.request({
|
||||
url: "user/pkRecordDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: item.id
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.coinNumlist = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:132", "获取金币数量失败");
|
||||
}
|
||||
});
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_uni_card = common_vendor.resolveComponent("uni-card");
|
||||
_component_uni_card();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args)),
|
||||
d: $data.item.anchorIconA,
|
||||
e: $data.item.winnerAnchorId == $data.item.anchorIdA
|
||||
}, $data.item.winnerAnchorId == $data.item.anchorIdA ? {
|
||||
f: common_assets._imports_2$2
|
||||
} : {}, {
|
||||
g: common_vendor.t($data.item.anchorIdA),
|
||||
h: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
i: common_vendor.t($data.item.userAcoin),
|
||||
j: common_vendor.t($data.item.anchorIdB),
|
||||
k: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
l: common_vendor.t($data.item.userBcoin),
|
||||
m: $data.item.anchorIconB,
|
||||
n: $data.item.winnerAnchorId == $data.item.anchorIdB
|
||||
}, $data.item.winnerAnchorId == $data.item.anchorIdB ? {
|
||||
o: common_assets._imports_2$2
|
||||
} : {}, {
|
||||
p: common_vendor.f($data.coinNumlist, (items, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(items.anchorCoinA),
|
||||
b: items.anchorIdA == items.winnerAnchorId ? "#00fbff5d" : "#ff000049",
|
||||
c: common_vendor.t(items.anchorCoinB),
|
||||
d: items.anchorIdB == items.winnerAnchorId ? "#00fbff5d" : "#ff000049",
|
||||
e: index,
|
||||
f: "414631de-0-" + i0
|
||||
};
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-414631de"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "PK记录详情",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{c}}"><image class="ReturnImg data-v-414631de" src="{{b}}" mode="scaleToFill"/></view><view class="title data-v-414631de">PK记录详情</view><view class="pkrecords data-v-414631de"><view class="card data-v-414631de"><view class="AnchorA data-v-414631de"><view class="AnchorAImg data-v-414631de"><image class="AnchorAImgcss data-v-414631de" src="{{d}}" mode="scaleToFill"/></view><image wx:if="{{e}}" class="Crown data-v-414631de" src="{{f}}" mode="scaleToFill"/><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{g}}</view><view class="AnchorATime data-v-414631de">{{h}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{i}}K</view></view></view></view><view class="vstext data-v-414631de"><view class="Vtext data-v-414631de">V</view><view class="Stext data-v-414631de">S</view></view><view class="AnchorB data-v-414631de"><view class="AnchorBinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{j}}</view><view class="AnchorATime data-v-414631de">{{k}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{l}}K</view></view></view><view class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{m}}" mode="scaleToFill"/></view><image wx:if="{{n}}" class="Crown data-v-414631de" src="{{o}}" mode="scaleToFill"/></view></view><view class="pkrecords-content data-v-414631de"><scroll-view scroll-y="true" class="scroll data-v-414631de"><uni-card wx:for="{{p}}" wx:for-item="items" wx:key="e" class="data-v-414631de" u-s="{{['d']}}" u-i="{{items.f}}" bind:__l="__l"><view class="contentcard data-v-414631de"><view class="contentcard-titleA data-v-414631de" style="{{'background-color:' + items.b}}"><view class="data-v-414631de">金币数量</view><view class="data-v-414631de">{{items.a}}K</view></view><view class="contentcard-titleB data-v-414631de" style="{{'background-color:' + items.d}}"><view class="data-v-414631de">金币数量</view><view class="data-v-414631de">{{items.c}}K</view></view></view></uni-card></scroll-view></view></view></view>
|
||||
185
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.wxss
vendored
Normal file
185
unpackage/dist/dev/mp-weixin/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.wxss
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
|
||||
.bg.data-v-414631de {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-414631de {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-414631de {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title.data-v-414631de {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 280rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg.data-v-414631de {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.pkrecords.data-v-414631de {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
}
|
||||
/* 卡片 */
|
||||
.card.data-v-414631de {
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 28.55rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorA.data-v-414631de {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorB.data-v-414631de {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorAImg.data-v-414631de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #b1b1b1;
|
||||
display: flex;
|
||||
}
|
||||
.AnchorAinfo.data-v-414631de {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.AnchorBinfo.data-v-414631de {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.AnchorAname.data-v-414631de {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorATime.data-v-414631de {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAICon.data-v-414631de {
|
||||
display: flex;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAIContext.data-v-414631de {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
.AnchorAIConNum.data-v-414631de {
|
||||
font-weight: bold;
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorAImgcss.data-v-414631de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #f7da60 solid 2rpx;
|
||||
border-left: #ffeeab solid 2rpx;
|
||||
border-bottom: #ffeeab solid 2rpx;
|
||||
border-right: #f7da60 solid 2rpx;
|
||||
}
|
||||
.AnchorBImgcss.data-v-414631de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #ffc6ba solid 2rpx;
|
||||
border-left: #ffc6ba solid 2rpx;
|
||||
border-bottom: #5ddadd solid 2rpx;
|
||||
border-right: #5ddadd solid 2rpx;
|
||||
}
|
||||
.Crown.data-v-414631de {
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
}
|
||||
.vstext.data-v-414631de {
|
||||
display: flex;
|
||||
}
|
||||
.Vtext.data-v-414631de {
|
||||
font-size: 45.8rpx;
|
||||
color: #f0836c;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-left: 26rpx;
|
||||
}
|
||||
.Stext.data-v-414631de {
|
||||
font-size: 45.8rpx;
|
||||
color: #58d8db;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
.pkrecords-content.data-v-414631de {
|
||||
position: absolute;
|
||||
top: 240rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.scroll.data-v-414631de{
|
||||
width: 750rpx;
|
||||
height: 1100rpx;
|
||||
}
|
||||
.contentcard.data-v-414631de{
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
border-radius: 15rpx;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
margin-left:28.55rpx;
|
||||
margin-top: 13rpx;
|
||||
}
|
||||
.contentcard-titleA.data-v-414631de{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-right: #100e0f solid 1rpx;
|
||||
border-top-left-radius: 15rpx;
|
||||
border-bottom-left-radius: 15rpx;
|
||||
}
|
||||
.contentcard-titleB.data-v-414631de{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-top-right-radius: 15rpx;
|
||||
border-bottom-right-radius: 15rpx;
|
||||
}
|
||||
@@ -11,7 +11,8 @@ const _sfc_main = {
|
||||
userinfo: {},
|
||||
page: 0,
|
||||
createModule: null,
|
||||
parentMessage: null
|
||||
parentMessage: null,
|
||||
triggered: false
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -19,7 +20,7 @@ const _sfc_main = {
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:107", this.userinfo);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:111", this.userinfo);
|
||||
this.getpkList();
|
||||
}
|
||||
});
|
||||
@@ -28,12 +29,26 @@ const _sfc_main = {
|
||||
this.createModule = this.$refs.createModule;
|
||||
},
|
||||
methods: {
|
||||
onRefresherRefresh() {
|
||||
this.page = 0;
|
||||
this.pkList = [];
|
||||
this.getpkList();
|
||||
this.triggered = true;
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.getpkList();
|
||||
},
|
||||
onRefresherRefres() {
|
||||
this.page = 0;
|
||||
this.pkList = [];
|
||||
this.getpkList();
|
||||
this.triggered = true;
|
||||
},
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack(
|
||||
{
|
||||
delta: 1
|
||||
}
|
||||
);
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
getpkList() {
|
||||
@@ -48,16 +63,17 @@ const _sfc_main = {
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkList = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:137", this.pkList);
|
||||
this.pkList.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:155", this.pkList);
|
||||
this.triggered = false;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:139", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:158", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
onRecompose(item) {
|
||||
this.createModule.open();
|
||||
this.parentMessage = item;
|
||||
this.createModule.open();
|
||||
},
|
||||
onExpurgate(item) {
|
||||
components_request.request({
|
||||
@@ -76,7 +92,7 @@ const _sfc_main = {
|
||||
});
|
||||
this.getpkList();
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:164", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:183", res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -100,9 +116,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.t(item.anchorId),
|
||||
b: item.sex === "2"
|
||||
}, item.sex === "2" ? {
|
||||
c: common_assets._imports_0$2
|
||||
c: common_assets._imports_3
|
||||
} : {
|
||||
d: common_assets._imports_1$2
|
||||
d: common_assets._imports_2
|
||||
}, {
|
||||
e: common_vendor.t(item.sex === "1" ? "男" : "女"),
|
||||
f: item.sex === "1" ? 1 : "",
|
||||
@@ -110,22 +126,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
h: common_vendor.t(item.country),
|
||||
i: common_vendor.t(item.coin),
|
||||
j: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
k: item.status === 0
|
||||
}, item.status === 0 ? {
|
||||
l: common_assets._imports_5$1,
|
||||
m: common_vendor.o$1(($event) => $options.onRecompose(item), index),
|
||||
n: common_assets._imports_6,
|
||||
o: common_vendor.o$1(($event) => $options.onExpurgate(item), index)
|
||||
} : {}, {
|
||||
p: index,
|
||||
q: "36b7ee78-0-" + i0
|
||||
k: common_vendor.o$1(($event) => $options.onRecompose(item), index),
|
||||
l: common_vendor.o$1(($event) => $options.onExpurgate(item), index),
|
||||
m: index,
|
||||
n: "36b7ee78-0-" + i0
|
||||
});
|
||||
}),
|
||||
e: common_assets._imports_4$1,
|
||||
f: common_vendor.o$1((...args) => _ctx.onRefresherRefresh && _ctx.onRefresherRefresh(...args)),
|
||||
g: common_vendor.o$1((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args)),
|
||||
h: common_vendor.sr("createModule", "36b7ee78-1"),
|
||||
i: common_vendor.p({
|
||||
f: common_assets._imports_5$1,
|
||||
g: common_assets._imports_6,
|
||||
h: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||
i: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args)),
|
||||
j: $data.triggered,
|
||||
k: common_vendor.sr("createModule", "36b7ee78-1"),
|
||||
l: common_vendor.p({
|
||||
message: $data.parentMessage
|
||||
})
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="pk-information data-v-36b7ee78"><view class="bg data-v-36b7ee78"><image class="bgImg data-v-36b7ee78" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-36b7ee78" bindtap="{{c}}"><image class="ReturnImg data-v-36b7ee78" src="{{b}}" mode="scaleToFill"/></view><view class="content data-v-36b7ee78"><scroll-view scroll-y="true" class="scroll data-v-36b7ee78" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{f}}" lower-threshold="100" bindscrolltolower="{{g}}"><uni-card wx:for="{{d}}" wx:for-item="item" wx:key="p" u-s="{{['d']}}" class="card data-v-36b7ee78" u-i="{{item.q}}" bind:__l="__l"><view class="Profile data-v-36b7ee78"><image class="data-v-36b7ee78" style="width:89.12rpx;height:89.12rpx" src="{{''}}" mode="scaleToFill"/></view><view class="Individual data-v-36b7ee78"><view class="Name data-v-36b7ee78">{{item.a}}</view><view class="Label data-v-36b7ee78"><view class="data-v-36b7ee78"><view class="{{['data-v-36b7ee78', item.f && 'Gendermale', item.g && 'Genderfemale']}}"><image wx:if="{{item.b}}" class="Genderimg data-v-36b7ee78" src="{{item.c}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-36b7ee78" src="{{item.d}}" mode="scaleToFill"/><view class="age data-v-36b7ee78">{{item.e}}</view></view></view><view class="state data-v-36b7ee78">{{item.h}}</view><view class="species data-v-36b7ee78"><image class="data-v-36b7ee78" style="width:28.63rpx;height:28.63rpx" src="{{e}}" mode="scaleToFill"/><view class="species-text data-v-36b7ee78">金币:</view><view class="species-num data-v-36b7ee78">{{item.i}}K</view></view></view><view class="time data-v-36b7ee78">PK时间:{{item.j}}</view></view><view wx:if="{{item.k}}" class="handle data-v-36b7ee78"><view class="recompose data-v-36b7ee78" bindtap="{{item.m}}"><image class="data-v-36b7ee78" style="width:46rpx;height:46rpx" src="{{item.l}}" mode="scaleToFill"/></view><view class="expurgate data-v-36b7ee78" bindtap="{{item.o}}"><image class="data-v-36b7ee78" style="width:46rpx;height:46rpx" src="{{item.n}}" mode="scaleToFill"/></view></view></uni-card></scroll-view></view></view><recompose wx:if="{{i}}" u-r="createModule" class="createModule r data-v-36b7ee78" u-i="36b7ee78-1" bind:__l="__l" u-p="{{i}}"></recompose>
|
||||
<view class="pk-information data-v-36b7ee78"><view class="bg data-v-36b7ee78"><image class="bgImg data-v-36b7ee78" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-36b7ee78" bindtap="{{c}}"><image class="ReturnImg data-v-36b7ee78" src="{{b}}" mode="scaleToFill"/></view><view class="title data-v-36b7ee78">PK信息</view><view class="content data-v-36b7ee78"><scroll-view scroll-y="true" class="scroll data-v-36b7ee78" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{h}}" lower-threshold="100" bindscrolltolower="{{i}}" refresher-triggered="{{j}}"><uni-card wx:for="{{d}}" wx:for-item="item" wx:key="m" u-s="{{['d']}}" class="card data-v-36b7ee78" u-i="{{item.n}}" bind:__l="__l"><view class="Profile data-v-36b7ee78"><image class="data-v-36b7ee78" style="width:89.12rpx;height:89.12rpx" src="{{''}}" mode="scaleToFill"/></view><view class="Individual data-v-36b7ee78"><view class="Name data-v-36b7ee78">{{item.a}}</view><view class="Label data-v-36b7ee78"><view class="data-v-36b7ee78"><view class="{{['data-v-36b7ee78', item.f && 'Gendermale', item.g && 'Genderfemale']}}"><image wx:if="{{item.b}}" class="Genderimg data-v-36b7ee78" src="{{item.c}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-36b7ee78" src="{{item.d}}" mode="scaleToFill"/><view class="age data-v-36b7ee78">{{item.e}}</view></view></view><view class="state data-v-36b7ee78">{{item.h}}</view><view class="species data-v-36b7ee78"><image class="data-v-36b7ee78" style="width:28.63rpx;height:28.63rpx" src="{{e}}" mode="scaleToFill"/><view class="species-text data-v-36b7ee78">金币:</view><view class="species-num data-v-36b7ee78">{{item.i}}K</view></view></view><view class="time data-v-36b7ee78">PK时间:{{item.j}}</view></view><view class="handle data-v-36b7ee78"><view class="recompose data-v-36b7ee78" bindtap="{{item.k}}"><image class="data-v-36b7ee78" style="width:46rpx;height:46rpx" src="{{f}}" mode="scaleToFill"/></view><view class="expurgate data-v-36b7ee78" bindtap="{{item.l}}"><image class="data-v-36b7ee78" style="width:46rpx;height:46rpx" src="{{g}}" mode="scaleToFill"/></view></view></uni-card></scroll-view></view></view><recompose wx:if="{{l}}" u-r="createModule" class="createModule r data-v-36b7ee78" u-i="36b7ee78-1" bind:__l="__l" u-p="{{l}}"></recompose>
|
||||
@@ -13,11 +13,19 @@
|
||||
}
|
||||
.Return.data-v-36b7ee78 {
|
||||
position: absolute;
|
||||
top: 100rpx;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.title.data-v-36b7ee78 {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.ReturnImg.data-v-36b7ee78 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -130,10 +138,10 @@
|
||||
height: 46rpx;
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
.createModule.data-v-36b7ee78{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 998;
|
||||
width: 100vw;
|
||||
.createModule.data-v-36b7ee78 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 998;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
@@ -1,24 +1,147 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const components_request = require("../../../components/request.js");
|
||||
const components_formatDate = require("../../../components/formatDate.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
list: [
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
triggered: false,
|
||||
// 下拉刷新状态
|
||||
current: 1,
|
||||
// 初始激活状态
|
||||
buttonWidth: 238.55,
|
||||
// 按钮宽度
|
||||
gap: 0,
|
||||
// 按钮间距
|
||||
slidetext: "我发布的PK",
|
||||
// 导航栏文字
|
||||
pkmyRecordlist: [],
|
||||
// PK记录列表
|
||||
pkInvitationRecordlist: [],
|
||||
// PK记录列表
|
||||
pkRecordlist: [
|
||||
{
|
||||
winnerId: "1",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "123",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "456",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "123",
|
||||
senderB: "456"
|
||||
},
|
||||
{
|
||||
winnerId: "2",
|
||||
pkTime: "1626211200",
|
||||
anchorIdA: "789",
|
||||
anchorIconA: "https://img.yzcdn.cn/vant/cat.jpeg",
|
||||
userAcoin: "100",
|
||||
anchorIdB: "101",
|
||||
anchorIconB: "https://img.yzcdn.cn/vant/dog.jpeg",
|
||||
userBcoin: "200",
|
||||
senderA: "789",
|
||||
senderB: "101"
|
||||
}
|
||||
],
|
||||
// PK记录列表
|
||||
userinfo: {},
|
||||
// 用户信息
|
||||
page: 0
|
||||
// 页码
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
this.getPkRecordList(1);
|
||||
this.getPkRecordList(2);
|
||||
}
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
sliderPosition() {
|
||||
const { current, buttonWidth, gap } = this;
|
||||
const containerPadding = 0;
|
||||
const offset = (buttonWidth + gap) * (current - 1);
|
||||
return containerPadding + offset + 375;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 方法定义
|
||||
onRefresherRefresh() {
|
||||
this.triggered = true;
|
||||
this.page = 0;
|
||||
this.getPkRecordList(this.current);
|
||||
},
|
||||
onScrollToLower() {
|
||||
this.page++;
|
||||
this.getPkRecordList(this.current);
|
||||
},
|
||||
onItemClick(item) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
success: (res) => {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack(
|
||||
{
|
||||
delta: 1
|
||||
}
|
||||
);
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
//获取我发布的PK记录列表
|
||||
getPkRecordList(type) {
|
||||
components_request.request({
|
||||
url: "user/handlePkInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
type,
|
||||
userId: this.userinfo.id,
|
||||
page: this.page,
|
||||
size: 10
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.triggered = false;
|
||||
if (type === 1) {
|
||||
this.pkmyRecordlist.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:197", this.pkRecordlist);
|
||||
if (this.current === 1) {
|
||||
this.pkRecordlist = this.pkmyRecordlist;
|
||||
}
|
||||
} else {
|
||||
this.pkInvitationRecordlist.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:203", this.pkInvitationRecordlist);
|
||||
if (this.current === 2) {
|
||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:209", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
//按钮点击
|
||||
toggleActive(val) {
|
||||
this.current = val;
|
||||
this.slidetext = val === 1 ? "我发布的PK" : "我邀请的PK";
|
||||
if (val === 1) {
|
||||
this.pkRecordlist = this.pkmyRecordlist;
|
||||
} else {
|
||||
this.pkRecordlist = this.pkInvitationRecordlist;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
@@ -27,13 +150,41 @@ if (!Array) {
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return {
|
||||
a: "6fa696de-0-" + i0
|
||||
};
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args)),
|
||||
d: common_vendor.o$1(($event) => $options.toggleActive(1)),
|
||||
e: $data.current === 1 ? 1 : "",
|
||||
f: common_vendor.o$1(($event) => $options.toggleActive(2)),
|
||||
g: $data.current === 2 ? 1 : "",
|
||||
h: common_vendor.t($data.slidetext),
|
||||
i: $options.sliderPosition + "rpx",
|
||||
j: common_vendor.f($data.pkRecordlist, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIconA,
|
||||
b: item.winnerAnchorId == item.anchorIdA
|
||||
}, item.winnerAnchorId == item.anchorIdA ? {
|
||||
c: common_assets._imports_2$2
|
||||
} : {}, {
|
||||
d: common_vendor.t(item.anchorIdA),
|
||||
e: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
f: common_vendor.t(item.userAcoin),
|
||||
g: common_vendor.t(item.anchorIdB),
|
||||
h: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
i: common_vendor.t(item.userBcoin),
|
||||
j: item.anchorIconB,
|
||||
k: item.winnerAnchorId == item.anchorIdB
|
||||
}, item.winnerAnchorId == item.anchorIdB ? {
|
||||
l: common_assets._imports_2$2
|
||||
} : {}, {
|
||||
m: common_vendor.o$1(($event) => $options.onItemClick(item), index),
|
||||
n: index,
|
||||
o: "6fa696de-0-" + i0
|
||||
});
|
||||
}),
|
||||
b: common_vendor.o$1((...args) => _ctx.onRefresherRefresh && _ctx.onRefresherRefresh(...args)),
|
||||
c: common_vendor.o$1((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args))
|
||||
k: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
|
||||
l: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args)),
|
||||
m: $data.triggered
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6fa696de"]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="pkRecord data-v-6fa696de"><view class="data-v-6fa696de">返回</view><view class="data-v-6fa696de">pk记录</view><view class="data-v-6fa696de"></view></view><view class="Navigation data-v-6fa696de"><view class="PkPosted data-v-6fa696de">我发布的PK</view><view class="data-v-6fa696de">我邀请的PK</view></view><scroll-view scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{b}}" lower-threshold="100" bindscrolltolower="{{c}}"><uni-card wx:for="{{a}}" wx:for-item="item" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.a}}" bind:__l="__l"><view class="content data-v-6fa696de"><view class="Anchor data-v-6fa696de"><view class="avatar data-v-6fa696de">主播1头像(赢方头像框王冠)</view><view class="AnchorInfo data-v-6fa696de"><view class="data-v-6fa696de">主播昵称</view><view class="data-v-6fa696de">pk时间</view><view class="data-v-6fa696de">实际打了多少金币</view></view></view><view class="data-v-6fa696de"> VS </view><view class="Anchor data-v-6fa696de"><view class="AnchorInfo data-v-6fa696de"><view class="data-v-6fa696de">主播昵称</view><view class="data-v-6fa696de">pk时间</view><view class="data-v-6fa696de">实际打了多少金币</view></view><view class="avatar data-v-6fa696de">主播1头像</view></view></view></uni-card></scroll-view>
|
||||
<view class="pkRecord data-v-6fa696de"><view class="bg data-v-6fa696de"><image class="bgImg data-v-6fa696de" src="{{a}}" mode="scaleToFill"/></view><view class="Return data-v-6fa696de" bindtap="{{c}}"><image class="ReturnImg data-v-6fa696de" src="{{b}}" mode="scaleToFill"/></view><view class="title data-v-6fa696de">PK记录</view><view class="navigation data-v-6fa696de"><view class="navigationItem data-v-6fa696de"><view bindtap="{{d}}" class="{{['navigationItemTitle', 'data-v-6fa696de', e && 'active']}}">我发布的PK</view><view bindtap="{{f}}" class="{{['navigationItemTitle', 'data-v-6fa696de', g && 'active']}}">我邀请的PK</view></view><view class="slide data-v-6fa696de" style="{{'left:' + i + ';' + ('transition:' + 'left 0.3s ease-in-out')}}">{{h}}</view></view><view class="content data-v-6fa696de"><scroll-view scroll-y="true" class="scroll data-v-6fa696de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{k}}" lower-threshold="100" bindscrolltolower="{{l}}" refresher-triggered="{{m}}"><uni-card wx:for="{{j}}" wx:for-item="item" wx:key="n" class="data-v-6fa696de" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l"><view class="card data-v-6fa696de" bindtap="{{item.m}}"><view class="AnchorA data-v-6fa696de"><view class="AnchorAImg data-v-6fa696de"><image class="AnchorAImgcss data-v-6fa696de" src="{{item.a}}" mode="scaleToFill"/></view><image wx:if="{{item.b}}" class="Crown data-v-6fa696de" src="{{item.c}}" mode="scaleToFill"/><view class="AnchorAinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.d}}</view><view class="AnchorATime data-v-6fa696de">{{item.e}}</view><view class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.f}}K</view></view></view></view><view class="vstext data-v-6fa696de"><view class="Vtext data-v-6fa696de">V</view><view class="Stext data-v-6fa696de">S</view></view><view class="AnchorB data-v-6fa696de"><view class="AnchorBinfo data-v-6fa696de"><view class="AnchorAname data-v-6fa696de">{{item.g}}</view><view class="AnchorATime data-v-6fa696de">{{item.h}}</view><view class="AnchorAICon data-v-6fa696de"><view class="AnchorAIContext data-v-6fa696de">实际打金币:</view><view class="AnchorAIConNum data-v-6fa696de">{{item.i}}K</view></view></view><view class="AnchorAImg data-v-6fa696de"><image class="AnchorBImgcss data-v-6fa696de" src="{{item.j}}" mode="scaleToFill"/></view><image wx:if="{{item.k}}" class="Crown data-v-6fa696de" src="{{item.l}}" mode="scaleToFill"/></view></view></uni-card></scroll-view></view></view>
|
||||
@@ -1,53 +1,190 @@
|
||||
|
||||
.pkRecord.data-v-6fa696de{
|
||||
width: 100vw;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
padding-top: 40rpx;
|
||||
border-bottom: 1px solid #000000;
|
||||
.bg.data-v-6fa696de {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.content.data-v-6fa696de{
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
.bgImg.data-v-6fa696de {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.avatar.data-v-6fa696de{
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
font-size: 20rpx;
|
||||
background-color: aqua;
|
||||
.Return.data-v-6fa696de {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
}
|
||||
.Anchor.data-v-6fa696de{
|
||||
display: flex;
|
||||
.title.data-v-6fa696de {
|
||||
position: absolute;
|
||||
top: 120rpx;
|
||||
left: 315rpx;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: 500;
|
||||
}
|
||||
.AnchorInfo.data-v-6fa696de{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 10rpx;
|
||||
font-size: 20rpx;
|
||||
.ReturnImg.data-v-6fa696de {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.PkPosted.data-v-6fa696de{
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
width: 45%;
|
||||
border-right: 1px solid #000000;
|
||||
/* 导航栏 */
|
||||
.navigation.data-v-6fa696de {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
height: 68.7rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Navigation.data-v-6fa696de{
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 1px solid #000000;
|
||||
.navigationItem.data-v-6fa696de {
|
||||
width: 477.1rpx;
|
||||
height: 68.7rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #4fcacd;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
.navigationItemTitle.data-v-6fa696de {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #ffffff;
|
||||
}
|
||||
.slide.data-v-6fa696de {
|
||||
position: absolute;
|
||||
width: 238.55rpx;
|
||||
height: 68.7rpx;
|
||||
background-image: linear-gradient(135deg, #e4ffff, #ffffff);
|
||||
border-radius: 50rpx;
|
||||
text-align: center;
|
||||
line-height: 68.7rpx;
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #4fcacd;
|
||||
margin-left: -238.55rpx;
|
||||
}
|
||||
.content.data-v-6fa696de {
|
||||
position: absolute;
|
||||
top: 300rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.scroll.data-v-6fa696de {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
/* 卡片 */
|
||||
.card.data-v-6fa696de {
|
||||
width: 694.66rpx;
|
||||
height: 161.26rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 28.55rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorA.data-v-6fa696de {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorB.data-v-6fa696de {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.AnchorAImg.data-v-6fa696de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #b1b1b1;
|
||||
display: flex;
|
||||
}
|
||||
.AnchorAinfo.data-v-6fa696de {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.AnchorBinfo.data-v-6fa696de {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.AnchorAname.data-v-6fa696de {
|
||||
font-weight: 500;
|
||||
font-size: 31rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorATime.data-v-6fa696de {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAICon.data-v-6fa696de {
|
||||
display: flex;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.AnchorAIContext.data-v-6fa696de {
|
||||
font-weight: 400;
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
}
|
||||
.AnchorAIConNum.data-v-6fa696de {
|
||||
font-weight: bold;
|
||||
font-size: 23rpx;
|
||||
color: #161616;
|
||||
}
|
||||
.AnchorAImgcss.data-v-6fa696de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #f7da60 solid 2rpx;
|
||||
border-left: #ffeeab solid 2rpx;
|
||||
border-bottom: #ffeeab solid 2rpx;
|
||||
border-right: #f7da60 solid 2rpx;
|
||||
}
|
||||
.AnchorBImgcss.data-v-6fa696de {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50rpx;
|
||||
border-top: #ffc6ba solid 2rpx;
|
||||
border-left: #ffc6ba solid 2rpx;
|
||||
border-bottom: #5ddadd solid 2rpx;
|
||||
border-right: #5ddadd solid 2rpx;
|
||||
}
|
||||
.Crown.data-v-6fa696de{
|
||||
width: 45.8rpx;
|
||||
height: 39.12rpx;
|
||||
margin-left: -40rpx;
|
||||
margin-top: -100rpx;
|
||||
}
|
||||
.vstext.data-v-6fa696de {
|
||||
display: flex;
|
||||
}
|
||||
.Vtext.data-v-6fa696de {
|
||||
font-size: 45.8rpx;
|
||||
color: #f0836c;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-left: 26rpx;
|
||||
}
|
||||
.Stext.data-v-6fa696de {
|
||||
font-size: 45.8rpx;
|
||||
color: #58d8db;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-4e606fe0', F, 'Mask']}}" bindtap="{{G}}"><view catchtap="{{E}}" class="containers data-v-4e606fe0"><view class="container data-v-4e606fe0"><image class="Fork data-v-4e606fe0" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Titlecss data-v-4e606fe0"><view class="Star data-v-4e606fe0"></view><view class="Title data-v-4e606fe0"></view><view class="Star data-v-4e606fe0"></view></view><view class="NameAnchor data-v-4e606fe0"><input class="NameAnchorcss data-v-4e606fe0" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{d}}" placeholder="主播名称"/><view wx:if="{{e}}" class="Hint data-v-4e606fe0">请填写主播名称</view></view><view class="Accountnumber data-v-4e606fe0"><view class="Coins country data-v-4e606fe0"><wht-select wx:if="{{g}}" class="data-v-4e606fe0" style="width:350rpx" bindchange="{{f}}" u-i="4e606fe0-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-4e606fe0">请选择国家</view></view><view class="Gender data-v-4e606fe0"><view class="Gendercs data-v-4e606fe0"><view class="Gendercss data-v-4e606fe0"><wht-select wx:if="{{j}}" class="data-v-4e606fe0" style="width:300rpx" bindchange="{{i}}" u-i="4e606fe0-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-4e606fe0"><image wx:if="{{k}}" class="Gendericon data-v-4e606fe0" src="{{l}}" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-4e606fe0" src="{{n}}" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-4e606fe0" src="{{p}}" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-4e606fe0">请选择性别</view></view></view><view class="goldCoin data-v-4e606fe0"><view class="number-box data-v-4e606fe0"><view class="number-box-title data-v-4e606fe0">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-4e606fe0" u-i="4e606fe0-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">单位:</view><view class="number-box-unit data-v-4e606fe0">K</view></view><view wx:if="{{t}}" class="Hint data-v-4e606fe0">请填写金币数量</view></view><view class="time data-v-4e606fe0"><uni-datetime-picker wx:if="{{w}}" class="data-v-4e606fe0" u-i="4e606fe0-3" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/><view wx:if="{{x}}" class="Hint data-v-4e606fe0">请选择日期</view></view><view class="goldCoin data-v-4e606fe0"><view class="number-box data-v-4e606fe0"><view class="number-box-title data-v-4e606fe0">选择场数:</view><uni-number-box wx:if="{{z}}" class="data-v-4e606fe0" u-i="4e606fe0-4" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">次</view></view><view wx:if="{{A}}" class="Hint data-v-4e606fe0">请填写场数</view></view><view class="Remarkscss data-v-4e606fe0"><uni-easyinput wx:if="{{C}}" class="data-v-4e606fe0" u-i="4e606fe0-5" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></uni-easyinput></view><view class="Publish data-v-4e606fe0"><button bindtap="{{D}}" class="Publishcss data-v-4e606fe0">发布</button></view></view></view></view>
|
||||
<view wx:if="{{a}}" class="{{['data-v-4e606fe0', G, 'Mask']}}" bindtap="{{H}}"><view catchtap="{{F}}" class="containers data-v-4e606fe0"><view class="container data-v-4e606fe0"><image class="Fork data-v-4e606fe0" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Titlecss data-v-4e606fe0"><view class="Star data-v-4e606fe0"></view><view class="Title data-v-4e606fe0"></view><view class="Star data-v-4e606fe0"></view></view><view class="NameAnchor data-v-4e606fe0"><input class="NameAnchorcss data-v-4e606fe0" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{d}}" placeholder="主播名称" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-4e606fe0">请填写主播名称</view></view><view class="Accountnumber data-v-4e606fe0"><view class="Coins country data-v-4e606fe0"><wht-select wx:if="{{h}}" class="data-v-4e606fe0" style="width:350rpx" bindchange="{{g}}" u-i="4e606fe0-0" bind:__l="__l" u-p="{{h}}"/><view wx:if="{{i}}" class="Hint data-v-4e606fe0">请选择国家</view></view><view class="Gender data-v-4e606fe0"><view class="Gendercs data-v-4e606fe0"><view class="Gendercss data-v-4e606fe0"><wht-select wx:if="{{k}}" class="data-v-4e606fe0" style="width:300rpx" bindchange="{{j}}" u-i="4e606fe0-1" bind:__l="__l" u-p="{{k}}"/></view><view class="Gendericoncss data-v-4e606fe0"><image wx:if="{{l}}" class="Gendericon data-v-4e606fe0" src="{{m}}" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-4e606fe0" src="{{o}}" mode="scaleToFill"/><image wx:if="{{p}}" class="Gendericon data-v-4e606fe0" src="{{q}}" mode="scaleToFill"/></view></view><view wx:if="{{r}}" class="Hintcss data-v-4e606fe0">请选择性别</view></view></view><view class="goldCoin data-v-4e606fe0"><view class="number-box data-v-4e606fe0"><view class="number-box-title data-v-4e606fe0">金币数量:</view><uni-number-box wx:if="{{t}}" class="data-v-4e606fe0" u-i="4e606fe0-2" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">单位:</view><view class="number-box-unit data-v-4e606fe0">K</view></view><view wx:if="{{v}}" class="Hint data-v-4e606fe0">请填写金币数量</view></view><view class="time data-v-4e606fe0"><uni-datetime-picker wx:if="{{x}}" class="data-v-4e606fe0" u-i="4e606fe0-3" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"/><view wx:if="{{y}}" class="Hint data-v-4e606fe0">请选择日期</view></view><view class="goldCoin data-v-4e606fe0"><view class="number-box data-v-4e606fe0"><view class="number-box-title data-v-4e606fe0">选择场数:</view><uni-number-box wx:if="{{A}}" class="data-v-4e606fe0" u-i="4e606fe0-4" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">次</view></view><view wx:if="{{B}}" class="Hint data-v-4e606fe0">请填写场数</view></view><view class="Remarkscss data-v-4e606fe0"><uni-easyinput wx:if="{{D}}" class="data-v-4e606fe0" u-i="4e606fe0-5" bind:__l="__l" bindupdateModelValue="{{C}}" u-p="{{D}}"></uni-easyinput></view><view class="Publish data-v-4e606fe0"><button bindtap="{{E}}" class="Publishcss data-v-4e606fe0">发布</button></view></view></view></view>
|
||||
@@ -99,9 +99,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: common_vendor.t($data.SenderData.anchorId),
|
||||
f: $data.SenderData.sex === "1"
|
||||
}, $data.SenderData.sex === "1" ? {
|
||||
g: common_assets._imports_1$2
|
||||
g: common_assets._imports_2
|
||||
} : {
|
||||
h: common_assets._imports_0$2
|
||||
h: common_assets._imports_3
|
||||
}, {
|
||||
i: common_vendor.t($data.SenderData.country),
|
||||
j: common_vendor.t($options.formatDate($data.SenderData.pkTime)),
|
||||
@@ -113,9 +113,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
p: common_vendor.t($data.ReceiverData.anchorId),
|
||||
q: $data.ReceiverData.sex === "1"
|
||||
}, $data.ReceiverData.sex === "1" ? {
|
||||
r: common_assets._imports_1$2
|
||||
r: common_assets._imports_2
|
||||
} : {
|
||||
s: common_assets._imports_0$2
|
||||
s: common_assets._imports_3
|
||||
}, {
|
||||
t: common_vendor.t($data.ReceiverData.country),
|
||||
v: common_vendor.t($options.formatDate($data.ReceiverData.pkTime)),
|
||||
|
||||
@@ -134,9 +134,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: common_vendor.t($data.item.anchorId),
|
||||
f: $data.item.sex === "1"
|
||||
}, $data.item.sex === "1" ? {
|
||||
g: common_assets._imports_1$2
|
||||
g: common_assets._imports_2
|
||||
} : {
|
||||
h: common_assets._imports_0$2
|
||||
h: common_assets._imports_3
|
||||
}, {
|
||||
i: common_vendor.t($data.item.country),
|
||||
j: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
|
||||
125
unpackage/dist/dev/mp-weixin/recompose.js
vendored
125
unpackage/dist/dev/mp-weixin/recompose.js
vendored
@@ -2,11 +2,12 @@
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
const components_NationalDictionary = require("./components/NationalDictionary.js");
|
||||
const components_request = require("./components/request.js");
|
||||
const components_formatDate = require("./components/formatDate.js");
|
||||
const common_assets = require("./common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
genders: 0,
|
||||
genders: "",
|
||||
//性别
|
||||
Gender: [
|
||||
{ label: "男", value: 1 },
|
||||
@@ -27,7 +28,7 @@ const _sfc_main = {
|
||||
Hint: false,
|
||||
datetimesingle: "",
|
||||
//日期
|
||||
id: null,
|
||||
id: "",
|
||||
//用户id
|
||||
sendingTime: "",
|
||||
//发送时间
|
||||
@@ -37,8 +38,19 @@ const _sfc_main = {
|
||||
},
|
||||
props: {
|
||||
message: {
|
||||
type: Object,
|
||||
required: true
|
||||
type: Object
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
message(newQuestion, oldQuestion) {
|
||||
this.numberCoins = newQuestion.coin;
|
||||
this.session = newQuestion.pkNumber;
|
||||
this.remarks = newQuestion.remark;
|
||||
this.datetimesingle = components_formatDate.formatDate(newQuestion.pkTime);
|
||||
this.id = newQuestion.senderId;
|
||||
this.nameAnchor = newQuestion.anchorId;
|
||||
this.countrys = newQuestion.country;
|
||||
this.genders = newQuestion.sex === "1" ? 1 : 2;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -50,20 +62,23 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//性别
|
||||
gender(item) {
|
||||
this.genders = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:181", item);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:199", item);
|
||||
},
|
||||
//日期
|
||||
country(item) {
|
||||
this.countrys = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:186", item);
|
||||
},
|
||||
handleOverlayClick(event) {
|
||||
if (event.target === this.$el) {
|
||||
this.Display = false;
|
||||
this.Hint = false;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:204", item);
|
||||
},
|
||||
// //主播名称
|
||||
// handleOverlayClick(event) {
|
||||
// if (event.target === this.$el) {
|
||||
// this.Display = false;
|
||||
// this.Hint = false;
|
||||
// }
|
||||
// },
|
||||
open() {
|
||||
if (this.Display) {
|
||||
this.Display = false;
|
||||
@@ -84,8 +99,7 @@ const _sfc_main = {
|
||||
this.nameAnchor = event.target.value;
|
||||
},
|
||||
async Publish() {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:216", "````````````````````````````````````````````", message);
|
||||
if (this.nameAnchor === "" || this.genders === "" || this.numberCoins === "" || this.countrys === "" || this.datetimesingle === "" || this.session === "") {
|
||||
if (this.nameAnchor == "" && this.nameAnchor == null || this.genders == "" && this.genders == null || this.numberCoins == "" && this.numberCoins == null || this.datetimesingle == "" && this.datetimesingle == null || this.countrys == "" && his.countrys == null || this.datetimesingle == "" && this.datetimesingle == null || this.session == "" && this.session == null) {
|
||||
this.Hint = true;
|
||||
return;
|
||||
}
|
||||
@@ -170,78 +184,81 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: $data.Display
|
||||
}, $data.Display ? common_vendor.e({
|
||||
b: common_vendor.o$1(($event) => $options.open()),
|
||||
c: common_assets._imports_0$4,
|
||||
c: common_assets._imports_0$2,
|
||||
d: common_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
|
||||
e: $data.nameAnchor === "" && $data.Hint === true
|
||||
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
|
||||
f: common_vendor.o$1($options.country),
|
||||
g: common_vendor.p({
|
||||
e: $data.nameAnchor,
|
||||
f: $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true
|
||||
}, $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true ? {} : {}, {
|
||||
g: common_vendor.o$1($options.country),
|
||||
h: common_vendor.p({
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#666666",
|
||||
textColor: "#666666",
|
||||
borderColor: "#ffffff",
|
||||
options: $data.Country,
|
||||
filterable: $data.filterable,
|
||||
placeholder: "请选择国家"
|
||||
placeholder: "请选择国家",
|
||||
value: $data.countrys
|
||||
}),
|
||||
h: $data.countrys === "" && $data.Hint === true
|
||||
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
|
||||
i: common_vendor.o$1($options.gender),
|
||||
j: common_vendor.p({
|
||||
i: $data.countrys === "" || $data.countrys === null && $data.Hint === true
|
||||
}, $data.countrys === "" || $data.countrys === null && $data.Hint === true ? {} : {}, {
|
||||
j: common_vendor.o$1($options.gender),
|
||||
k: common_vendor.p({
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#666666",
|
||||
textColor: "#666666",
|
||||
borderColor: "#ffffff",
|
||||
options: $data.Gender,
|
||||
placeholder: "性别"
|
||||
placeholder: "性别",
|
||||
value: $props.message.sex === "1" ? 1 : 2
|
||||
}),
|
||||
k: $data.genders === 0
|
||||
}, $data.genders === 0 ? {
|
||||
l: common_assets._imports_1$3
|
||||
l: $data.genders === 0 || $props.message.sex === "0"
|
||||
}, $data.genders === 0 || $props.message.sex === "0" ? {
|
||||
m: common_assets._imports_1$2
|
||||
} : {}, {
|
||||
m: $data.genders === 1
|
||||
}, $data.genders === 1 ? {
|
||||
n: common_assets._imports_2$1
|
||||
n: $data.genders === 1 || $props.message.sex === "1"
|
||||
}, $data.genders === 1 || $props.message.sex === "1" ? {
|
||||
o: common_assets._imports_2$3
|
||||
} : {}, {
|
||||
o: $data.genders === 2
|
||||
}, $data.genders === 2 ? {
|
||||
p: common_assets._imports_3$1
|
||||
p: $data.genders === 2 || $props.message.sex === "2"
|
||||
}, $data.genders === 2 || $props.message.sex === "2" ? {
|
||||
q: common_assets._imports_3$2
|
||||
} : {}, {
|
||||
q: $data.genders === 0 && $data.Hint === true
|
||||
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
|
||||
r: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
s: common_vendor.p({
|
||||
r: $data.genders === 0 || $data.genders === null && $data.Hint === true
|
||||
}, $data.genders === 0 || $data.genders === null && $data.Hint === true ? {} : {}, {
|
||||
s: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
t: common_vendor.p({
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.numberCoins
|
||||
}),
|
||||
t: $data.numberCoins === "" && $data.Hint === true
|
||||
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
|
||||
v: common_vendor.o$1(($event) => $data.datetimesingle = $event),
|
||||
w: common_vendor.p({
|
||||
v: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
|
||||
}, $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true ? {} : {}, {
|
||||
w: common_vendor.o$1(($event) => $data.datetimesingle = $event),
|
||||
x: common_vendor.p({
|
||||
type: "datetime",
|
||||
["hide-second"]: "true",
|
||||
modelValue: $data.datetimesingle
|
||||
}),
|
||||
x: $data.datetimesingle === "" && $data.Hint === true
|
||||
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
|
||||
y: common_vendor.o$1(($event) => $data.session = $event),
|
||||
z: common_vendor.p({
|
||||
y: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
|
||||
}, $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true ? {} : {}, {
|
||||
z: common_vendor.o$1(($event) => $data.session = $event),
|
||||
A: common_vendor.p({
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.session
|
||||
}),
|
||||
A: $data.session === "" && $data.Hint === true
|
||||
}, $data.session === "" && $data.Hint === true ? {} : {}, {
|
||||
B: common_vendor.o$1(($event) => $data.remarks = $event),
|
||||
C: common_vendor.p({
|
||||
B: $data.session === "" || $data.session === null && $data.Hint === true
|
||||
}, $data.session === "" || $data.session === null && $data.Hint === true ? {} : {}, {
|
||||
C: common_vendor.o$1(($event) => $data.remarks = $event),
|
||||
D: common_vendor.p({
|
||||
type: "textarea",
|
||||
placeholder: "备注",
|
||||
modelValue: $data.remarks
|
||||
}),
|
||||
D: common_vendor.o$1(($event) => $options.Publish()),
|
||||
E: common_vendor.o$1(() => {
|
||||
E: common_vendor.o$1(($event) => $options.Publish()),
|
||||
F: common_vendor.o$1(() => {
|
||||
}),
|
||||
F: common_vendor.n($data.Display ? "create-module" : "close-animation "),
|
||||
G: common_vendor.o$1(($event) => $options.open())
|
||||
G: common_vendor.n($data.Display ? "create-module" : "close-animation "),
|
||||
H: common_vendor.o$1(($event) => $options.open())
|
||||
}) : {});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4e606fe0"]]);
|
||||
|
||||
BIN
unpackage/dist/dev/mp-weixin/static/Crown.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/Crown.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Reference in New Issue
Block a user