优化页面

This commit is contained in:
pengxiaolong
2025-06-13 22:13:15 +08:00
parent de99d32c01
commit 0f2a48b450
86 changed files with 4383 additions and 671 deletions

View File

@@ -24,6 +24,12 @@
"navigationBarTitleText": "联系客服"
}
},
{
"path": "pages/Mine/minecomponents/anchorLibrary",
"style": {
"navigationBarTitleText": "主播库"
}
},
{
"path": "pages/Mine/minecomponents/pkInformation",
"style": {

View File

@@ -246,9 +246,9 @@ export default {
});
},
});
setTimeout(() => {
uni.switchTab({ url: "/pages/Home/Home" });
}, 1000);
// setTimeout(() => {
// uni.switchTab({ url: "/pages/Home/Home" });
// }, 1000);
},
methods: {
//关闭弹窗(取消)
@@ -563,6 +563,7 @@ export default {
font-size: 31rpx;
color: #161616;
line-height: 38rpx;
margin-bottom: 20rpx;
}
.Genderimg {
width: 15rpx;

View File

@@ -1,113 +1,183 @@
<template>
<view class="container">
<view class="bg">
<image class="bgImg" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill" />
</view>
<scroll-view scroll-y="true" class="scroll">
<view class="container">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="PersonalInformation">
<view class="header">
<image :src="userinfo.headerIcon" style="width: 144.5rpx; height: 144.5rpx; border-radius: 72.25rpx;" mode="scaleToFill" class="headerIcon" />
<view class="PersonalInformation">
<view class="header">
<image
:src="userinfo.headerIcon"
style="width: 144.5rpx; height: 144.5rpx; border-radius: 72.25rpx"
mode="scaleToFill"
class="headerIcon"
/>
</view>
<view>
<view class="name">{{ userinfo.nickName }}</view>
</view>
<!-- 签到 -->
<view class="Sign" @click="sign" v-if="SignStatus === true">签到</view>
<view class="Sign" v-if="SignStatus === false">已签到</view>
<!-- -->
<view class="Settings" @click="goSetting">
<image
class="SettingsIcon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Settings.png"
mode="scaleToFill"
/>
</view>
</view>
<view>
<view class="name">{{ userinfo.nickName }}</view>
</view>
<view class="Settings" @click="goSetting">
<image class="SettingsIcon" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Settings.png" mode="scaleToFill" />
</view>
</view>
<!-- PK信息 -->
<view class="content">
<view class="PKInformation" >
<view class="title">
<view class="titleText">PK信息</view>
<view class="titleLine"></view>
<view class="titleMore"
@click="pkInformation"
>更多PK信息<image
style="width: 10.5rpx; height: 20.04rpx; margin-left: 10rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
<view class="content">
<!-- 主播库 -->
<view class="PKInformation">
<view class="title">
<view class="titleText">主播库</view>
<view class="titleLine"></view>
<view class="AnchorMore" @click="anchorLibrary"
>更多主播信息<image
style="width: 10.5rpx; height: 20.04rpx; margin-left: 10rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<view class="card">
<view
class="cardContent"
v-for="(item, index) in AnchorList"
:key="index"
v-if="AnchorList.length !== 0"
>
<view class="cardImg">
<image
:src="item.headerIcon"
style="width: 80rpx; height: 80rpx; border-radius: 72.25rpx"
mode="scaleToFill"
/>
</view>
<view class="Time">{{ item.anchorId }}</view>
<view class="gold"> {{ item.country }}</view>
</view>
<view v-if="AnchorList.length === 0" class="no-content">暂无内容</view>
</view>
</view>
<!-- PK信息 -->
<view class="PKInformation">
<view class="title">
<view class="titleText">PK信息</view>
<view class="titleLine"></view>
<view class="titleMore" @click="pkInformation"
>更多PK信息<image
style="width: 10.5rpx; height: 20.04rpx; margin-left: 10rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<view class="card">
<view
class="cardContent"
v-for="(item, index) in pkInformationdata"
:key="index"
v-if="pkInformationdata.length !== 0"
>
<view class="cardImg">
<image
:src="item.anchorIcon"
style="width: 80rpx; height: 80rpx; border-radius: 72.25rpx"
mode="scaleToFill"
/>
</view>
<view class="Time">{{ formatDate(item.pkTime) }}</view>
<view class="gold"> {{ item.coin }}K</view>
</view>
<view v-if="pkInformationdata.length === 0" class="no-content">暂无内容</view>
</view>
</view>
<!-- PK记录 -->
<view class="myPkRecord">
<view class="title">
<view class="titleText">我的PK记录</view>
<view class="titleLine"></view>
<view class="myPkRecordMore" @click="pkRecord"
>更多PK记录<image
style="width: 10.5rpx; height: 20.04rpx; margin-left: 10rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<view class="card">
<view
class="cardContent"
v-for="(item, index) in myPkRecorddata"
:key="index"
v-if="myPkRecorddata.length !== 0"
>
<view class="cardImg">
<image
style="width: 80rpx; height: 80rpx; border-radius: 72.25rpx"
:src="item.anchorIconA"
mode="scaleToFill"
/>
</view>
<view class="Failure" v-if="item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== ''">
失败
</view>
<view class="Result" v-else-if="item.winnerAnchorId === item.anchorIdA">
胜利
</view>
<view class="Session"> {{ item.pkNumber }} </view>
<view class="Time">{{ TimeFormatting(item.pkTime) }}</view>
</view>
<view v-if="myPkRecorddata.length === 0" class="no-content">暂无内容</view>
</view>
</view>
<view class="PKInformation">
<view class="title">
<view class="titleText">专属客服</view>
<view class="titleLine"></view>
</view>
</view>
<view class="card">
<view class="cardContent" v-for="(item,index) in pkInformationdata" :key="index" v-if="pkInformationdata.length !== 0">
<view class="cardImg">
<image :src="item.anchorIcon" style="width: 80rpx; height: 80rpx; border-radius: 72.25rpx;" mode="scaleToFill" />
</view>
<view class="Time">{{ formatDate(item.pkTime) }}</view>
<view class="gold"> {{item.coin}}K</view>
</view>
<view v-if="pkInformationdata.length === 0" class="no-content">暂无内容</view>
</view>
</view>
<!-- PK记录 -->
<view class="myPkRecord" >
<view class="title">
<view class="titleText">我的PK记录</view>
<view class="titleLine"></view>
<view class="myPkRecordMore"
@click="pkRecord">更多PK记录<image
style="width: 10.5rpx; height: 20.04rpx; margin-left: 10rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
<view class="service" @click="contact">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/service.png"
mode="scaleToFill"
/>
<view class="cardtext">联系客服</view>
</view>
<view class="service" @click="serviceProtocol">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Agreement.png"
mode="scaleToFill"
/>
<view class="cardtext">服务协议</view>
</view>
<view class="service" @click="logout">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/logout.png"
mode="scaleToFill"
/>
<view class="cardtext">退出登录</view>
</view>
</view>
<view class="card">
<view class="cardContent"v-for="(item,index) in myPkRecorddata" :key="index" v-if="myPkRecorddata.length !== 0">
<view class="cardImg">
<image style="width: 80rpx; height: 80rpx;border-radius: 72.25rpx;" :src="item.anchorIconA" mode="scaleToFill" />
</view>
<view class="Failure"v-if="item.winnerAnchorId !== item.anchorIdA">
失败
</view>
<view class="Result" v-else-if="item.winnerAnchorId === item.anchorIdA"> 胜利 </view>
<view class="Session"> {{item.pkNumber}} </view>
<view class="Time">{{TimeFormatting(item.pkTime)}}</view>
</view>
<view v-if="myPkRecorddata.length === 0" class="no-content">暂无内容</view>
</view>
</view>
<view class="PKInformation">
<view class="title">
<view class="titleText">专属客服</view>
<view class="titleLine"></view>
</view>
</view>
<view class="card">
<view class="service" @click="contact">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/service.png"
mode="scaleToFill"
/>
<view class="cardtext">联系客服</view>
</view>
<view class="service" @click="serviceProtocol">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Agreement.png"
mode="scaleToFill"
/>
<view class="cardtext">服务协议</view>
</view>
<view class="service" @click="logout">
<image
style="width: 48.28rpx; height: 48.09rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/logout.png"
mode="scaleToFill"
/>
<view class="cardtext">退出登录</view>
</view>
</view>
<view class="copyright">版权所有 © 2025 ...................</view>
</view>
</view>
<view class="copyright">版权所有 © 2025 ...................</view>
</scroll-view>
<view class="tabBar">
<tabBar :tabIndex="4"></tabBar>
</view>
@@ -126,6 +196,8 @@ export default {
userinfo: {},
pkInformationdata: [],
myPkRecorddata: [],
SignStatus: null,
AnchorList: [],
};
},
onShow() {
@@ -136,52 +208,115 @@ export default {
console.log(this.userinfo);
this.getpkInformation();
this.getmyPkRecord();
this.getSignStatus();
this.getAnchorList();
},
});
},
methods: {
// 获取主播列表
getAnchorList() {
const res = request({
url: "anchor/list",
method: "POST",
data: {
id: this.userinfo.id,
},
userInfo: true,
}).then((res) => {
if (res.code == 200) {
this.AnchorList = res.data.slice(0, 4);
} else {
console.log(res.msg);
}
});
},
// 获取签到状态
getSignStatus() {
const res = request({
url: "user/checkSignStatus",
method: "GET",
data: {
userId: this.userinfo.id,
},
userInfo: true,
}).then((res) => {
if (res.code == 200) {
this.SignStatus = res.data;
} else {
console.log(res.msg);
}
});
},
//签到
sign() {
const res = request({
url: "user/signIn",
method: "POST",
data: {
userId: this.userinfo.id,
},
userInfo: true,
}).then((res) => {
if (res.code == 200) {
uni.showToast({
title: "签到成功",
icon: "none",
duration: 2000,
});
this.getSignStatus();
} else {
console.log(res.msg);
}
});
},
formatDate: formatDate,
TimeFormatting: TimeFormatting,
//获取pk信息
getpkInformation(){
getpkInformation() {
const res = request({
url: "user/queryMyAllPkData",
method: "POST",
data: {
userId: this.userinfo.id,
page:0,
size:4
},
userInfo: true,
}).then((res) => {
if (res.code == 200) {
url: "user/queryMyAllPkData",
method: "POST",
data: {
userId: this.userinfo.id,
page: 0,
size: 4,
},
userInfo: true,
}).then((res) => {
if (res.code == 200) {
this.pkInformationdata = res.data;
console.log(this.pkInformationdata);
}else {
} else {
console.log(res.msg);
}
});
}
});
},
//获取pk记录
getmyPkRecord(){
getmyPkRecord() {
const ress = request({
url: "user/handlePkInfo",
method: "POST",
data: {
type:1,
userId: this.userinfo.id,
page:0,
size:4
},
userInfo: false,
}).then((res) => {
if (res.code == 200) {
url: "user/handlePkInfo",
method: "POST",
data: {
type: 1,
userId: this.userinfo.id,
page: 0,
size: 4,
},
userInfo: false,
}).then((res) => {
if (res.code == 200) {
this.myPkRecorddata = res.data;
console.log(this.myPkRecorddata);
}else {
} else {
console.log(res.msg);
}
});
}
});
},
// 跳转到主播库页面
anchorLibrary() {
uni.navigateTo({
url: "/pages/Mine/minecomponents/anchorLibrary",
});
},
// 跳转到PK信息页面
pkInformation() {
@@ -214,8 +349,8 @@ export default {
});
},
// 退出登录
logout(){
uni.clearStorage()
logout() {
uni.clearStorage();
TUILogin.logout();
uni.reLaunch({
url: "/pages/login/login",
@@ -268,14 +403,25 @@ export default {
height: 100%;
}
.name {
width: 400rpx;
width: 280rpx;
font-size: 36.26rpx;
font-weight: 500;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.Sign {
width: 100rpx;
height: 50rpx;
background-color: #91e3e4;
border-radius: 20rpx;
font-size: 20rpx;
color: #fff;
text-align: center;
line-height: 50rpx;
margin-left: 30rpx;
}
.content {
position: absolute;
top: 294.5rpx;
@@ -286,6 +432,16 @@ export default {
flex-direction: column;
align-items: center;
}
.scroll {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.PKInformation {
margin-top: 48.5rpx;
}
@@ -311,13 +467,18 @@ export default {
border-radius: 7.16rpx 0rpx 7.16rpx 7.16rpx;
background-color: #91e3e48b;
}
.AnchorMore {
margin-left: 390rpx;
font-size: 28.63rpx;
color: #333333;
}
.titleMore {
margin-left: 400rpx;
font-size: 28.63rpx;
color: #333333;
}
.myPkRecordMore {
margin-left:330rpx;
margin-left: 330rpx;
font-size: 28.63rpx;
color: #333333;
}
@@ -404,17 +565,17 @@ export default {
color: #333333;
font-weight: 400;
}
.copyright{
.copyright {
font-size: 23rpx;
color: #929292;
text-align: center;
position: fixed;
bottom: 250rpx;
position: absolute;
bottom: 0rpx;
left: 0;
right: 0;
height: 50rpx;
}
.no-content{
.no-content {
width: 100%;
height: 100%;
display: flex;

View File

@@ -67,6 +67,10 @@
<scroll-view
scroll-y="true"
class="scroll"
refresher-enabled="true"
refresher-threshold="40"
@refresherrefresh="onRefresherRefresh"
:refresher-triggered="triggered"
>
<uni-card v-for="(items,index) in coinNumlist" :key="index">
<view class="contentcard">
@@ -81,7 +85,6 @@
</view>
</uni-card>
</scroll-view>
</view>
</view>
@@ -96,13 +99,8 @@ export default {
return {
title: "Hello",
item: {},
coinNumlist: [{
winnerAnchorId: 1,
anchorIdA: 1,
anchorIdB: 2,
anchorCoinA: 2,
anchorCoinB: 3,
}],
coinNumlist: [],
triggered: false,
};
},
onLoad(options) {
@@ -112,14 +110,20 @@ export default {
eventChannel.on("itemDetail", (data) => {
this.item = data.item; // 将接收到的数据赋值给item
console.log("接收到的数据:", this.item);
// this.getCoinNum(this.item)
this.getCoinNum(this.item)
});
},
methods: {
// 下拉刷新
onRefresherRefresh(){
this.triggered = true;
this.coinNumlist = [];
this.getCoinNum(this.item)
},
// 获取具体金币数量
getCoinNum(item) {
const res = request({
url: "user/pkRecordDetail",
url: "pk/fetchDetailPkDataWithId",
method: "POST",
data: {
id: item.id,
@@ -128,6 +132,7 @@ export default {
}).then((res) => {
if (res.code == 200) {
this.coinNumlist = res.data;
this.triggered = false;
}else{
console.log("获取金币数量失败")
}

View File

@@ -0,0 +1,458 @@
<template>
<view
v-if="Display"
:class="[Display ? 'create-module' : 'close-animation ', 'Mask']"
@click="open()"
>
<view @click.stop class="containers">
<view class="container">
<image
class="Fork"
@click="open()"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png"
mode="scaleToFill"
/>
<view class="Titlecss">
<view class="Star"></view>
<view class="Title">添加我的主播</view>
<view class="Star"></view>
</view>
<!-- <view class="Individual"> -->
<view class="NameAnchor">
<input
class="NameAnchorcss"
cursor-color="#666666"
placeholder-style="color:#666666"
@input="NameAnchor"
placeholder="主播名称"
@blur="blur"
/>
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
>请检查主播名称是否正确</view
>
</view>
<!-- </view> -->
<view class="Accountnumber">
<view class="Coins country">
<wht-select
style="width: 350rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#ffffff"
@change="country"
:options="Country"
:filterable="filterable"
placeholder="请选择国家"
/>
<view v-if="countrys === '' && Hint === true" class="Hint">请选择国家</view>
</view>
<view class="Gender">
<view class="Gendercs">
<view class="Gendercss">
<wht-select
style="width: 300rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#ffffff"
@change="gender"
:options="Gender"
placeholder="性别"
/>
</view>
<view class="Gendericoncss">
<image
v-if="genders === 0"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png"
mode="scaleToFill"
/>
<image
v-if="genders === 1"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png"
mode="scaleToFill"
/>
<image
v-if="genders === 2"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png"
mode="scaleToFill"
/>
</view>
</view>
<view v-if="genders === 0 && Hint === true" class="Hintcss">请选择性别</view>
</view>
</view>
<view class="Publish">
<button @click="Publish()" class="Publishcss">添加主播</button>
</view>
</view>
</view>
</view>
</template>
<script>
import optionsArray from "../../../../components/NationalDictionary.js";
import request from "../../../../components/request.js";
export default {
data() {
return {
genders: 0, //性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 },
],
Country: optionsArray,
countrys: "", //国家
nameAnchor: "", //主播名称
Display: false,
Hint: false,
id: null, //用户id
sendingTime: "", //发送时间
filterable: true, //是否可搜索
AnchorProfilePicture: "", //主播头像
};
},
mounted() {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.id = res.data.id;
},
});
},
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;
}
},
open() {
if (this.Display) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.countrys = "";
} else {
this.Display = true;
}
},
//获取主播名称以及头像地址
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
uni.showLoading({
title: "正在验证主播",
mask: true,
});
uni.request({
url: "https://python.yolojt.com/api/" + this.nameAnchor,
success: (res) => {
if (res.data.code === 200) {
uni.hideLoading();
uni.showToast({
title: "查询成功",
icon: "none",
duration: 3000,
});
this.AnchorProfilePicture = res.data.data;
} else {
uni.hideLoading();
uni.showToast({
title: "未查询到该主播",
icon: "none",
duration: 3000,
});
}
},
fail: function (res) {
uni.hideLoading();
uni.showToast({
title: "网络请求失败",
icon: "none",
duration: 3000,
});
},
});
} else {
return;
}
},
async Publish() {
//判断是否为空
if (
this.nameAnchor === "" ||
this.genders === 0 ||
this.countrys === "" ||
this.AnchorProfilePicture === ""
) {
this.Hint = true;
return;
}
//发送请求
uni.showLoading({
title: "添加中...",
mask: true,
});
const res = await request({
url: "anchor/add",
method: "POST",
data: {
anchorId:this.nameAnchor,
headerIcon: this.AnchorProfilePicture,
gender:this.genders,
country:this.countrys,
createUserId: this.id,
},
userInfo: true,
}).then((res) => {
if (res.code === 200) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.AnchorProfilePicture = "";
uni.hideLoading();
uni.showToast({
title: "添加成功",
icon: "success",
duration: 2000,
});
this.$emit('Refresh');
} else {
uni.hideLoading();
uni.showToast({
title: "添加失败"+res.msg,
icon: "none",
duration: 2000,
});
}
});
},
},
};
</script>
<style scoped>
/* 定义动画 */
/* 原始进入动画 */
@keyframes slide-in {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* 进入动画类 */
.create-module {
animation: slide-in 0.3s ease-in-out;
}
.Mask {
width: 100vw;
height: 100vh;
background: #00000076;
display: flex;
flex-direction: column-reverse;
}
.Hint {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 10rpx;
}
.Hintcss {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 20rpx;
}
.containers {
background-color: #ffffff;
border-radius: 50rpx;
}
.container {
display: flex;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);
background-size: 100% 100%;
flex-direction: column;
width: 100%;
height: 1000rpx;
border-radius: 50rpx;
box-shadow: 0 0 10rpx #ccc;
}
.Fork {
width: 46rpx;
height: 46rpx;
margin-top: 20rpx;
/* margin-bottom: 40rpx; */
margin-left: 90%;
}
.Titlecss {
width: 100%;
height: 70rpx;
display: flex;
justify-content: center;
align-items: center;
}
.Star {
width: 50rpx;
height: 50rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);
background-size: 100% 100%;
}
.Title {
width: 430rpx;
height: 70rpx;
/* background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png); */
background-size: 100% 200%;
background-position: 0 100%;
margin-left: 26rpx;
margin-right: 26rpx;
font-size:50rpx;
line-height: 70rpx;
background: linear-gradient(135deg, #019fa1, #9ddbdc);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
font-weight: bold;
text-align: center;
font-style: italic;
}
.Individual {
display: flex;
/* justify-content: center; */
}
.NameAnchor {
width: 90%;
margin: 40rpx;
}
.time {
width: 90%;
margin-left: 5%;
margin-top: 50rpx;
}
.NameAnchorcss {
width: 99%;
height: 85rpx;
background-color: #ffffff;
border: 1rpx solid #bfbfbf;
border-radius: 10rpx;
text-align: center;
}
.Gender {
width: 310rpx;
display: flex;
flex-direction: column;
justify-content: center;
}
.Gendercs {
display: flex;
justify-content: center;
/* align-items: center; */
}
.Gendercss {
width: 200rpx;
height: 60rpx;
}
.Gendericoncss {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.Accountnumber {
display: flex;
justify-content: center;
margin-bottom: 60rpx;
margin-top: 50rpx;
}
.Coins {
width: 330rpx;
height: 65rpx;
/* display: flex; */
margin-right: 50rpx;
/* flex-direction: column; */
}
.country {
margin-left: 10rpx;
}
.goldCoin {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
}
.number-box {
display: flex;
justify-content: center;
text-align: center;
}
.number-box-title {
color: #191919;
font-size: 30rpx;
margin-right: 22rpx;
margin-left: 17rpx;
}
.number-box-unit {
color: #03aba8;
width: 48rpx;
height: 48rpx;
border: 1rpx solid #03aba8;
border-radius: 50%;
line-height: 48rpx;
text-align: center;
/* color: #003cff5a; */
}
.Publish {
margin-top: 300rpx;
margin-bottom: 40rpx;
width: 90%;
margin-left: 5%;
}
.Publishcss {
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
/* color: #33ff00; */
color: #ffffff;
font-weight: bold;
border-radius: 50rpx;
}
</style>

View File

@@ -0,0 +1,359 @@
<template>
<view class="anchor-library">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="Return" @click="onBack">
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
<view class="title">主播库</view>
<view class="content">
<scroll-view
scroll-y="true"
class="scroll"
refresher-enabled="true"
refresher-threshold="40"
@refresherrefresh="onRefresherRefresh"
lower-threshold="100"
:refresher-triggered="triggered"
>
<uni-card class="card" v-for="(item, index) in AnchorList" :key="index">
<view class="Profile">
<image
:src="item.headerIcon"
style="width: 89.12rpx; height: 89.12rpx; border-radius: 72.25rpx"
mode="scaleToFill"
/>
</view>
<view class="Individual">
<view class="Name">{{ item.anchorId }}</view>
<view class="Label">
<view>
<view
:class="{
Gendermale: item.gender === 1,
Genderfemale: item.gender === 2,
}"
>
<image
v-if="item.gender === 2"
class="Genderimg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png"
mode="scaleToFill"
/>
<image
v-else
class="Genderimg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png"
mode="scaleToFill"
/>
<view class="age">{{ item.gender === 1 ? "男" : "女" }}</view>
</view>
</view>
<view class="state">{{ item.country }}</view>
</view>
</view>
<!-- <view class="handle"> -->
<view class="handle">
<view class="recompose" @click="onRecompose(item)">
<image
style="width: 46rpx; height: 46rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/recompose.png"
mode="scaleToFill"
/>
</view>
<view class="expurgate" @click="onExpurgate(item)">
<image
style="width: 46rpx; height: 46rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/expurgate.png"
mode="scaleToFill"
/>
</view>
</view>
</uni-card>
</scroll-view>
</view>
<view class="addition" @click="openPopupQuantity()"> </view>
</view>
<anchorLibrary class="createModule" ref="createModule" @Refresh="getAnchorList"></anchorLibrary>
<modifyStreamer ref="modifyStreamer" class="createModule" :message="modifyStreamerMessage" @Refresh="getAnchorList"></modifyStreamer>
</template>
<script>
import request from "../../../components/request.js";
import anchorLibrary from "./addStreamer/addStreamer.vue";
import modifyStreamer from "./modifyStreamer/modifyStreamer.vue";
export default {
data() {
return {
userinfo: {},
AnchorList: [],
triggered: false,
modifyStreamerMessage: {},
};
},
onLoad() {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.userinfo = res.data;
console.log(this.userinfo);
this.getAnchorList();
},
});
},
methods: {
// 重新编辑主播信息
onRecompose(item) {
this.modifyStreamerMessage = item;
this.$refs.modifyStreamer.open();
},
// 删除主播信息
onExpurgate(item) {
const res = request({
url: "anchor/deleteMyAnchor",
method: "POST",
data: {
id: item.id,
},
userInfo: true,
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
uni.showToast({
title: "删除成功",
icon: "success",
duration: 2000,
});
this.getAnchorList();
} else {
uni.showToast({
title: res.msg,
icon: "success",
duration: 2000,
});
}
});
},
//获取主播列表
getAnchorList() {
const res = request({
url: "anchor/list",
method: "POST",
data: {
id: this.userinfo.id,
},
userInfo: true,
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
console.log(res.msg);
}
});
},
//打开弹窗,添加主播
openPopupQuantity() {
this.$refs.createModule.open();
},
// 下拉刷新
onRefresherRefresh() {
this.triggered = true;
this.getAnchorList();
},
// 返回上一页
onBack() {
wx.navigateBack({
delta: 1,
});
},
},
components: {
anchorLibrary,
modifyStreamer
},
};
</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: 315rpx;
font-size: 34rpx;
color: #100e0f;
font-weight: 500;
}
.ReturnImg {
width: 100%;
height: 100%;
}
.scroll {
position: absolute;
top: 200rpx;
left: 0;
right: 0;
height: 1300rpx;
width: 100%;
}
.card {
width: 695rpx;
height: 161rpx;
background: #ffffff;
border-radius: 15rpx;
display: flex;
align-items: center;
margin-left: 30rpx;
margin-top: 20rpx;
}
.Profile {
width: 89rpx;
height: 89rpx;
border-radius: 50rpx;
background-color: #cccccc;
margin-left: 27.5rpx;
}
.Gendermale {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
display: flex;
align-items: center;
margin-right: 10rpx;
}
.Genderfemale {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
display: flex;
align-items: center;
margin-right: 10rpx;
}
.Individual {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 37rpx;
}
.Name {
width: 288.17rpx;
font-size: 30.53rpx;
color: #161616;
font-weight: 500;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.time {
margin-top: 13rpx;
font-size: 23rpx;
color: #a3a3a3;
}
.state {
width: 56.3rpx;
height: 30rpx;
background: #f6f6f6;
border-radius: 14rpx;
line-height: 30rpx;
font-size: 17rpx;
color: #666666;
padding: 0 15rpx;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
text-align: center;
}
.Label {
margin-top: 15rpx;
display: flex;
}
.age {
font-size: 17rpx;
color: #ffffff;
margin-left: 10rpx;
}
.Genderimg {
width: 14.22rpx;
height: 14.22rpx;
margin-left: 10rpx;
}
.species {
display: flex;
margin-left: 10rpx;
}
.species-text {
font-size: 23rpx;
color: #a3a3a3;
}
.species-num {
font-size: 23rpx;
color: #161616;
font-weight: bold;
}
.handle {
display: flex;
}
.recompose {
width: 46rpx;
height: 46rpx;
margin-left: 90rpx;
}
.expurgate {
width: 46rpx;
height: 46rpx;
margin-left: 40rpx;
}
.createModule {
position: fixed;
bottom: 0;
right: 0;
z-index: 998;
width: 100vw;
}
.addition {
position: absolute;
bottom: 200rpx;
right: 100rpx;
width: 100rpx;
height: 100rpx;
z-index: 998;
border-radius: 50rpx;
/* background-color: #ffffff; */
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/addAnchor.png)
no-repeat center;
background-size: 100% 100%;
}
</style>

View File

@@ -0,0 +1,476 @@
<template>
<view
v-if="Display"
:class="[Display ? 'create-module' : 'close-animation ', 'Mask']"
@click="open()"
>
<view @click.stop class="containers">
<view class="container">
<image
class="Fork"
@click="open()"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png"
mode="scaleToFill"
/>
<view class="Titlecss">
<view class="Star"></view>
<view class="Title">修改我的主播</view>
<view class="Star"></view>
</view>
<!-- <view class="Individual"> -->
<view class="NameAnchor">
<input
class="NameAnchorcss"
cursor-color="#666666"
placeholder-style="color:#666666"
@input="NameAnchor"
placeholder="主播名称"
@blur="blur"
:value="nameAnchor"
/>
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
>请检查主播名称是否正确</view
>
</view>
<!-- </view> -->
<view class="Accountnumber">
<view class="Coins country">
<wht-select
style="width: 350rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#ffffff"
@change="country"
:options="Country"
:filterable="filterable"
placeholder="请选择国家"
:value="countrys"
/>
<view v-if="countrys === '' && Hint === true" class="Hint">请选择国家</view>
</view>
<view class="Gender">
<view class="Gendercs">
<view class="Gendercss">
<wht-select
style="width: 300rpx"
backgroundColor="#ffffff"
placeholderColor="#666666"
textColor="#666666"
borderColor="#ffffff"
@change="gender"
:options="Gender"
placeholder="性别"
:value="genders"
/>
</view>
<view class="Gendericoncss">
<image
v-if="genders === 0"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png"
mode="scaleToFill"
/>
<image
v-if="genders === 1"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png"
mode="scaleToFill"
/>
<image
v-if="genders === 2"
class="Gendericon"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png"
mode="scaleToFill"
/>
</view>
</view>
<view v-if="genders === 0 && Hint === true" class="Hintcss">请选择性别</view>
</view>
</view>
<view class="Publish">
<button @click="Publish()" class="Publishcss">修改主播信息</button>
</view>
</view>
</view>
</view>
</template>
<script>
import optionsArray from "../../../../components/NationalDictionary.js";
import request from "../../../../components/request.js";
export default {
data() {
return {
genders: 0, //性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 },
],
Country: optionsArray,
countrys: "", //国家
nameAnchor: "", //主播名称
Display: false,
Hint: false,
id: null, //用户id
filterable: true, //是否可搜索
AnchorProfilePicture: "", //主播头像
uid: null, //用户id
};
},
props: {
message: {
type: Object,
},
},
watch: {
message(newQuestion, oldQuestion) {
console.log(newQuestion);
this.id = newQuestion.id;
this.nameAnchor = newQuestion.anchorId;
this.genders = newQuestion.gender;
this.AnchorProfilePicture = newQuestion.headerIcon.split("/").pop();
this.countrys = newQuestion.country
},
},
mounted() {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.uid = res.data.id;
},
});
},
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;
}
},
open() {
if (this.Display) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.countrys = "";
} else {
this.Display = true;
}
},
//获取主播名称以及头像地址
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
uni.showLoading({
title: "正在验证主播",
mask: true,
});
uni.request({
url: "https://python.yolojt.com/api/" + this.nameAnchor,
success: (res) => {
if (res.data.code === 200) {
uni.hideLoading();
uni.showToast({
title: "查询成功",
icon: "none",
duration: 3000,
});
this.AnchorProfilePicture = res.data.data;
} else {
uni.hideLoading();
uni.showToast({
title: "未查询到该主播",
icon: "none",
duration: 3000,
});
}
},
fail: function (res) {
uni.hideLoading();
uni.showToast({
title: "网络请求失败",
icon: "none",
duration: 3000,
});
},
});
} else {
return;
}
},
async Publish() {
//判断是否为空
if (
this.nameAnchor === "" ||
this.genders === 0 ||
this.countrys === "" ||
this.AnchorProfilePicture === ""
) {
this.Hint = true;
return;
}
//发送请求
uni.showLoading({
title: "修改中...",
mask: true,
});
const res = await request({
url: "anchor/updateAnchorInfo",
method: "POST",
data: {
id:this.id,
anchorId: this.nameAnchor,
headerIcon: this.AnchorProfilePicture,
gender: this.genders,
country: this.countrys,
createUserId: this.uid,
},
userInfo: true,
}).then((res) => {
if (res.code === 200) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.AnchorProfilePicture = "";
this.country = "";
uni.hideLoading();
uni.showToast({
title: "修改成功",
icon: "success",
duration: 2000,
});
this.$emit('Refresh');
} else {
uni.hideLoading();
uni.showToast({
title: "修改失败" + res.msg,
icon: "none",
duration: 2000,
});
}
});
},
},
};
</script>
<style scoped>
/* 定义动画 */
/* 原始进入动画 */
@keyframes slide-in {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* 进入动画类 */
.create-module {
animation: slide-in 0.3s ease-in-out;
}
.Mask {
width: 100vw;
height: 100vh;
background: #00000076;
display: flex;
flex-direction: column-reverse;
}
.Hint {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 10rpx;
}
.Hintcss {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 20rpx;
}
.containers {
background-color: #ffffff;
border-radius: 50rpx;
}
.container {
display: flex;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);
background-size: 100% 100%;
flex-direction: column;
width: 100%;
height: 1000rpx;
border-radius: 50rpx;
box-shadow: 0 0 10rpx #ccc;
}
.Fork {
width: 46rpx;
height: 46rpx;
margin-top: 20rpx;
/* margin-bottom: 40rpx; */
margin-left: 90%;
}
.Titlecss {
width: 100%;
height: 70rpx;
display: flex;
justify-content: center;
align-items: center;
}
.Star {
width: 50rpx;
height: 50rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);
background-size: 100% 100%;
}
.Title {
width: 430rpx;
height: 70rpx;
/* background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png); */
background-size: 100% 200%;
background-position: 0 100%;
margin-left: 26rpx;
margin-right: 26rpx;
font-size: 50rpx;
line-height: 70rpx;
background: linear-gradient(135deg, #019fa1, #9ddbdc);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
font-weight: bold;
text-align: center;
font-style: italic;
}
.Individual {
display: flex;
/* justify-content: center; */
}
.NameAnchor {
width: 90%;
margin: 40rpx;
}
.time {
width: 90%;
margin-left: 5%;
margin-top: 50rpx;
}
.NameAnchorcss {
width: 99%;
height: 85rpx;
background-color: #ffffff;
border: 1rpx solid #bfbfbf;
border-radius: 10rpx;
text-align: center;
}
.Gender {
width: 310rpx;
display: flex;
flex-direction: column;
justify-content: center;
}
.Gendercs {
display: flex;
justify-content: center;
/* align-items: center; */
}
.Gendercss {
width: 200rpx;
height: 60rpx;
}
.Gendericoncss {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.Accountnumber {
display: flex;
justify-content: center;
margin-bottom: 60rpx;
margin-top: 50rpx;
}
.Coins {
width: 330rpx;
height: 65rpx;
/* display: flex; */
margin-right: 50rpx;
/* flex-direction: column; */
}
.country {
margin-left: 10rpx;
}
.goldCoin {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
}
.number-box {
display: flex;
justify-content: center;
text-align: center;
}
.number-box-title {
color: #191919;
font-size: 30rpx;
margin-right: 22rpx;
margin-left: 17rpx;
}
.number-box-unit {
color: #03aba8;
width: 48rpx;
height: 48rpx;
border: 1rpx solid #03aba8;
border-radius: 50%;
line-height: 48rpx;
text-align: center;
/* color: #003cff5a; */
}
.Publish {
margin-top: 300rpx;
margin-bottom: 40rpx;
width: 90%;
margin-left: 5%;
}
.Publishcss {
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
/* color: #33ff00; */
color: #ffffff;
font-weight: bold;
border-radius: 50rpx;
}
</style>

View File

@@ -117,22 +117,27 @@ export default {
this.createModule = this.$refs.createModule; // 挂载后赋值
},
methods: {
// 刷新
onRefresherRefresh() {
this.page = 0;
this.pkList = [];
this.getpkList();
this.triggered = true;
},
// 下拉加载
onScrollToLower() {
this.page++;
this.getpkList();
},
// 返回
onBack() {
uni.navigateBack({
delta: 1,
});
},
//时间格式化
formatDate: formatDate,
// 获取pk列表
getpkList() {
const res = request({
url: "user/queryMyAllPkData",
@@ -153,10 +158,12 @@ export default {
}
});
},
// 打开修改窗口
onRecompose(item) {
this.parentMessage = item;
this.createModule.open();
},
// 删除pk
onExpurgate(item) {
const res = request({
url: "pk/deletePkDataWithId",
@@ -233,7 +240,7 @@ export default {
display: flex;
align-items: center;
margin-left: 30rpx;
margin-top: 11.5rpx;
margin-top: 20rpx;
}
.Profile {
width: 89rpx;

View File

@@ -127,8 +127,14 @@ export default {
},
methods: {
onRefresherRefresh() {
this.pkRecordlist = [];
this.triggered = true;
this.page = 0;
if (this.current === 1) {
this.pkmyRecordlist = [];
}else{
this.pkInvitationRecordlist = [];
}
this.getPkRecordList(this.current);
},
onScrollToLower() {
@@ -294,7 +300,7 @@ export default {
justify-content: center;
align-items: center;
margin-left: 28.55rpx;
margin-top: 12rpx;
margin-top: 20rpx;
}
.AnchorA {
display: flex;

View File

@@ -19,22 +19,23 @@
</view>
<!-- <view class="Individual"> -->
<view class="NameAnchor">
<input
class="NameAnchorcss"
cursor-color="#666666"
placeholder-style="color:#666666"
@input="NameAnchor"
placeholder="主播名称"
:value="nameAnchor"
/>
<view
v-if="nameAnchor === '' || (nameAnchor === null && Hint === true)"
class="Hint"
>填写主播名称</view
>
<view class="AnchorSelection">
<view class="NameAnchor">
<input
class="NameAnchorcss"
cursor-color="#666666"
placeholder-style="color:#666666"
@input="NameAnchor"
placeholder="主播名称"
@blur="blur"
:value="nameAnchor"
/>
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
>检查主播名称是否正确</view
>
</view>
<view class="AnchorSelectioncss" @click="chooseMyStreamer">选择我的主播</view>
</view>
<!-- </view> -->
<view class="Accountnumber">
@@ -157,6 +158,43 @@
</view>
</view>
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
<view class="popup-container">
<view class="popup-title">选择我的主播</view>
<scroll-view scroll-y="true" class="scroll" v-if="AnchorList.length !== 0">
<!-- -->
<view class="card" v-for="(item, index) in AnchorList" :key="index">
<view
class="card-content"
@click="Select(item.id, item)"
:style="{
background: selectedId === item.id ? '#f6f6f6' : '#ffffff',
}"
>
<view class="Avatarimg">
<image class="avatar" :src="item.headerIcon" mode="scaleToFill" />
</view>
<view class="NameMoney">
<view class="TimeMoney">
<view class="NameMoney_Name">{{ item.anchorId }}</view>
</view>
<view class="TimeMoney">
<view class="TimeMoney_country">{{ item.country }}</view>
</view>
</view>
</view>
</view>
<!-- -->
</scroll-view>
<view v-if="AnchorList.length === 0" class="no-data"><view class="no-data-text">暂无数据</view></view>
<view class="popup-btn">
<button class="invite" type="primary" @click="invite()">确认</button>
<button class="cancel" type="default" @click="close()">取消</button>
</view>
</view>
</uni-popup>
</template>
<script>
import optionsArray from "../../../../components/NationalDictionary.js";
@@ -183,6 +221,9 @@ export default {
id: "", //用户id
sendingTime: "", //发送时间
filterable: true, //是否可搜索
AnchorList: [], //主播列表
selectedId: null, //选择的主播
selectedIddata: null, //选择的主播数据
};
},
props: {
@@ -211,6 +252,57 @@ export default {
});
},
methods: {
//关闭弹窗
close() {
this.$refs.popup.close();
},
//确认选择
invite(){
if (this.selectedId) {
this.nameAnchor = this.selectedIddata.anchorId;
this.AnchorProfilePicture = this.selectedIddata.headerIcon;
this.close();
} else {
uni.showToast({
title: "请选择主播",
icon: "none",
duration: 2000,
});
}
},
//选中的主播
Select(id, item) {
if (this.selectedId !== id) {
this.selectedId = id;
this.selectedIddata = item;
} else {
this.selectedId = null;
this.selectedIddata = null;
}
},
//获取主播列表
getAnchorList() {
const res = request({
url: "anchor/list",
method: "POST",
data: {
id: this.id,
},
userInfo: true,
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
console.log(res.msg);
}
});
},
//选择我的主播
chooseMyStreamer(){
this.$refs.popup.open("center");
this.getAnchorList()
},
//性别
gender(item) {
this.genders = item.value;
@@ -444,6 +536,10 @@ export default {
width: 90%;
margin: 40rpx;
}
.AnchorSelection {
display: flex;
align-items: center;
}
.time {
width: 90%;
margin-left: 5%;
@@ -457,6 +553,18 @@ export default {
border-radius: 10rpx;
text-align: center;
}
.AnchorSelectioncss {
width: 30%;
height: 60rpx;
margin: 40rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
color: #ffffff;
font-weight: bold;
font-size: 18rpx;
text-align: center;
line-height: 60rpx;
border-radius: 20rpx;
}
.Gender {
width: 310rpx;
display: flex;
@@ -554,4 +662,125 @@ export default {
font-weight: bold;
border-radius: 50rpx;
}
.popup-container{
width: 600rpx;
height: 800rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
border-radius: 10px;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title{
color: #161616;
font-size: 36.26rpx;
font-weight: bold;
margin-bottom: 30rpx;
margin-top: 30rpx;
}
.scroll{
width: 90%;
height: 500rpx;
}
.card{
margin-top: 15rpx;
}
.card-content {
/* width: 445rpx; */
width: 100%;
height: 100rpx;
background-color: #ffffff;
/* border: 2px solid #afafaf; */
border-radius: 10rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: rgb(127, 127, 127);
}
.Avatarimg {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
background-color: #dddddd;
margin-right: 20rpx;
margin-left: 20rpx;
}
.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
}
.NameMoney {
display: flex;
flex-direction: column;
}
.TimeMoney {
width: 300rpx;
display: flex;
font-weight: bold;
font-size: 27rpx;
color: #161616;
}
.NameMoney_Name {
width: 400rpx;
text-align: left;
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.TimeMoney_country{
margin-top: 10rpx;
width: 400rpx;
text-align: left;
font-size: 20rpx;
color: #666;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.popup-btn {
display: flex;
justify-content: space-around;
margin-top: 50rpx;
}
.invite {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.cancel {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
margin-left: 30rpx;
color: #03aba8;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border: 1rpx solid #03aba8;
}
.no-data{
width: 90%;
height: 500rpx;
display: flex;
justify-content: center;
align-items: center;
}
.no-data-text{
color: #999;
font-size: 28rpx;
font-weight: bold;
}
</style>

View File

@@ -19,6 +19,7 @@
</view>
<!-- <view class="Individual"> -->
<view class="AnchorSelection">
<view class="NameAnchor">
<input
class="NameAnchorcss"
@@ -27,12 +28,14 @@
@input="NameAnchor"
placeholder="主播名称"
@blur="blur"
:value="nameAnchor"
/>
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
>请检查主播名称是否正确</view
>
</view>
<view class="AnchorSelectioncss" @click="chooseMyStreamer">选择我的主播</view>
</view>
<!-- </view> -->
<view class="Accountnumber">
@@ -140,6 +143,43 @@
</view>
</view>
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
<view class="popup-container">
<view class="popup-title">选择我的主播</view>
<scroll-view scroll-y="true" class="scroll" v-if="AnchorList.length !== 0">
<!-- -->
<view class="card" v-for="(item, index) in AnchorList" :key="index">
<view
class="card-content"
@click="Select(item.id, item)"
:style="{
background: selectedId === item.id ? '#f6f6f6' : '#ffffff',
}"
>
<view class="Avatarimg">
<image class="avatar" :src="item.headerIcon" mode="scaleToFill" />
</view>
<view class="NameMoney">
<view class="TimeMoney">
<view class="NameMoney_Name">{{ item.anchorId }}</view>
</view>
<view class="TimeMoney">
<view class="TimeMoney_country">{{ item.country }}</view>
</view>
</view>
</view>
</view>
<!-- -->
</scroll-view>
<view v-if="AnchorList.length === 0" class="no-data"><view class="no-data-text">暂无数据</view></view>
<view class="popup-btn">
<button class="invite" type="primary" @click="invite()">确认</button>
<button class="cancel" type="default" @click="close()">取消</button>
</view>
</view>
</uni-popup>
</template>
<script>
import optionsArray from "../../components/NationalDictionary.js";
@@ -166,6 +206,9 @@ export default {
sendingTime: "", //发送时间
filterable: true, //是否可搜索
AnchorProfilePicture: "", //主播头像
AnchorList: [], //主播列表
selectedId: null, //选择的主播
selectedIddata: null, //选择的主播数据
};
},
mounted() {
@@ -177,6 +220,57 @@ export default {
});
},
methods: {
//关闭弹窗
close() {
this.$refs.popup.close();
},
//确认选择
invite(){
if (this.selectedId) {
this.nameAnchor = this.selectedIddata.anchorId;
this.AnchorProfilePicture = this.selectedIddata.headerIcon;
this.close();
} else {
uni.showToast({
title: "请选择主播",
icon: "none",
duration: 2000,
});
}
},
//选中的主播
Select(id, item) {
if (this.selectedId !== id) {
this.selectedId = id;
this.selectedIddata = item;
} else {
this.selectedId = null;
this.selectedIddata = null;
}
},
//获取主播列表
getAnchorList() {
const res = request({
url: "anchor/list",
method: "POST",
data: {
id: this.id,
},
userInfo: true,
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
console.log(res.msg);
}
});
},
//选择我的主播
chooseMyStreamer(){
this.$refs.popup.open("center");
this.getAnchorList()
},
//性别
gender(item) {
this.genders = item.value;
@@ -447,10 +541,14 @@ export default {
margin: 40rpx;
}
.time {
width: 90%;
width: 70%;
margin-left: 5%;
margin-top: 50rpx;
}
.AnchorSelection{
display: flex;
align-items: center;
}
.NameAnchorcss {
width: 99%;
height: 85rpx;
@@ -459,6 +557,18 @@ export default {
border-radius: 10rpx;
text-align: center;
}
.AnchorSelectioncss{
width: 30%;
height: 60rpx;
margin: 40rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
color: #ffffff;
font-weight: bold;
font-size: 18rpx;
text-align: center;
line-height: 60rpx;
border-radius: 20rpx;
}
.Gender {
width: 310rpx;
display: flex;
@@ -556,4 +666,124 @@ export default {
font-weight: bold;
border-radius: 50rpx;
}
.popup-container{
width: 600rpx;
height: 800rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
border-radius: 10px;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title{
color: #161616;
font-size: 36.26rpx;
font-weight: bold;
margin-bottom: 30rpx;
margin-top: 30rpx;
}
.scroll{
width: 90%;
height: 500rpx;
}
.card{
margin-top: 15rpx;
}
.card-content {
/* width: 445rpx; */
width: 100%;
height: 100rpx;
background-color: #ffffff;
/* border: 2px solid #afafaf; */
border-radius: 10rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: rgb(127, 127, 127);
}
.Avatarimg {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
background-color: #dddddd;
margin-right: 20rpx;
margin-left: 20rpx;
}
.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
}
.NameMoney {
display: flex;
flex-direction: column;
}
.TimeMoney {
width: 300rpx;
display: flex;
font-weight: bold;
font-size: 27rpx;
color: #161616;
}
.NameMoney_Name {
width: 400rpx;
text-align: left;
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.TimeMoney_country{
margin-top: 10rpx;
width: 400rpx;
text-align: left;
font-size: 20rpx;
color: #666;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.popup-btn {
display: flex;
justify-content: space-around;
margin-top: 50rpx;
}
.invite {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.cancel {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
margin-left: 30rpx;
color: #03aba8;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border: 1rpx solid #03aba8;
}
.no-data{
width: 90%;
height: 500rpx;
display: flex;
justify-content: center;
align-items: center;
}
.no-data-text{
color: #999;
font-size: 28rpx;
font-weight: bold;
}
</style>

View File

@@ -9,7 +9,11 @@
</view>
<view class="Navigation">
<view class="Return" @click="Returnfunc">
<image class="Return" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill" />
<image
class="Return"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
</view>
<view class="Content">
@@ -30,7 +34,7 @@
mode="scaleToFill"
/>
</view>
<view class="age"> {{ item.sex === '1'? '男' : '女' }} </view>
<view class="age"></view>
</view>
<view class="female" v-else>
@@ -41,7 +45,7 @@
mode="scaleToFill"
/>
</view>
<view class="age">{{ item.sex === '2' ? '男' : '女' }}</view>
<view class="age"></view>
</view>
</view>
<view class="nation">{{ item.country }}</view>
@@ -55,7 +59,7 @@
mode="scaleToFill"
/>
<view class="goldcard">
<view class="goldnumber">{{ item.coin }}</view>
<view class="goldnumber">{{ item.coin }}K</view>
<view class="goldtext">金币</view>
</view>
</view>
@@ -74,13 +78,13 @@
</view>
<view class="remark">
<uni-easyinput
type="textarea"
v-model="item.remark"
placeholder="备注"
maxlength="-1"
disabled="true"
:style="style"
></uni-easyinput>
type="textarea"
v-model="item.remark"
placeholder="备注"
maxlength="-1"
disabled="true"
:style="style"
></uni-easyinput>
</view>
<view class="button" v-if="item.senderId !== id">
<button class="accept" @click="openChat()">聊了个天</button>
@@ -90,20 +94,18 @@
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
<view
class="popup-content"
>
<view class="popup-content">
<view class="popup-title">
<view class="popup-text">请选择您要参与的主播</view>
<view v-if="list.length !== 0">
<scroll-view scroll-y="true" class="scroll">
<view class="card" v-for="(item, index) in list" :key="index">
<view
class="card-content"
@click="Select(item.id, index)"
:style="{
background:
selectedId === item.id ? '#f6f6f6' : '#ffffff',
background: selectedId === item.id ? '#f6f6f6' : '#ffffff',
}"
>
<view class="Avatarimg">
@@ -114,14 +116,18 @@
<view class="NameMoney_Name">{{ item.anchorId }}</view>
</view>
<view class="TimeMoney_Time">
<view class="pkTimeimg"></view><view>{{ TimeFormatting(item.pkTime) }}</view>
<viewm class="goldnb"><view class="goldimg"></view>{{ item.coin }}K</viewm>
</view>
<view class="pkTimeimg"></view
><view>{{ TimeFormatting(item.pkTime) }}</view>
<viewm class="goldnb"
><view class="goldimg"></view>{{ item.coin }}K</viewm
>
</view>
</view>
</view>
</view>
<!-- `````````````` -->
</scroll-view>
</view>
<view class="noData" v-if="list.length === 0">您还没有可参与的主播PK快去新建一个吧</view>
</view>
<view class="popup-btn">
<button class="invite" type="primary" @click="invite()">邀请</button>
@@ -158,7 +164,7 @@ export default {
// parentMessage: null,
style: {
backgroundColor: "#ffffff",
}
},
};
},
onLoad(options) {
@@ -259,7 +265,10 @@ export default {
this.list = res.data;
} else {
uni.hideLoading();
this.openPopupQuantity();
setTimeout(() => {
this.openPopupQuantity();
this.$refs.popup.close();
}, 2000);
}
} else {
uni.hideLoading();
@@ -408,8 +417,8 @@ export default {
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.background {
@@ -481,8 +490,8 @@ export default {
.nation {
/* width: 56.3rpx; */
height: 29.58rpx;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
font-size: 17.18rpx;
color: #666666;
@@ -564,7 +573,7 @@ export default {
flex-direction: column;
align-items: center;
}
.remark{
.remark {
margin-top: 60rpx;
width: 90%;
}
@@ -595,4 +604,11 @@ export default {
font-size: 28.63rpx;
line-height: 77.29rpx;
}
.noData{
width: 500rpx;
height: 400rpx;
border-radius: 10px;
font-size: 30rpx;
color: #999;
}
</style>

View File

@@ -1 +1 @@
"use strict";const e=require("./common/vendor.js"),n=require("./components/NationalDictionary.js"),i=require("./components/request.js"),t={data:()=>({genders:0,Gender:[{label:"男",value:1},{label:"女",value:2}],Country:n.optionsArray,countrys:"",nameAnchor:"",numberCoins:"",session:"",remarks:"",Display:!1,Hint:!1,datetimesingle:"",id:null,sendingTime:"",filterable:!0,AnchorProfilePicture:""}),mounted(){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}})},methods:{gender(e){this.genders=e.value,console.log(e)},country(e){this.countrys=e.value,console.log(e)},handleOverlayClick(e){e.target===this.$el&&(this.Display=!1,this.Hint=!1)},open(){this.Display?(this.Display=!1,this.Hint=!1,this.nameAnchor="",this.genders=0,this.numberCoins="",this.remarks="",this.datetimesingle="",this.countrys="",this.session=""):this.Display=!0},blur(n){this.nameAnchor!==n.target.value&&(this.nameAnchor=n.target.value,e.index.showLoading({title:"正在验证主播",mask:!0}),e.index.request({url:"https://python.yolojt.com/api/"+this.nameAnchor,success:n=>{200===n.data.code?(e.index.hideLoading(),e.index.showToast({title:"查询成功",icon:"none",duration:3e3}),this.AnchorProfilePicture=n.data.data):(e.index.hideLoading(),e.index.showToast({title:"未查询到该主播",icon:"none",duration:3e3}))},fail:function(n){e.index.hideLoading(),e.index.showToast({title:"网络请求失败",icon:"none",duration:3e3})}}))},async Publish(){if(""===this.nameAnchor||0===this.genders||""===this.numberCoins||""===this.countrys||""===this.datetimesingle||""===this.session||""===this.AnchorProfilePicture)return void(this.Hint=!0);if(this.remarks.includes(this.nameAnchor))return void e.index.showToast({title:"备注中不能包含主播昵称",icon:"none",duration:2e3});const n=this.datetimesingle.replace(" ","T"),t=Date.parse(n);if(isNaN(t))throw new Error(`Invalid date format: ${this.datetimesingle}`);this.sendingTime=Math.floor(t/1e3);const o=Math.floor(Date.now()/1e3);if(this.sendingTime<o)return void e.index.showToast({title:"日期不能早于当前时间",icon:"none",duration:2e3});e.index.showLoading({title:"发布中...",mask:!0});200===(await i.request({url:"pk/addPkData",method:"POST",data:{anchorId:this.nameAnchor,pkTime:this.sendingTime,sex:this.genders,country:this.countrys,coin:this.numberCoins,remark:this.remarks,senderId:this.id,anchorIcon:this.AnchorProfilePicture,pkNumber:this.session},userInfo:!0})).code?(this.Display=!1,this.Hint=!1,this.nameAnchor="",this.genders=0,this.numberCoins="",this.remarks="",this.datetimesingle="",this.session="",this.AnchorProfilePicture="",e.index.hideLoading(),e.index.showToast({title:"发布成功",icon:"success",duration:2e3})):(e.index.hideLoading(),e.index.showToast({title:"发布失败",icon:"none",duration:2e3}))}}};if(!Array){(e.resolveComponent("wht-select")+e.resolveComponent("uni-number-box")+e.resolveComponent("uni-datetime-picker")+e.resolveComponent("uni-easyinput"))()}Math||((()=>"./uni_modules/wht-select/components/wht-select/wht-select.js")+(()=>"./uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js")+(()=>"./uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js")+(()=>"./uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js"))();const o=e._export_sfc(t,[["render",function(n,i,t,o,s,r){return e.e({a:s.Display},s.Display?e.e({b:e.o$1((e=>r.open())),c:e.o$1(((...e)=>n.NameAnchor&&n.NameAnchor(...e))),d:e.o$1(((...e)=>r.blur&&r.blur(...e))),e:""===s.nameAnchor&&!0===s.Hint},(""===s.nameAnchor&&s.Hint,{}),{f:e.o$1(r.country),g:e.p({backgroundColor:"#ffffff",placeholderColor:"#666666",textColor:"#666666",borderColor:"#ffffff",options:s.Country,filterable:s.filterable,placeholder:"请选择国家"}),h:""===s.countrys&&!0===s.Hint},(""===s.countrys&&s.Hint,{}),{i:e.o$1(r.gender),j:e.p({backgroundColor:"#ffffff",placeholderColor:"#666666",textColor:"#666666",borderColor:"#ffffff",options:s.Gender,placeholder:"性别"}),k:0===s.genders},(s.genders,{}),{l:1===s.genders},(s.genders,{}),{m:2===s.genders},(s.genders,{}),{n:0===s.genders&&!0===s.Hint},(0===s.genders&&s.Hint,{}),{o:e.o$1((e=>s.numberCoins=e)),p:e.p({max:9999999999,background:"#03ABA8",modelValue:s.numberCoins}),q:""===s.numberCoins&&!0===s.Hint},(""===s.numberCoins&&s.Hint,{}),{r:e.o$1((e=>s.datetimesingle=e)),s:e.p({type:"datetime","hide-second":"true",modelValue:s.datetimesingle}),t:""===s.datetimesingle&&!0===s.Hint},(""===s.datetimesingle&&s.Hint,{}),{v:e.o$1((e=>s.session=e)),w:e.p({background:"#03ABA8",modelValue:s.session}),x:""===s.session&&!0===s.Hint},(""===s.session&&s.Hint,{}),{y:e.o$1((e=>s.remarks=e)),z:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",modelValue:s.remarks}),A:e.o$1((e=>r.Publish())),B:e.o$1((()=>{})),C:e.n(s.Display?"create-module":"close-animation "),D:e.o$1((e=>r.open()))}):{})}],["__scopeId","data-v-4f0126b2"]]);exports.MiniProgramPage=o;
"use strict";const e=require("./common/vendor.js"),n=require("./components/NationalDictionary.js"),i=require("./components/request.js"),t={data:()=>({genders:0,Gender:[{label:"男",value:1},{label:"女",value:2}],Country:n.optionsArray,countrys:"",nameAnchor:"",numberCoins:"",session:"",remarks:"",Display:!1,Hint:!1,datetimesingle:"",id:null,sendingTime:"",filterable:!0,AnchorProfilePicture:""}),mounted(){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}})},methods:{gender(e){this.genders=e.value,console.log(e)},country(e){this.countrys=e.value,console.log(e)},handleOverlayClick(e){e.target===this.$el&&(this.Display=!1,this.Hint=!1)},open(){this.Display?(this.Display=!1,this.Hint=!1,this.nameAnchor="",this.genders=0,this.numberCoins="",this.remarks="",this.datetimesingle="",this.countrys="",this.session=""):this.Display=!0},blur(n){this.nameAnchor!==n.target.value&&(this.nameAnchor=n.target.value,e.index.showLoading({title:"正在验证主播",mask:!0}),e.index.request({url:"https://python.yolojt.com/api/"+this.nameAnchor,success:n=>{200===n.data.code?(e.index.hideLoading(),e.index.showToast({title:"查询成功",icon:"none",duration:3e3}),this.AnchorProfilePicture=n.data.data):(e.index.hideLoading(),e.index.showToast({title:"未查询到该主播",icon:"none",duration:3e3}))},fail:function(n){e.index.hideLoading(),e.index.showToast({title:"网络请求失败",icon:"none",duration:3e3})}}))},async Publish(){if(""===this.nameAnchor||0===this.genders||""===this.numberCoins||""===this.countrys||""===this.datetimesingle||""===this.session||""===this.AnchorProfilePicture)return void(this.Hint=!0);if(this.remarks.includes(this.nameAnchor))return void e.index.showToast({title:"备注中不能包含主播昵称",icon:"none",duration:2e3});const n=this.datetimesingle.replace(" ","T"),t=Date.parse(n);if(isNaN(t))throw new Error(`Invalid date format: ${this.datetimesingle}`);this.sendingTime=Math.floor(t/1e3);const o=Math.floor(Date.now()/1e3);if(this.sendingTime<o)return void e.index.showToast({title:"日期不能早于当前时间",icon:"none",duration:2e3});e.index.showLoading({title:"发布中...",mask:!0});200===(await i.request({url:"pk/addPkData",method:"POST",data:{anchorId:this.nameAnchor,pkTime:this.sendingTime,sex:this.genders,country:this.countrys,coin:this.numberCoins,remark:this.remarks,senderId:this.id,anchorIcon:this.AnchorProfilePicture,pkNumber:this.session},userInfo:!0})).code?(this.Display=!1,this.Hint=!1,this.nameAnchor="",this.genders=0,this.numberCoins="",this.remarks="",this.datetimesingle="",this.session="",this.AnchorProfilePicture="",e.index.hideLoading(),e.index.showToast({title:"发布成功",icon:"success",duration:2e3})):(e.index.hideLoading(),e.index.showToast({title:"发布失败",icon:"none",duration:2e3}))}}};if(!Array){(e.resolveComponent("wht-select")+e.resolveComponent("uni-number-box")+e.resolveComponent("uni-datetime-picker")+e.resolveComponent("uni-easyinput"))()}Math||((()=>"./uni_modules/wht-select/components/wht-select/wht-select.js")+(()=>"./uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js")+(()=>"./uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js")+(()=>"./uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js"))();const o=e._export_sfc(t,[["render",function(n,i,t,o,s,r){return e.e({a:s.Display},s.Display?e.e({b:e.o$1((e=>r.open())),c:e.o$1(((...e)=>n.NameAnchor&&n.NameAnchor(...e))),d:e.o$1(((...e)=>r.blur&&r.blur(...e))),e:""===s.nameAnchor&&!0===s.Hint},(""===s.nameAnchor&&s.Hint,{}),{f:e.o$1(r.country),g:e.p({backgroundColor:"#ffffff",placeholderColor:"#666666",textColor:"#666666",borderColor:"#ffffff",options:s.Country,filterable:s.filterable,placeholder:"请选择国家"}),h:""===s.countrys&&!0===s.Hint},(""===s.countrys&&s.Hint,{}),{i:e.o$1(r.gender),j:e.p({backgroundColor:"#ffffff",placeholderColor:"#666666",textColor:"#666666",borderColor:"#ffffff",options:s.Gender,placeholder:"性别"}),k:0===s.genders},(s.genders,{}),{l:1===s.genders},(s.genders,{}),{m:2===s.genders},(s.genders,{}),{n:0===s.genders&&!0===s.Hint},(0===s.genders&&s.Hint,{}),{o:e.o$1((e=>s.numberCoins=e)),p:e.p({max:9999999999,background:"#03ABA8",modelValue:s.numberCoins}),q:""===s.numberCoins&&!0===s.Hint},(""===s.numberCoins&&s.Hint,{}),{r:e.o$1((e=>s.datetimesingle=e)),s:e.p({type:"datetime","hide-second":"true",modelValue:s.datetimesingle}),t:""===s.datetimesingle&&!0===s.Hint},(""===s.datetimesingle&&s.Hint,{}),{v:e.o$1((e=>s.session=e)),w:e.p({background:"#03ABA8",modelValue:s.session}),x:""===s.session&&!0===s.Hint},(""===s.session&&s.Hint,{}),{y:e.o$1((e=>s.remarks=e)),z:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",modelValue:s.remarks}),A:e.o$1((e=>r.Publish())),B:e.o$1((()=>{})),C:e.n(s.Display?"create-module":"close-animation "),D:e.o$1((e=>r.open()))}):{})}],["__scopeId","data-v-c9e4c29f"]]);exports.MiniProgramPage=o;

View File

@@ -4,6 +4,7 @@
"pages/Mine/Mine",
"pages/Mine/minecomponents/pkRecord",
"pages/Mine/minecomponents/contact",
"pages/Mine/minecomponents/anchorLibrary",
"pages/Mine/minecomponents/pkInformation",
"pages/Mine/minecomponents/recompose/recompose",
"pages/Mine/minecomponents/serviceProtocol",

View File

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

View File

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

View File

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

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t={data:()=>({title:"Hello",Select:!1}),onLoad(){},methods:{MakeAppointmentPK(){this.Select=!1,this.$emit("MakeAppointmentPK")},RealTimePk(){this.Select=!0,this.$emit("RealTimePk")},screening(){this.$emit("screening")},Search(){this.$emit("Search")}}};const i=e._export_sfc(t,[["render",function(t,i,n,c,o,a){return{a:e.o$1(((...e)=>a.MakeAppointmentPK&&a.MakeAppointmentPK(...e))),b:o.Select?"":1,c:o.Select?1:"",d:e.o$1(((...e)=>a.RealTimePk&&a.RealTimePk(...e))),e:o.Select?1:"",f:o.Select?"":1}}],["__scopeId","data-v-904c2621"]]);wx.createComponent(i);
"use strict";const e=require("../../common/vendor.js"),t={data:()=>({title:"Hello",Select:!1}),onLoad(){},methods:{MakeAppointmentPK(){this.Select=!1,this.$emit("MakeAppointmentPK")},RealTimePk(){this.Select=!0,this.$emit("RealTimePk")},screening(){this.$emit("screening")},Search(){this.$emit("Search")}}};const n=e._export_sfc(t,[["render",function(t,n,i,c,o,s){return{a:e.o$1(((...e)=>s.MakeAppointmentPK&&s.MakeAppointmentPK(...e))),b:o.Select?"":1,c:o.Select?1:"",d:e.o$1(((...e)=>s.RealTimePk&&s.RealTimePk(...e))),e:o.Select?1:"",f:o.Select?"":1,g:e.o$1(((...e)=>s.screening&&s.screening(...e)))}}],["__scopeId","data-v-24bd955c"]]);wx.createComponent(n);

View File

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

View File

@@ -1 +1 @@
.topNavigation.data-v-904c2621{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-904c2621{width:93rpx;height:50rpx;background:#fff;border-radius:4rpx;font-size:23rpx;color:#3b3b3b;text-align:center;line-height:50rpx}.filter-icon.data-v-904c2621{width:33rpx;height:33rpx}.RealTime.data-v-904c2621{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-904c2621{margin-right:233rpx}.Screening.data-v-904c2621{margin-right:20rpx}.Selectcss.data-v-904c2621{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-904c2621{font-weight:600;height:29rpx;color:#727a7b}
.topNavigation.data-v-24bd955c{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-24bd955c{width:93rpx;height:50rpx;background:#fff;border-radius:4rpx;font-size:23rpx;color:#3b3b3b;text-align:center;line-height:50rpx}.filter-icon.data-v-24bd955c{width:33rpx;height:33rpx}.RealTime.data-v-24bd955c{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-24bd955c{margin-right:233rpx}.Screening.data-v-24bd955c{margin-right:20rpx}.Selectcss.data-v-24bd955c{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-24bd955c{font-weight:600;height:29rpx;color:#727a7b}

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
.page.data-v-62142dc4{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-62142dc4{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-62142dc4{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-62142dc4{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:100}.contentList.data-v-62142dc4{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-62142dc4{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-62142dc4{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-62142dc4{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-62142dc4{display:flex;align-items:center}.cardname.data-v-62142dc4{font-size:31rpx;color:#161616;line-height:38rpx}.Genderimg.data-v-62142dc4{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-62142dc4{color:#fff;font-size:14rpx}.Gendermale.data-v-62142dc4{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-62142dc4{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-62142dc4{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-62142dc4{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-62142dc4{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-62142dc4{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}
.page.data-v-47e90acd{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-47e90acd{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-47e90acd{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-47e90acd{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:2}.contentList.data-v-47e90acd{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-47e90acd{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-47e90acd{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-47e90acd{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-47e90acd{display:flex;align-items:center}.cardname.data-v-47e90acd{font-size:31rpx;color:#161616;line-height:38rpx;margin-bottom:20rpx}.Genderimg.data-v-47e90acd{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-47e90acd{color:#fff;font-size:14rpx}.Gendermale.data-v-47e90acd{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-47e90acd{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-47e90acd{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-47e90acd{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-47e90acd{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-47e90acd{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}.popup-container.data-v-47e90acd{height:1626px;width:650rpx;background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png);border-radius:15rpx;display:flex;flex-direction:column;align-items:center}.popup-title.data-v-47e90acd{font-size:50rpx;line-height:50rpx;margin-top:250rpx;font-weight:700;background:linear-gradient(135deg,#00afb2,#4fcacd);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.p-country.data-v-47e90acd{width:500rpx;height:100rpx;margin-top:80rpx}.popup-sex.data-v-47e90acd{width:500rpx;height:100rpx;margin-top:40rpx;display:flex;justify-content:space-between}.p-sex.data-v-47e90acd{width:420rpx;height:100rpx}.Gendericoncss.data-v-47e90acd{display:flex;justify-content:center;align-items:center;width:60rpx;height:60rpx;border-radius:50%;border:1rpx solid #ff9d0067;margin-left:20rpx;margin-top:10rpx}.Gendericon.data-v-47e90acd{width:40rpx;height:40rpx}.popup-coin.data-v-47e90acd{width:500rpx;margin-top:40rpx;display:flex}.p-coin.data-v-47e90acd{width:500rpx;display:flex;flex-direction:column;align-items:center}.p-coin-title.data-v-47e90acd{font-size:20rpx;color:#a3a3a3}.p-time.data-v-47e90acd{width:500rpx;margin-top:40rpx}.popup-btn-cancel.data-v-47e90acd{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.popup-btn-confirm.data-v-47e90acd{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;margin-right:20rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcd9d,#5fdeba)}.popup-btn-clear.data-v-47e90acd{width:170rpx;height:60rpx;font-size:30rpx;color:#fff;line-height:60rpx;text-align:center;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#cd924f,#debc5f)}.Hintcss.data-v-47e90acd{font-size:18rpx;color:#f55}.popup-btn.data-v-47e90acd{width:600rpx;height:100rpx;display:flex;justify-content:space-around;align-items:center;margin-top:400rpx}

View File

@@ -1 +1 @@
"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[]}),onShow(){o.index.getStorage({key:"userinfo",success:o=>{this.userinfo=o.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord()}})},methods:{formatDate:t.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((o=>{200==o.code?(this.pkInformationdata=o.data,console.log(this.pkInformationdata)):console.log(o.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((o=>{200==o.code?(this.myPkRecorddata=o.data,console.log(this.myPkRecorddata)):console.log(o.msg)}))},pkInformation(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){o.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){o.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){o.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){o.index.clearStorage(),o.A.logout(),o.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){o.resolveComponent("tabBar")()}Math;const r=o._export_sfc(a,[["render",function(e,t,n,a,r,i){return o.e({a:r.userinfo.headerIcon,b:o.t(r.userinfo.nickName),c:o.o$1(((...o)=>i.goSetting&&i.goSetting(...o))),d:o.o$1(((...o)=>i.pkInformation&&i.pkInformation(...o))),e:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{f:o.f(r.pkInformationdata,((e,t,n)=>({a:e.anchorIcon,b:o.t(i.formatDate(e.pkTime)),c:o.t(e.coin),d:t})))}:{},{g:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{h:o.o$1(((...o)=>i.pkRecord&&i.pkRecord(...o))),i:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{j:o.f(r.myPkRecorddata,((e,t,n)=>o.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:o.t(e.pkNumber),e:o.t(i.TimeFormatting(e.pkTime)),f:t})))}:{},{k:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{l:o.o$1(((...o)=>i.contact&&i.contact(...o))),m:o.o$1(((...o)=>i.serviceProtocol&&i.serviceProtocol(...o))),n:o.o$1(((...o)=>i.logout&&i.logout(...o))),o:o.p({tabIndex:4})})}],["__scopeId","data-v-d61e5b2e"]]);wx.createPage(r);
"use strict";const t=require("../../common/vendor.js"),e=require("../../components/request.js"),o=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[],SignStatus:null,AnchorList:[]}),onShow(){t.index.getStorage({key:"userinfo",success:t=>{this.userinfo=t.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord(),this.getSignStatus(),this.getAnchorList()}})},methods:{getAnchorList(){e.request({url:"anchor/list",method:"POST",data:{userId:this.userinfo.id},userInfo:!0}).then((t=>{200==t.code?this.AnchorList=t.data.slice(0,4):console.log(t.msg)}))},getSignStatus(){e.request({url:"user/checkSignStatus",method:"GET",data:{userId:this.userinfo.id},userInfo:!0}).then((t=>{200==t.code?this.SignStatus=t.data:console.log(t.msg)}))},sign(){e.request({url:"user/signIn",method:"POST",data:{userId:this.userinfo.id},userInfo:!0}).then((e=>{200==e.code?(t.index.showToast({title:"签到成功",icon:"none",duration:2e3}),this.getSignStatus()):console.log(e.msg)}))},formatDate:o.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((t=>{200==t.code?(this.pkInformationdata=t.data,console.log(this.pkInformationdata)):console.log(t.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((t=>{200==t.code?(this.myPkRecorddata=t.data,console.log(this.myPkRecorddata)):console.log(t.msg)}))},anchorLibrary(){t.index.navigateTo({url:"/pages/Mine/minecomponents/anchorLibrary"})},pkInformation(){t.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){t.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){t.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){t.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){t.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){t.index.clearStorage(),t.A.logout(),t.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){t.resolveComponent("tabBar")()}Math;const r=t._export_sfc(a,[["render",function(e,o,n,a,r,i){return t.e({a:r.userinfo.headerIcon,b:t.t(r.userinfo.nickName),c:!0===r.SignStatus},!0===r.SignStatus?{d:t.o$1(((...t)=>i.sign&&i.sign(...t)))}:{},{e:!1===r.SignStatus},(r.SignStatus,{}),{f:t.o$1(((...t)=>i.goSetting&&i.goSetting(...t))),g:t.o$1(((...t)=>i.anchorLibrary&&i.anchorLibrary(...t))),h:0!==r.AnchorList.length},0!==r.AnchorList.length?{i:t.f(r.AnchorList,((e,o,n)=>({a:e.headerIcon,b:t.t(e.anchorId),c:t.t(e.country),d:o})))}:{},{j:0===r.AnchorList.length},(r.AnchorList.length,{}),{k:t.o$1(((...t)=>i.pkInformation&&i.pkInformation(...t))),l:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{m:t.f(r.pkInformationdata,((e,o,n)=>({a:e.anchorIcon,b:t.t(i.formatDate(e.pkTime)),c:t.t(e.coin),d:o})))}:{},{n:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{o:t.o$1(((...t)=>i.pkRecord&&i.pkRecord(...t))),p:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{q:t.f(r.myPkRecorddata,((e,o,n)=>t.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:t.t(e.pkNumber),e:t.t(i.TimeFormatting(e.pkTime)),f:o})))}:{},{r:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{s:t.o$1(((...t)=>i.contact&&i.contact(...t))),t:t.o$1(((...t)=>i.serviceProtocol&&i.serviceProtocol(...t))),v:t.o$1(((...t)=>i.logout&&i.logout(...t))),w:t.p({tabIndex:4})})}],["__scopeId","data-v-a35a4a7f"]]);wx.createPage(r);

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../common/vendor.js"),a={data:()=>({title:"Hello"}),onLoad(){},methods:{onBack(){e.wx$1.navigateBack({delta:1})}}};const o=e._export_sfc(a,[["render",function(a,o,t,n,c,r){return{a:e.o$1(((...e)=>r.onBack&&r.onBack(...e)))}}],["__scopeId","data-v-b34fd0a7"]]);wx.createPage(o);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "主播库",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="anchor-library data-v-b34fd0a7"><view class="bg data-v-b34fd0a7"><image class="bgImg data-v-b34fd0a7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-b34fd0a7" bindtap="{{a}}"><image class="ReturnImg data-v-b34fd0a7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-b34fd0a7">主播库</view></view>

View File

@@ -0,0 +1 @@
.bg.data-v-b34fd0a7{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-b34fd0a7{width:100%;height:100%}.Return.data-v-b34fd0a7{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-b34fd0a7{position:absolute;top:120rpx;left:315rpx;font-size:34rpx;color:#100e0f;font-weight:500}.ReturnImg.data-v-b34fd0a7{width:100%;height:100%}

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-4f0126b2', C, 'Mask']}}" bindtap="{{D}}"><view catchtap="{{B}}" class="containers data-v-4f0126b2"><view class="container data-v-4f0126b2"><image class="Fork data-v-4f0126b2" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-4f0126b2"><view class="Star data-v-4f0126b2"></view><view class="Title data-v-4f0126b2"></view><view class="Star data-v-4f0126b2"></view></view><view class="NameAnchor data-v-4f0126b2"><input class="NameAnchorcss data-v-4f0126b2" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}"/><view wx:if="{{e}}" class="Hint data-v-4f0126b2">请检查主播名称是否正确</view></view><view class="Accountnumber data-v-4f0126b2"><view class="Coins country data-v-4f0126b2"><wht-select wx:if="{{g}}" class="data-v-4f0126b2" style="width:350rpx" bindchange="{{f}}" u-i="4f0126b2-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-4f0126b2">请选择国家</view></view><view class="Gender data-v-4f0126b2"><view class="Gendercs data-v-4f0126b2"><view class="Gendercss data-v-4f0126b2"><wht-select wx:if="{{j}}" class="data-v-4f0126b2" style="width:300rpx" bindchange="{{i}}" u-i="4f0126b2-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-4f0126b2"><image wx:if="{{k}}" class="Gendericon data-v-4f0126b2" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{l}}" class="Gendericon data-v-4f0126b2" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-4f0126b2" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{n}}" class="Hintcss data-v-4f0126b2">请选择性别</view></view></view><view class="goldCoin data-v-4f0126b2"><view class="number-box data-v-4f0126b2"><view class="number-box-title data-v-4f0126b2">金币数量:</view><uni-number-box wx:if="{{p}}" class="data-v-4f0126b2" u-i="4f0126b2-2" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></uni-number-box><view class="number-box-title data-v-4f0126b2">单位:</view><view class="number-box-unit data-v-4f0126b2">K</view></view><view wx:if="{{q}}" class="Hint data-v-4f0126b2">请填写金币数量</view></view><view class="time data-v-4f0126b2"><uni-datetime-picker wx:if="{{s}}" class="data-v-4f0126b2" u-i="4f0126b2-3" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/><view wx:if="{{t}}" class="Hint data-v-4f0126b2">请选择日期</view></view><view class="goldCoin data-v-4f0126b2"><view class="number-box data-v-4f0126b2"><view class="number-box-title data-v-4f0126b2">选择场数:</view><uni-number-box wx:if="{{w}}" class="data-v-4f0126b2" u-i="4f0126b2-4" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></uni-number-box><view class="number-box-title data-v-4f0126b2">次</view></view><view wx:if="{{x}}" class="Hint data-v-4f0126b2">请填写场数</view></view><view class="Remarkscss data-v-4f0126b2"><uni-easyinput wx:if="{{z}}" class="data-v-4f0126b2" u-i="4f0126b2-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-easyinput></view><view class="Publish data-v-4f0126b2"><button bindtap="{{A}}" class="Publishcss data-v-4f0126b2">发布</button></view></view></view></view>
<view wx:if="{{a}}" class="{{['data-v-c9e4c29f', C, 'Mask']}}" bindtap="{{D}}"><view catchtap="{{B}}" class="containers data-v-c9e4c29f"><view class="container data-v-c9e4c29f"><image class="Fork data-v-c9e4c29f" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-c9e4c29f"><view class="Star data-v-c9e4c29f"></view><view class="Title data-v-c9e4c29f"></view><view class="Star data-v-c9e4c29f"></view></view><view class="NameAnchor data-v-c9e4c29f"><input class="NameAnchorcss data-v-c9e4c29f" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}"/><view wx:if="{{e}}" class="Hint data-v-c9e4c29f">请检查主播名称是否正确</view></view><view class="Accountnumber data-v-c9e4c29f"><view class="Coins country data-v-c9e4c29f"><wht-select wx:if="{{g}}" class="data-v-c9e4c29f" style="width:350rpx" bindchange="{{f}}" u-i="c9e4c29f-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-c9e4c29f">请选择国家</view></view><view class="Gender data-v-c9e4c29f"><view class="Gendercs data-v-c9e4c29f"><view class="Gendercss data-v-c9e4c29f"><wht-select wx:if="{{j}}" class="data-v-c9e4c29f" style="width:300rpx" bindchange="{{i}}" u-i="c9e4c29f-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-c9e4c29f"><image wx:if="{{k}}" class="Gendericon data-v-c9e4c29f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{l}}" class="Gendericon data-v-c9e4c29f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-c9e4c29f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{n}}" class="Hintcss data-v-c9e4c29f">请选择性别</view></view></view><view class="goldCoin data-v-c9e4c29f"><view class="number-box data-v-c9e4c29f"><view class="number-box-title data-v-c9e4c29f">金币数量:</view><uni-number-box wx:if="{{p}}" class="data-v-c9e4c29f" u-i="c9e4c29f-2" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></uni-number-box><view class="number-box-title data-v-c9e4c29f">单位:</view><view class="number-box-unit data-v-c9e4c29f">K</view></view><view wx:if="{{q}}" class="Hint data-v-c9e4c29f">请填写金币数量</view></view><view class="time data-v-c9e4c29f"><uni-datetime-picker wx:if="{{s}}" class="data-v-c9e4c29f" u-i="c9e4c29f-3" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/><view wx:if="{{t}}" class="Hint data-v-c9e4c29f">请选择日期</view></view><view class="goldCoin data-v-c9e4c29f"><view class="number-box data-v-c9e4c29f"><view class="number-box-title data-v-c9e4c29f">选择场数:</view><uni-number-box wx:if="{{w}}" class="data-v-c9e4c29f" u-i="c9e4c29f-4" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></uni-number-box><view class="number-box-title data-v-c9e4c29f">次</view></view><view wx:if="{{x}}" class="Hint data-v-c9e4c29f">请填写场数</view></view><view class="Remarkscss data-v-c9e4c29f"><uni-easyinput wx:if="{{z}}" class="data-v-c9e4c29f" u-i="c9e4c29f-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-easyinput></view><view class="Publish data-v-c9e4c29f"><button bindtap="{{A}}" class="Publishcss data-v-c9e4c29f">发布</button></view></view></view></view>

View File

@@ -1 +1 @@
@keyframes slide-in-4f0126b2{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-out-4f0126b2{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}.create-module.data-v-4f0126b2{animation:slide-in-4f0126b2 .3s ease-in-out}.close-animation.data-v-4f0126b2{animation:slide-out-4f0126b2 .3s ease-in-out forwards}.Mask.data-v-4f0126b2{width:100vw;height:100vh;background:rgba(0,0,0,.463);display:flex;flex-direction:column-reverse}.Hint.data-v-4f0126b2{color:red;font-size:20rpx;margin-left:30rpx;margin-top:10rpx}.Hintcss.data-v-4f0126b2{color:red;font-size:20rpx;margin-left:30rpx;margin-top:20rpx}.containers.data-v-4f0126b2{background-color:#fff;border-radius:50rpx}.container.data-v-4f0126b2{display:flex;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);background-size:100% 100%;flex-direction:column;width:100%;height:1300rpx;border-radius:50rpx;box-shadow:0 0 10rpx #ccc}.Fork.data-v-4f0126b2{width:46rpx;height:46rpx;margin-top:20rpx;margin-left:90%}.Titlecss.data-v-4f0126b2{width:100%;height:70rpx;display:flex;justify-content:center;align-items:center}.Star.data-v-4f0126b2{width:50rpx;height:50rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);background-size:100% 100%}.Title.data-v-4f0126b2{width:430rpx;height:70rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png);background-size:100% 200%;background-position:0 100%;margin-left:26rpx;margin-right:26rpx}.Individual.data-v-4f0126b2{display:flex}.NameAnchor.data-v-4f0126b2{width:90%;margin:40rpx}.time.data-v-4f0126b2{width:90%;margin-left:5%;margin-top:50rpx}.NameAnchorcss.data-v-4f0126b2{width:99%;height:85rpx;background-color:#fff;border:1rpx solid #bfbfbf;border-radius:10rpx;text-align:center}.Gender.data-v-4f0126b2{width:310rpx;display:flex;flex-direction:column;justify-content:center}.Gendercs.data-v-4f0126b2{display:flex;justify-content:center}.Gendercss.data-v-4f0126b2{width:200rpx;height:60rpx}.Gendericoncss.data-v-4f0126b2{display:flex;justify-content:center;align-items:center;width:60rpx;height:60rpx;border-radius:50%;border:1rpx solid #ff9d0067;margin-left:20rpx;margin-top:10rpx}.Gendericon.data-v-4f0126b2{width:40rpx;height:40rpx}.Accountnumber.data-v-4f0126b2{display:flex;justify-content:center;margin-bottom:60rpx;margin-top:50rpx}.Coins.data-v-4f0126b2{width:330rpx;height:65rpx;margin-right:50rpx}.country.data-v-4f0126b2{margin-left:10rpx}.goldCoin.data-v-4f0126b2{width:100%;height:100rpx;display:flex;justify-content:center;align-items:center}.number-box.data-v-4f0126b2{display:flex;justify-content:center;text-align:center}.number-box-title.data-v-4f0126b2{color:#191919;font-size:30rpx;margin-right:22rpx;margin-left:17rpx}.number-box-unit.data-v-4f0126b2{color:#03aba8;width:48rpx;height:48rpx;border:1rpx solid #03aba8;border-radius:50%;line-height:48rpx;text-align:center}.Remarkscss.data-v-4f0126b2{width:90%;margin-top:30rpx;margin-left:5%;margin-right:5%;margin-bottom:50rpx;border-radius:10rpx}.Publish.data-v-4f0126b2{margin-bottom:40rpx;width:90%;margin-left:5%}.Publishcss.data-v-4f0126b2{background-image:linear-gradient(135deg,#4fcacd,#5fdbde);color:#fff;font-weight:700;border-radius:50rpx}
@keyframes slide-in-c9e4c29f{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-out-c9e4c29f{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}.create-module.data-v-c9e4c29f{animation:slide-in-c9e4c29f .3s ease-in-out}.close-animation.data-v-c9e4c29f{animation:slide-out-c9e4c29f .3s ease-in-out forwards}.Mask.data-v-c9e4c29f{width:100vw;height:100vh;background:rgba(0,0,0,.463);display:flex;flex-direction:column-reverse}.Hint.data-v-c9e4c29f{color:red;font-size:20rpx;margin-left:30rpx;margin-top:10rpx}.Hintcss.data-v-c9e4c29f{color:red;font-size:20rpx;margin-left:30rpx;margin-top:20rpx}.containers.data-v-c9e4c29f{background-color:#fff;border-radius:50rpx}.container.data-v-c9e4c29f{display:flex;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);background-size:100% 100%;flex-direction:column;width:100%;height:1300rpx;border-radius:50rpx;box-shadow:0 0 10rpx #ccc}.Fork.data-v-c9e4c29f{width:46rpx;height:46rpx;margin-top:20rpx;margin-left:90%}.Titlecss.data-v-c9e4c29f{width:100%;height:70rpx;display:flex;justify-content:center;align-items:center}.Star.data-v-c9e4c29f{width:50rpx;height:50rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);background-size:100% 100%}.Title.data-v-c9e4c29f{width:430rpx;height:70rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png);background-size:100% 200%;background-position:0 100%;margin-left:26rpx;margin-right:26rpx}.Individual.data-v-c9e4c29f{display:flex}.NameAnchor.data-v-c9e4c29f{width:90%;margin:40rpx}.time.data-v-c9e4c29f{width:90%;margin-left:5%;margin-top:50rpx}.NameAnchorcss.data-v-c9e4c29f{width:99%;height:85rpx;background-color:#fff;border:1rpx solid #bfbfbf;border-radius:10rpx;text-align:center}.Gender.data-v-c9e4c29f{width:310rpx;display:flex;flex-direction:column;justify-content:center}.Gendercs.data-v-c9e4c29f{display:flex;justify-content:center}.Gendercss.data-v-c9e4c29f{width:200rpx;height:60rpx}.Gendericoncss.data-v-c9e4c29f{display:flex;justify-content:center;align-items:center;width:60rpx;height:60rpx;border-radius:50%;border:1rpx solid #ff9d0067;margin-left:20rpx;margin-top:10rpx}.Gendericon.data-v-c9e4c29f{width:40rpx;height:40rpx}.Accountnumber.data-v-c9e4c29f{display:flex;justify-content:center;margin-bottom:60rpx;margin-top:50rpx}.Coins.data-v-c9e4c29f{width:330rpx;height:65rpx;margin-right:50rpx}.country.data-v-c9e4c29f{margin-left:10rpx}.goldCoin.data-v-c9e4c29f{width:100%;height:100rpx;display:flex;justify-content:center;align-items:center}.number-box.data-v-c9e4c29f{display:flex;justify-content:center;text-align:center}.number-box-title.data-v-c9e4c29f{color:#191919;font-size:30rpx;margin-right:22rpx;margin-left:17rpx}.number-box-unit.data-v-c9e4c29f{color:#03aba8;width:48rpx;height:48rpx;border:1rpx solid #03aba8;border-radius:50%;line-height:48rpx;text-align:center}.Remarkscss.data-v-c9e4c29f{width:90%;margin-top:30rpx;margin-left:5%;margin-right:5%;margin-bottom:50rpx;border-radius:10rpx}.Publish.data-v-c9e4c29f{margin-bottom:40rpx;width:90%;margin-left:5%}.Publishcss.data-v-c9e4c29f{background-image:linear-gradient(135deg,#4fcacd,#5fdbde);color:#fff;font-weight:700;border-radius:50rpx}

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),o={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,style:{backgroundColor:"#ffffff"}}),onLoad(t){this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,console.log("接收到的数据:",this.item)})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1})},open(){this.$refs.popup.open("center"),this.userlist()},invite(){if(this.item.pkTime!==this.list[this.InvitingPartyEventindex].pkTime)return void e.index.showToast({icon:"none",title:"请保持时间一致"});const t=`C2C${this.item.senderId}`,i=JSON.stringify(this.list[this.InvitingPartyEventindex]),n=JSON.stringify(this.item);e.index.redirectTo({url:`/TUIKit/components/TUIChat/index?conversationID=${t}&myitem=${i}&youritem=${n}`})},close(){this.$refs.popup.close()},openChat(){const t=`C2C${this.item.senderId}`;e.index.redirectTo({url:`/TUIKit/components/TUIChat/index?conversationID=${t}`})},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),console.log("res.data",t.data),this.list=t.data):(e.index.hideLoading(),this.openPopupQuantity()):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-easyinput")+e.resolveComponent("viewm")+e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math||((()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const s=e._export_sfc(o,[["render",function(t,i,n,o,s,d){return e.e({a:e.o$1(((...e)=>d.Returnfunc&&d.Returnfunc(...e))),b:s.item.anchorIcon,c:e.t(s.item.disPlayId),d:"1"===s.item.sex},"1"===s.item.sex?{e:e.t("1"===s.item.sex?"男":"女")}:{f:e.t("2"===s.item.sex?"男":"女")},{g:e.t(s.item.country),h:e.t(d.formatDate(s.item.pkTime)),i:e.t(s.item.coin),j:e.t(s.item.pkNumber),k:e.s(s.style),l:e.o$1((e=>s.item.remark=e)),m:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",disabled:"true",modelValue:s.item.remark}),n:s.item.senderId!==s.id},s.item.senderId!==s.id?{o:e.o$1((e=>d.openChat())),p:e.o$1((e=>d.open()))}:{},{q:e.f(s.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(d.TimeFormatting(t.pkTime)),d:e.t(t.coin),e:"7d712765-2-"+n+",7d712765-1",f:e.o$1((e=>d.Select(t.id,i)),i),g:s.selectedId===t.id?"#f6f6f6":"#ffffff",h:i}))),r:e.o$1((e=>d.invite())),s:e.o$1((e=>d.close())),t:e.sr("popup","7d712765-1"),v:e.p({type:"center","border-radius":"10px 10px 0 0"}),w:e.sr("createModule","7d712765-3")})}],["__scopeId","data-v-7d712765"]]);wx.createPage(s);
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),o={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,style:{backgroundColor:"#ffffff"}}),onLoad(t){this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,console.log("接收到的数据:",this.item)})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1})},open(){this.$refs.popup.open("center"),this.userlist()},invite(){if(this.item.pkTime!==this.list[this.InvitingPartyEventindex].pkTime)return void e.index.showToast({icon:"none",title:"请保持时间一致"});const t=`C2C${this.item.senderId}`,i=JSON.stringify(this.list[this.InvitingPartyEventindex]),n=JSON.stringify(this.item);e.index.redirectTo({url:`/TUIKit/components/TUIChat/index?conversationID=${t}&myitem=${i}&youritem=${n}`})},close(){this.$refs.popup.close()},openChat(){const t=`C2C${this.item.senderId}`;e.index.redirectTo({url:`/TUIKit/components/TUIChat/index?conversationID=${t}`})},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),console.log("res.data",t.data),this.list=t.data):(e.index.hideLoading(),setTimeout((()=>{this.openPopupQuantity(),this.$refs.popup.close()}),2e3)):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-easyinput")+e.resolveComponent("viewm")+e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math||((()=>"../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const s=e._export_sfc(o,[["render",function(t,i,n,o,s,d){return e.e({a:e.o$1(((...e)=>d.Returnfunc&&d.Returnfunc(...e))),b:s.item.anchorIcon,c:e.t(s.item.disPlayId),d:"1"===s.item.sex},"1"===s.item.sex?{e:e.t("1"===s.item.sex?"男":"女")}:{f:e.t("2"===s.item.sex?"男":"女")},{g:e.t(s.item.country),h:e.t(d.formatDate(s.item.pkTime)),i:e.t(s.item.coin),j:e.t(s.item.pkNumber),k:e.s(s.style),l:e.o$1((e=>s.item.remark=e)),m:e.p({type:"textarea",placeholder:"备注",maxlength:"-1",disabled:"true",modelValue:s.item.remark}),n:s.item.senderId!==s.id},s.item.senderId!==s.id?{o:e.o$1((e=>d.openChat())),p:e.o$1((e=>d.open()))}:{},{q:0!==s.list.length},0!==s.list.length?{r:e.f(s.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(d.TimeFormatting(t.pkTime)),d:e.t(t.coin),e:"89de382b-2-"+n+",89de382b-1",f:e.o$1((e=>d.Select(t.id,i)),i),g:s.selectedId===t.id?"#f6f6f6":"#ffffff",h:i})))}:{},{s:0===s.list.length},(s.list.length,{}),{t:e.o$1((e=>d.invite())),v:e.o$1((e=>d.close())),w:e.sr("popup","89de382b-1"),x:e.p({type:"center","border-radius":"10px 10px 0 0"}),y:e.sr("createModule","89de382b-3")})}],["__scopeId","data-v-89de382b"]]);wx.createPage(s);

View File

@@ -1 +1 @@
<view class="container data-v-7d712765"><view class="background data-v-7d712765"><image class="data-v-7d712765" style="width:100%;height:100%" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Navigation data-v-7d712765"><view class="Return data-v-7d712765" bindtap="{{a}}"><image class="Return data-v-7d712765" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view></view><view class="Content data-v-7d712765"><view class="sender data-v-7d712765"><view class="sengderIcon data-v-7d712765"><image class="Icon data-v-7d712765" src="{{b}}" mode="scaleToFill"/></view><view class="Individual data-v-7d712765"><view class="name data-v-7d712765">{{c}}</view><view class="GenderAndAge data-v-7d712765"><view wx:if="{{d}}" class="male data-v-7d712765"><view class="data-v-7d712765"><image class="data-v-7d712765" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/></view><view class="age data-v-7d712765">{{e}}</view></view><view wx:else class="female data-v-7d712765"><view class="data-v-7d712765"><image class="data-v-7d712765" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/></view><view class="age data-v-7d712765">{{f}}</view></view></view><view class="nation data-v-7d712765">{{g}}</view></view><view class="Time data-v-7d712765">PK时间:{{h}}</view><view class="SessionAndGoldCoin data-v-7d712765"><view class="goldCoin data-v-7d712765"><image class="data-v-7d712765" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/gold.png" mode="scaleToFill"/><view class="goldcard data-v-7d712765"><view class="goldnumber data-v-7d712765">{{i}}</view><view class="goldtext data-v-7d712765">金币</view></view></view><view class="Session data-v-7d712765"><image class="data-v-7d712765" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/session.png" mode="scaleToFill"/><view class="goldcard data-v-7d712765"><view class="goldnumber data-v-7d712765">{{j}}</view><view class="goldtext data-v-7d712765">PK场数</view></view></view></view></view><view class="remark data-v-7d712765"><uni-easyinput wx:if="{{m}}" class="data-v-7d712765" style="{{k}}" u-i="7d712765-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-easyinput></view><view wx:if="{{n}}" class="button data-v-7d712765"><button class="accept data-v-7d712765" bindtap="{{o}}">聊了个天</button><button class="reject data-v-7d712765" bindtap="{{p}}">立即邀请</button></view></view></view><uni-popup wx:if="{{v}}" class="r data-v-7d712765" u-s="{{['d']}}" u-r="popup" u-i="7d712765-1" bind:__l="__l" u-p="{{v}}"><view class="popup-content data-v-7d712765"><view class="popup-title data-v-7d712765"><view class="popup-text data-v-7d712765">请选择您要参与的主播</view><scroll-view scroll-y="true" class="scroll data-v-7d712765"><view wx:for="{{q}}" wx:for-item="item" wx:key="h" class="card data-v-7d712765"><view class="card-content data-v-7d712765" bindtap="{{item.f}}" style="{{'background:' + item.g}}"><view class="Avatarimg data-v-7d712765"><image class="avatar data-v-7d712765" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-7d712765"><view class="TimeMoney data-v-7d712765"><view class="NameMoney_Name data-v-7d712765">{{item.b}}</view></view><view class="TimeMoney_Time data-v-7d712765"><view class="pkTimeimg data-v-7d712765"></view><view class="data-v-7d712765">{{item.c}}</view><viewm u-s="{{['d']}}" class="goldnb data-v-7d712765" u-i="{{item.e}}" bind:__l="__l"><view class="goldimg data-v-7d712765"></view>{{item.d}}K</viewm></view></view></view></view></scroll-view></view><view class="popup-btn data-v-7d712765"><button class="invite data-v-7d712765" type="primary" bindtap="{{r}}">邀请</button><button class="cancel data-v-7d712765" type="default" bindtap="{{s}}">取消</button></view></view></uni-popup><new-added-pk class="createModule r data-v-7d712765" u-r="createModule" u-i="7d712765-3" bind:__l="__l"></new-added-pk>
<view class="container data-v-89de382b"><view class="background data-v-89de382b"><image class="data-v-89de382b" style="width:100%;height:100%" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Navigation data-v-89de382b"><view class="Return data-v-89de382b" bindtap="{{a}}"><image class="Return data-v-89de382b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view></view><view class="Content data-v-89de382b"><view class="sender data-v-89de382b"><view class="sengderIcon data-v-89de382b"><image class="Icon data-v-89de382b" src="{{b}}" mode="scaleToFill"/></view><view class="Individual data-v-89de382b"><view class="name data-v-89de382b">{{c}}</view><view class="GenderAndAge data-v-89de382b"><view wx:if="{{d}}" class="male data-v-89de382b"><view class="data-v-89de382b"><image class="data-v-89de382b" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/></view><view class="age data-v-89de382b">{{e}}</view></view><view wx:else class="female data-v-89de382b"><view class="data-v-89de382b"><image class="data-v-89de382b" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/></view><view class="age data-v-89de382b">{{f}}</view></view></view><view class="nation data-v-89de382b">{{g}}</view></view><view class="Time data-v-89de382b">PK时间:{{h}}</view><view class="SessionAndGoldCoin data-v-89de382b"><view class="goldCoin data-v-89de382b"><image class="data-v-89de382b" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/gold.png" mode="scaleToFill"/><view class="goldcard data-v-89de382b"><view class="goldnumber data-v-89de382b">{{i}}</view><view class="goldtext data-v-89de382b">金币</view></view></view><view class="Session data-v-89de382b"><image class="data-v-89de382b" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/session.png" mode="scaleToFill"/><view class="goldcard data-v-89de382b"><view class="goldnumber data-v-89de382b">{{j}}</view><view class="goldtext data-v-89de382b">PK场数</view></view></view></view></view><view class="remark data-v-89de382b"><uni-easyinput wx:if="{{m}}" class="data-v-89de382b" style="{{k}}" u-i="89de382b-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-easyinput></view><view wx:if="{{n}}" class="button data-v-89de382b"><button class="accept data-v-89de382b" bindtap="{{o}}">聊了个天</button><button class="reject data-v-89de382b" bindtap="{{p}}">立即邀请</button></view></view></view><uni-popup wx:if="{{x}}" class="r data-v-89de382b" u-s="{{['d']}}" u-r="popup" u-i="89de382b-1" bind:__l="__l" u-p="{{x}}"><view class="popup-content data-v-89de382b"><view class="popup-title data-v-89de382b"><view class="popup-text data-v-89de382b">请选择您要参与的主播</view><view wx:if="{{q}}" class="data-v-89de382b"><scroll-view scroll-y="true" class="scroll data-v-89de382b"><view wx:for="{{r}}" wx:for-item="item" wx:key="h" class="card data-v-89de382b"><view class="card-content data-v-89de382b" bindtap="{{item.f}}" style="{{'background:' + item.g}}"><view class="Avatarimg data-v-89de382b"><image class="avatar data-v-89de382b" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-89de382b"><view class="TimeMoney data-v-89de382b"><view class="NameMoney_Name data-v-89de382b">{{item.b}}</view></view><view class="TimeMoney_Time data-v-89de382b"><view class="pkTimeimg data-v-89de382b"></view><view class="data-v-89de382b">{{item.c}}</view><viewm u-s="{{['d']}}" class="goldnb data-v-89de382b" u-i="{{item.e}}" bind:__l="__l"><view class="goldimg data-v-89de382b"></view>{{item.d}}K</viewm></view></view></view></view></scroll-view></view><view wx:if="{{s}}" class="noData data-v-89de382b">您还没有可参与的主播PK快去新建一个吧</view></view><view class="popup-btn data-v-89de382b"><button class="invite data-v-89de382b" type="primary" bindtap="{{t}}">邀请</button><button class="cancel data-v-89de382b" type="default" bindtap="{{v}}">取消</button></view></view></uni-popup><new-added-pk class="createModule r data-v-89de382b" u-r="createModule" u-i="89de382b-3" bind:__l="__l"></new-added-pk>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"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\r\n onLoad(option) {\r\n this.AutomaticCleaning();\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 methods: {\r\n //自动清理缓存\r\n AutomaticCleaning() {\r\n const lastCleanTime = uni.getStorageSync(\"last_clean_time\") || 0;\r\n const now = Date.now();\r\n if (now - lastCleanTime < 7 * 24 * 3600 * 1000) return; // 7 days\r\n uni.clearStorage();\r\n uni.setStorageSync(\"last_clean_time\", now);\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,EAEA,OAAO,QAAQ;AACb,SAAK,kBAAkB;AACvBA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAQ,KAAK,KAAM,CAAA;AAAA,MACtC;AAAA,MACA,MAAM,MAAM;AAAA,MAAC;AAAA,IAAA,CACd;AAAA,EACH;AAAA,EACA,SAAS;AAAA;AAAA,IAEP,oBAAoB;AAClB,YAAM,gBAAgBA,cAAA,MAAI,eAAe,iBAAiB,KAAK;AACzD,YAAA,MAAM,KAAK;AACjB,UAAI,MAAM,gBAAgB,IAAI,KAAK,OAAO;AAAM;AAChDA,oBAAA,MAAI,aAAa;AACbA,oBAAAA,MAAA,eAAe,mBAAmB,GAAG;AAAA,IAC3C;AAAA,EACF;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;AC9CO,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\r\n onLoad(option) {\r\n this.AutomaticCleaning();\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 methods: {\r\n //自动清理缓存\r\n AutomaticCleaning() {\r\n const lastCleanTime = uni.getStorageSync(\"last_clean_time\") || 0;\r\n const now = Date.now();\r\n if (now - lastCleanTime < 7 * 24 * 3600 * 1000) return; // 7 days\r\n uni.clearStorage();\r\n uni.setStorageSync(\"last_clean_time\", now);\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,EAEA,OAAO,QAAQ;AACb,SAAK,kBAAkB;AACvBA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAQ,KAAK,KAAM,CAAA;AAAA,MACtC;AAAA,MACA,MAAM,MAAM;AAAA,MAAC;AAAA,IAAA,CACd;AAAA,EACH;AAAA,EACA,SAAS;AAAA;AAAA,IAEP,oBAAoB;AAClB,YAAM,gBAAgBA,cAAA,MAAI,eAAe,iBAAiB,KAAK;AACzD,YAAA,MAAM,KAAK;AACjB,UAAI,MAAM,gBAAgB,IAAI,KAAK,OAAO;AAAM;AAChDA,oBAAA,MAAI,aAAa;AACbA,oBAAAA,MAAA,eAAe,mBAAmB,GAAG;AAAA,IAC3C;AAAA,EACF;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;AC9CO,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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -32,8 +32,14 @@ const _sfc_main = {
//发送时间
filterable: true,
//是否可搜索
AnchorProfilePicture: ""
AnchorProfilePicture: "",
//主播头像
AnchorList: [],
//主播列表
selectedId: null,
//选择的主播
selectedIddata: null
//选择的主播数据
};
},
mounted() {
@@ -45,15 +51,66 @@ const _sfc_main = {
});
},
methods: {
//关闭弹窗
close() {
this.$refs.popup.close();
},
//确认选择
invite() {
if (this.selectedId) {
this.nameAnchor = this.selectedIddata.anchorId;
this.AnchorProfilePicture = this.selectedIddata.headerIcon;
this.close();
} else {
common_vendor.index.showToast({
title: "请选择主播",
icon: "none",
duration: 2e3
});
}
},
//选中的主播
Select(id, item) {
if (this.selectedId !== id) {
this.selectedId = id;
this.selectedIddata = item;
} else {
this.selectedId = null;
this.selectedIddata = null;
}
},
//获取主播列表
getAnchorList() {
components_request.request({
url: "anchor/list",
method: "POST",
data: {
id: this.id
},
userInfo: true
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:265", res.msg);
}
});
},
//选择我的主播
chooseMyStreamer() {
this.$refs.popup.open("center");
this.getAnchorList();
},
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:183", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:277", item);
},
//国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:188", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:282", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
@@ -197,14 +254,16 @@ if (!Array) {
const _easycom_uni_number_box2 = common_vendor.resolveComponent("uni-number-box");
const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2)();
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2 + _easycom_uni_popup2)();
}
const _easycom_wht_select = () => "./uni_modules/wht-select/components/wht-select/wht-select.js";
const _easycom_uni_number_box = () => "./uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js";
const _easycom_uni_datetime_picker = () => "./uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
const _easycom_uni_easyinput = () => "./uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_popup = () => "./uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput)();
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput + _easycom_uni_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -213,10 +272,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
b: common_vendor.o$1(($event) => $options.open()),
c: common_vendor.o$1((...args) => _ctx.NameAnchor && _ctx.NameAnchor(...args)),
d: common_vendor.o$1((...args) => $options.blur && $options.blur(...args)),
e: $data.nameAnchor === "" && $data.Hint === true
e: $data.nameAnchor,
f: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
f: common_vendor.o$1($options.country),
g: common_vendor.p({
g: common_vendor.o$1((...args) => $options.chooseMyStreamer && $options.chooseMyStreamer(...args)),
h: common_vendor.o$1($options.country),
i: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -225,10 +286,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
filterable: $data.filterable,
placeholder: "请选择国家"
}),
h: $data.countrys === "" && $data.Hint === true
j: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
k: common_vendor.o$1($options.gender),
l: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -236,50 +297,73 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
options: $data.Gender,
placeholder: "性别"
}),
k: $data.genders === 0
m: $data.genders === 0
}, $data.genders === 0 ? {} : {}, {
l: $data.genders === 1
n: $data.genders === 1
}, $data.genders === 1 ? {} : {}, {
m: $data.genders === 2
o: $data.genders === 2
}, $data.genders === 2 ? {} : {}, {
n: $data.genders === 0 && $data.Hint === true
p: $data.genders === 0 && $data.Hint === true
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
o: common_vendor.o$1(($event) => $data.numberCoins = $event),
p: common_vendor.p({
q: common_vendor.o$1(($event) => $data.numberCoins = $event),
r: common_vendor.p({
max: 9999999999,
background: "#03ABA8",
modelValue: $data.numberCoins
}),
q: $data.numberCoins === "" && $data.Hint === true
s: $data.numberCoins === "" && $data.Hint === true
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
r: common_vendor.o$1(($event) => $data.datetimesingle = $event),
s: common_vendor.p({
t: common_vendor.o$1(($event) => $data.datetimesingle = $event),
v: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.datetimesingle
}),
t: $data.datetimesingle === "" && $data.Hint === true
w: $data.datetimesingle === "" && $data.Hint === true
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
v: common_vendor.o$1(($event) => $data.session = $event),
w: common_vendor.p({
x: common_vendor.o$1(($event) => $data.session = $event),
y: common_vendor.p({
background: "#03ABA8",
modelValue: $data.session
}),
x: $data.session === "" && $data.Hint === true
z: $data.session === "" && $data.Hint === true
}, $data.session === "" && $data.Hint === true ? {} : {}, {
y: common_vendor.o$1(($event) => $data.remarks = $event),
z: common_vendor.p({
A: common_vendor.o$1(($event) => $data.remarks = $event),
B: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: "-1",
modelValue: $data.remarks
}),
A: common_vendor.o$1(($event) => $options.Publish()),
B: common_vendor.o$1(() => {
C: common_vendor.o$1(($event) => $options.Publish()),
D: common_vendor.o$1(() => {
}),
C: common_vendor.n($data.Display ? "create-module" : "close-animation "),
D: common_vendor.o$1(($event) => $options.open())
}) : {});
E: common_vendor.n($data.Display ? "create-module" : "close-animation "),
F: common_vendor.o$1(($event) => $options.open())
}) : {}, {
G: $data.AnchorList.length !== 0
}, $data.AnchorList.length !== 0 ? {
H: common_vendor.f($data.AnchorList, (item, index, i0) => {
return {
a: item.headerIcon,
b: common_vendor.t(item.anchorId),
c: common_vendor.t(item.country),
d: common_vendor.o$1(($event) => $options.Select(item.id, item), index),
e: $data.selectedId === item.id ? "#f6f6f6" : "#ffffff",
f: index
};
})
} : {}, {
I: $data.AnchorList.length === 0
}, $data.AnchorList.length === 0 ? {} : {}, {
J: common_vendor.o$1(($event) => $options.invite()),
K: common_vendor.o$1(($event) => $options.close()),
L: common_vendor.sr("popup", "96d38e2b-6"),
M: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-96d38e2b"]]);
exports.MiniProgramPage = MiniProgramPage;

View File

@@ -6,6 +6,7 @@ if (!Math) {
"./pages/Mine/Mine.js";
"./pages/Mine/minecomponents/pkRecord.js";
"./pages/Mine/minecomponents/contact.js";
"./pages/Mine/minecomponents/anchorLibrary.js";
"./pages/Mine/minecomponents/pkInformation.js";
"./pages/Mine/minecomponents/recompose/recompose.js";
"./pages/Mine/minecomponents/serviceProtocol.js";

View File

@@ -4,6 +4,7 @@
"pages/Mine/Mine",
"pages/Mine/minecomponents/pkRecord",
"pages/Mine/minecomponents/contact",
"pages/Mine/minecomponents/anchorLibrary",
"pages/Mine/minecomponents/pkInformation",
"pages/Mine/minecomponents/recompose/recompose",
"pages/Mine/minecomponents/serviceProtocol",

View File

@@ -8012,7 +8012,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() {
const hosts = "192.168.0.116,127.0.0.1";
const port = "8090";
const id = "mp-weixin_EIGcbG";
const id = "mp-weixin_ONChgV";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();
@@ -30430,303 +30430,296 @@ const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
const onReady = /* @__PURE__ */ createHook(ON_READY);
const onUnload = /* @__PURE__ */ createHook(ON_UNLOAD);
var dayjs_min = { exports: {} };
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;
}
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);
}
}
(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);
}(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();
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);
}
}
}, 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 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);
};
}), 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();
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);
var dayjs_minExports = dayjs_min.exports;
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
var localeData$1 = { exports: {} };
(function(module2, exports2) {
@@ -30838,7 +30831,7 @@ const isSameOrBefore = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrBeforeExp
var zhCn = { exports: {} };
(function(module2, exports2) {
!function(e2, _2) {
module2.exports = _2(requireDayjs_min());
module2.exports = _2(dayjs_minExports);
}(commonjsGlobal, function(e2) {
function _2(e3) {
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };

View File

@@ -85,9 +85,6 @@ const _sfc_main = {
});
}
});
setTimeout(() => {
common_vendor.index.switchTab({ url: "/pages/Home/Home" });
}, 1e3);
},
methods: {
//关闭弹窗(取消)

View File

@@ -67,6 +67,7 @@
font-size: 31rpx;
color: #161616;
line-height: 38rpx;
margin-bottom: 20rpx;
}
.Genderimg.data-v-7ffebbf4 {
width: 15rpx;

View File

@@ -9,7 +9,9 @@ const _sfc_main = {
return {
userinfo: {},
pkInformationdata: [],
myPkRecorddata: []
myPkRecorddata: [],
SignStatus: null,
AnchorList: []
};
},
onShow() {
@@ -17,13 +19,71 @@ const _sfc_main = {
key: "userinfo",
success: (res) => {
this.userinfo = res.data;
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:136", this.userinfo);
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:208", this.userinfo);
this.getpkInformation();
this.getmyPkRecord();
this.getSignStatus();
this.getAnchorList();
}
});
},
methods: {
// 获取主播列表
getAnchorList() {
components_request.request({
url: "anchor/list",
method: "POST",
data: {
id: this.userinfo.id
},
userInfo: true
}).then((res) => {
if (res.code == 200) {
this.AnchorList = res.data.slice(0, 4);
} else {
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:230", res.msg);
}
});
},
// 获取签到状态
getSignStatus() {
components_request.request({
url: "user/checkSignStatus",
method: "GET",
data: {
userId: this.userinfo.id
},
userInfo: true
}).then((res) => {
if (res.code == 200) {
this.SignStatus = res.data;
} else {
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:247", res.msg);
}
});
},
//签到
sign() {
components_request.request({
url: "user/signIn",
method: "POST",
data: {
userId: this.userinfo.id
},
userInfo: true
}).then((res) => {
if (res.code == 200) {
common_vendor.index.showToast({
title: "签到成功",
icon: "none",
duration: 2e3
});
this.getSignStatus();
} else {
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:269", res.msg);
}
});
},
formatDate: components_formatDate.formatDate,
TimeFormatting: components_TimeFormatting.TimeFormatting,
//获取pk信息
@@ -40,9 +100,9 @@ const _sfc_main = {
}).then((res) => {
if (res.code == 200) {
this.pkInformationdata = res.data;
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:159", this.pkInformationdata);
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:289", this.pkInformationdata);
} else {
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:161", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:291", res.msg);
}
});
},
@@ -61,12 +121,17 @@ const _sfc_main = {
}).then((res) => {
if (res.code == 200) {
this.myPkRecorddata = res.data;
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:180", this.myPkRecorddata);
} else {
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:182", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:311", res.msg);
}
});
},
// 跳转到主播库页面
anchorLibrary() {
common_vendor.index.navigateTo({
url: "/pages/Mine/minecomponents/anchorLibrary"
});
},
// 跳转到PK信息页面
pkInformation() {
common_vendor.index.navigateTo({
@@ -122,11 +187,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.userinfo.headerIcon,
b: common_vendor.t($data.userinfo.nickName),
c: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
d: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
e: $data.pkInformationdata.length !== 0
c: $data.SignStatus === true
}, $data.SignStatus === true ? {
d: common_vendor.o$1((...args) => $options.sign && $options.sign(...args))
} : {}, {
e: $data.SignStatus === false
}, $data.SignStatus === false ? {} : {}, {
f: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
g: common_vendor.o$1((...args) => $options.anchorLibrary && $options.anchorLibrary(...args)),
h: $data.AnchorList.length !== 0
}, $data.AnchorList.length !== 0 ? {
i: common_vendor.f($data.AnchorList, (item, index, i0) => {
return {
a: item.headerIcon,
b: common_vendor.t(item.anchorId),
c: common_vendor.t(item.country),
d: index
};
})
} : {}, {
j: $data.AnchorList.length === 0
}, $data.AnchorList.length === 0 ? {} : {}, {
k: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
l: $data.pkInformationdata.length !== 0
}, $data.pkInformationdata.length !== 0 ? {
f: common_vendor.f($data.pkInformationdata, (item, index, i0) => {
m: common_vendor.f($data.pkInformationdata, (item, index, i0) => {
return {
a: item.anchorIcon,
b: common_vendor.t($options.formatDate(item.pkTime)),
@@ -135,16 +220,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
};
})
} : {}, {
g: $data.pkInformationdata.length === 0
n: $data.pkInformationdata.length === 0
}, $data.pkInformationdata.length === 0 ? {} : {}, {
h: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
i: $data.myPkRecorddata.length !== 0
o: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
p: $data.myPkRecorddata.length !== 0
}, $data.myPkRecorddata.length !== 0 ? {
j: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
q: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
return common_vendor.e({
a: item.anchorIconA,
b: item.winnerAnchorId !== item.anchorIdA
}, item.winnerAnchorId !== item.anchorIdA ? {} : item.winnerAnchorId === item.anchorIdA ? {} : {}, {
b: item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== ""
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== "" ? {} : item.winnerAnchorId === item.anchorIdA ? {} : {}, {
c: item.winnerAnchorId === item.anchorIdA,
d: common_vendor.t(item.pkNumber),
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
@@ -152,12 +237,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
});
})
} : {}, {
k: $data.myPkRecorddata.length === 0
r: $data.myPkRecorddata.length === 0
}, $data.myPkRecorddata.length === 0 ? {} : {}, {
l: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
m: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
n: common_vendor.o$1((...args) => $options.logout && $options.logout(...args)),
o: common_vendor.p({
s: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
t: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
v: common_vendor.o$1((...args) => $options.logout && $options.logout(...args)),
w: common_vendor.p({
tabIndex: 4
})
});

File diff suppressed because one or more lines are too long

View File

@@ -38,14 +38,25 @@
height: 100%;
}
.name.data-v-402ad917 {
width: 400rpx;
width: 280rpx;
font-size: 36.26rpx;
font-weight: 500;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.Sign.data-v-402ad917 {
width: 100rpx;
height: 50rpx;
background-color: #91e3e4;
border-radius: 20rpx;
font-size: 20rpx;
color: #fff;
text-align: center;
line-height: 50rpx;
margin-left: 30rpx;
}
.content.data-v-402ad917 {
position: absolute;
top: 294.5rpx;
@@ -56,6 +67,16 @@
flex-direction: column;
align-items: center;
}
.scroll.data-v-402ad917 {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.PKInformation.data-v-402ad917 {
margin-top: 48.5rpx;
}
@@ -81,13 +102,18 @@
border-radius: 7.16rpx 0rpx 7.16rpx 7.16rpx;
background-color: #91e3e48b;
}
.AnchorMore.data-v-402ad917 {
margin-left: 390rpx;
font-size: 28.63rpx;
color: #333333;
}
.titleMore.data-v-402ad917 {
margin-left: 400rpx;
font-size: 28.63rpx;
color: #333333;
}
.myPkRecordMore.data-v-402ad917 {
margin-left:330rpx;
margin-left: 330rpx;
font-size: 28.63rpx;
color: #333333;
}
@@ -173,17 +199,17 @@
color: #333333;
font-weight: 400;
}
.copyright.data-v-402ad917{
.copyright.data-v-402ad917 {
font-size: 23rpx;
color: #929292;
text-align: center;
position: fixed;
bottom: 250rpx;
position: absolute;
bottom: 0rpx;
left: 0;
right: 0;
height: 50rpx;
}
.no-content.data-v-402ad917{
.no-content.data-v-402ad917 {
width: 100%;
height: 100%;
display: flex;

View File

@@ -7,27 +7,29 @@ const _sfc_main = {
return {
title: "Hello",
item: {},
coinNumlist: [{
winnerAnchorId: 1,
anchorIdA: 1,
anchorIdB: 2,
anchorCoinA: 2,
anchorCoinB: 3
}]
coinNumlist: [],
triggered: false
};
},
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);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:112", "接收到的数据:", this.item);
this.getCoinNum(this.item);
});
},
methods: {
// 下拉刷新
onRefresherRefresh() {
this.triggered = true;
this.coinNumlist = [];
this.getCoinNum(this.item);
},
// 获取具体金币数量
getCoinNum(item) {
components_request.request({
url: "user/pkRecordDetail",
url: "pk/fetchDetailPkDataWithId",
method: "POST",
data: {
id: item.id
@@ -36,8 +38,9 @@ const _sfc_main = {
}).then((res) => {
if (res.code == 200) {
this.coinNumlist = res.data;
this.triggered = false;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:132", "获取金币数量失败");
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.vue:137", "获取金币数量失败");
}
});
},
@@ -78,7 +81,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: index,
f: "414631de-0-" + i0
};
})
}),
m: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
n: $data.triggered
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-414631de"]]);

View File

@@ -1 +1 @@
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" 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="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{f}}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">{{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 class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{j}}" mode="scaleToFill"/></view><image wx:if="{{k}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" 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="{{l}}" 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>
<view class="details-pkrecords data-v-414631de"><view class="bg data-v-414631de"><image class="bgImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-414631de" bindtap="{{a}}"><image class="ReturnImg data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" 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="{{b}}" mode="scaleToFill"/></view><image wx:if="{{c}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/><view class="AnchorAinfo data-v-414631de"><view class="AnchorAname data-v-414631de">{{d}}</view><view class="AnchorATime data-v-414631de">{{e}}</view><view class="AnchorAICon data-v-414631de"><view class="AnchorAIContext data-v-414631de">实际打金币:</view><view class="AnchorAIConNum data-v-414631de">{{f}}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">{{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 class="AnchorAImg data-v-414631de"><image class="AnchorBImgcss data-v-414631de" src="{{j}}" mode="scaleToFill"/></view><image wx:if="{{k}}" class="Crown data-v-414631de" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Crown.png" mode="scaleToFill"/></view></view><view class="pkrecords-content data-v-414631de"><scroll-view scroll-y="true" class="scroll data-v-414631de" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{m}}" refresher-triggered="{{n}}"><uni-card wx:for="{{l}}" 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>

View File

@@ -0,0 +1,209 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const components_NationalDictionary = require("../../../../components/NationalDictionary.js");
const components_request = require("../../../../components/request.js");
const _sfc_main = {
data() {
return {
genders: 0,
//性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 }
],
Country: components_NationalDictionary.optionsArray,
countrys: "",
//国家
nameAnchor: "",
//主播名称
Display: false,
Hint: false,
id: null,
//用户id
sendingTime: "",
//发送时间
filterable: true,
//是否可搜索
AnchorProfilePicture: ""
//主播头像
};
},
mounted() {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.id = res.data.id;
}
});
},
methods: {
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/addStreamer/addStreamer.vue:133", item);
},
//国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/addStreamer/addStreamer.vue:138", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
this.Display = false;
this.Hint = false;
}
},
open() {
if (this.Display) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.countrys = "";
} else {
this.Display = true;
}
},
//获取主播名称以及头像地址
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
common_vendor.index.showLoading({
title: "正在验证主播",
mask: true
});
common_vendor.index.request({
url: "https://python.yolojt.com/api/" + this.nameAnchor,
success: (res) => {
if (res.data.code === 200) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "查询成功",
icon: "none",
duration: 3e3
});
this.AnchorProfilePicture = res.data.data;
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "未查询到该主播",
icon: "none",
duration: 3e3
});
}
},
fail: function(res) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none",
duration: 3e3
});
}
});
} else {
return;
}
},
async Publish() {
if (this.nameAnchor === "" || this.genders === 0 || this.countrys === "" || this.AnchorProfilePicture === "") {
this.Hint = true;
return;
}
common_vendor.index.showLoading({
title: "添加中...",
mask: true
});
await components_request.request({
url: "anchor/add",
method: "POST",
data: {
anchorId: this.nameAnchor,
headerIcon: this.AnchorProfilePicture,
gender: this.genders,
country: this.countrys,
createUserId: this.id
},
userInfo: true
}).then((res) => {
if (res.code === 200) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.AnchorProfilePicture = "";
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "添加成功",
icon: "success",
duration: 2e3
});
this.$emit("Refresh");
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "添加失败" + res.msg,
icon: "none",
duration: 2e3
});
}
});
}
}
};
if (!Array) {
const _easycom_wht_select2 = common_vendor.resolveComponent("wht-select");
_easycom_wht_select2();
}
const _easycom_wht_select = () => "../../../../uni_modules/wht-select/components/wht-select/wht-select.js";
if (!Math) {
_easycom_wht_select();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.Display
}, $data.Display ? common_vendor.e({
b: common_vendor.o$1(($event) => $options.open()),
c: common_vendor.o$1((...args) => _ctx.NameAnchor && _ctx.NameAnchor(...args)),
d: common_vendor.o$1((...args) => $options.blur && $options.blur(...args)),
e: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
f: common_vendor.o$1($options.country),
g: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#ffffff",
options: $data.Country,
filterable: $data.filterable,
placeholder: "请选择国家"
}),
h: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#ffffff",
options: $data.Gender,
placeholder: "性别"
}),
k: $data.genders === 0
}, $data.genders === 0 ? {} : {}, {
l: $data.genders === 1
}, $data.genders === 1 ? {} : {}, {
m: $data.genders === 2
}, $data.genders === 2 ? {} : {}, {
n: $data.genders === 0 && $data.Hint === true
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
o: common_vendor.o$1(($event) => $options.Publish()),
p: common_vendor.o$1(() => {
}),
q: common_vendor.n($data.Display ? "create-module" : "close-animation "),
r: common_vendor.o$1(($event) => $options.open())
}) : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a0301f10"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/addStreamer/addStreamer.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"wht-select": "../../../../uni_modules/wht-select/components/wht-select/wht-select"
}
}

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['data-v-a0301f10', q, 'Mask']}}" bindtap="{{r}}"><view catchtap="{{p}}" class="containers data-v-a0301f10"><view class="container data-v-a0301f10"><image class="Fork data-v-a0301f10" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-a0301f10"><view class="Star data-v-a0301f10"></view><view class="Title data-v-a0301f10">添加我的主播</view><view class="Star data-v-a0301f10"></view></view><view class="NameAnchor data-v-a0301f10"><input class="NameAnchorcss data-v-a0301f10" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}"/><view wx:if="{{e}}" class="Hint data-v-a0301f10">请检查主播名称是否正确</view></view><view class="Accountnumber data-v-a0301f10"><view class="Coins country data-v-a0301f10"><wht-select wx:if="{{g}}" class="data-v-a0301f10" style="width:350rpx" bindchange="{{f}}" u-i="a0301f10-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-a0301f10">请选择国家</view></view><view class="Gender data-v-a0301f10"><view class="Gendercs data-v-a0301f10"><view class="Gendercss data-v-a0301f10"><wht-select wx:if="{{j}}" class="data-v-a0301f10" style="width:300rpx" bindchange="{{i}}" u-i="a0301f10-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-a0301f10"><image wx:if="{{k}}" class="Gendericon data-v-a0301f10" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{l}}" class="Gendericon data-v-a0301f10" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-a0301f10" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{n}}" class="Hintcss data-v-a0301f10">请选择性别</view></view></view><view class="Publish data-v-a0301f10"><button bindtap="{{o}}" class="Publishcss data-v-a0301f10">添加主播</button></view></view></view></view>

View File

@@ -0,0 +1,201 @@
/* 定义动画 */
/* 原始进入动画 */
@keyframes slide-in-a0301f10 {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* 进入动画类 */
.create-module.data-v-a0301f10 {
animation: slide-in-a0301f10 0.3s ease-in-out;
}
.Mask.data-v-a0301f10 {
width: 100vw;
height: 100vh;
background: #00000076;
display: flex;
flex-direction: column-reverse;
}
.Hint.data-v-a0301f10 {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 10rpx;
}
.Hintcss.data-v-a0301f10 {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 20rpx;
}
.containers.data-v-a0301f10 {
background-color: #ffffff;
border-radius: 50rpx;
}
.container.data-v-a0301f10 {
display: flex;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);
background-size: 100% 100%;
flex-direction: column;
width: 100%;
height: 1000rpx;
border-radius: 50rpx;
box-shadow: 0 0 10rpx #ccc;
}
.Fork.data-v-a0301f10 {
width: 46rpx;
height: 46rpx;
margin-top: 20rpx;
/* margin-bottom: 40rpx; */
margin-left: 90%;
}
.Titlecss.data-v-a0301f10 {
width: 100%;
height: 70rpx;
display: flex;
justify-content: center;
align-items: center;
}
.Star.data-v-a0301f10 {
width: 50rpx;
height: 50rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);
background-size: 100% 100%;
}
.Title.data-v-a0301f10 {
width: 430rpx;
height: 70rpx;
/* background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png); */
background-size: 100% 200%;
background-position: 0 100%;
margin-left: 26rpx;
margin-right: 26rpx;
font-size:50rpx;
line-height: 70rpx;
background: linear-gradient(135deg, #019fa1, #9ddbdc);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
font-weight: bold;
text-align: center;
font-style: italic;
}
.Individual.data-v-a0301f10 {
display: flex;
/* justify-content: center; */
}
.NameAnchor.data-v-a0301f10 {
width: 90%;
margin: 40rpx;
}
.time.data-v-a0301f10 {
width: 90%;
margin-left: 5%;
margin-top: 50rpx;
}
.NameAnchorcss.data-v-a0301f10 {
width: 99%;
height: 85rpx;
background-color: #ffffff;
border: 1rpx solid #bfbfbf;
border-radius: 10rpx;
text-align: center;
}
.Gender.data-v-a0301f10 {
width: 310rpx;
display: flex;
flex-direction: column;
justify-content: center;
}
.Gendercs.data-v-a0301f10 {
display: flex;
justify-content: center;
/* align-items: center; */
}
.Gendercss.data-v-a0301f10 {
width: 200rpx;
height: 60rpx;
}
.Gendericoncss.data-v-a0301f10 {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon.data-v-a0301f10 {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.Accountnumber.data-v-a0301f10 {
display: flex;
justify-content: center;
margin-bottom: 60rpx;
margin-top: 50rpx;
}
.Coins.data-v-a0301f10 {
width: 330rpx;
height: 65rpx;
/* display: flex; */
margin-right: 50rpx;
/* flex-direction: column; */
}
.country.data-v-a0301f10 {
margin-left: 10rpx;
}
.goldCoin.data-v-a0301f10 {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
}
.number-box.data-v-a0301f10 {
display: flex;
justify-content: center;
text-align: center;
}
.number-box-title.data-v-a0301f10 {
color: #191919;
font-size: 30rpx;
margin-right: 22rpx;
margin-left: 17rpx;
}
.number-box-unit.data-v-a0301f10 {
color: #03aba8;
width: 48rpx;
height: 48rpx;
border: 1rpx solid #03aba8;
border-radius: 50%;
line-height: 48rpx;
text-align: center;
/* color: #003cff5a; */
}
.Publish.data-v-a0301f10 {
margin-top: 300rpx;
margin-bottom: 40rpx;
width: 90%;
margin-left: 5%;
}
.Publishcss.data-v-a0301f10 {
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
/* color: #33ff00; */
color: #ffffff;
font-weight: bold;
border-radius: 50rpx;
}

View File

@@ -0,0 +1,136 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const components_request = require("../../../components/request.js");
const anchorLibrary = () => "./addStreamer/addStreamer.js";
const modifyStreamer = () => "./modifyStreamer/modifyStreamer.js";
const _sfc_main = {
data() {
return {
userinfo: {},
AnchorList: [],
triggered: false,
modifyStreamerMessage: {}
};
},
onLoad() {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.userinfo = res.data;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/anchorLibrary.vue:109", this.userinfo);
this.getAnchorList();
}
});
},
methods: {
// 重新编辑主播信息
onRecompose(item) {
this.modifyStreamerMessage = item;
this.$refs.modifyStreamer.open();
},
// 删除主播信息
onExpurgate(item) {
components_request.request({
url: "anchor/deleteMyAnchor",
method: "POST",
data: {
id: item.id
},
userInfo: true
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
common_vendor.index.showToast({
title: "删除成功",
icon: "success",
duration: 2e3
});
this.getAnchorList();
} else {
common_vendor.index.showToast({
title: res.msg,
icon: "success",
duration: 2e3
});
}
});
},
//获取主播列表
getAnchorList() {
components_request.request({
url: "anchor/list",
method: "POST",
data: {
id: this.userinfo.id
},
userInfo: true
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/anchorLibrary.vue:161", res.msg);
}
});
},
//打开弹窗,添加主播
openPopupQuantity() {
this.$refs.createModule.open();
},
// 下拉刷新
onRefresherRefresh() {
this.triggered = true;
this.getAnchorList();
},
// 返回上一页
onBack() {
common_vendor.wx$1.navigateBack({
delta: 1
});
}
},
components: {
anchorLibrary,
modifyStreamer
}
};
if (!Array) {
const _component_uni_card = common_vendor.resolveComponent("uni-card");
const _component_anchorLibrary = common_vendor.resolveComponent("anchorLibrary");
const _component_modifyStreamer = common_vendor.resolveComponent("modifyStreamer");
(_component_uni_card + _component_anchorLibrary + _component_modifyStreamer)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args)),
b: common_vendor.f($data.AnchorList, (item, index, i0) => {
return common_vendor.e({
a: item.headerIcon,
b: common_vendor.t(item.anchorId),
c: item.gender === 2
}, item.gender === 2 ? {} : {}, {
d: common_vendor.t(item.gender === 1 ? "男" : "女"),
e: item.gender === 1 ? 1 : "",
f: item.gender === 2 ? 1 : "",
g: common_vendor.t(item.country),
h: common_vendor.o$1(($event) => $options.onRecompose(item), index),
i: common_vendor.o$1(($event) => $options.onExpurgate(item), index),
j: index,
k: "daea6b33-0-" + i0
});
}),
c: common_vendor.o$1((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
d: $data.triggered,
e: common_vendor.o$1(($event) => $options.openPopupQuantity()),
f: common_vendor.sr("createModule", "daea6b33-1"),
g: common_vendor.o$1($options.getAnchorList),
h: common_vendor.sr("modifyStreamer", "daea6b33-2"),
i: common_vendor.o$1($options.getAnchorList),
j: common_vendor.p({
message: $data.modifyStreamerMessage
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-daea6b33"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/anchorLibrary.js.map

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "主播库",
"usingComponents": {
"anchor-library": "./addStreamer/addStreamer",
"modify-streamer": "./modifyStreamer/modifyStreamer"
}
}

View File

@@ -0,0 +1 @@
<view class="anchor-library data-v-daea6b33"><view class="bg data-v-daea6b33"><image class="bgImg data-v-daea6b33" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-daea6b33" bindtap="{{a}}"><image class="ReturnImg data-v-daea6b33" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-daea6b33">主播库</view><view class="content data-v-daea6b33"><scroll-view scroll-y="true" class="scroll data-v-daea6b33" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{c}}" lower-threshold="100" refresher-triggered="{{d}}"><uni-card wx:for="{{b}}" wx:for-item="item" wx:key="j" u-s="{{['d']}}" class="card data-v-daea6b33" u-i="{{item.k}}" bind:__l="__l"><view class="Profile data-v-daea6b33"><image class="data-v-daea6b33" src="{{item.a}}" style="width:89.12rpx;height:89.12rpx;border-radius:72.25rpx" mode="scaleToFill"/></view><view class="Individual data-v-daea6b33"><view class="Name data-v-daea6b33">{{item.b}}</view><view class="Label data-v-daea6b33"><view class="data-v-daea6b33"><view class="{{['data-v-daea6b33', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-daea6b33" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-daea6b33" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-daea6b33">{{item.d}}</view></view></view><view class="state data-v-daea6b33">{{item.g}}</view></view></view><view class="handle data-v-daea6b33"><view class="recompose data-v-daea6b33" bindtap="{{item.h}}"><image class="data-v-daea6b33" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/recompose.png" mode="scaleToFill"/></view><view class="expurgate data-v-daea6b33" bindtap="{{item.i}}"><image class="data-v-daea6b33" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/expurgate.png" mode="scaleToFill"/></view></view></uni-card></scroll-view></view><view class="addition data-v-daea6b33" bindtap="{{e}}"></view></view><anchor-library class="createModule r data-v-daea6b33" u-r="createModule" bindRefresh="{{g}}" u-i="daea6b33-1" bind:__l="__l"></anchor-library><modify-streamer wx:if="{{j}}" u-r="modifyStreamer" class="createModule r data-v-daea6b33" bindRefresh="{{i}}" u-i="daea6b33-2" bind:__l="__l" u-p="{{j}}"></modify-streamer>

View File

@@ -0,0 +1,171 @@
.bg.data-v-daea6b33 {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.bgImg.data-v-daea6b33 {
width: 100%;
height: 100%;
}
.Return.data-v-daea6b33 {
position: absolute;
top: 110rpx;
left: 35rpx;
width: 46rpx;
height: 46rpx;
}
.title.data-v-daea6b33 {
position: absolute;
top: 120rpx;
left: 315rpx;
font-size: 34rpx;
color: #100e0f;
font-weight: 500;
}
.ReturnImg.data-v-daea6b33 {
width: 100%;
height: 100%;
}
.scroll.data-v-daea6b33 {
position: absolute;
top: 200rpx;
left: 0;
right: 0;
height: 1300rpx;
width: 100%;
}
.card.data-v-daea6b33 {
width: 695rpx;
height: 161rpx;
background: #ffffff;
border-radius: 15rpx;
display: flex;
align-items: center;
margin-left: 30rpx;
margin-top: 20rpx;
}
.Profile.data-v-daea6b33 {
width: 89rpx;
height: 89rpx;
border-radius: 50rpx;
background-color: #cccccc;
margin-left: 27.5rpx;
}
.Gendermale.data-v-daea6b33 {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
display: flex;
align-items: center;
margin-right: 10rpx;
}
.Genderfemale.data-v-daea6b33 {
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png)
no-repeat center;
width: 56.3rpx;
height: 29.58rpx;
background-size: 100% 100%;
display: flex;
align-items: center;
margin-right: 10rpx;
}
.Individual.data-v-daea6b33 {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 37rpx;
}
.Name.data-v-daea6b33 {
width: 288.17rpx;
font-size: 30.53rpx;
color: #161616;
font-weight: 500;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.time.data-v-daea6b33 {
margin-top: 13rpx;
font-size: 23rpx;
color: #a3a3a3;
}
.state.data-v-daea6b33 {
width: 56.3rpx;
height: 30rpx;
background: #f6f6f6;
border-radius: 14rpx;
line-height: 30rpx;
font-size: 17rpx;
color: #666666;
padding: 0 15rpx;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
text-align: center;
}
.Label.data-v-daea6b33 {
margin-top: 15rpx;
display: flex;
}
.age.data-v-daea6b33 {
font-size: 17rpx;
color: #ffffff;
margin-left: 10rpx;
}
.Genderimg.data-v-daea6b33 {
width: 14.22rpx;
height: 14.22rpx;
margin-left: 10rpx;
}
.species.data-v-daea6b33 {
display: flex;
margin-left: 10rpx;
}
.species-text.data-v-daea6b33 {
font-size: 23rpx;
color: #a3a3a3;
}
.species-num.data-v-daea6b33 {
font-size: 23rpx;
color: #161616;
font-weight: bold;
}
.handle.data-v-daea6b33 {
display: flex;
}
.recompose.data-v-daea6b33 {
width: 46rpx;
height: 46rpx;
margin-left: 90rpx;
}
.expurgate.data-v-daea6b33 {
width: 46rpx;
height: 46rpx;
margin-left: 40rpx;
}
.createModule.data-v-daea6b33 {
position: fixed;
bottom: 0;
right: 0;
z-index: 998;
width: 100vw;
}
.addition.data-v-daea6b33 {
position: absolute;
bottom: 200rpx;
right: 100rpx;
width: 100rpx;
height: 100rpx;
z-index: 998;
border-radius: 50rpx;
/* background-color: #ffffff; */
background: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/addAnchor.png)
no-repeat center;
background-size: 100% 100%;
}

View File

@@ -0,0 +1,229 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const components_NationalDictionary = require("../../../../components/NationalDictionary.js");
const components_request = require("../../../../components/request.js");
const _sfc_main = {
data() {
return {
genders: 0,
//性别
Gender: [
{ label: "男", value: 1 },
{ label: "女", value: 2 }
],
Country: components_NationalDictionary.optionsArray,
countrys: "",
//国家
nameAnchor: "",
//主播名称
Display: false,
Hint: false,
id: null,
//用户id
filterable: true,
//是否可搜索
AnchorProfilePicture: "",
//主播头像
uid: null
//用户id
};
},
props: {
message: {
type: Object
}
},
watch: {
message(newQuestion, oldQuestion) {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/modifyStreamer/modifyStreamer.vue:131", newQuestion);
this.id = newQuestion.id;
this.nameAnchor = newQuestion.anchorId;
this.genders = newQuestion.gender;
this.AnchorProfilePicture = newQuestion.headerIcon.split("/").pop();
this.countrys = newQuestion.country;
}
},
mounted() {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.uid = res.data.id;
}
});
},
methods: {
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/modifyStreamer/modifyStreamer.vue:151", item);
},
//国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/modifyStreamer/modifyStreamer.vue:156", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
this.Display = false;
this.Hint = false;
}
},
open() {
if (this.Display) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.countrys = "";
} else {
this.Display = true;
}
},
//获取主播名称以及头像地址
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
common_vendor.index.showLoading({
title: "正在验证主播",
mask: true
});
common_vendor.index.request({
url: "https://python.yolojt.com/api/" + this.nameAnchor,
success: (res) => {
if (res.data.code === 200) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "查询成功",
icon: "none",
duration: 3e3
});
this.AnchorProfilePicture = res.data.data;
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "未查询到该主播",
icon: "none",
duration: 3e3
});
}
},
fail: function(res) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "网络请求失败",
icon: "none",
duration: 3e3
});
}
});
} else {
return;
}
},
async Publish() {
if (this.nameAnchor === "" || this.genders === 0 || this.countrys === "" || this.AnchorProfilePicture === "") {
this.Hint = true;
return;
}
common_vendor.index.showLoading({
title: "修改中...",
mask: true
});
await components_request.request({
url: "anchor/updateAnchorInfo",
method: "POST",
data: {
id: this.id,
anchorId: this.nameAnchor,
headerIcon: this.AnchorProfilePicture,
gender: this.genders,
country: this.countrys,
createUserId: this.uid
},
userInfo: true
}).then((res) => {
if (res.code === 200) {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = 0;
this.AnchorProfilePicture = "";
this.country = "";
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "修改成功",
icon: "success",
duration: 2e3
});
this.$emit("Refresh");
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "修改失败" + res.msg,
icon: "none",
duration: 2e3
});
}
});
}
}
};
if (!Array) {
const _easycom_wht_select2 = common_vendor.resolveComponent("wht-select");
_easycom_wht_select2();
}
const _easycom_wht_select = () => "../../../../uni_modules/wht-select/components/wht-select/wht-select.js";
if (!Math) {
_easycom_wht_select();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.Display
}, $data.Display ? common_vendor.e({
b: common_vendor.o$1(($event) => $options.open()),
c: common_vendor.o$1((...args) => _ctx.NameAnchor && _ctx.NameAnchor(...args)),
d: common_vendor.o$1((...args) => $options.blur && $options.blur(...args)),
e: $data.nameAnchor,
f: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $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: "请选择国家",
value: $data.countrys
}),
i: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $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: "性别",
value: $data.genders
}),
l: $data.genders === 0
}, $data.genders === 0 ? {} : {}, {
m: $data.genders === 1
}, $data.genders === 1 ? {} : {}, {
n: $data.genders === 2
}, $data.genders === 2 ? {} : {}, {
o: $data.genders === 0 && $data.Hint === true
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
p: common_vendor.o$1(($event) => $options.Publish()),
q: common_vendor.o$1(() => {
}),
r: common_vendor.n($data.Display ? "create-module" : "close-animation "),
s: common_vendor.o$1(($event) => $options.open())
}) : {});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ad97bf06"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/modifyStreamer/modifyStreamer.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"wht-select": "../../../../uni_modules/wht-select/components/wht-select/wht-select"
}
}

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" class="{{['data-v-ad97bf06', r, 'Mask']}}" bindtap="{{s}}"><view catchtap="{{q}}" class="containers data-v-ad97bf06"><view class="container data-v-ad97bf06"><image class="Fork data-v-ad97bf06" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-ad97bf06"><view class="Star data-v-ad97bf06"></view><view class="Title data-v-ad97bf06">修改我的主播</view><view class="Star data-v-ad97bf06"></view></view><view class="NameAnchor data-v-ad97bf06"><input class="NameAnchorcss data-v-ad97bf06" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-ad97bf06">请检查主播名称是否正确</view></view><view class="Accountnumber data-v-ad97bf06"><view class="Coins country data-v-ad97bf06"><wht-select wx:if="{{h}}" class="data-v-ad97bf06" style="width:350rpx" bindchange="{{g}}" u-i="ad97bf06-0" bind:__l="__l" u-p="{{h}}"/><view wx:if="{{i}}" class="Hint data-v-ad97bf06">请选择国家</view></view><view class="Gender data-v-ad97bf06"><view class="Gendercs data-v-ad97bf06"><view class="Gendercss data-v-ad97bf06"><wht-select wx:if="{{k}}" class="data-v-ad97bf06" style="width:300rpx" bindchange="{{j}}" u-i="ad97bf06-1" bind:__l="__l" u-p="{{k}}"/></view><view class="Gendericoncss data-v-ad97bf06"><image wx:if="{{l}}" class="Gendericon data-v-ad97bf06" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-ad97bf06" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-ad97bf06" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{o}}" class="Hintcss data-v-ad97bf06">请选择性别</view></view></view><view class="Publish data-v-ad97bf06"><button bindtap="{{p}}" class="Publishcss data-v-ad97bf06">修改主播信息</button></view></view></view></view>

View File

@@ -0,0 +1,200 @@
/* 定义动画 */
/* 原始进入动画 */
@keyframes slide-in-ad97bf06 {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* 进入动画类 */
.create-module.data-v-ad97bf06 {
animation: slide-in-ad97bf06 0.3s ease-in-out;
}
.Mask.data-v-ad97bf06 {
width: 100vw;
height: 100vh;
background: #00000076;
display: flex;
flex-direction: column-reverse;
}
.Hint.data-v-ad97bf06 {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 10rpx;
}
.Hintcss.data-v-ad97bf06 {
color: rgb(255, 0, 0);
font-size: 20rpx;
margin-left: 30rpx;
margin-top: 20rpx;
}
.containers.data-v-ad97bf06 {
background-color: #ffffff;
border-radius: 50rpx;
}
.container.data-v-ad97bf06 {
display: flex;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/bgv.png);
background-size: 100% 100%;
flex-direction: column;
width: 100%;
height: 1000rpx;
border-radius: 50rpx;
box-shadow: 0 0 10rpx #ccc;
}
.Fork.data-v-ad97bf06 {
width: 46rpx;
height: 46rpx;
margin-top: 20rpx;
/* margin-bottom: 40rpx; */
margin-left: 90%;
}
.Titlecss.data-v-ad97bf06 {
width: 100%;
height: 70rpx;
display: flex;
justify-content: center;
align-items: center;
}
.Star.data-v-ad97bf06 {
width: 50rpx;
height: 50rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/star.png);
background-size: 100% 100%;
}
.Title.data-v-ad97bf06 {
width: 430rpx;
height: 70rpx;
/* background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Publishpk.png); */
background-size: 100% 200%;
background-position: 0 100%;
margin-left: 26rpx;
margin-right: 26rpx;
font-size: 50rpx;
line-height: 70rpx;
background: linear-gradient(135deg, #019fa1, #9ddbdc);
-webkit-background-clip: text; /* 兼容 WebKit 内核 */
background-clip: text;
color: transparent; /* 隐藏原文字颜色 */
-webkit-text-fill-color: transparent; /* Safari 兼容 */
font-weight: bold;
text-align: center;
font-style: italic;
}
.Individual.data-v-ad97bf06 {
display: flex;
/* justify-content: center; */
}
.NameAnchor.data-v-ad97bf06 {
width: 90%;
margin: 40rpx;
}
.time.data-v-ad97bf06 {
width: 90%;
margin-left: 5%;
margin-top: 50rpx;
}
.NameAnchorcss.data-v-ad97bf06 {
width: 99%;
height: 85rpx;
background-color: #ffffff;
border: 1rpx solid #bfbfbf;
border-radius: 10rpx;
text-align: center;
}
.Gender.data-v-ad97bf06 {
width: 310rpx;
display: flex;
flex-direction: column;
justify-content: center;
}
.Gendercs.data-v-ad97bf06 {
display: flex;
justify-content: center;
/* align-items: center; */
}
.Gendercss.data-v-ad97bf06 {
width: 200rpx;
height: 60rpx;
}
.Gendericoncss.data-v-ad97bf06 {
display: flex;
justify-content: center;
align-items: center;
width: 60rpx;
height: 60rpx;
border-radius: 50%;
border: 1rpx solid #ff9d0067;
margin-left: 20rpx;
margin-top: 10rpx;
}
.Gendericon.data-v-ad97bf06 {
width: 40rpx;
height: 40rpx;
/* margin-top: 10rpx;
margin-right: 40rpx; */
}
.Accountnumber.data-v-ad97bf06 {
display: flex;
justify-content: center;
margin-bottom: 60rpx;
margin-top: 50rpx;
}
.Coins.data-v-ad97bf06 {
width: 330rpx;
height: 65rpx;
/* display: flex; */
margin-right: 50rpx;
/* flex-direction: column; */
}
.country.data-v-ad97bf06 {
margin-left: 10rpx;
}
.goldCoin.data-v-ad97bf06 {
width: 100%;
height: 100rpx;
display: flex;
justify-content: center;
align-items: center;
}
.number-box.data-v-ad97bf06 {
display: flex;
justify-content: center;
text-align: center;
}
.number-box-title.data-v-ad97bf06 {
color: #191919;
font-size: 30rpx;
margin-right: 22rpx;
margin-left: 17rpx;
}
.number-box-unit.data-v-ad97bf06 {
color: #03aba8;
width: 48rpx;
height: 48rpx;
border: 1rpx solid #03aba8;
border-radius: 50%;
line-height: 48rpx;
text-align: center;
/* color: #003cff5a; */
}
.Publish.data-v-ad97bf06 {
margin-top: 300rpx;
margin-bottom: 40rpx;
width: 90%;
margin-left: 5%;
}
.Publishcss.data-v-ad97bf06 {
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
/* color: #33ff00; */
color: #ffffff;
font-weight: bold;
border-radius: 50rpx;
}

View File

@@ -28,22 +28,27 @@ 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();
},
// 返回
onBack() {
common_vendor.index.navigateBack({
delta: 1
});
},
//时间格式化
formatDate: components_formatDate.formatDate,
// 获取pk列表
getpkList() {
components_request.request({
url: "user/queryMyAllPkData",
@@ -57,17 +62,19 @@ const _sfc_main = {
}).then((res) => {
if (res.code == 200) {
this.pkList.push(...res.data);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:149", this.pkList);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:154", this.pkList);
this.triggered = false;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:152", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:157", res.msg);
}
});
},
// 打开修改窗口
onRecompose(item) {
this.parentMessage = item;
this.createModule.open();
},
// 删除pk
onExpurgate(item) {
components_request.request({
url: "pk/deletePkDataWithId",
@@ -85,7 +92,7 @@ const _sfc_main = {
duration: 2e3
});
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:177", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:184", res.msg);
}
});
}

View File

@@ -46,7 +46,7 @@
display: flex;
align-items: center;
margin-left: 30rpx;
margin-top: 11.5rpx;
margin-top: 20rpx;
}
.Profile.data-v-36b7ee78 {
width: 89rpx;

View File

@@ -47,8 +47,14 @@ const _sfc_main = {
},
methods: {
onRefresherRefresh() {
this.pkRecordlist = [];
this.triggered = true;
this.page = 0;
if (this.current === 1) {
this.pkmyRecordlist = [];
} else {
this.pkInvitationRecordlist = [];
}
this.getPkRecordList(this.current);
},
onScrollToLower() {
@@ -90,19 +96,19 @@ const _sfc_main = {
this.triggered = false;
if (type === 1) {
this.pkmyRecordlist.push(...res.data);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:173", this.pkRecordlist);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:179", 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:179", this.pkInvitationRecordlist);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:185", this.pkInvitationRecordlist);
if (this.current === 2) {
this.pkRecordlist = this.pkInvitationRecordlist;
}
}
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:185", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkRecord.vue:191", res.msg);
}
});
},

View File

@@ -92,7 +92,7 @@
justify-content: center;
align-items: center;
margin-left: 28.55rpx;
margin-top: 12rpx;
margin-top: 20rpx;
}
.AnchorA.data-v-6fa696de {
display: flex;

View File

@@ -4,6 +4,7 @@
"wht-select": "../../../../uni_modules/wht-select/components/wht-select/wht-select",
"uni-number-box": "../../../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box",
"uni-datetime-picker": "../../../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker",
"uni-easyinput": "../../../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
"uni-easyinput": "../../../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
"uni-popup": "../../../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-4e606fe0', C, 'Mask']}}" bindtap="{{D}}"><view catchtap="{{B}}" class="containers data-v-4e606fe0"><view class="container data-v-4e606fe0"><image class="Fork data-v-4e606fe0" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" 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="{{c}}" placeholder="主播名称" value="{{d}}"/><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="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{l}}" class="Gendericon data-v-4e606fe0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-4e606fe0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{n}}" 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="{{p}}" class="data-v-4e606fe0" u-i="4e606fe0-2" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></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="{{q}}" class="Hint data-v-4e606fe0">请填写金币数量</view></view><view class="time data-v-4e606fe0"><uni-datetime-picker wx:if="{{s}}" class="data-v-4e606fe0" u-i="4e606fe0-3" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/><view wx:if="{{t}}" 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="{{w}}" class="data-v-4e606fe0" u-i="4e606fe0-4" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">次</view></view><view wx:if="{{x}}" class="Hint data-v-4e606fe0">请填写场数</view></view><view class="Remarkscss data-v-4e606fe0"><uni-easyinput wx:if="{{z}}" class="data-v-4e606fe0" u-i="4e606fe0-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-easyinput></view><view class="Publish data-v-4e606fe0"><button bindtap="{{A}}" class="Publishcss data-v-4e606fe0">发布</button></view></view></view></view>
<view wx:if="{{a}}" class="{{['data-v-4e606fe0', E, 'Mask']}}" bindtap="{{F}}"><view catchtap="{{D}}" class="containers data-v-4e606fe0"><view class="container data-v-4e606fe0"><image class="Fork data-v-4e606fe0" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" 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="AnchorSelection data-v-4e606fe0"><view class="NameAnchor data-v-4e606fe0"><input class="NameAnchorcss data-v-4e606fe0" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-4e606fe0">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-4e606fe0" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-4e606fe0"><view class="Coins country data-v-4e606fe0"><wht-select wx:if="{{i}}" class="data-v-4e606fe0" style="width:350rpx" bindchange="{{h}}" u-i="4e606fe0-0" bind:__l="__l" u-p="{{i}}"/><view wx:if="{{j}}" 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="{{l}}" class="data-v-4e606fe0" style="width:300rpx" bindchange="{{k}}" u-i="4e606fe0-1" bind:__l="__l" u-p="{{l}}"/></view><view class="Gendericoncss data-v-4e606fe0"><image wx:if="{{m}}" class="Gendericon data-v-4e606fe0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-4e606fe0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-4e606fe0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{p}}" 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="{{r}}" class="data-v-4e606fe0" u-i="4e606fe0-2" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></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="{{s}}" class="Hint data-v-4e606fe0">请填写金币数量</view></view><view class="time data-v-4e606fe0"><uni-datetime-picker wx:if="{{v}}" class="data-v-4e606fe0" u-i="4e606fe0-3" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"/><view wx:if="{{w}}" 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="{{y}}" class="data-v-4e606fe0" u-i="4e606fe0-4" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></uni-number-box><view class="number-box-title data-v-4e606fe0">次</view></view><view wx:if="{{z}}" class="Hint data-v-4e606fe0">请填写场数</view></view><view class="Remarkscss data-v-4e606fe0"><uni-easyinput wx:if="{{B}}" class="data-v-4e606fe0" u-i="4e606fe0-5" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"></uni-easyinput></view><view class="Publish data-v-4e606fe0"><button bindtap="{{C}}" class="Publishcss data-v-4e606fe0">发布</button></view></view></view></view><uni-popup wx:if="{{M}}" class="r data-v-4e606fe0" u-s="{{['d']}}" u-r="popup" u-i="4e606fe0-6" bind:__l="__l" u-p="{{M}}"><view class="popup-container data-v-4e606fe0"><view class="popup-title data-v-4e606fe0">选择我的主播</view><scroll-view wx:if="{{G}}" scroll-y="true" class="scroll data-v-4e606fe0"><view wx:for="{{H}}" wx:for-item="item" wx:key="f" class="card data-v-4e606fe0"><view class="card-content data-v-4e606fe0" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-4e606fe0"><image class="avatar data-v-4e606fe0" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-4e606fe0"><view class="TimeMoney data-v-4e606fe0"><view class="NameMoney_Name data-v-4e606fe0">{{item.b}}</view></view><view class="TimeMoney data-v-4e606fe0"><view class="TimeMoney_country data-v-4e606fe0">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{I}}" class="no-data data-v-4e606fe0"><view class="no-data-text data-v-4e606fe0">暂无数据</view></view><view class="popup-btn data-v-4e606fe0"><button class="invite data-v-4e606fe0" type="primary" bindtap="{{J}}">确认</button><button class="cancel data-v-4e606fe0" type="default" bindtap="{{K}}">取消</button></view></view></uni-popup>

View File

@@ -103,6 +103,10 @@ to {
width: 90%;
margin: 40rpx;
}
.AnchorSelection.data-v-4e606fe0 {
display: flex;
align-items: center;
}
.time.data-v-4e606fe0 {
width: 90%;
margin-left: 5%;
@@ -116,6 +120,18 @@ to {
border-radius: 10rpx;
text-align: center;
}
.AnchorSelectioncss.data-v-4e606fe0 {
width: 30%;
height: 60rpx;
margin: 40rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
color: #ffffff;
font-weight: bold;
font-size: 18rpx;
text-align: center;
line-height: 60rpx;
border-radius: 20rpx;
}
.Gender.data-v-4e606fe0 {
width: 310rpx;
display: flex;
@@ -212,3 +228,123 @@ to {
font-weight: bold;
border-radius: 50rpx;
}
.popup-container.data-v-4e606fe0{
width: 600rpx;
height: 800rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
border-radius: 10px;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title.data-v-4e606fe0{
color: #161616;
font-size: 36.26rpx;
font-weight: bold;
margin-bottom: 30rpx;
margin-top: 30rpx;
}
.scroll.data-v-4e606fe0{
width: 90%;
height: 500rpx;
}
.card.data-v-4e606fe0{
margin-top: 15rpx;
}
.card-content.data-v-4e606fe0 {
/* width: 445rpx; */
width: 100%;
height: 100rpx;
background-color: #ffffff;
/* border: 2px solid #afafaf; */
border-radius: 10rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: rgb(127, 127, 127);
}
.Avatarimg.data-v-4e606fe0 {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
background-color: #dddddd;
margin-right: 20rpx;
margin-left: 20rpx;
}
.avatar.data-v-4e606fe0 {
width: 100%;
height: 100%;
border-radius: 50%;
}
.NameMoney.data-v-4e606fe0 {
display: flex;
flex-direction: column;
}
.TimeMoney.data-v-4e606fe0 {
width: 300rpx;
display: flex;
font-weight: bold;
font-size: 27rpx;
color: #161616;
}
.NameMoney_Name.data-v-4e606fe0 {
width: 400rpx;
text-align: left;
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.TimeMoney_country.data-v-4e606fe0{
margin-top: 10rpx;
width: 400rpx;
text-align: left;
font-size: 20rpx;
color: #666;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.popup-btn.data-v-4e606fe0 {
display: flex;
justify-content: space-around;
margin-top: 50rpx;
}
.invite.data-v-4e606fe0 {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.cancel.data-v-4e606fe0 {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
margin-left: 30rpx;
color: #03aba8;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border: 1rpx solid #03aba8;
}
.no-data.data-v-4e606fe0{
width: 90%;
height: 500rpx;
display: flex;
justify-content: center;
align-items: center;
}
.no-data-text.data-v-4e606fe0{
color: #999;
font-size: 28rpx;
font-weight: bold;
}

View File

@@ -4,6 +4,7 @@
"wht-select": "../../uni_modules/wht-select/components/wht-select/wht-select",
"uni-number-box": "../../uni_modules/uni-number-box/components/uni-number-box/uni-number-box",
"uni-datetime-picker": "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker",
"uni-easyinput": "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
"uni-easyinput": "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-96d38e2b', C, 'Mask']}}" bindtap="{{D}}"><view catchtap="{{B}}" class="containers data-v-96d38e2b"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-96d38e2b"><view class="Star data-v-96d38e2b"></view><view class="Title data-v-96d38e2b"></view><view class="Star data-v-96d38e2b"></view></view><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}"/><view wx:if="{{e}}" class="Hint data-v-96d38e2b">请检查主播名称是否正确</view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins country data-v-96d38e2b"><wht-select wx:if="{{g}}" class="data-v-96d38e2b" style="width:350rpx" bindchange="{{f}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Gender data-v-96d38e2b"><view class="Gendercs data-v-96d38e2b"><view class="Gendercss data-v-96d38e2b"><wht-select wx:if="{{j}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{i}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{j}}"/></view><view class="Gendericoncss data-v-96d38e2b"><image wx:if="{{k}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{l}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{n}}" class="Hintcss data-v-96d38e2b">请选择性别</view></view></view><view class="goldCoin data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币数量:</view><uni-number-box wx:if="{{p}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">单位:</view><view class="number-box-unit data-v-96d38e2b">K</view></view><view wx:if="{{q}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{s}}" class="data-v-96d38e2b" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"/><view wx:if="{{t}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="goldCoin data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">选择场数:</view><uni-number-box wx:if="{{w}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">次</view></view><view wx:if="{{x}}" class="Hint data-v-96d38e2b">请填写场数</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{z}}" class="data-v-96d38e2b" u-i="96d38e2b-5" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{A}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
<view wx:if="{{a}}" class="{{['data-v-96d38e2b', E, 'Mask']}}" bindtap="{{F}}"><view catchtap="{{D}}" class="containers data-v-96d38e2b"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-96d38e2b"><view class="Star data-v-96d38e2b"></view><view class="Title data-v-96d38e2b"></view><view class="Star data-v-96d38e2b"></view></view><view class="AnchorSelection data-v-96d38e2b"><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-96d38e2b">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-96d38e2b" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins country data-v-96d38e2b"><wht-select wx:if="{{i}}" class="data-v-96d38e2b" style="width:350rpx" bindchange="{{h}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{i}}"/><view wx:if="{{j}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Gender data-v-96d38e2b"><view class="Gendercs data-v-96d38e2b"><view class="Gendercss data-v-96d38e2b"><wht-select wx:if="{{l}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{k}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{l}}"/></view><view class="Gendericoncss data-v-96d38e2b"><image wx:if="{{m}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{n}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-96d38e2b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{p}}" class="Hintcss data-v-96d38e2b">请选择性别</view></view></view><view class="goldCoin data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币数量:</view><uni-number-box wx:if="{{r}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">单位:</view><view class="number-box-unit data-v-96d38e2b">K</view></view><view wx:if="{{s}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{v}}" class="data-v-96d38e2b" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"/><view wx:if="{{w}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="goldCoin data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">选择场数:</view><uni-number-box wx:if="{{y}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">次</view></view><view wx:if="{{z}}" class="Hint data-v-96d38e2b">请填写场数</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{B}}" class="data-v-96d38e2b" u-i="96d38e2b-5" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{C}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view><uni-popup wx:if="{{M}}" class="r data-v-96d38e2b" u-s="{{['d']}}" u-r="popup" u-i="96d38e2b-6" bind:__l="__l" u-p="{{M}}"><view class="popup-container data-v-96d38e2b"><view class="popup-title data-v-96d38e2b">选择我的主播</view><scroll-view wx:if="{{G}}" scroll-y="true" class="scroll data-v-96d38e2b"><view wx:for="{{H}}" wx:for-item="item" wx:key="f" class="card data-v-96d38e2b"><view class="card-content data-v-96d38e2b" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-96d38e2b"><image class="avatar data-v-96d38e2b" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-96d38e2b"><view class="TimeMoney data-v-96d38e2b"><view class="NameMoney_Name data-v-96d38e2b">{{item.b}}</view></view><view class="TimeMoney data-v-96d38e2b"><view class="TimeMoney_country data-v-96d38e2b">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{I}}" class="no-data data-v-96d38e2b"><view class="no-data-text data-v-96d38e2b">暂无数据</view></view><view class="popup-btn data-v-96d38e2b"><button class="invite data-v-96d38e2b" type="primary" bindtap="{{J}}">确认</button><button class="cancel data-v-96d38e2b" type="default" bindtap="{{K}}">取消</button></view></view></uni-popup>

View File

@@ -104,10 +104,14 @@ to {
margin: 40rpx;
}
.time.data-v-96d38e2b {
width: 90%;
width: 70%;
margin-left: 5%;
margin-top: 50rpx;
}
.AnchorSelection.data-v-96d38e2b{
display: flex;
align-items: center;
}
.NameAnchorcss.data-v-96d38e2b {
width: 99%;
height: 85rpx;
@@ -116,6 +120,18 @@ to {
border-radius: 10rpx;
text-align: center;
}
.AnchorSelectioncss.data-v-96d38e2b{
width: 30%;
height: 60rpx;
margin: 40rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
color: #ffffff;
font-weight: bold;
font-size: 18rpx;
text-align: center;
line-height: 60rpx;
border-radius: 20rpx;
}
.Gender.data-v-96d38e2b {
width: 310rpx;
display: flex;
@@ -212,3 +228,123 @@ to {
font-weight: bold;
border-radius: 50rpx;
}
.popup-container.data-v-96d38e2b{
width: 600rpx;
height: 800rpx;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
border-radius: 10px;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
align-items: center;
}
.popup-title.data-v-96d38e2b{
color: #161616;
font-size: 36.26rpx;
font-weight: bold;
margin-bottom: 30rpx;
margin-top: 30rpx;
}
.scroll.data-v-96d38e2b{
width: 90%;
height: 500rpx;
}
.card.data-v-96d38e2b{
margin-top: 15rpx;
}
.card-content.data-v-96d38e2b {
/* width: 445rpx; */
width: 100%;
height: 100rpx;
background-color: #ffffff;
/* border: 2px solid #afafaf; */
border-radius: 10rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: rgb(127, 127, 127);
}
.Avatarimg.data-v-96d38e2b {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
background-color: #dddddd;
margin-right: 20rpx;
margin-left: 20rpx;
}
.avatar.data-v-96d38e2b {
width: 100%;
height: 100%;
border-radius: 50%;
}
.NameMoney.data-v-96d38e2b {
display: flex;
flex-direction: column;
}
.TimeMoney.data-v-96d38e2b {
width: 300rpx;
display: flex;
font-weight: bold;
font-size: 27rpx;
color: #161616;
}
.NameMoney_Name.data-v-96d38e2b {
width: 400rpx;
text-align: left;
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.TimeMoney_country.data-v-96d38e2b{
margin-top: 10rpx;
width: 400rpx;
text-align: left;
font-size: 20rpx;
color: #666;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.popup-btn.data-v-96d38e2b {
display: flex;
justify-content: space-around;
margin-top: 50rpx;
}
.invite.data-v-96d38e2b {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.cancel.data-v-96d38e2b {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
margin-left: 30rpx;
color: #03aba8;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border: 1rpx solid #03aba8;
}
.no-data.data-v-96d38e2b{
width: 90%;
height: 500rpx;
display: flex;
justify-content: center;
align-items: center;
}
.no-data-text.data-v-96d38e2b{
color: #999;
font-size: 28rpx;
font-weight: bold;
}

View File

@@ -25,7 +25,7 @@ const _sfc_main = {
const eventChannel = this.getOpenerEventChannel();
eventChannel.on("itemDetail", (data) => {
this.item = data.item;
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:170", "接收到的数据:", this.item);
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:176", "接收到的数据:", this.item);
});
common_vendor.index.getStorage({
key: "userinfo",
@@ -108,11 +108,14 @@ const _sfc_main = {
if (res.code === 200) {
if (res.data.length !== 0) {
common_vendor.index.hideLoading();
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:258", "res.data", res.data);
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:264", "res.data", res.data);
this.list = res.data;
} else {
common_vendor.index.hideLoading();
this.openPopupQuantity();
setTimeout(() => {
this.openPopupQuantity();
this.$refs.popup.close();
}, 2e3);
}
} else {
common_vendor.index.hideLoading();
@@ -149,30 +152,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
b: $data.item.anchorIcon,
c: common_vendor.t($data.item.disPlayId),
d: $data.item.sex === "1"
}, $data.item.sex === "1" ? {
e: common_vendor.t($data.item.sex === "1" ? "男" : "女")
} : {
f: common_vendor.t($data.item.sex === "2" ? "男" : "女")
}, {
g: common_vendor.t($data.item.country),
h: common_vendor.t($options.formatDate($data.item.pkTime)),
i: common_vendor.t($data.item.coin),
j: common_vendor.t($data.item.pkNumber),
k: common_vendor.s($data.style),
l: common_vendor.o$1(($event) => $data.item.remark = $event),
m: common_vendor.p({
}, $data.item.sex === "1" ? {} : {}, {
e: common_vendor.t($data.item.country),
f: common_vendor.t($options.formatDate($data.item.pkTime)),
g: common_vendor.t($data.item.coin),
h: common_vendor.t($data.item.pkNumber),
i: common_vendor.s($data.style),
j: common_vendor.o$1(($event) => $data.item.remark = $event),
k: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: "-1",
disabled: "true",
modelValue: $data.item.remark
}),
n: $data.item.senderId !== $data.id
l: $data.item.senderId !== $data.id
}, $data.item.senderId !== $data.id ? {
o: common_vendor.o$1(($event) => $options.openChat()),
p: common_vendor.o$1(($event) => $options.open())
m: common_vendor.o$1(($event) => $options.openChat()),
n: common_vendor.o$1(($event) => $options.open())
} : {}, {
q: common_vendor.f($data.list, (item, index, i0) => {
o: $data.list.length !== 0
}, $data.list.length !== 0 ? {
p: common_vendor.f($data.list, (item, index, i0) => {
return {
a: item.anchorIcon,
b: common_vendor.t(item.anchorId),
@@ -183,7 +184,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
g: $data.selectedId === item.id ? "#f6f6f6" : "#ffffff",
h: index
};
}),
})
} : {}, {
q: $data.list.length === 0
}, $data.list.length === 0 ? {} : {}, {
r: common_vendor.o$1(($event) => $options.invite()),
s: common_vendor.o$1(($event) => $options.close()),
t: common_vendor.sr("popup", "9639f721-1"),

View File

@@ -1 +1 @@
<view class="container data-v-9639f721"><view class="background data-v-9639f721"><image class="data-v-9639f721" style="width:100%;height:100%" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Navigation data-v-9639f721"><view class="Return data-v-9639f721" bindtap="{{a}}"><image class="Return data-v-9639f721" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view></view><view class="Content data-v-9639f721"><view class="sender data-v-9639f721"><view class="sengderIcon data-v-9639f721"><image class="Icon data-v-9639f721" src="{{b}}" mode="scaleToFill"/></view><view class="Individual data-v-9639f721"><view class="name data-v-9639f721">{{c}}</view><view class="GenderAndAge data-v-9639f721"><view wx:if="{{d}}" class="male data-v-9639f721"><view class="data-v-9639f721"><image class="data-v-9639f721" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/></view><view class="age data-v-9639f721">{{e}}</view></view><view wx:else class="female data-v-9639f721"><view class="data-v-9639f721"><image class="data-v-9639f721" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/></view><view class="age data-v-9639f721">{{f}}</view></view></view><view class="nation data-v-9639f721">{{g}}</view></view><view class="Time data-v-9639f721">PK时间:{{h}}</view><view class="SessionAndGoldCoin data-v-9639f721"><view class="goldCoin data-v-9639f721"><image class="data-v-9639f721" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/gold.png" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{i}}</view><view class="goldtext data-v-9639f721">金币</view></view></view><view class="Session data-v-9639f721"><image class="data-v-9639f721" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/session.png" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{j}}</view><view class="goldtext data-v-9639f721">PK场数</view></view></view></view></view><view class="remark data-v-9639f721"><uni-easyinput wx:if="{{m}}" class="data-v-9639f721" style="{{k}}" u-i="9639f721-0" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-easyinput></view><view wx:if="{{n}}" class="button data-v-9639f721"><button class="accept data-v-9639f721" bindtap="{{o}}">聊了个天</button><button class="reject data-v-9639f721" bindtap="{{p}}">立即邀请</button></view></view></view><uni-popup wx:if="{{v}}" class="r data-v-9639f721" u-s="{{['d']}}" u-r="popup" u-i="9639f721-1" bind:__l="__l" u-p="{{v}}"><view class="popup-content data-v-9639f721"><view class="popup-title data-v-9639f721"><view class="popup-text data-v-9639f721">请选择您要参与的主播</view><scroll-view scroll-y="true" class="scroll data-v-9639f721"><view wx:for="{{q}}" wx:for-item="item" wx:key="h" class="card data-v-9639f721"><view class="card-content data-v-9639f721" bindtap="{{item.f}}" style="{{'background:' + item.g}}"><view class="Avatarimg data-v-9639f721"><image class="avatar data-v-9639f721" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-9639f721"><view class="TimeMoney data-v-9639f721"><view class="NameMoney_Name data-v-9639f721">{{item.b}}</view></view><view class="TimeMoney_Time data-v-9639f721"><view class="pkTimeimg data-v-9639f721"></view><view class="data-v-9639f721">{{item.c}}</view><viewm u-s="{{['d']}}" class="goldnb data-v-9639f721" u-i="{{item.e}}" bind:__l="__l"><view class="goldimg data-v-9639f721"></view>{{item.d}}K</viewm></view></view></view></view></scroll-view></view><view class="popup-btn data-v-9639f721"><button class="invite data-v-9639f721" type="primary" bindtap="{{r}}">邀请</button><button class="cancel data-v-9639f721" type="default" bindtap="{{s}}">取消</button></view></view></uni-popup><new-added-pk class="createModule r data-v-9639f721" u-r="createModule" u-i="9639f721-3" bind:__l="__l"></new-added-pk>
<view class="container data-v-9639f721"><view class="background data-v-9639f721"><image class="data-v-9639f721" style="width:100%;height:100%" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Navigation data-v-9639f721"><view class="Return data-v-9639f721" bindtap="{{a}}"><image class="Return data-v-9639f721" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view></view><view class="Content data-v-9639f721"><view class="sender data-v-9639f721"><view class="sengderIcon data-v-9639f721"><image class="Icon data-v-9639f721" src="{{b}}" mode="scaleToFill"/></view><view class="Individual data-v-9639f721"><view class="name data-v-9639f721">{{c}}</view><view class="GenderAndAge data-v-9639f721"><view wx:if="{{d}}" class="male data-v-9639f721"><view class="data-v-9639f721"><image class="data-v-9639f721" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/></view><view class="age data-v-9639f721"></view></view><view wx:else class="female data-v-9639f721"><view class="data-v-9639f721"><image class="data-v-9639f721" style="width:20rpx;height:20rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/></view><view class="age data-v-9639f721"></view></view></view><view class="nation data-v-9639f721">{{e}}</view></view><view class="Time data-v-9639f721">PK时间:{{f}}</view><view class="SessionAndGoldCoin data-v-9639f721"><view class="goldCoin data-v-9639f721"><image class="data-v-9639f721" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/gold.png" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{g}}K</view><view class="goldtext data-v-9639f721">金币</view></view></view><view class="Session data-v-9639f721"><image class="data-v-9639f721" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/session.png" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{h}}</view><view class="goldtext data-v-9639f721">PK场数</view></view></view></view></view><view class="remark data-v-9639f721"><uni-easyinput wx:if="{{k}}" class="data-v-9639f721" style="{{i}}" u-i="9639f721-0" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></uni-easyinput></view><view wx:if="{{l}}" class="button data-v-9639f721"><button class="accept data-v-9639f721" bindtap="{{m}}">聊了个天</button><button class="reject data-v-9639f721" bindtap="{{n}}">立即邀请</button></view></view></view><uni-popup wx:if="{{v}}" class="r data-v-9639f721" u-s="{{['d']}}" u-r="popup" u-i="9639f721-1" bind:__l="__l" u-p="{{v}}"><view class="popup-content data-v-9639f721"><view class="popup-title data-v-9639f721"><view class="popup-text data-v-9639f721">请选择您要参与的主播</view><view wx:if="{{o}}" class="data-v-9639f721"><scroll-view scroll-y="true" class="scroll data-v-9639f721"><view wx:for="{{p}}" wx:for-item="item" wx:key="h" class="card data-v-9639f721"><view class="card-content data-v-9639f721" bindtap="{{item.f}}" style="{{'background:' + item.g}}"><view class="Avatarimg data-v-9639f721"><image class="avatar data-v-9639f721" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-9639f721"><view class="TimeMoney data-v-9639f721"><view class="NameMoney_Name data-v-9639f721">{{item.b}}</view></view><view class="TimeMoney_Time data-v-9639f721"><view class="pkTimeimg data-v-9639f721"></view><view class="data-v-9639f721">{{item.c}}</view><viewm u-s="{{['d']}}" class="goldnb data-v-9639f721" u-i="{{item.e}}" bind:__l="__l"><view class="goldimg data-v-9639f721"></view>{{item.d}}K</viewm></view></view></view></view></scroll-view></view><view wx:if="{{q}}" class="noData data-v-9639f721">您还没有可参与的主播PK快去新建一个吧</view></view><view class="popup-btn data-v-9639f721"><button class="invite data-v-9639f721" type="primary" bindtap="{{r}}">邀请</button><button class="cancel data-v-9639f721" type="default" bindtap="{{s}}">取消</button></view></view></uni-popup><new-added-pk class="createModule r data-v-9639f721" u-r="createModule" u-i="9639f721-3" bind:__l="__l"></new-added-pk>

View File

@@ -125,8 +125,8 @@
font-weight: bold;
font-size: 27rpx;
color: #161616;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
}
.background.data-v-9639f721 {
@@ -198,8 +198,8 @@
.nation.data-v-9639f721 {
/* width: 56.3rpx; */
height: 29.58rpx;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis; /* 显示省略号 */
font-size: 17.18rpx;
color: #666666;
@@ -281,7 +281,7 @@
flex-direction: column;
align-items: center;
}
.remark.data-v-9639f721{
.remark.data-v-9639f721 {
margin-top: 60rpx;
width: 90%;
}
@@ -312,3 +312,10 @@
font-size: 28.63rpx;
line-height: 77.29rpx;
}
.noData.data-v-9639f721{
width: 500rpx;
height: 400rpx;
border-radius: 10px;
font-size: 30rpx;
color: #999;
}

View File

@@ -31,8 +31,14 @@ const _sfc_main = {
//用户id
sendingTime: "",
//发送时间
filterable: true
filterable: true,
//是否可搜索
AnchorList: [],
//主播列表
selectedId: null,
//选择的主播
selectedIddata: null
//选择的主播数据
};
},
props: {
@@ -61,15 +67,66 @@ const _sfc_main = {
});
},
methods: {
//关闭弹窗
close() {
this.$refs.popup.close();
},
//确认选择
invite() {
if (this.selectedId) {
this.nameAnchor = this.selectedIddata.anchorId;
this.AnchorProfilePicture = this.selectedIddata.headerIcon;
this.close();
} else {
common_vendor.index.showToast({
title: "请选择主播",
icon: "none",
duration: 2e3
});
}
},
//选中的主播
Select(id, item) {
if (this.selectedId !== id) {
this.selectedId = id;
this.selectedIddata = item;
} else {
this.selectedId = null;
this.selectedIddata = null;
}
},
//获取主播列表
getAnchorList() {
components_request.request({
url: "anchor/list",
method: "POST",
data: {
id: this.id
},
userInfo: true
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:297", res.msg);
}
});
},
//选择我的主播
chooseMyStreamer() {
this.$refs.popup.open("center");
this.getAnchorList();
},
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:217", item);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:309", item);
},
//日期
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:222", item);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:314", item);
},
// //主播名称
// handleOverlayClick(event) {
@@ -177,14 +234,16 @@ if (!Array) {
const _easycom_uni_number_box2 = common_vendor.resolveComponent("uni-number-box");
const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2)();
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2 + _easycom_uni_popup2)();
}
const _easycom_wht_select = () => "./uni_modules/wht-select/components/wht-select/wht-select.js";
const _easycom_uni_number_box = () => "./uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js";
const _easycom_uni_datetime_picker = () => "./uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
const _easycom_uni_easyinput = () => "./uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_popup = () => "./uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput)();
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput + _easycom_uni_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -192,11 +251,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.Display ? common_vendor.e({
b: common_vendor.o$1(($event) => $options.open()),
c: common_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
d: $data.nameAnchor,
e: $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true
}, $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true ? {} : {}, {
f: common_vendor.o$1($options.country),
g: common_vendor.p({
d: common_vendor.o$1((...args) => _ctx.blur && _ctx.blur(...args)),
e: $data.nameAnchor,
f: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
g: common_vendor.o$1((...args) => $options.chooseMyStreamer && $options.chooseMyStreamer(...args)),
h: common_vendor.o$1($options.country),
i: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -206,10 +267,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
placeholder: "请选择国家",
value: $data.countrys
}),
h: $data.countrys === "" || $data.countrys === null && $data.Hint === true
j: $data.countrys === "" || $data.countrys === null && $data.Hint === true
}, $data.countrys === "" || $data.countrys === null && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
k: common_vendor.o$1($options.gender),
l: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -218,49 +279,72 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
placeholder: "性别",
value: $props.message.sex === "1" ? 1 : 2
}),
k: $data.genders === 0 || $props.message.sex === "0"
m: $data.genders === 0 || $props.message.sex === "0"
}, $data.genders === 0 || $props.message.sex === "0" ? {} : {}, {
l: $data.genders === 1 || $props.message.sex === "1"
n: $data.genders === 1 || $props.message.sex === "1"
}, $data.genders === 1 || $props.message.sex === "1" ? {} : {}, {
m: $data.genders === 2 || $props.message.sex === "2"
o: $data.genders === 2 || $props.message.sex === "2"
}, $data.genders === 2 || $props.message.sex === "2" ? {} : {}, {
n: $data.genders === 0 || $data.genders === null && $data.Hint === true
p: $data.genders === 0 || $data.genders === null && $data.Hint === true
}, $data.genders === 0 || $data.genders === null && $data.Hint === true ? {} : {}, {
o: common_vendor.o$1(($event) => $data.numberCoins = $event),
p: common_vendor.p({
q: common_vendor.o$1(($event) => $data.numberCoins = $event),
r: common_vendor.p({
max: 9999999999,
background: "#03ABA8",
modelValue: $data.numberCoins
}),
q: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
s: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
}, $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true ? {} : {}, {
r: common_vendor.o$1(($event) => $data.datetimesingle = $event),
s: common_vendor.p({
t: common_vendor.o$1(($event) => $data.datetimesingle = $event),
v: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.datetimesingle
}),
t: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
w: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
}, $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true ? {} : {}, {
v: common_vendor.o$1(($event) => $data.session = $event),
w: common_vendor.p({
x: common_vendor.o$1(($event) => $data.session = $event),
y: common_vendor.p({
background: "#03ABA8",
modelValue: $data.session
}),
x: $data.session === "" || $data.session === null && $data.Hint === true
z: $data.session === "" || $data.session === null && $data.Hint === true
}, $data.session === "" || $data.session === null && $data.Hint === true ? {} : {}, {
y: common_vendor.o$1(($event) => $data.remarks = $event),
z: common_vendor.p({
A: common_vendor.o$1(($event) => $data.remarks = $event),
B: common_vendor.p({
type: "textarea",
placeholder: "备注",
modelValue: $data.remarks
}),
A: common_vendor.o$1(($event) => $options.Publish()),
B: common_vendor.o$1(() => {
C: common_vendor.o$1(($event) => $options.Publish()),
D: common_vendor.o$1(() => {
}),
C: common_vendor.n($data.Display ? "create-module" : "close-animation "),
D: common_vendor.o$1(($event) => $options.open())
}) : {});
E: common_vendor.n($data.Display ? "create-module" : "close-animation "),
F: common_vendor.o$1(($event) => $options.open())
}) : {}, {
G: $data.AnchorList.length !== 0
}, $data.AnchorList.length !== 0 ? {
H: common_vendor.f($data.AnchorList, (item, index, i0) => {
return {
a: item.headerIcon,
b: common_vendor.t(item.anchorId),
c: common_vendor.t(item.country),
d: common_vendor.o$1(($event) => $options.Select(item.id, item), index),
e: $data.selectedId === item.id ? "#f6f6f6" : "#ffffff",
f: index
};
})
} : {}, {
I: $data.AnchorList.length === 0
}, $data.AnchorList.length === 0 ? {} : {}, {
J: common_vendor.o$1(($event) => $options.invite()),
K: common_vendor.o$1(($event) => $options.close()),
L: common_vendor.sr("popup", "4e606fe0-6"),
M: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4e606fe0"]]);
exports.MiniProgramPage = MiniProgramPage;