优化页面
@@ -204,13 +204,16 @@ function sendCustomMessage(myitem, youritem) {
|
||||
const payload = {
|
||||
data: JSON.stringify({
|
||||
businessID: "pk",
|
||||
title: "PK邀请",
|
||||
buttonText1: "接受邀请",
|
||||
buttonText2: "拒绝邀请",
|
||||
keyid: keyid,
|
||||
myitem: counter.myitem.id,
|
||||
pkIdA: youritem.id,
|
||||
pkIdB: myitem.id,
|
||||
userIdA: youritem.senderId,
|
||||
userIdB: myitem.senderId,
|
||||
pkTime: youritem.pkTime,
|
||||
pkNumber: youritem.pkNumber,
|
||||
link:"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/pk.png",
|
||||
btnDisplay: true,
|
||||
mytitle: "等待对方接受邀请",
|
||||
}),
|
||||
description: "邀请参加PK",
|
||||
extension: "邀请参加PK",
|
||||
@@ -252,6 +255,7 @@ function sendCustomMessage(myitem, youritem) {
|
||||
userIdA: youritem.senderId,
|
||||
userIdB: myitem.senderId,
|
||||
pkTime: youritem.pkTime,
|
||||
pkNumber: youritem.pkNumber,
|
||||
status: 0,
|
||||
},
|
||||
userInfo: false,
|
||||
|
||||
@@ -63,20 +63,12 @@
|
||||
</template>
|
||||
<!-- `························································标记······················································ -->
|
||||
<template v-else-if="customData.businessID === CHAT_MSG_CUSTOM_TYPE.PK">
|
||||
<div class="pk" v-if="customData.myitem !== counter.myitem.id">
|
||||
<h1>{{ customData.title }}</h1>
|
||||
<div class="button-group" v-if="customData.btnDisplay === true">
|
||||
<button @click="handleAccept(status.agree, customData)" class="buttonAccept">
|
||||
{{ customData.buttonText1 }}
|
||||
</button>
|
||||
<button @click="handleAccept(status.refuse, customData)" class="buttonRefuse">
|
||||
{{ customData.buttonText2 }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pk" v-else>
|
||||
<h1>{{ customData.mytitle }}</h1>
|
||||
<div class="pk" @click="handleAccept(customData)">
|
||||
<image
|
||||
class="Custommessageimage"
|
||||
:src="customData.link"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<!-- ``````````````````````````````````````````````````````````````````````````````````````````````````````````````` -->
|
||||
@@ -104,27 +96,22 @@ import TUIChatEngine, {
|
||||
import { useCounterStore } from "@/stores/counter";
|
||||
import request from "@/components/request";
|
||||
import { Message } from "@tencentcloud/chat";
|
||||
import TencentCloudChat from "@tencentcloud/chat";
|
||||
// import message from '@tencentcloud/chat-uikit-uniapp/locales/en/message';
|
||||
const counter = useCounterStore();
|
||||
|
||||
const status = { agree: 1, refuse: 2 };
|
||||
|
||||
interface Props {
|
||||
messageItem: IMessageModel;
|
||||
content: any;
|
||||
}
|
||||
//```````````````````````````````````````````````````
|
||||
//```````````````````````````````````````````````````标记
|
||||
|
||||
|
||||
function handleAccept(status: number, customData: ICustomMessagePayload) {
|
||||
console.log(custom.value);
|
||||
console.log(message.value);
|
||||
message.value.payload.title = "Hello Tencent";
|
||||
TUIChatService.modifyMessage(message.value).then((res) => {
|
||||
console.log(res);
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
function handleAccept(customData: ICustomMessagePayload) {
|
||||
const customDatainfo = JSON.stringify(customData);
|
||||
uni.redirectTo({
|
||||
url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${customDatainfo}`,
|
||||
});
|
||||
}
|
||||
//```````````````````````````````````````````````````
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
@@ -226,7 +213,7 @@ a {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
background-color: #f5f5f5;
|
||||
background-color: #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
@@ -270,4 +257,8 @@ a {
|
||||
}
|
||||
//``````````````````````````````````````````````````````````````````````````````````
|
||||
}
|
||||
.Custommessageimage{
|
||||
width: 385rpx;
|
||||
height: 195rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -30,6 +30,12 @@
|
||||
"navigationBarTitleText": "PK信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/PKMessageprocessing/PKMessageprocessing",
|
||||
"style": {
|
||||
"navigationBarTitleText": "PK信息处理"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
|
||||
@@ -22,7 +22,6 @@ import Advertisement from "../../components/Advertisement/Advertisement";
|
||||
import contentList from "../../components/contentList/contentList";
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
import TUIlogin from "../../components/TUILogin.js";
|
||||
import TencentCloudChat from "@tencentcloud/chat";
|
||||
import { useCounterStore } from '@/stores/counter'
|
||||
const counter = useCounterStore()
|
||||
export default {
|
||||
@@ -62,6 +61,7 @@ export default {
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
},
|
||||
methods: {
|
||||
goAdvertisement() {
|
||||
|
||||
@@ -8,13 +8,18 @@
|
||||
src="../../static/Fork.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="Title">发布新PK</view>
|
||||
<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="#ffffff"
|
||||
placeholder-style="color:#ffffff"
|
||||
cursor-color="#666666"
|
||||
placeholder-style="color:#666666"
|
||||
@input="NameAnchor"
|
||||
placeholder="主播名称"
|
||||
/>
|
||||
@@ -30,10 +35,9 @@
|
||||
<view class="Coins country">
|
||||
<wht-select
|
||||
style="width: 350rpx"
|
||||
backgroundColor="#fff70065"
|
||||
borderRadius="20"
|
||||
backgroundColor="#ffffff"
|
||||
placeholderColor="#ffffff"
|
||||
textColor="#7cba59"
|
||||
textColor="#666666"
|
||||
borderColor="#ffffff"
|
||||
@change="country"
|
||||
:options="Country"
|
||||
@@ -47,10 +51,9 @@
|
||||
<view class="Gendercss">
|
||||
<wht-select
|
||||
style="width: 300rpx"
|
||||
backgroundColor="#ffaa0082"
|
||||
borderRadius="20"
|
||||
placeholderColor="#ffffff"
|
||||
textColor="#ffffff"
|
||||
backgroundColor="#ffffff"
|
||||
placeholderColor="#666666"
|
||||
textColor="#666666"
|
||||
borderColor="#ffffff"
|
||||
@change="gender"
|
||||
:options="Gender"
|
||||
@@ -86,7 +89,7 @@
|
||||
<view class="goldCoin">
|
||||
<view class="number-box">
|
||||
<view class="number-box-title">金币数量:</view>
|
||||
<uni-number-box background="#2bff001e" v-model="numberCoins"></uni-number-box>
|
||||
<uni-number-box background="#03ABA8" v-model="numberCoins"></uni-number-box>
|
||||
<view class="number-box-title">单位:</view>
|
||||
<view class="number-box-unit">K</view>
|
||||
</view>
|
||||
@@ -110,7 +113,7 @@
|
||||
<view class="goldCoin">
|
||||
<view class="number-box">
|
||||
<view class="number-box-title">选择场数:</view>
|
||||
<uni-number-box background="#2bff001e" v-model="numberCoins"></uni-number-box>
|
||||
<uni-number-box background="#03ABA8" v-model="numberCoins"></uni-number-box>
|
||||
<view class="number-box-title">次</view>
|
||||
</view>
|
||||
<view v-if="numberCoins === '' && Hint === true" class="Hint"
|
||||
@@ -120,8 +123,6 @@
|
||||
<!-- ··························································································· -->
|
||||
<view class="Remarkscss">
|
||||
<uni-easyinput
|
||||
:styles="styles"
|
||||
:placeholderStyle="placeholderStyle"
|
||||
type="textarea"
|
||||
v-model="remarks"
|
||||
placeholder="备注"
|
||||
@@ -157,12 +158,6 @@ export default {
|
||||
datetimesingle: "", //日期
|
||||
id: null, //用户id
|
||||
sendingTime: "", //发送时间
|
||||
placeholderStyle: "color:#ffffff;font-size:14px",
|
||||
styles: {
|
||||
backgroundColor: "#2bff001e",
|
||||
color: "#ffffff",
|
||||
borderColor: "#00bd069d",
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -335,7 +330,8 @@ export default {
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
background-image: linear-gradient(135deg, #00ff4025, #00d5ff3b);
|
||||
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;
|
||||
@@ -343,31 +339,33 @@ export default {
|
||||
box-shadow: 0 0 10rpx #ccc;
|
||||
}
|
||||
.Fork {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
margin-top: 20rpx;
|
||||
/* margin-bottom: 40rpx; */
|
||||
margin-left: 90%;
|
||||
}
|
||||
.Title {
|
||||
.Titlecss{
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
font-size: 70rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 40rpx;
|
||||
margin-bottom: 40rpx;
|
||||
/* 设置渐变背景 */
|
||||
background-image: linear-gradient(135deg, #ffff00, #00d9ff);
|
||||
/* 关键属性组合 */
|
||||
-webkit-background-clip: text; /* 兼容 iOS/Android */
|
||||
background-clip: text;
|
||||
/* 文字颜色设为透明 */
|
||||
color: transparent;
|
||||
/* 防止背景溢出 */
|
||||
display: inline-block;
|
||||
padding: 8rpx 16rpx;
|
||||
text-shadow: 0 6rpx 8rpx rgba(0, 0, 0, 0.2);
|
||||
height: 70rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Star{
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
background-image: url(../../static/star.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.Title {
|
||||
width: 430rpx;
|
||||
height: 70rpx;
|
||||
background-image: url(../../static/Publishpk.png);
|
||||
background-size: 100% 200%;
|
||||
background-position: 0 100%;
|
||||
margin-left: 26rpx;
|
||||
margin-right: 26rpx;
|
||||
}
|
||||
.Individual {
|
||||
display: flex;
|
||||
@@ -385,12 +383,9 @@ export default {
|
||||
.NameAnchorcss {
|
||||
width: 99%;
|
||||
height: 85rpx;
|
||||
background-image: linear-gradient(135deg, #d9ff007a, #00ffb364);
|
||||
border-top: 2rpx solid #ffbf0049;
|
||||
border-bottom: 2rpx solid #125b003a;
|
||||
border-left: 2rpx solid #ffbf0050;
|
||||
border-right: 2rpx solid #125b0036;
|
||||
border-radius: 30rpx;
|
||||
background-color: #ffffff;
|
||||
border: 1rpx solid #BFBFBF;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
color:#ffffff;
|
||||
}
|
||||
@@ -455,23 +450,16 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
.number-box-title {
|
||||
/* margin-right: 20rpx; */
|
||||
/* 设置渐变背景 */
|
||||
background-image: linear-gradient(135deg, #00ff227a, #a200ff64);
|
||||
/* 关键属性组合 */
|
||||
-webkit-background-clip: text; /* 兼容 iOS/Android */
|
||||
background-clip: text;
|
||||
/* 文字颜色设为透明 */
|
||||
color: transparent;
|
||||
/* 防止背景溢出 */
|
||||
display: inline-block;
|
||||
padding: 8rpx 16rpx;
|
||||
color: #191919;
|
||||
font-size: 30rpx;
|
||||
margin-right: 22rpx;
|
||||
margin-left: 17rpx;
|
||||
}
|
||||
.number-box-unit {
|
||||
color: #ffb30067;
|
||||
color: #03ABA8;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
border: 1rpx solid #ff9d006f;
|
||||
border: 1rpx solid #03ABA8;
|
||||
border-radius: 50%;
|
||||
line-height: 48rpx;
|
||||
text-align: center;
|
||||
@@ -492,13 +480,9 @@ export default {
|
||||
margin-left: 5%;
|
||||
}
|
||||
.Publishcss {
|
||||
background-image: linear-gradient(135deg, #00ffb354, #c300ff37);
|
||||
background-image: linear-gradient(135deg, #4FCACD, #5FDBDE);
|
||||
/* color: #33ff00; */
|
||||
color: #ffffff;
|
||||
border-bottom: 2rpx solid #c300ff37;
|
||||
border-top: 2rpx solid #00ffb354;
|
||||
border-right: 2rpx solid #c300ff37;
|
||||
border-left: 2rpx solid #00ffb354;
|
||||
font-weight: bold;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
|
||||
416
pages/PKMessageprocessing/PKMessageprocessing.vue
Normal file
@@ -0,0 +1,416 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="background">
|
||||
<image
|
||||
style="width: 100%; height: 100%"
|
||||
src="../../static/HomeBackground.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<view class="Return" @click="goBack">
|
||||
<image class="Return" src="../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="Content">
|
||||
<!-- 发布者 -->
|
||||
<view class="sender">
|
||||
<view class="sengderIcon">
|
||||
<image class="Icon" :src="SenderData.anchorIcon" mode="scaleToFill" />
|
||||
</view>
|
||||
|
||||
<view class="Individual">
|
||||
<view class="name">{{ SenderData.anchorId }}</view>
|
||||
|
||||
<view class="GenderAndAge">
|
||||
<view class="male" v-if="SenderData.sex === '1'">
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/male.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
|
||||
<view class="female" v-else>
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/female.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nation">{{ SenderData.country }}</view>
|
||||
</view>
|
||||
<view class="Time">PK时间:{{ formatDate(SenderData.pkTime) }}</view>
|
||||
<view class="SessionAndGoldCoin">
|
||||
<view class="goldCoin">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/gold.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="goldcard">
|
||||
<view class="goldnumber">{{ SenderData.coin }}</view>
|
||||
<view class="goldtext">金币</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Session">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/session.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="goldcard">
|
||||
<view class="goldnumber">{{ SenderData.pkNumber }}</view>
|
||||
<view class="goldtext">PK场数</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 被邀请者 -->
|
||||
<view class="sender">
|
||||
<view class="sengderIcon">
|
||||
<image class="Icon" :src="ReceiverData.anchorIcon" mode="scaleToFill" />
|
||||
</view>
|
||||
|
||||
<view class="Individual">
|
||||
<view class="name">{{ ReceiverData.anchorId }}</view>
|
||||
|
||||
<view class="GenderAndAge">
|
||||
<view class="male" v-if="ReceiverData.sex === '1'">
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/male.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
|
||||
<view class="female" v-else>
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/female.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nation">{{ ReceiverData.country }}</view>
|
||||
</view>
|
||||
<view class="Time">PK时间:{{ formatDate(ReceiverData.pkTime) }}</view>
|
||||
<view class="SessionAndGoldCoin">
|
||||
<view class="goldCoin">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/gold.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view>
|
||||
<view class="goldnumber">{{ ReceiverData.coin }}</view>
|
||||
<view class="goldtext">金币</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Session">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/session.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view>
|
||||
<view class="goldnumber">{{ ReceiverData.pkNumber }}</view>
|
||||
<view class="goldtext">PK场数</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="button">
|
||||
<button class="accept" @click="operation(1)">接受邀请</button>
|
||||
<button class="reject" @click="operation(2)">拒绝邀请</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../components/request.js";
|
||||
import formatDate from "../../components/formatDate.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
customData: {},
|
||||
SenderData: {},
|
||||
ReceiverData: {},
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.customData = JSON.parse(options.customData);
|
||||
this.getPkyourInfo();
|
||||
this.getPkmineInfo();
|
||||
},
|
||||
methods: {
|
||||
//发布者
|
||||
async getPkyourInfo() {
|
||||
const res = await request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdA,
|
||||
},
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
this.SenderData = res.data;
|
||||
console.log(this.SenderData);
|
||||
});
|
||||
},
|
||||
//被邀请者
|
||||
async getPkmineInfo() {
|
||||
const res = await request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdB,
|
||||
},
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
this.ReceiverData = res.data;
|
||||
console.log(this.ReceiverData);
|
||||
});
|
||||
},
|
||||
|
||||
goBack() {
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
formatDate: formatDate,
|
||||
async operation(status) {
|
||||
console.log("``````", this.customData);
|
||||
console.log(status);
|
||||
|
||||
const res = await request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
pkIdA: this.customData.pkIdA,
|
||||
pkIdB: this.customData.pkIdB,
|
||||
userIdA: this.customData.userIdA,
|
||||
userIdB: this.customData.userIdB,
|
||||
pkTime: this.customData.pkTime,
|
||||
pkNumber: this.customData.pkNumber,
|
||||
status: status,
|
||||
},
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
console.log(res.data);
|
||||
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
|
||||
if (res.code === 200) {
|
||||
wx.showToast({
|
||||
title: Hinttext,
|
||||
icon: "success",
|
||||
duration: 2000,
|
||||
});
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
}else {
|
||||
wx.showToast({
|
||||
title: "操作失败",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 60rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.Return {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.Content {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.sender {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
.sengderIcon {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.Individual {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 34.35rpx;
|
||||
}
|
||||
.name {
|
||||
font-size: 30.53rpx;
|
||||
color: #161616;
|
||||
margin-right: 16.22rpx;
|
||||
}
|
||||
.nation {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
font-size: 17.18rpx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
line-height: 29.58rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 50rpx;
|
||||
padding: 6rpx 12rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.male {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-color: #5bced1;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 6rpx 12rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.female {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-color: #f3876f;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 6rpx 12rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.age {
|
||||
font-size: 17.18rpx;
|
||||
color: #fff;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
.Time {
|
||||
color: #666666;
|
||||
font-size: 26.72rpx;
|
||||
margin-top: 48.7rpx;
|
||||
}
|
||||
.goldCoin {
|
||||
background-image: url("../../static/Backgroundofgoldcoins.png");
|
||||
width: 334.83rpx;
|
||||
height: 124.05rpx;
|
||||
margin-right: 21rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.Session {
|
||||
background-image: url("../../static/Fieldnumberbackground.png");
|
||||
width: 334.83rpx;
|
||||
height: 124.05rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.SessionAndGoldCoin {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.goldtext {
|
||||
font-size: 28.63rpx;
|
||||
color: #929292;
|
||||
}
|
||||
.goldnumber {
|
||||
font-size: 34.35rpx;
|
||||
color: #161616;
|
||||
font-weight: bold;
|
||||
}
|
||||
.goldcard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 150rpx;
|
||||
}
|
||||
.accept {
|
||||
width: 325.38rpx;
|
||||
height: 77.29rpx;
|
||||
margin-right: 35.5rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #03aba8;
|
||||
color: #03aba8;
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
.reject {
|
||||
width: 325.38rpx;
|
||||
height: 77.29rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #03aba8;
|
||||
border: 1rpx solid #03aba8;
|
||||
color: #fff;
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -1,39 +1,83 @@
|
||||
<template>
|
||||
<view class="Navigation">
|
||||
<image
|
||||
src="../../static/Navigationimg.png"
|
||||
mode="scaleToFill"
|
||||
class="Navigationimg"
|
||||
/>
|
||||
<image
|
||||
@click="Returnfunc"
|
||||
src="../../static/Return.png"
|
||||
mode="scaleToFill"
|
||||
class="Return"
|
||||
/>
|
||||
</view>
|
||||
<view class="container">
|
||||
<view class="individual">
|
||||
<view class="anchor">
|
||||
<!-- <image
|
||||
src="{{item.anchorIcon}}"
|
||||
mode="scaleToFill"
|
||||
/> -->
|
||||
</view>
|
||||
<view>
|
||||
<view>主播名称{{ item.anchorId }}</view>
|
||||
<view>主播性别{{ item.sex === 1 ? "男" : "女" }}</view>
|
||||
<view> 国家{{ item.country }}</view>
|
||||
<view class="background">
|
||||
<image
|
||||
style="width: 100%; height: 100%"
|
||||
src="../../static/HomeBackground.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<view class="Return" @click="Returnfunc">
|
||||
<image class="Return" src="../../static/Return.png" mode="scaleToFill" />
|
||||
</view>
|
||||
</view>
|
||||
<view>pk场数:3场</view>
|
||||
<view>金币{{ item.coin }}</view>
|
||||
<view>PK时间{{ formatDate(item.pkTime) }}</view>
|
||||
<view>pk场数</view>
|
||||
<view class="Content">
|
||||
<!-- 发布者 -->
|
||||
<view class="sender">
|
||||
<view class="sengderIcon">
|
||||
<image class="Icon" :src="item.anchorIcon" mode="scaleToFill" />
|
||||
</view>
|
||||
|
||||
<view>主播备注{{ item.remark }}</view>
|
||||
<button @click="openChat()">聊了个天</button>
|
||||
<button @click="open()">立即邀请PK</button>
|
||||
<view class="Individual">
|
||||
<view class="name">{{ item.anchorId }}</view>
|
||||
|
||||
<view class="GenderAndAge">
|
||||
<view class="male" v-if="item.sex === '1'">
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/male.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
|
||||
<view class="female" v-else>
|
||||
<view>
|
||||
<image
|
||||
style="width: 20rpx; height: 20rpx"
|
||||
src="../../static/female.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view class="age"> 21 </view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nation">{{ item.country }}</view>
|
||||
</view>
|
||||
<view class="Time">PK时间:{{ formatDate(item.pkTime) }}</view>
|
||||
<view class="SessionAndGoldCoin">
|
||||
<view class="goldCoin">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/gold.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="goldcard">
|
||||
<view class="goldnumber">{{ item.coin }}</view>
|
||||
<view class="goldtext">金币</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Session">
|
||||
<image
|
||||
style="width: 72rpx; height: 72rpx; margin-left: 36rpx; margin-right: 32rpx"
|
||||
src="../../static/session.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="goldcard">
|
||||
<view class="goldnumber">{{ item.pkNumber }}</view>
|
||||
<view class="goldtext">PK场数</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="button">
|
||||
<button class="accept" @click="openChat()">聊了个天</button>
|
||||
<button class="reject" @click="open()">立即邀请</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 弹窗 -->
|
||||
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
|
||||
@@ -145,7 +189,6 @@ export default {
|
||||
this.userlist();
|
||||
},
|
||||
invite() {
|
||||
|
||||
// if (this.item.pkTime !== this.list[this.InvitingPartyEventindex].pkTime) {
|
||||
// uni.showToast({
|
||||
// icon: "none",
|
||||
@@ -216,43 +259,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式定义 */
|
||||
.Navigation {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 200rpx;
|
||||
}
|
||||
.Navigationimg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
left: 60rpx;
|
||||
bottom: 40rpx;
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
.container {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.individual {
|
||||
display: flex;
|
||||
/* justify-content: center; */
|
||||
margin-top: 50rpx;
|
||||
}
|
||||
.anchor {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
background-color: rgba(0, 0, 255, 0.369);
|
||||
border-radius: 50%;
|
||||
}
|
||||
.popup-content {
|
||||
width: 500rpx;
|
||||
height: 700rpx;
|
||||
@@ -332,4 +338,180 @@ export default {
|
||||
.NameMoney_Name {
|
||||
text-align: left;
|
||||
}
|
||||
.background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.Navigation {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 200rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 60rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.Return {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.Content {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.sender {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
.sengderIcon {
|
||||
width: 150rpx;
|
||||
height: 150rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.Icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.Individual {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 34.35rpx;
|
||||
}
|
||||
.name {
|
||||
font-size: 30.53rpx;
|
||||
color: #161616;
|
||||
margin-right: 16.22rpx;
|
||||
}
|
||||
.nation {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
font-size: 17.18rpx;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
line-height: 29.58rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 50rpx;
|
||||
padding: 6rpx 12rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.male {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-color: #5bced1;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 6rpx 12rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.female {
|
||||
width: 56.3rpx;
|
||||
height: 29.58rpx;
|
||||
background-color: #f3876f;
|
||||
border-radius: 50rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 6rpx 12rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
.age {
|
||||
font-size: 17.18rpx;
|
||||
color: #fff;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
.Time {
|
||||
color: #666666;
|
||||
font-size: 26.72rpx;
|
||||
margin-top: 48.7rpx;
|
||||
}
|
||||
.goldCoin {
|
||||
background-image: url("../../static/Backgroundofgoldcoins.png");
|
||||
width: 334.83rpx;
|
||||
height: 124.05rpx;
|
||||
margin-right: 21rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.Session {
|
||||
background-image: url("../../static/Fieldnumberbackground.png");
|
||||
width: 334.83rpx;
|
||||
height: 124.05rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.SessionAndGoldCoin {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.goldtext {
|
||||
font-size: 28.63rpx;
|
||||
color: #929292;
|
||||
}
|
||||
.goldnumber {
|
||||
font-size: 34.35rpx;
|
||||
color: #161616;
|
||||
font-weight: bold;
|
||||
}
|
||||
.goldcard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 645rpx;
|
||||
}
|
||||
.accept {
|
||||
width: 325.38rpx;
|
||||
height: 77.29rpx;
|
||||
margin-right: 35.5rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #fff;
|
||||
border: 1rpx solid #03aba8;
|
||||
color: #03aba8;
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
.reject {
|
||||
width: 325.38rpx;
|
||||
height: 77.29rpx;
|
||||
border-radius: 50rpx;
|
||||
background-color: #03aba8;
|
||||
border: 1rpx solid #03aba8;
|
||||
color: #fff;
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
BIN
static/Backgroundofgoldcoins.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
static/Fieldnumberbackground.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
static/Fork.png
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 461 B |
BIN
static/Publishpk.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
static/gold.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
static/session.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
static/star.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n counter.$patch({ myitem:this.info})\r\n },\r\n fail: () => {\r\n },\r\n })\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\nimport { createSSRApp } from 'vue';\r\nimport * as Pinia from 'pinia';\r\n\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App);\r\n\tapp.use(Pinia.createPinia());\r\n\treturn {\r\n\t\tapp,\r\n\t\tPinia, // 此处必须将 Pinia 返回\r\n\t};\r\n}"],"names":["uni","createSSRApp","App","Pinia.createPinia","Pinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAK,CAAA;AAAA,MACpC;AAAA,MACA,MAAM,MAAM;AAAA,MACZ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC3B,QAAM,MAAMC,2BAAaC,SAAG;AAC5B,MAAI,IAAIC,cAAiB,YAAA,CAAE;AAC3B,SAAO;AAAA,IACN;AAAA,IACF,OAAEC,cAAK;AAAA;AAAA,EACP;AACA;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n counter.$patch({ myitem:this.info})\r\n },\r\n fail: () => {\r\n },\r\n })\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\nimport { createSSRApp } from 'vue';\r\nimport * as Pinia from 'pinia';\r\n\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App);\r\n\tapp.use(Pinia.createPinia());\r\n\treturn {\r\n\t\tapp,\r\n\t\tPinia, // 此处必须将 Pinia 返回\r\n\t};\r\n}"],"names":["uni","createSSRApp","App","Pinia.createPinia","Pinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAK,CAAA;AAAA,MACpC;AAAA,MACA,MAAM,MAAM;AAAA,MACZ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC3B,QAAM,MAAMC,2BAAaC,SAAG;AAC5B,MAAI,IAAIC,cAAiB,YAAA,CAAE;AAC3B,SAAO;AAAA,IACN;AAAA,IACF,OAAEC,cAAK;AAAA;AAAA,EACP;AACA;AACA,YAAY,IAAI,MAAM,MAAM;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nimport TUIlogin from \"../../components/TUILogin.js\";\r\nimport TencentCloudChat from \"@tencentcloud/chat\";\r\nimport { useCounterStore } from '@/stores/counter'\r\nconst counter = useCounterStore()\r\nexport default {\r\n inject: [\"$global\"],\r\n data() {\r\n return {\r\n info: {},\r\n myuserSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad() {\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 uni.getStorage({\r\n key: \"myuserSig\",\r\n success: (res) => {\r\n this.myuserSig = res.data;\r\n uni.getStorage({\r\n key: \"chatInfo\",\r\n success: (res) => {\r\n this.chatInfo = res.data;\r\n TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);\r\n // let options = {\r\n // SDKAppID: this.chatInfo.appId,\r\n // };\r\n // console.log(\"`````````````````````````````````````````\", this.chatInfo);\r\n // let chat = TencentCloudChat.create(options);\r\n // console.log(\"chat````````````````````````````````````````\", this.chat);\r\n // chat.login({ userID: String(this.info.id), userSig: this.myuserSig.userSig });\r\n },\r\n });\r\n },\r\n });\r\n },\r\n });\r\n },\r\n methods: {\r\n goAdvertisement() {\r\n // this.$global.lastPage = getCurrentPages().router;\r\n uni.navigateTo({ url: \"/pages/pkDetail/pkDetail\" });\r\n },\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n bottom: -30rpx;\r\n width: 100%;\r\n /* height: 1300rpx; */\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["useCounterStore","uni","res","TUIlogin"],"mappings":";;;;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAI1B,MAAM,UAAUA,eAAAA,gBAAgB;AAChC,MAAK,YAAU;AAAA,EACb,QAAQ,CAAC,SAAS;AAAA,EAClB,OAAO;AACL,WAAO;AAAA,MACL,MAAM,CAAE;AAAA,MACR,WAAW;AAAA,MACX,UAAU,CAAE;AAAA;EAEf;AAAA,EACD,SAAS;AACPC,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAI,CAAC;AAClCA,sBAAAA,MAAI,WAAW;AAAA,UACb,KAAK;AAAA,UACL,SAAS,CAACC,SAAQ;AAChB,iBAAK,YAAYA,KAAI;AACrBD,0BAAAA,MAAI,WAAW;AAAA,cACb,KAAK;AAAA,cACL,SAAS,CAACC,SAAQ;AAChB,qBAAK,WAAWA,KAAI;AACpBC,oCAAAA,SAAS,KAAK,SAAS,OAAO,KAAK,KAAK,IAAI,KAAK,UAAU,OAAO;AAAA,cAQnE;AAAA,YACH,CAAC;AAAA,UACF;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACH,CAAC;AAAA,EACF;AAAA,EACD,SAAS;AAAA,IACP,kBAAkB;AAEhBF,oBAAAA,MAAI,WAAW,EAAE,KAAK,2BAA4B,CAAA;AAAA,IACnD;AAAA,EACF;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;AC5EA,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nimport TUIlogin from \"../../components/TUILogin.js\";\r\nimport { useCounterStore } from '@/stores/counter'\r\nconst counter = useCounterStore()\r\nexport default {\r\n inject: [\"$global\"],\r\n data() {\r\n return {\r\n info: {},\r\n myuserSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad() {\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 uni.getStorage({\r\n key: \"myuserSig\",\r\n success: (res) => {\r\n this.myuserSig = res.data;\r\n uni.getStorage({\r\n key: \"chatInfo\",\r\n success: (res) => {\r\n this.chatInfo = res.data;\r\n TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);\r\n // let options = {\r\n // SDKAppID: this.chatInfo.appId,\r\n // };\r\n // console.log(\"`````````````````````````````````````````\", this.chatInfo);\r\n // let chat = TencentCloudChat.create(options);\r\n // console.log(\"chat````````````````````````````````````````\", this.chat);\r\n // chat.login({ userID: String(this.info.id), userSig: this.myuserSig.userSig });\r\n },\r\n });\r\n },\r\n });\r\n },\r\n });\r\n \r\n },\r\n methods: {\r\n goAdvertisement() {\r\n // this.$global.lastPage = getCurrentPages().router;\r\n uni.navigateTo({ url: \"/pages/pkDetail/pkDetail\" });\r\n },\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n bottom: -30rpx;\r\n width: 100%;\r\n /* height: 1300rpx; */\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["useCounterStore","uni","res","TUIlogin"],"mappings":";;;;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAG1B,MAAM,UAAUA,eAAAA,gBAAgB;AAChC,MAAK,YAAU;AAAA,EACb,QAAQ,CAAC,SAAS;AAAA,EAClB,OAAO;AACL,WAAO;AAAA,MACL,MAAM,CAAE;AAAA,MACR,WAAW;AAAA,MACX,UAAU,CAAE;AAAA;EAEf;AAAA,EACD,SAAS;AACPC,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAChB,gBAAQ,OAAO,EAAE,QAAO,KAAK,KAAI,CAAC;AAClCA,sBAAAA,MAAI,WAAW;AAAA,UACb,KAAK;AAAA,UACL,SAAS,CAACC,SAAQ;AAChB,iBAAK,YAAYA,KAAI;AACrBD,0BAAAA,MAAI,WAAW;AAAA,cACb,KAAK;AAAA,cACL,SAAS,CAACC,SAAQ;AAChB,qBAAK,WAAWA,KAAI;AACpBC,oCAAAA,SAAS,KAAK,SAAS,OAAO,KAAK,KAAK,IAAI,KAAK,UAAU,OAAO;AAAA,cAQnE;AAAA,YACH,CAAC;AAAA,UACF;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACH,CAAC;AAAA,EAEF;AAAA,EACD,SAAS;AAAA,IACP,kBAAkB;AAEhBF,oBAAAA,MAAI,WAAW,EAAE,KAAK,2BAA4B,CAAA;AAAA,IACnD;AAAA,EACF;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;AC5EA,GAAG,WAAW,eAAe;"}
|
||||
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.js.map
vendored
Normal file
30
unpackage/dist/dev/mp-weixin/NewAddedPk.js
vendored
@@ -27,14 +27,8 @@ const _sfc_main = {
|
||||
//日期
|
||||
id: null,
|
||||
//用户id
|
||||
sendingTime: "",
|
||||
sendingTime: ""
|
||||
//发送时间
|
||||
placeholderStyle: "color:#ffffff;font-size:14px",
|
||||
styles: {
|
||||
backgroundColor: "#2bff001e",
|
||||
color: "#ffffff",
|
||||
borderColor: "#00bd069d"
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -48,11 +42,11 @@ const _sfc_main = {
|
||||
methods: {
|
||||
gender(item) {
|
||||
this.genders = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:179", item);
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:174", item);
|
||||
},
|
||||
country(item) {
|
||||
this.countrys = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:184", item);
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:179", item);
|
||||
},
|
||||
handleOverlayClick(event) {
|
||||
if (event.target === this.$el) {
|
||||
@@ -168,10 +162,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
|
||||
f: common_vendor.o$1($options.country),
|
||||
g: common_vendor.p({
|
||||
backgroundColor: "#fff70065",
|
||||
borderRadius: "20",
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#ffffff",
|
||||
textColor: "#7cba59",
|
||||
textColor: "#666666",
|
||||
borderColor: "#ffffff",
|
||||
options: $data.Country,
|
||||
filterable: "true",
|
||||
@@ -181,10 +174,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
|
||||
i: common_vendor.o$1($options.gender),
|
||||
j: common_vendor.p({
|
||||
backgroundColor: "#ffaa0082",
|
||||
borderRadius: "20",
|
||||
placeholderColor: "#ffffff",
|
||||
textColor: "#ffffff",
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#666666",
|
||||
textColor: "#666666",
|
||||
borderColor: "#ffffff",
|
||||
options: $data.Gender,
|
||||
placeholder: "性别"
|
||||
@@ -205,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
|
||||
r: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
s: common_vendor.p({
|
||||
background: "#2bff001e",
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.numberCoins
|
||||
}),
|
||||
t: $data.numberCoins === "" && $data.Hint === true
|
||||
@@ -221,15 +213,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
|
||||
z: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
A: common_vendor.p({
|
||||
background: "#2bff001e",
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.numberCoins
|
||||
}),
|
||||
B: $data.numberCoins === "" && $data.Hint === true
|
||||
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
|
||||
C: common_vendor.o$1(($event) => $data.remarks = $event),
|
||||
D: common_vendor.p({
|
||||
styles: $data.styles,
|
||||
placeholderStyle: $data.placeholderStyle,
|
||||
type: "textarea",
|
||||
placeholder: "备注",
|
||||
modelValue: $data.remarks
|
||||
|
||||
@@ -16,16 +16,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
content: { default: void 0 }
|
||||
},
|
||||
setup(__props) {
|
||||
const counter = stores_counter.useCounterStore();
|
||||
const status = { agree: 1, refuse: 2 };
|
||||
function handleAccept(status2, customData2) {
|
||||
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:120", custom.value);
|
||||
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:121", message.value);
|
||||
message.value.payload.title = "Hello Tencent";
|
||||
common_vendor.Qt.modifyMessage(message.value).then((res) => {
|
||||
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:124", res);
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue:126", err);
|
||||
stores_counter.useCounterStore();
|
||||
function handleAccept(customData2) {
|
||||
const customDatainfo = JSON.stringify(customData2);
|
||||
common_vendor.index.redirectTo({
|
||||
url: `/pages/PKMessageprocessing/PKMessageprocessing?customData=${customDatainfo}`
|
||||
});
|
||||
}
|
||||
const props = __props;
|
||||
@@ -96,20 +91,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
v: common_vendor.t(common_vendor.unref(customData).text),
|
||||
w: common_vendor.t(common_vendor.unref(common_vendor.Wt).t("message.custom.查看详情>>")),
|
||||
x: common_vendor.unref(customData).link
|
||||
} : common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK ? common_vendor.e({
|
||||
z: common_vendor.unref(customData).myitem !== common_vendor.unref(counter).myitem.id
|
||||
}, common_vendor.unref(customData).myitem !== common_vendor.unref(counter).myitem.id ? common_vendor.e({
|
||||
A: common_vendor.t(common_vendor.unref(customData).title),
|
||||
B: common_vendor.unref(customData).btnDisplay === true
|
||||
}, common_vendor.unref(customData).btnDisplay === true ? {
|
||||
C: common_vendor.t(common_vendor.unref(customData).buttonText1),
|
||||
D: common_vendor.o$1(($event) => handleAccept(status.agree, common_vendor.unref(customData))),
|
||||
E: common_vendor.t(common_vendor.unref(customData).buttonText2),
|
||||
F: common_vendor.o$1(($event) => handleAccept(status.refuse, common_vendor.unref(customData)))
|
||||
} : {}) : {
|
||||
G: common_vendor.t(common_vendor.unref(customData).mytitle)
|
||||
}) : {
|
||||
H: _ctx.content.custom
|
||||
} : common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).PK ? {
|
||||
z: common_vendor.unref(customData).link,
|
||||
A: common_vendor.o$1(($event) => handleAccept(common_vendor.unref(customData)))
|
||||
} : {
|
||||
B: _ctx.content.custom
|
||||
}, {
|
||||
i: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).EVALUATE,
|
||||
n: common_vendor.unref(customData).businessID === common_vendor.unref(TUIKit_constant.CHAT_MSG_CUSTOM_TYPE).ORDER,
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"/><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view wx:if="{{z}}" class="pk data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{A}}</view><view wx:if="{{B}}" class="button-group data-v-abd5dfdc"><button bindtap="{{D}}" class="buttonAccept data-v-abd5dfdc">{{C}}</button><button bindtap="{{F}}" class="buttonRefuse data-v-abd5dfdc">{{E}}</button></view></view><view wx:else class="pk data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{G}}</view></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{H}}"/></label></block></view>
|
||||
<view class="custom data-v-abd5dfdc"><block wx:if="{{a}}"><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc"><label class="data-v-abd5dfdc">{{b}}</label><navigator wx:if="{{c}}" class="data-v-abd5dfdc" href="{{e}}" target="view_window">{{d}}</navigator></view><view wx:if="{{f}}" class="data-v-abd5dfdc"><view wx:for="{{g}}" wx:for-item="item" wx:key="e" class="data-v-abd5dfdc"><navigator wx:if="{{item.a}}" class="data-v-abd5dfdc" href="{{item.c}}" target="view_window">{{item.b}}</navigator><view wx:else class="data-v-abd5dfdc">{{item.d}}</view></view></view><view class="data-v-abd5dfdc">{{h}}</view></view></block><block wx:elif="{{i}}"><view class="evaluate data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{j}}</view><view class="evaluate-list data-v-abd5dfdc"><view wx:for="{{k}}" wx:for-item="item" wx:key="b" class="evaluate-list-item data-v-abd5dfdc"><icon wx:if="{{l}}" class="file-icon data-v-abd5dfdc" u-i="{{item.a}}" bind:__l="__l" u-p="{{l}}"/></view></view><view class="data-v-abd5dfdc">{{m}}</view></view></block><block wx:elif="{{n}}"><view class="order data-v-abd5dfdc" bindtap="{{s}}"><image class="data-v-abd5dfdc" src="{{o}}"/><view class="data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{p}}</view><view class="data-v-abd5dfdc">{{q}}</view><label class="data-v-abd5dfdc">{{r}}</label></view></view></block><block wx:elif="{{t}}"><view class="textLink data-v-abd5dfdc"><view class="data-v-abd5dfdc">{{v}}</view><navigator class="data-v-abd5dfdc" href="{{x}}" target="view_window">{{w}}</navigator></view></block><block wx:elif="{{y}}"><view class="pk data-v-abd5dfdc" bindtap="{{A}}"><image class="Custommessageimage data-v-abd5dfdc" src="{{z}}" mode="scaleToFill"/></view></block><block wx:else><label class="data-v-abd5dfdc"><rich-text class="data-v-abd5dfdc" nodes="{{B}}"/></label></block></view>
|
||||
@@ -130,7 +130,7 @@ a.data-v-abd5dfdc {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
background-color: #f5f5f5;
|
||||
background-color: #ffffff;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
@@ -171,4 +171,8 @@ a.data-v-abd5dfdc {
|
||||
margin-bottom: 10px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.Custommessageimage.data-v-abd5dfdc {
|
||||
width: 385rpx;
|
||||
height: 195rpx;
|
||||
}
|
||||
@@ -84,13 +84,16 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
const payload = {
|
||||
data: JSON.stringify({
|
||||
businessID: "pk",
|
||||
title: "PK邀请",
|
||||
buttonText1: "接受邀请",
|
||||
buttonText2: "拒绝邀请",
|
||||
keyid,
|
||||
myitem: counter.myitem.id,
|
||||
btnDisplay: true,
|
||||
mytitle: "等待对方接受邀请"
|
||||
pkIdA: youritem2.id,
|
||||
pkIdB: myitem2.id,
|
||||
userIdA: youritem2.senderId,
|
||||
userIdB: myitem2.senderId,
|
||||
pkTime: youritem2.pkTime,
|
||||
pkNumber: youritem2.pkNumber,
|
||||
link: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/pk.png",
|
||||
btnDisplay: true
|
||||
}),
|
||||
description: "邀请参加PK",
|
||||
extension: "邀请参加PK"
|
||||
@@ -129,6 +132,7 @@ const _sfc_main$4 = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
userIdA: youritem2.senderId,
|
||||
userIdB: myitem2.senderId,
|
||||
pkTime: youritem2.pkTime,
|
||||
pkNumber: youritem2.pkNumber,
|
||||
status: 0
|
||||
},
|
||||
userInfo: false
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -7,6 +7,7 @@ if (!Math) {
|
||||
"./pages/Mine/minecomponents/pkRecord.js";
|
||||
"./pages/Mine/minecomponents/contact.js";
|
||||
"./pages/Mine/minecomponents/pkInformation.js";
|
||||
"./pages/PKMessageprocessing/PKMessageprocessing.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/login/login.js";
|
||||
"./pages/UserInformation/UserInformation.js";
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -5,6 +5,7 @@
|
||||
"pages/Mine/minecomponents/pkRecord",
|
||||
"pages/Mine/minecomponents/contact",
|
||||
"pages/Mine/minecomponents/pkInformation",
|
||||
"pages/PKMessageprocessing/PKMessageprocessing",
|
||||
"pages/index/index",
|
||||
"pages/login/login",
|
||||
"pages/UserInformation/UserInformation",
|
||||
|
||||
12
unpackage/dist/dev/mp-weixin/common/assets.js
vendored
@@ -3,12 +3,14 @@ const _imports_0$5 = "/static/HomeBackground.png";
|
||||
const _imports_0$4 = "/static/Settings.png";
|
||||
const _imports_0$3 = "/static/female.png";
|
||||
const _imports_1$2 = "/static/male.png";
|
||||
const _imports_1$1 = "/static/Return.png";
|
||||
const _imports_4 = "/static/gold.png";
|
||||
const _imports_5 = "/static/session.png";
|
||||
const _imports_0$2 = "/static/Fork.png";
|
||||
const _imports_1$1 = "/static/ask.png";
|
||||
const _imports_1 = "/static/ask.png";
|
||||
const _imports_2 = "/static/man.png";
|
||||
const _imports_3 = "/static/girl.png";
|
||||
const _imports_0$1 = "/static/Navigationimg.png";
|
||||
const _imports_1 = "/static/Return.png";
|
||||
const createGroup = "/assets/start-group.6d6b5fbb.svg";
|
||||
const C2C = "/assets/icon-c2c.d80299ab.svg";
|
||||
const settingSVG = "/assets/setting.a15e5daf.svg";
|
||||
@@ -92,11 +94,13 @@ exports._imports_0$2 = _imports_0$4;
|
||||
exports._imports_0$3 = _imports_0$3;
|
||||
exports._imports_0$4 = _imports_0;
|
||||
exports._imports_0$5 = _imports_0$2;
|
||||
exports._imports_1 = _imports_1;
|
||||
exports._imports_1 = _imports_1$1;
|
||||
exports._imports_1$1 = _imports_1$2;
|
||||
exports._imports_1$2 = _imports_1$1;
|
||||
exports._imports_1$2 = _imports_1;
|
||||
exports._imports_2 = _imports_2;
|
||||
exports._imports_3 = _imports_3;
|
||||
exports._imports_4 = _imports_4;
|
||||
exports._imports_5 = _imports_5;
|
||||
exports.addSVG = addSVG;
|
||||
exports.audioIcon = audioIcon$1;
|
||||
exports.audioIcon$1 = audioIcon;
|
||||
|
||||
588
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -8012,7 +8012,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.1.112,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_VVI3dO";
|
||||
const id = "mp-weixin__gmKGe";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
@@ -30430,296 +30430,303 @@ const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
||||
const onReady = /* @__PURE__ */ createHook(ON_READY);
|
||||
const onUnload = /* @__PURE__ */ createHook(ON_UNLOAD);
|
||||
var dayjs_min = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
var hasRequiredDayjs_min;
|
||||
function requireDayjs_min() {
|
||||
if (hasRequiredDayjs_min)
|
||||
return dayjs_min.exports;
|
||||
hasRequiredDayjs_min = 1;
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
var dayjs_minExports = dayjs_min.exports;
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
return dayjs_min.exports;
|
||||
}
|
||||
var dayjs_minExports = requireDayjs_min();
|
||||
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
||||
var localeData$1 = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
@@ -30831,7 +30838,7 @@ const isSameOrBefore = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrBeforeExp
|
||||
var zhCn = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
!function(e2, _2) {
|
||||
module2.exports = _2(dayjs_minExports);
|
||||
module2.exports = _2(requireDayjs_min());
|
||||
}(commonjsGlobal, function(e2) {
|
||||
function _2(e3) {
|
||||
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
||||
@@ -35126,4 +35133,5 @@ exports.withDefaults = withDefaults;
|
||||
exports.withDirectives = withDirectives;
|
||||
exports.withModifiers = withModifiers;
|
||||
exports.withScopeId = withScopeId;
|
||||
exports.wx$1 = wx$1;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['data-v-96d38e2b', G, 'Mask']}}" bindtap="{{H}}"><view catchtap="{{F}}" class="containers data-v-96d38e2b"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Title data-v-96d38e2b">发布新PK</view><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" cursor-color="#ffffff" placeholder-style="color:#ffffff" bindinput="{{d}}" placeholder="主播名称"/><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="{{l}}" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-96d38e2b" src="{{n}}" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-96d38e2b" src="{{p}}" mode="scaleToFill"/></view></view><view wx:if="{{q}}" 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="{{s}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></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="{{t}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{x}}" class="data-v-96d38e2b" bindchange="{{v}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"/><view wx:if="{{y}}" 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="{{A}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">次</view></view><view wx:if="{{B}}" class="Hint data-v-96d38e2b">请填写场数</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{D}}" class="data-v-96d38e2b" u-i="96d38e2b-5" bind:__l="__l" bindupdateModelValue="{{C}}" u-p="{{D}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{E}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
<view wx:if="{{a}}" class="{{['data-v-96d38e2b', G, 'Mask']}}" bindtap="{{H}}"><view catchtap="{{F}}" class="containers data-v-96d38e2b"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" 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="{{d}}" placeholder="主播名称"/><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="{{l}}" mode="scaleToFill"/><image wx:if="{{m}}" class="Gendericon data-v-96d38e2b" src="{{n}}" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-96d38e2b" src="{{p}}" mode="scaleToFill"/></view></view><view wx:if="{{q}}" 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="{{s}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></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="{{t}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{x}}" class="data-v-96d38e2b" bindchange="{{v}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{w}}" u-p="{{x}}"/><view wx:if="{{y}}" 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="{{A}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-number-box><view class="number-box-title data-v-96d38e2b">次</view></view><view wx:if="{{B}}" class="Hint data-v-96d38e2b">请填写场数</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{D}}" class="data-v-96d38e2b" u-i="96d38e2b-5" bind:__l="__l" bindupdateModelValue="{{C}}" u-p="{{D}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{E}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
132
unpackage/dist/dev/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.js
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_formatDate = require("../../components/formatDate.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
customData: {},
|
||||
SenderData: {},
|
||||
ReceiverData: {}
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.customData = JSON.parse(options.customData);
|
||||
this.getPkyourInfo();
|
||||
this.getPkmineInfo();
|
||||
},
|
||||
methods: {
|
||||
//发布者
|
||||
async getPkyourInfo() {
|
||||
await components_request.request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdA
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
this.SenderData = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:173", this.SenderData);
|
||||
});
|
||||
},
|
||||
//被邀请者
|
||||
async getPkmineInfo() {
|
||||
await components_request.request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.customData.pkIdB
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
this.ReceiverData = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:187", this.ReceiverData);
|
||||
});
|
||||
},
|
||||
goBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
},
|
||||
formatDate: components_formatDate.formatDate,
|
||||
async operation(status) {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:198", "``````", this.customData);
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:199", status);
|
||||
await components_request.request({
|
||||
url: "pk/pkInfoDetail",
|
||||
method: "POST",
|
||||
data: {
|
||||
pkIdA: this.customData.pkIdA,
|
||||
pkIdB: this.customData.pkIdB,
|
||||
userIdA: this.customData.userIdA,
|
||||
userIdB: this.customData.userIdB,
|
||||
pkTime: this.customData.pkTime,
|
||||
pkNumber: this.customData.pkNumber,
|
||||
status
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:215", res.data);
|
||||
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
|
||||
if (res.code === 200) {
|
||||
common_vendor.wx$1.showToast({
|
||||
title: Hinttext,
|
||||
icon: "success",
|
||||
duration: 2e3
|
||||
});
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
} else {
|
||||
common_vendor.wx$1.showToast({
|
||||
title: "操作失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.goBack && $options.goBack(...args)),
|
||||
d: $data.SenderData.anchorIcon,
|
||||
e: common_vendor.t($data.SenderData.anchorId),
|
||||
f: $data.SenderData.sex === "1"
|
||||
}, $data.SenderData.sex === "1" ? {
|
||||
g: common_assets._imports_1$1
|
||||
} : {
|
||||
h: common_assets._imports_0$3
|
||||
}, {
|
||||
i: common_vendor.t($data.SenderData.country),
|
||||
j: common_vendor.t($options.formatDate($data.SenderData.pkTime)),
|
||||
k: common_assets._imports_4,
|
||||
l: common_vendor.t($data.SenderData.coin),
|
||||
m: common_assets._imports_5,
|
||||
n: common_vendor.t($data.SenderData.pkNumber),
|
||||
o: $data.ReceiverData.anchorIcon,
|
||||
p: common_vendor.t($data.ReceiverData.anchorId),
|
||||
q: $data.ReceiverData.sex === "1"
|
||||
}, $data.ReceiverData.sex === "1" ? {
|
||||
r: common_assets._imports_1$1
|
||||
} : {
|
||||
s: common_assets._imports_0$3
|
||||
}, {
|
||||
t: common_vendor.t($data.ReceiverData.country),
|
||||
v: common_vendor.t($options.formatDate($data.ReceiverData.pkTime)),
|
||||
w: common_assets._imports_4,
|
||||
x: common_vendor.t($data.ReceiverData.coin),
|
||||
y: common_assets._imports_5,
|
||||
z: common_vendor.t($data.ReceiverData.pkNumber),
|
||||
A: common_vendor.o$1(($event) => $options.operation(1)),
|
||||
B: common_vendor.o$1(($event) => $options.operation(2))
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cadadfe7"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "PK信息处理",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-cadadfe7"><view class="background data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:100%;height:100%" src="{{a}}" mode="scaleToFill"/></view><view class="Navigation data-v-cadadfe7"><view class="Return data-v-cadadfe7" bindtap="{{c}}"><image class="Return data-v-cadadfe7" src="{{b}}" mode="scaleToFill"/></view></view><view class="Content data-v-cadadfe7"><view class="sender data-v-cadadfe7"><view class="sengderIcon data-v-cadadfe7"><image class="Icon data-v-cadadfe7" src="{{d}}" mode="scaleToFill"/></view><view class="Individual data-v-cadadfe7"><view class="name data-v-cadadfe7">{{e}}</view><view class="GenderAndAge data-v-cadadfe7"><view wx:if="{{f}}" class="male data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{g}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7"> 21 </view></view><view wx:else class="female data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{h}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7"> 21 </view></view></view><view class="nation data-v-cadadfe7">{{i}}</view></view><view class="Time data-v-cadadfe7">PK时间:{{j}}</view><view class="SessionAndGoldCoin data-v-cadadfe7"><view class="goldCoin data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{k}}" mode="scaleToFill"/><view class="goldcard data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{l}}</view><view class="goldtext data-v-cadadfe7">金币</view></view></view><view class="Session data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{m}}" mode="scaleToFill"/><view class="goldcard data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{n}}</view><view class="goldtext data-v-cadadfe7">PK场数</view></view></view></view></view><view class="sender data-v-cadadfe7"><view class="sengderIcon data-v-cadadfe7"><image class="Icon data-v-cadadfe7" src="{{o}}" mode="scaleToFill"/></view><view class="Individual data-v-cadadfe7"><view class="name data-v-cadadfe7">{{p}}</view><view class="GenderAndAge data-v-cadadfe7"><view wx:if="{{q}}" class="male data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{r}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7"> 21 </view></view><view wx:else class="female data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{s}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7"> 21 </view></view></view><view class="nation data-v-cadadfe7">{{t}}</view></view><view class="Time data-v-cadadfe7">PK时间:{{v}}</view><view class="SessionAndGoldCoin data-v-cadadfe7"><view class="goldCoin data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{w}}" mode="scaleToFill"/><view class="data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{x}}</view><view class="goldtext data-v-cadadfe7">金币</view></view></view><view class="Session data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{y}}" mode="scaleToFill"/><view class="data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{z}}</view><view class="goldtext data-v-cadadfe7">PK场数</view></view></view></view></view><view class="button data-v-cadadfe7"><button class="accept data-v-cadadfe7" bindtap="{{A}}">接受邀请</button><button class="reject data-v-cadadfe7" bindtap="{{B}}">拒绝邀请</button></view></view></view>
|
||||
177
unpackage/dist/dev/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.wxss
vendored
Normal file
@@ -22,7 +22,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:108", "接收到的数据:", this.item);
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:152", "接收到的数据:", this.item);
|
||||
});
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
@@ -93,7 +93,7 @@ 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:192", "res.data", res.data);
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:235", "res.data", res.data);
|
||||
this.list = res.data;
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
@@ -126,19 +126,27 @@ if (!Math) {
|
||||
_easycom_uni_popup();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.o$1((...args) => $options.Returnfunc && $options.Returnfunc(...args)),
|
||||
c: common_assets._imports_1,
|
||||
d: common_vendor.t($data.item.anchorId),
|
||||
e: common_vendor.t($data.item.sex === 1 ? "男" : "女"),
|
||||
f: common_vendor.t($data.item.country),
|
||||
g: common_vendor.t($data.item.coin),
|
||||
h: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
i: common_vendor.t($data.item.remark),
|
||||
j: common_vendor.o$1(($event) => $options.openChat()),
|
||||
k: common_vendor.o$1(($event) => $options.open()),
|
||||
l: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_assets._imports_1,
|
||||
c: common_vendor.o$1((...args) => $options.Returnfunc && $options.Returnfunc(...args)),
|
||||
d: $data.item.anchorIcon,
|
||||
e: common_vendor.t($data.item.anchorId),
|
||||
f: $data.item.sex === "1"
|
||||
}, $data.item.sex === "1" ? {
|
||||
g: common_assets._imports_1$1
|
||||
} : {
|
||||
h: common_assets._imports_0$3
|
||||
}, {
|
||||
i: common_vendor.t($data.item.country),
|
||||
j: common_vendor.t($options.formatDate($data.item.pkTime)),
|
||||
k: common_assets._imports_4,
|
||||
l: common_vendor.t($data.item.coin),
|
||||
m: common_assets._imports_5,
|
||||
n: common_vendor.t($data.item.pkNumber),
|
||||
o: common_vendor.o$1(($event) => $options.openChat()),
|
||||
p: common_vendor.o$1(($event) => $options.open()),
|
||||
q: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return {
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
@@ -148,15 +156,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: $data.selectedId === item.id ? "2px solid red" : "2px solid #afafaf"
|
||||
};
|
||||
}),
|
||||
m: common_vendor.o$1(($event) => $options.invite()),
|
||||
n: common_vendor.o$1(($event) => $options.close()),
|
||||
o: common_vendor.sr("popup", "9639f721-0"),
|
||||
p: common_vendor.p({
|
||||
r: common_vendor.o$1(($event) => $options.invite()),
|
||||
s: common_vendor.o$1(($event) => $options.close()),
|
||||
t: common_vendor.sr("popup", "9639f721-0"),
|
||||
v: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
}),
|
||||
q: common_vendor.sr("createModule", "9639f721-1")
|
||||
};
|
||||
w: common_vendor.sr("createModule", "9639f721-1")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9639f721"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="Navigation data-v-9639f721"><image src="{{a}}" mode="scaleToFill" class="Navigationimg data-v-9639f721"/><image bindtap="{{b}}" src="{{c}}" mode="scaleToFill" class="Return data-v-9639f721"/></view><view class="container data-v-9639f721"><view class="individual data-v-9639f721"><view class="anchor data-v-9639f721"></view><view class="data-v-9639f721"><view class="data-v-9639f721">主播名称{{d}}</view><view class="data-v-9639f721">主播性别{{e}}</view><view class="data-v-9639f721"> 国家{{f}}</view></view></view><view class="data-v-9639f721">pk场数:3场</view><view class="data-v-9639f721">金币{{g}}</view><view class="data-v-9639f721">PK时间{{h}}</view><view class="data-v-9639f721">pk场数</view><view class="data-v-9639f721">主播备注{{i}}</view><button class="data-v-9639f721" bindtap="{{j}}">聊了个天</button><button class="data-v-9639f721" bindtap="{{k}}">立即邀请PK</button></view><uni-popup wx:if="{{p}}" class="r data-v-9639f721" u-s="{{['d']}}" u-r="popup" u-i="9639f721-0" bind:__l="__l" u-p="{{p}}"><view class="popup-content data-v-9639f721"><view class="popup-title data-v-9639f721"><scroll-view scroll-y="true" class="scroll data-v-9639f721"><view wx:for="{{l}}" wx:for-item="item" class="card data-v-9639f721"><view class="card-content data-v-9639f721" bindtap="{{item.e}}" style="{{'border:' + item.f}}"><image class="avatar data-v-9639f721" src="{{item.a}}" mode="scaleToFill"/><view class="NameMoney data-v-9639f721"><view class="NameMoney_Name data-v-9639f721">{{item.b}}</view><view class="TimeMoney data-v-9639f721"><view class="data-v-9639f721">{{item.c}}</view><view class="data-v-9639f721">金币:{{item.d}}</view></view></view></view></view></scroll-view></view><view class="popup-btn data-v-9639f721"><button class="invite data-v-9639f721" type="primary" bindtap="{{m}}">邀请</button><button class="cancel data-v-9639f721" type="default" bindtap="{{n}}">取消</button></view></view></uni-popup><new-added-pk class="createModule r data-v-9639f721" u-r="createModule" u-i="9639f721-1" 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="{{a}}" mode="scaleToFill"/></view><view class="Navigation data-v-9639f721"><view class="Return data-v-9639f721" bindtap="{{c}}"><image class="Return data-v-9639f721" src="{{b}}" 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="{{d}}" mode="scaleToFill"/></view><view class="Individual data-v-9639f721"><view class="name data-v-9639f721">{{e}}</view><view class="GenderAndAge data-v-9639f721"><view wx:if="{{f}}" class="male data-v-9639f721"><view class="data-v-9639f721"><image class="data-v-9639f721" style="width:20rpx;height:20rpx" src="{{g}}" mode="scaleToFill"/></view><view class="age data-v-9639f721"> 21 </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="{{h}}" mode="scaleToFill"/></view><view class="age data-v-9639f721"> 21 </view></view></view><view class="nation data-v-9639f721">{{i}}</view></view><view class="Time data-v-9639f721">PK时间:{{j}}</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="{{k}}" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{l}}</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="{{m}}" mode="scaleToFill"/><view class="goldcard data-v-9639f721"><view class="goldnumber data-v-9639f721">{{n}}</view><view class="goldtext data-v-9639f721">PK场数</view></view></view></view></view><view 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-0" bind:__l="__l" u-p="{{v}}"><view class="popup-content data-v-9639f721"><view class="popup-title data-v-9639f721"><scroll-view scroll-y="true" class="scroll data-v-9639f721"><view wx:for="{{q}}" wx:for-item="item" class="card data-v-9639f721"><view class="card-content data-v-9639f721" bindtap="{{item.e}}" style="{{'border:' + item.f}}"><image class="avatar data-v-9639f721" src="{{item.a}}" mode="scaleToFill"/><view class="NameMoney data-v-9639f721"><view class="NameMoney_Name data-v-9639f721">{{item.b}}</view><view class="TimeMoney data-v-9639f721"><view class="data-v-9639f721">{{item.c}}</view><view class="data-v-9639f721">金币:{{item.d}}</view></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-1" bind:__l="__l"></new-added-pk>
|
||||
BIN
unpackage/dist/dev/mp-weixin/static/Backgroundofgoldcoins.png
vendored
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/Fieldnumberbackground.png
vendored
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/Fork.png
vendored
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 461 B |
BIN
unpackage/dist/dev/mp-weixin/static/Publishpk.png
vendored
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/gold.png
vendored
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/session.png
vendored
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/star.png
vendored
Normal file
|
After Width: | Height: | Size: 1.7 KiB |