优化代码

This commit is contained in:
pengxiaolong
2025-08-05 22:05:56 +08:00
parent 3eddd94922
commit 40c3282515
86 changed files with 1700 additions and 399 deletions

View File

@@ -1,4 +1,4 @@
function VerifyLogin() {
function VerifyLogin(id) {
return new Promise((resolve, reject) => {
uni.getStorage({
@@ -8,19 +8,18 @@ function VerifyLogin() {
if (res.data.nickName) {
resolve(true);
} else {
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route+"?inid=" + id);
uni.reLaunch({ url: "/pages/UserInformation/UserInformation" });
resolve(false);
}
} else {
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route+"?inid=" + id);
uni.navigateTo({ url: '/pages/login/login' });
resolve(false);
}
},
fail: (err) => {
console.error("获取用户信息失败", err);
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route+"?inid=" + id);
uni.navigateTo({ url: '/pages/login/login' });
reject(err);
}

View File

@@ -1,8 +1,8 @@
import addPrefixToHeaderIcon from './addPrefixToHeaderIcon.js'
export default function request(urldata) {
const { url, data, method, header, userInfo } = urldata;
// const baseUrl = "http://49.235.115.212:8086/"+ url;
const baseUrl = "https://pk.zhukeping.com/"+ url;
const baseUrl = "http://192.168.1.174:8086/" + url;
// const baseUrl = "https://pk.zhukeping.com/"+ url;
// const baseUrl = "http://120.26.251.180:8086/"+ url;
// const baseUrl = "http://192.168.1.218:8086/"+ url;
if (userInfo) {
@@ -12,18 +12,28 @@ export default function request(urldata) {
success: (res) => {
if (res.data) {
if (res.data.nickName) {
uni.request({
url: baseUrl,
data: data,
method: method,
header: header,
success: function (res) {
console.log("请求成功", res);
resolve(addPrefixToHeaderIcon(res.data));
uni.getStorage({
key: "token",
success: (res) => {
console.log("token", res.data);
uni.request({
url: baseUrl,
data: data,
method: method,
header: {
token: res.data,
...header
},
success: function (res) {
console.log("请求成功", res);
resolve(addPrefixToHeaderIcon(res.data));
},
fail: function (res) {
reject(res);
}
});
},
fail: function (res) {
reject(res);
}
fail: (res) => {}
});
} else {
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
@@ -43,17 +53,43 @@ export default function request(urldata) {
});
} else {
return new Promise((resolve, reject) => {
uni.request({
url: baseUrl,
data: data,
method: method,
header: header,
success: function (res) {
console.log("请求成功", res);
resolve(addPrefixToHeaderIcon(res.data));
uni.getStorage({
key: "token",
success: (res) => {
console.log("token", res.data);
uni.request({
url: baseUrl,
data: data,
method: method,
header: {
token: res.data,
...header
},
success: function (res) {
console.log("请求成功", res);
resolve(addPrefixToHeaderIcon(res.data));
},
fail: function (res) {
reject(res);
}
});
},
fail: function (res) {
reject(res);
fail: (res) => {
uni.request({
url: baseUrl,
data: data,
method: method,
header: {
...header
},
success: function (res) {
console.log("请求成功", res);
resolve(addPrefixToHeaderIcon(res.data));
},
fail: function (res) {
reject(res);
}
});
}
});
});

View File

@@ -1,19 +1,18 @@
<template>
<view class="topNavigation">
<view
@click="MakeAppointmentPK"
:class="{ Selectcss: !Select, NoSelectcss: Select }"
class="RealTime"
>今日PK</view
>
<view
@click="RealTimePk"
:class="{ Selectcss: Select, NoSelectcss: !Select }"
class="MakeAppointment"
class="RealTime"
>PK大厅</view
>
<view
@click="MakeAppointmentPK"
:class="{ Selectcss: !Select, NoSelectcss: Select }"
class="MakeAppointment"
>今日PK</view
>
<view @click="screening" class="Screening">筛选</view>
<!-- <image @click="Search" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Searching.png" class="filter-icon" /> -->
</view>
</template>
@@ -22,18 +21,18 @@ export default {
data() {
return {
title: "Hello",
Select: false,
Select: true,//是否选中实时PK/今日PK false/大厅 true
};
},
onLoad() {
// 页面加载时执行
},
methods: {
MakeAppointmentPK() {
MakeAppointmentPK() {//点击今日PK
this.Select = false;
this.$emit("MakeAppointmentPK");
},
RealTimePk() {
RealTimePk() {//点击PK大厅
this.Select = true;
this.$emit("RealTimePk");//触发实时PK事件
},

View File

@@ -125,6 +125,24 @@
"style": {
"navigationBarTitleText": "PK详情"
}
},
{
"path": "pages/Setting/settingmod/changePassword",
"style": {
"navigationBarTitleText": "修改密码"
}
},
{
"path": "pages/Setting/settingmod/changeEmail",
"style": {
"navigationBarTitleText": "修改邮箱"
}
},
{
"path": "pages/Setting/settingmod/changeNickname",
"style": {
"navigationBarTitleText": "修改昵称"
}
}
],
"globalStyle": {

View File

@@ -211,7 +211,7 @@ export default {
triggered: false, //下拉刷新标识
RealTimePklist: [], // PK大厅列表数据
MakeAppointmentPKlist: [], // 今日PK列表数据
listtype: 1, // 列表类型 1 当天 2 大于当天
listtype: 2, // 列表类型 1 当天 2 大于当天
filterable: true, //是否可搜索
Country: optionsArray,
countrys: "", //国家
@@ -419,6 +419,10 @@ export default {
// this.$global.lastPage = getCurrentPages().router;
uni.navigateTo({ url: "/pages/pkDetail/pkDetail" });
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
//下拉刷新
onRefresherRefresh() {
this.page = 0;
@@ -474,7 +478,7 @@ export default {
userId: this.info.id,
from: 1,
},
userInfo: true,
userInfo: false,
});
this.detailsdata = res.data;
if (res.code === 200) {
@@ -536,10 +540,6 @@ export default {
}
},
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
components: {
topNavigation,
Advertisement,

View File

@@ -178,7 +178,7 @@
<view class="PKInformation">
<view class="title">
<view class="titleText">专属客服</view>
<view class="titleText">其他功能</view>
<view class="titleLine"></view>
</view>
</view>

View File

@@ -24,7 +24,7 @@
</view>
<view class="Individual">
<view class="name">{{ SenderData.anchorId }}</view>
<view class="name">{{ SenderData.disPlayId }}</view>
<view class="GenderAndAge">
<view class="male" v-if="SenderData.sex === '1'">
@@ -84,7 +84,7 @@
</view>
<view class="Individual">
<view class="name">{{ ReceiverData.anchorId }}</view>
<view class="name">{{ ReceiverData.disPlayId }}</view>
<view class="GenderAndAge">
<view class="male" v-if="ReceiverData.sex === '1'">
@@ -138,6 +138,7 @@
</view>
</view>
<!-- 邀请信息 -->
<view class="flex">
<view
class="button"
v-if="PkIDInfodata.pkStatus === 0 && ReceiverData.senderId !== id"
@@ -145,15 +146,23 @@
<button class="accept" @click="AcceptHint()">接受邀请</button>
<button class="reject" @click="RefuseHint()">拒绝邀请</button>
</view>
</view>
<view class="flex">
<view
v-if="ReceiverData.senderId === id && PkIDInfodata.pkStatus === 0"
class="button buttontext"
>等待对方接受邀请</view
>
</view>
<view class="flex">
<view v-if="PkIDInfodata.pkStatus === 1" class="button buttontext">已接受邀请</view>
</view>
<view class="flex">
<view v-if="PkIDInfodata.pkStatus === 2" class="button buttontext">已拒绝邀请</view>
</view>
</view>
</view>
<uni-popup ref="popups" type="center" border-radius="10px 10px 0 0">
<view class="popup-Hintcontent">
<view class="popup-text">提示</view>
@@ -375,7 +384,7 @@ export default {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 80rpx;
margin-top: 10rpx;
}
.sengderIcon {
width: 150rpx;
@@ -485,11 +494,16 @@ export default {
flex-direction: column;
align-items: center;
}
.flex{
position: fixed;
left: 0;
right: 0;
bottom: 15px;
}
.button {
display: flex;
justify-content: center;
align-items: center;
margin-top: 150rpx;
}
.buttontext {
font-size: 40rpx;

View File

@@ -1,17 +1,90 @@
<template>
<view class="container">
<button class="login-btn" open-type="chooseAvatar" @chooseavatar="Userinfo">
<image class="avatar" :src="userinfo"></image>
</button>
<input
type="nickname"
class="weui-input"
placeholder="请输入昵称"
@blur="inputName"
v-model="name"
/>
<button class="weui-btn" @click="wxLogin">修改</button>
<button class="weui-btn" @click="cancel">取消</button>
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="Return" @click="onBack">
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
<view class="title">设置</view>
<view class="contentbox">
<view class="content">
<!-- 修改头像 -->
<button class="login-btn" open-type="chooseAvatar" @chooseavatar="Userinfo">
<view class="avatarmodify">
<view class="avatarmodify-item">头像</view>
<view class="avatarmodify-img">
<image class="avatar" :src="userinfo"></image>
<image
class="more"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
</button>
<!-- 修改昵称 -->
<view class="Nickname" @click="inputNickname">
<view class="avatarmodify-item">昵称</view>
<view class="NicknameInput">
<view class="NicknameInput-name">{{ name }}</view>
<image
class="more"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<!-- 修改邮箱 -->
<view class="Nickname" @click="modifyEmailAddress">
<view class="avatarmodify-item">邮箱</view>
<view class="NicknameInput">
<view class="NicknameInput-name">{{
email == "" || email == null ? "未绑定" : email
}}</view>
<image
class="more"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<!-- 修改密码 -->
<view class="Nickname" @click="modifyPassword">
<view class="avatarmodify-item">密码</view>
<view class="NicknameInput">
<view class="NicknameInput-name">{{
havaPassword ? "" : "未设置"
}}</view>
<image
class="more"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
<!-- 扫码登录web端 -->
<view class="Nickname" @click="scanCode">
<view class="avatarmodify-item">扫码</view>
<view class="NicknameInput">
<image
class="more"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
mode="scaleToFill"
/>
</view>
</view>
</view>
</view>
</view>
</template>
@@ -19,7 +92,7 @@
import request from "../../components/request.js";
import postFile from "../../components/postFile.js";
import generateFileName from "../../components/generateFileName.js";
import { goEasylogin,goEasylogout } from "../../components/goEasyTool/tool.js";
import { goEasylogin, goEasylogout } from "../../components/goEasyTool/tool.js";
export default {
inject: ["$global"],
@@ -30,6 +103,8 @@ export default {
id: "",
info: {},
useravatar: "",
email: null,
havaPassword: false,
};
},
onLoad(option) {
@@ -39,61 +114,100 @@ export default {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = this.useravatar = res.data.headerIcon;
this.email = res.data.email;
this.havaPassword = res.data.havaPassword;
},
});
},
onShow() {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = this.useravatar = res.data.headerIcon;
this.email = res.data.email;
this.havaPassword = res.data.havaPassword;
},
});
},
methods: {
cancel() {
//修改密码
modifyPassword() {
uni.navigateTo({
url: "/pages/Setting/settingmod/changePassword?id=" + this.id,
});
},
// 修改邮箱
modifyEmailAddress() {
uni.navigateTo({
url:
"/pages/Setting/settingmod/changeEmail?email=" + this.email + "&id=" + this.id,
});
},
// 修改昵称
inputNickname() {
uni.navigateTo({
url:
"/pages/Setting/settingmod/changeNickname?name=" + this.name + "&id=" + this.id,
});
},
// 扫码登录web端
scanCode() {
uni.scanCode({
success: (res) => {
const data = JSON.parse(res.result);
if (data.type === "qrcdoe") {
request({
url: "user/scan",
method: "POST",
data: {
uuid: data.uuid,
userId: this.id,
},
userInfo: true,
}).then((res) => {
if (res.code === 200) {
uni.showToast({
title: "登录成功",
icon: "success",
});
}else{
uni.showToast({
title: res,
icon: "none",
});
}
})
.catch((err) => {
uni.showToast({
title: "登录失败",
icon: "none",
})
});
}
// 其他类型暂不处理
},
});
},
onBack() {
uni.navigateBack({
delta: 1,
});
},
// 输入昵称
inputName(e) {
this.name = e.detail.value;
},
// 选择头像
async Userinfo(e) {
const { avatarUrl } = e.detail;
this.userinfo = avatarUrl;
this.changeHeaderIcon();
},
// 微信登录
wxLogin(e) {
// 修改头像
changeHeaderIcon() {
goEasylogout(this.$goeasy);
uni.showLoading({
title: "修改中...",
mask: true,
});
if (this.useravatar == this.userinfo) {
request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: this.userinfo.split("/").pop(),
nickName: this.name,
},
userInfo: true,
}).then((ress) => {
if (ress.code === 200) {
uni.showToast({
title: "修改成功",
icon: "success",
});
uni.setStorageSync("userinfo", ress.data.info);
goEasylogin(this.$goeasy,String(ress.data.info.id),ress.data.info.headerIcon,ress.data.info.nickName);
uni.hideLoading();
uni.navigateBack({
delta: 1,
});
} else {
uni.showToast({
title: "修改失败",
icon: "none",
});
}
});
}else{
postFile({
path: this.userinfo,
name: generateFileName(),
@@ -109,14 +223,19 @@ export default {
},
userInfo: true,
}).then((ress) => {
console.log("修改调用返回",ress);
console.log("修改调用返回", ress);
if (ress.code === 200) {
uni.showToast({
title: "修改成功",
icon: "success",
});
uni.setStorageSync("userinfo", ress.data.info);
goEasylogin(this.$goeasy,String(ress.data.info.id),ress.data.info.headerIcon,ress.data.info.nickName);
goEasylogin(
this.$goeasy,
String(ress.data.info.id),
ress.data.info.headerIcon,
ress.data.info.nickName
);
uni.hideLoading();
//```````````````````````````````````````````````````````````````````````登录成功后跳转回原页面 或 首页
uni.navigateBack({
@@ -124,53 +243,139 @@ export default {
});
//````````````````````````````````````````````````````````````````````
} else {
uni.hideLoading();
uni.showToast({
title: "修改失败",
title: ress.msg,
icon: "none",
});
}
});
})
.catch((err) => {
console.log('上传失败', err);
uni.hideLoading();
uni.showToast({
title: "上传失败",
icon: "none",
});
});
}
},
},
};
</script>
<style scoped>
.container {
.bg {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg {
width: 100%;
height: 100%;
}
.contentbox {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #11cb2a6e, #2574fc6d);
}
.avatarmodify {
width: 94%;
height: 100rpx;
background-color: #fff;
padding-left: 3%;
padding-right: 3%;
display: flex;
justify-content: space-between;
align-items: center;
}
.avatarmodify-item {
font-size: 24rpx;
color: #100e0f;
line-height: 100rpx;
font-weight: bold;
}
.avatarmodify-img {
display: flex;
align-items: center;
}
.login-btn {
width: 200rpx;
height: 200rpx;
border-radius: 50%;
padding: 0px;
margin-bottom: 60rpx;
width: 100%;
height: 100rpx;
padding: 0;
margin: 0;
border: none;
background-color: #fff;
border-radius: 0rpx;
display: flex;
}
.login-btn::after {
border: none;
border-radius: 0rpx;
}
.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
width: 80rpx;
height: 80rpx;
border-radius: 10rpx;
}
.weui-input {
width: 80%;
text-align: center;
margin-bottom: 40rpx;
.more {
width: 15rpx;
height: 30rpx;
margin-left: 30rpx;
}
.weui-btn {
width: 40%;
margin-top: 20rpx;
background-color: #11cb2a00;
color: #fff;
.Nickname {
width: 94%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 3%;
padding-right: 3%;
background-color: #fff;
border-top: 1rpx solid #f0f0f0;
}
.NicknameInput {
display: flex;
align-items: center;
}
.NicknameInput-name {
font-size: 24rpx;
color: #bdbdbd;
line-height: 100rpx;
font-weight: bold;
}
</style>

View File

@@ -0,0 +1,100 @@
<template>
<view class="changeEmail">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="Return" @click="onBack">
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
<view class="title">邮箱</view>
<view class="contentbox">
<view class="content">
<!-- -->
<!-- -->
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: "Hello",
};
},
onLoad() {
// 页面加载时执行
},
methods: {
// 返回上一页
onBack() {
wx.navigateBack({
delta: 1,
});
},
},
};
</script>
<style scoped>
.bg {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg {
width: 100%;
height: 100%;
}
.contentbox {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
</style>

View File

@@ -0,0 +1,186 @@
<template>
<view class="changeNickname">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="Return" @click="onBack">
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
<view class="title">修改昵称</view>
<view class="contentbox">
<view class="content">
<!-- -->
<input
type="nickname"
class="weui-input"
placeholder="请输入昵称"
@blur="inputName"
v-model="name"
/>
<!-- -->
<view class="btn" @click="onSubmit">确认修改</view>
</view>
</view>
</view>
</template>
<script>
import { goEasylogin, goEasylogout } from "../../../components/goEasyTool/tool.js";
import request from "../../../components/request.js";
export default {
data() {
return {
name: "",
id: "",
};
},
onLoad(options) {
// 页面加载时执行
this.name = options.name;
this.id = options.id;
},
methods: {
// 提交修改
onSubmit() {
if (this.name.trim() === "") {
wx.showToast({
title: "昵称不能为空",
icon: "none",
duration: 1000,
});
return;
}
uni.showLoading({
title: "修改中...",
mask: true,
});
goEasylogout(this.$goeasy);
request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
nickName: this.name,
},
userInfo: true,
}).then((ress) => {
console.log("修改调用返回", ress);
if (ress.code === 200) {
uni.showToast({
title: "修改成功",
icon: "success",
});
uni.setStorageSync("userinfo", ress.data);
goEasylogin(
this.$goeasy,
String(ress.data.id),
ress.data.headerIcon,
ress.data.nickName
);
uni.hideLoading();
//```````````````````````````````````````````````````````````````````````登录成功后跳转回原页面 或 首页
uni.navigateBack({
delta: 1,
});
//````````````````````````````````````````````````````````````````````
} else {
uni.hideLoading();
uni.showToast({
title: ress.msg,
icon: "none",
});
}
});
},
// 输入昵称
inputName(e) {
this.name = e.detail.value;
},
// 返回上一页
onBack() {
wx.navigateBack({
delta: 1,
});
},
},
};
</script>
<style scoped>
.bg {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg {
width: 100%;
height: 100%;
}
.contentbox {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.weui-input {
width: 80%;
height: 80rpx;
margin-top: 40rpx;
border-bottom: 1px solid #ccc;
}
.btn {
width: 80%;
height: 80rpx;
margin-top: 50rpx;
background-color: #00b4ff;
color: #fff;
text-align: center;
line-height: 80rpx;
border-radius: 40rpx;
font-size: 30rpx;
border: none;
cursor: pointer;
}
</style>

View File

@@ -0,0 +1,100 @@
<template>
<view class="change-password">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
</view>
<view class="Return" @click="onBack">
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
</view>
<view class="title">修改密码</view>
<view class="contentbox">
<view class="content">
<!-- -->
<!-- -->
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: "Hello",
};
},
onLoad() {
// 页面加载时执行
},
methods: {
// 返回上一页
onBack() {
console.log(1);
wx.navigateBack({
delta: 1,
});
},
},
};
</script>
<style scoped>
.bg {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg {
width: 100%;
height: 100%;
}
.contentbox {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
</style>

View File

@@ -111,6 +111,7 @@ export default {
icon: "success",
});
uni.setStorageSync("userinfo", res.data.info);
uni.setStorageSync("token", res.data.info.token);
goEasylogin(this.$goeasy,String(res.data.info.id),this.picture,this.name);
counter.$patch({ myitem: res.data.info });
uni.hideLoading();

View File

@@ -357,11 +357,11 @@ export default {
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Album.png",
type: "Album",
},
{
name: "视频",
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
type: "Video",
},
// {
// name: "视频",
// icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
// type: "Video",
// },
{
name: "邀请",
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",

View File

@@ -1,7 +1,7 @@
<template>
<view class="return" @click="Return">
<image
style="width:40rpx;height:40rpx;"
style="width: 40rpx; height: 40rpx"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
@@ -18,11 +18,11 @@
<script>
import request from "../../components/request.js";
import { goEasylogin } from "../../components/goEasyTool/tool.js";
import { useCounterStore } from '@/stores/counter'
import { useCounterStore } from "@/stores/counter";
const counter = useCounterStore()
const counter = useCounterStore();
export default {
inject: ['$global'],
inject: ["$global"],
data() {
return {
userInfo: {},
@@ -42,14 +42,14 @@ export default {
uni.getStorage({
key: "lastPage",
success: (res) => {
this.lastPage = "/"+res.data;
this.lastPage = "/" + res.data;
},
fail: () => {
this.lastPage = "/pages/Home/Home";
},
})
});
},
methods: {
// 返回首页
Return() {
@@ -58,7 +58,7 @@ export default {
});
},
// 获取手机号
async getPhoneNumber(e) {
getPhoneNumber(e) {
if (e.detail.code == undefined) {
uni.showToast({
title: "登录失败",
@@ -70,40 +70,51 @@ export default {
title: "登录中...",
mask: true,
});
const res = await request({
url: "user/loginWithPhoneNumber",
method: "POST",
data: {
code: e.detail.code,
},
userInfo: false,
});
this.info = res;
uni.setStorageSync("userinfo", this.info.data.info);
const now = Date.now();
uni.setStorageSync("last_clean_time", now);
counter.$patch({ myitem:this.info.data.info })
if (this.info.code === 200) {
if (this.info.data.newAccount) {
uni.reLaunch({
url: "/pages/UserInformation/UserInformation",
});
uni.hideLoading();
request({
url: "user/loginWithPhoneNumber",
method: "POST",
data: {
code: e.detail.code,
},
userInfo: false,
}).then((res) => {
uni.hideLoading();
this.info = res;
uni.setStorageSync("userinfo", this.info.data.info);
const now = Date.now();
uni.setStorageSync("last_clean_time", now);
counter.$patch({ myitem: this.info.data.info });
if (this.info.code === 200) {
if (this.info.data.newAccount) {
uni.reLaunch({
url: "/pages/UserInformation/UserInformation",
});
uni.hideLoading();
} else {
uni.setStorageSync("userinfo", this.info.data.info);
uni.setStorageSync("token", res.data.info.token);
goEasylogin(
this.$goeasy,
String(this.info.data.info.id),
this.info.data.info.headerIcon,
this.info.data.info.nickName
);
uni.hideLoading();
//跳转原来页面否则首页
uni.reLaunch({
url: this.lastPage,
});
}
} else {
uni.setStorageSync("userinfo", this.info.data.info);
goEasylogin(this.$goeasy,String(this.info.data.info.id),this.info.data.info.headerIcon,this.info.data.info.nickName);
uni.hideLoading();
//跳转原来页面否则首页
uni.reLaunch({
url: this.lastPage,
});
uni.showToast({
title: "登录失败",
icon: "none",
});
}
} else {
uni.showToast({
title: "登录失败",
icon: "none",
});
}
})
.catch((err) => {
console.log(err);
});
},
},
};
@@ -146,7 +157,7 @@ export default {
font-size: 24rpx;
margin-top: 40rpx;
}
.return{
.return {
position: fixed;
top: 100rpx;
left: 80rpx;

View File

@@ -50,7 +50,7 @@
</view>
<view class="nation">{{ item.country }}</view>
</view>
<view class="Time">PK时间:{{ formatDate(item.pkTime) }}</view>
<view class="Time">PK时间北京时间:{{ formatDate(item.pkTime) }}</view>
<view class="SessionAndGoldCoin">
<view class="goldCoin">
<image
@@ -82,12 +82,12 @@
</scroll-view>
</view>
<view class="buttonflex">
<view class="button" v-if="item.senderId !== id">
<button class="accept" @click="openChat()">聊了个天</button>
<button class="reject" @click="open()">立即邀请</button>
<view class="button" v-if="item.senderId !== id">
<button class="accept" @click="openChat()">聊了个天</button>
<button class="reject" @click="open()">立即邀请</button>
</view>
</view>
</view>
</view>
</view>
<!-- 弹窗 -->
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
@@ -119,7 +119,7 @@
mode="scaleToFill"
/>
</view>
<view>{{ TimeFormatting(item.pkTime*1000) }}</view>
<view>{{ TimeFormatting(item.pkTime * 1000) }}</view>
<view class="goldimg">
<image
style="width: 31.49rpx; height: 31.49rpx; margin-top: 4rpx"
@@ -163,6 +163,7 @@ import formatDate from "../../components/formatDate.js";
import TimeFormatting from "../../components/TimeFormatting.js";
import NewAddedPk from "../../pages/NewAddedPk/NewAddedPk.vue";
import request from "../../components/request.js";
import VerifyLogin from "../../components/VerifyLogin.js";
export default {
data() {
return {
@@ -179,15 +180,19 @@ export default {
};
},
onShareAppMessage(res) {
if (res.from === 'menu') {
if (res.from === "menu") {
return {
title: '分享',
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?inid=${this.item.id}`,
}
title: "分享",
path: `${getCurrentPages()[getCurrentPages().length - 1].route}?inid=${
this.item.id
}`,
};
}
},
onLoad(options) {
this.inid = options.inid;
console.log(this.inid);
if (this.inid) {
this.GetonShareAppMessagedata();
}
@@ -203,7 +208,7 @@ export default {
data: {
id: data.item.senderId,
},
userInfo: true,
userInfo: false,
}).then((res) => {
if (res.code === 200) {
this.chatPartnerinfo = res.data;
@@ -227,7 +232,7 @@ export default {
methods: {
//分享直接获取数据
GetonShareAppMessagedata() {
request({
request({
url: "pk/pkInfoDetail",
method: "POST",
data: {
@@ -247,7 +252,6 @@ export default {
});
}
});
},
//修改信息
// onRecompose(item) {
@@ -272,14 +276,16 @@ export default {
delta: 1,
fail: () => {
uni.reLaunch({
url: '/pages/Home/Home',
url: "/pages/Home/Home",
});
}
},
});
},
open() {
this.$refs.popup.open("center");
this.userlist();
VerifyLogin(this.item.id).then((res) => {
this.$refs.popup.open("center");
this.userlist();
});
},
invite() {
if (this.InvitingPartyEventindex === null) {
@@ -292,12 +298,12 @@ export default {
}
this.$refs.popups.open("center");
},
closeHint(){
closeHint() {
this.$refs.popups.close();
},
inviteHint(){
inviteHint() {
this.$refs.popups.close();
// 发送邀请消息
// 发送邀请消息
const myitem = JSON.stringify(this.list[this.InvitingPartyEventindex]);
const youritem = JSON.stringify(this.item);
uni.redirectTo({
@@ -309,8 +315,10 @@ export default {
this.$refs.popup.close();
},
openChat() {
wx.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`,
VerifyLogin(this.item.id).then((res) => {
wx.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`,
});
});
},
@@ -371,7 +379,7 @@ export default {
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
}
.popup-Hintcontent{
.popup-Hintcontent {
width: 600rpx;
height: 500rpx;
background-repeat: no-repeat;
@@ -433,7 +441,7 @@ export default {
font-weight: bold;
margin-bottom: 30rpx;
}
.popup-texts{
.popup-texts {
margin-left: 50rpx;
color: #7e7e7e;
font-size: 26rpx;
@@ -670,7 +678,7 @@ export default {
margin-top: 60rpx;
width: 90%;
}
.Remarkscroll{
.Remarkscroll {
width: 100%;
height: 300rpx;
}
@@ -680,14 +688,14 @@ export default {
color: transparent;
display: none;
}
.Remarkscss{
.Remarkscss {
padding: 20rpx;
word-break: break-all; /* 强制换行 */
white-space: pre-line; /* 保留空白符并换行 */
width: 100%;
font-size: 28rpx;
}
.buttonflex{
.buttonflex {
position: fixed;
left: 0;
right: 0;

View File

@@ -1 +1 @@
"use strict";const e=require("../common/vendor.js");exports.VerifyLogin=function(){return new Promise(((n,t)=>{e.index.getStorage({key:"userinfo",success:t=>{t.data?t.data.nickName?n(!0):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.reLaunch({url:"/pages/UserInformation/UserInformation"}),n(!1)):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),n(!1))},fail:n=>{console.error("获取用户信息失败",n),e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),t(n)}})}))};
"use strict";const e=require("../common/vendor.js");exports.VerifyLogin=function(n){return new Promise(((t,r)=>{e.index.getStorage({key:"userinfo",success:r=>{r.data?r.data.nickName?t(!0):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route+"?inid="+n),e.index.reLaunch({url:"/pages/UserInformation/UserInformation"}),t(!1)):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route+"?inid="+n),e.index.navigateTo({url:"/pages/login/login"}),t(!1))},fail:t=>{e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route+"?inid="+n),e.index.navigateTo({url:"/pages/login/login"}),r(t)}})}))};

View File

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

View File

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

View File

@@ -1 +1 @@
.topNavigation.data-v-492a9904{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-492a9904{width:120rpx;height:50rpx;background:#5bced1;font-size:23rpx;font-weight:700;color:#fff;text-align:center;line-height:50rpx;border-radius:15rpx}.filter-icon.data-v-492a9904{width:33rpx;height:33rpx}.RealTime.data-v-492a9904{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-492a9904{margin-right:270rpx}.Screening.data-v-492a9904{margin-right:20rpx}.Selectcss.data-v-492a9904{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-492a9904{font-weight:600;height:29rpx;color:#727a7b}
.topNavigation.data-v-380f6f58{width:100%;height:114.5rpx;display:flex;align-items:center}.Screening.data-v-380f6f58{width:120rpx;height:50rpx;background:#5bced1;font-size:23rpx;font-weight:700;color:#fff;text-align:center;line-height:50rpx;border-radius:15rpx}.filter-icon.data-v-380f6f58{width:33rpx;height:33rpx}.RealTime.data-v-380f6f58{margin:0 39rpx 0 41rpx}.MakeAppointment.data-v-380f6f58{margin-right:270rpx}.Screening.data-v-380f6f58{margin-right:20rpx}.Selectcss.data-v-380f6f58{width:146rpx;height:39rpx;font-size:42rpx;color:#0e1011;font-weight:600}.NoSelectcss.data-v-380f6f58{font-weight:600;height:29rpx;color:#727a7b}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/request.js"),a=require("../../components/formatDate.js"),o={data:()=>({customData:{},SenderData:{},ReceiverData:{},PkIDInfodata:{},id:""}),onLoad(t){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),this.customData=JSON.parse(t.customData),setTimeout((()=>{this.getPkIDInfo(),this.getPkyourInfo(),this.getPkmineInfo()}),1e3)},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?customData=${JSON.stringify(this.customData)}`}},methods:{async getPkIDInfo(){await t.request({url:"pk/singleRecord",method:"POST",data:{id:this.customData.id},userInfo:!0}).then((e=>{console.log(e.data),this.PkIDInfodata=e.data}))},async getPkyourInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdA,userId:this.id,from:2},userInfo:!1}).then((t=>{console.log(t),200===t.code?(console.log(t.data),this.SenderData=t.data):e.wx$1.showToast({title:"获取发布者信息失败",icon:"none",duration:2e3})}))},async getPkmineInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdB,userId:this.id,from:2},userInfo:!1}).then((t=>{200===t.code?(console.log(t.data),this.ReceiverData=t.data):e.wx$1.showToast({title:"获取被邀请者信息失败",icon:"none",duration:2e3})}))},goBack(){e.wx$1.navigateBack({delta:1})},formatDate:a.formatDate,AcceptHint(){this.$refs.popups.open("center")},closeHint(){this.$refs.popups.close()},RefuseHint(){this.$refs.Refusepopup.open("center")},RefuseHintcloseHint(){this.$refs.Refusepopup.close()},async operation(a){await t.request({url:"pk/updatePkStatus",method:"POST",data:{id:this.customData.id,pkStatus:a},userInfo:!0}).then((t=>{const o=1===a?"接受邀请成功":"拒绝邀请成功";200===t.code?(this.getPkIDInfo(),this.$refs.popups.close(),this.$refs.Refusepopup.close(),e.wx$1.showToast({title:o,icon:"success",duration:2e3}),e.wx$1.navigateBack({delta:1})):e.wx$1.showToast({title:"操作失败",icon:"none",duration:2e3})}))}}};if(!Array){e.resolveComponent("uni-popup")()}Math;const s=e._export_sfc(o,[["render",function(t,a,o,s,n,r){return e.e({a:e.o(((...e)=>r.goBack&&r.goBack(...e))),b:n.SenderData.anchorIcon,c:e.t(n.SenderData.anchorId),d:"1"===n.SenderData.sex},"1"===n.SenderData.sex?{e:e.t(1==n.SenderData.sex?"男":"女")}:{f:e.t(1==n.SenderData.sex?"男":"女")},{g:e.t(n.SenderData.country),h:e.t(r.formatDate(n.SenderData.pkTime)),i:e.t(n.SenderData.coin),j:e.t(n.SenderData.pkNumber),k:n.ReceiverData.anchorIcon,l:e.t(n.ReceiverData.anchorId),m:"1"===n.ReceiverData.sex},"1"===n.ReceiverData.sex?{n:e.t(1==n.ReceiverData.sex?"男":"女")}:{o:e.t(1==n.ReceiverData.sex?"男":"女")},{p:e.t(n.ReceiverData.country),q:e.t(r.formatDate(n.ReceiverData.pkTime)),r:e.t(n.ReceiverData.coin),s:e.t(n.ReceiverData.pkNumber),t:0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id},0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id?{v:e.o((e=>r.AcceptHint())),w:e.o((e=>r.RefuseHint()))}:{},{x:n.ReceiverData.senderId===n.id&&0===n.PkIDInfodata.pkStatus},(n.ReceiverData.senderId===n.id&&n.PkIDInfodata.pkStatus,{}),{y:1===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{z:2===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{A:e.o((e=>r.operation(1))),B:e.o((e=>r.closeHint())),C:e.sr("popups","a49ecc79-0"),D:e.p({type:"center","border-radius":"10px 10px 0 0"}),E:e.o((e=>r.operation(2))),F:e.o((e=>r.RefuseHintcloseHint())),G:e.sr("Refusepopup","a49ecc79-1"),H:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-a49ecc79"]]);o.__runtimeHooks=2,wx.createPage(s);
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/request.js"),a=require("../../components/formatDate.js"),o={data:()=>({customData:{},SenderData:{},ReceiverData:{},PkIDInfodata:{},id:""}),onLoad(t){e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),this.customData=JSON.parse(t.customData),setTimeout((()=>{this.getPkIDInfo(),this.getPkyourInfo(),this.getPkmineInfo()}),1e3)},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?customData=${JSON.stringify(this.customData)}`}},methods:{async getPkIDInfo(){await t.request({url:"pk/singleRecord",method:"POST",data:{id:this.customData.id},userInfo:!0}).then((e=>{console.log(e.data),this.PkIDInfodata=e.data}))},async getPkyourInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdA,userId:this.id,from:2},userInfo:!1}).then((t=>{console.log(t),200===t.code?(console.log(t.data),this.SenderData=t.data):e.wx$1.showToast({title:"获取发布者信息失败",icon:"none",duration:2e3})}))},async getPkmineInfo(){await t.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.customData.pkIdB,userId:this.id,from:2},userInfo:!1}).then((t=>{200===t.code?(console.log(t.data),this.ReceiverData=t.data):e.wx$1.showToast({title:"获取被邀请者信息失败",icon:"none",duration:2e3})}))},goBack(){e.wx$1.navigateBack({delta:1})},formatDate:a.formatDate,AcceptHint(){this.$refs.popups.open("center")},closeHint(){this.$refs.popups.close()},RefuseHint(){this.$refs.Refusepopup.open("center")},RefuseHintcloseHint(){this.$refs.Refusepopup.close()},async operation(a){await t.request({url:"pk/updatePkStatus",method:"POST",data:{id:this.customData.id,pkStatus:a},userInfo:!0}).then((t=>{const o=1===a?"接受邀请成功":"拒绝邀请成功";200===t.code?(this.getPkIDInfo(),this.$refs.popups.close(),this.$refs.Refusepopup.close(),e.wx$1.showToast({title:o,icon:"success",duration:2e3}),e.wx$1.navigateBack({delta:1})):e.wx$1.showToast({title:"操作失败",icon:"none",duration:2e3})}))}}};if(!Array){e.resolveComponent("uni-popup")()}Math;const s=e._export_sfc(o,[["render",function(t,a,o,s,n,r){return e.e({a:e.o(((...e)=>r.goBack&&r.goBack(...e))),b:n.SenderData.anchorIcon,c:e.t(n.SenderData.disPlayId),d:"1"===n.SenderData.sex},"1"===n.SenderData.sex?{e:e.t(1==n.SenderData.sex?"男":"女")}:{f:e.t(1==n.SenderData.sex?"男":"女")},{g:e.t(n.SenderData.country),h:e.t(r.formatDate(n.SenderData.pkTime)),i:e.t(n.SenderData.coin),j:e.t(n.SenderData.pkNumber),k:n.ReceiverData.anchorIcon,l:e.t(n.ReceiverData.disPlayId),m:"1"===n.ReceiverData.sex},"1"===n.ReceiverData.sex?{n:e.t(1==n.ReceiverData.sex?"男":"女")}:{o:e.t(1==n.ReceiverData.sex?"男":"女")},{p:e.t(n.ReceiverData.country),q:e.t(r.formatDate(n.ReceiverData.pkTime)),r:e.t(n.ReceiverData.coin),s:e.t(n.ReceiverData.pkNumber),t:0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id},0===n.PkIDInfodata.pkStatus&&n.ReceiverData.senderId!==n.id?{v:e.o((e=>r.AcceptHint())),w:e.o((e=>r.RefuseHint()))}:{},{x:n.ReceiverData.senderId===n.id&&0===n.PkIDInfodata.pkStatus},(n.ReceiverData.senderId===n.id&&n.PkIDInfodata.pkStatus,{}),{y:1===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{z:2===n.PkIDInfodata.pkStatus},(n.PkIDInfodata.pkStatus,{}),{A:e.o((e=>r.operation(1))),B:e.o((e=>r.closeHint())),C:e.sr("popups","14285ba9-0"),D:e.p({type:"center","border-radius":"10px 10px 0 0"}),E:e.o((e=>r.operation(2))),F:e.o((e=>r.RefuseHintcloseHint())),G:e.sr("Refusepopup","14285ba9-1"),H:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-14285ba9"]]);o.__runtimeHooks=2,wx.createPage(s);

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
.background.data-v-a49ecc79{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.Navigation.data-v-a49ecc79{position:fixed;top:0;left:0;right:0;height:200rpx;display:flex;align-items:center;padding:0 60rpx;z-index:1}.Return.data-v-a49ecc79{width:60rpx;height:60rpx;margin-top:20rpx}.Content.data-v-a49ecc79{position:absolute;top:200rpx;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center}.sender.data-v-a49ecc79{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:80rpx}.sengderIcon.data-v-a49ecc79{width:150rpx;height:150rpx;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.Icon.data-v-a49ecc79{width:100%;height:100%;border-radius:50%}.Individual.data-v-a49ecc79{display:flex;justify-content:center;align-items:center;margin-top:34.35rpx}.name.data-v-a49ecc79{font-size:30.53rpx;color:#161616;margin-right:16.22rpx}.nation.data-v-a49ecc79{width:56.3rpx;height:29.58rpx;font-size:17.18rpx;color:#666;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.data-v-a49ecc79{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.data-v-a49ecc79{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.data-v-a49ecc79{font-size:17.18rpx;color:#fff;margin-left:4rpx}.Time.data-v-a49ecc79{color:#666;font-size:26.72rpx;margin-top:48.7rpx}.goldCoin.data-v-a49ecc79{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Backgroundofgoldcoins.png);width:334.83rpx;height:124.05rpx;margin-right:21rpx;display:flex;align-items:center}.Session.data-v-a49ecc79{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fieldnumberbackground.png);width:334.83rpx;height:124.05rpx;display:flex;align-items:center}.SessionAndGoldCoin.data-v-a49ecc79{align-items:center;margin-top:60rpx;display:flex;justify-content:center}.goldtext.data-v-a49ecc79{font-size:28.63rpx;color:#929292}.goldnumber.data-v-a49ecc79{font-size:34.35rpx;color:#161616;font-weight:700}.goldcard.data-v-a49ecc79{display:flex;flex-direction:column;align-items:center}.button.data-v-a49ecc79{display:flex;justify-content:center;align-items:center;margin-top:150rpx}.buttontext.data-v-a49ecc79{font-size:40rpx;color:#666;font-weight:700}.accept.data-v-a49ecc79{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.data-v-a49ecc79{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}.popup-Hintcontent.data-v-a49ecc79{width:600rpx;height:500rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-text.data-v-a49ecc79{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.popup-texts.data-v-a49ecc79{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}.popup-btn.data-v-a49ecc79{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-a49ecc79{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.cancel.data-v-a49ecc79{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;margin-left:30rpx;color:#03aba8;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;border:1rpx solid #03aba8}
.background.data-v-14285ba9{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.Navigation.data-v-14285ba9{position:fixed;top:0;left:0;right:0;height:200rpx;display:flex;align-items:center;padding:0 60rpx;z-index:1}.Return.data-v-14285ba9{width:60rpx;height:60rpx;margin-top:20rpx}.Content.data-v-14285ba9{position:absolute;top:200rpx;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center}.sender.data-v-14285ba9{width:100%;display:flex;flex-direction:column;align-items:center;margin-top:10rpx}.sengderIcon.data-v-14285ba9{width:150rpx;height:150rpx;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.Icon.data-v-14285ba9{width:100%;height:100%;border-radius:50%}.Individual.data-v-14285ba9{display:flex;justify-content:center;align-items:center;margin-top:34.35rpx}.name.data-v-14285ba9{font-size:30.53rpx;color:#161616;margin-right:16.22rpx}.nation.data-v-14285ba9{width:56.3rpx;height:29.58rpx;font-size:17.18rpx;color:#666;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.data-v-14285ba9{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.data-v-14285ba9{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.data-v-14285ba9{font-size:17.18rpx;color:#fff;margin-left:4rpx}.Time.data-v-14285ba9{color:#666;font-size:26.72rpx;margin-top:48.7rpx}.goldCoin.data-v-14285ba9{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Backgroundofgoldcoins.png);width:334.83rpx;height:124.05rpx;margin-right:21rpx;display:flex;align-items:center}.Session.data-v-14285ba9{background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fieldnumberbackground.png);width:334.83rpx;height:124.05rpx;display:flex;align-items:center}.SessionAndGoldCoin.data-v-14285ba9{align-items:center;margin-top:60rpx;display:flex;justify-content:center}.goldtext.data-v-14285ba9{font-size:28.63rpx;color:#929292}.goldnumber.data-v-14285ba9{font-size:34.35rpx;color:#161616;font-weight:700}.goldcard.data-v-14285ba9{display:flex;flex-direction:column;align-items:center}.flex.data-v-14285ba9{position:fixed;left:0;right:0;bottom:15px}.button.data-v-14285ba9{display:flex;justify-content:center;align-items:center}.buttontext.data-v-14285ba9{font-size:40rpx;color:#666;font-weight:700}.accept.data-v-14285ba9{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.data-v-14285ba9{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}.popup-Hintcontent.data-v-14285ba9{width:600rpx;height:500rpx;background-repeat:no-repeat;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);background-position:center}.popup-text.data-v-14285ba9{color:#161616;font-size:36.26rpx;font-weight:700;margin-bottom:30rpx}.popup-texts.data-v-14285ba9{margin:70rpx 50rpx;color:#7e7e7e;font-size:26rpx}.popup-btn.data-v-14285ba9{display:flex;justify-content:space-around;margin-top:50rpx}.invite.data-v-14285ba9{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;background-image:linear-gradient(135deg,#4fcacd,#5fdbde)}.cancel.data-v-14285ba9{width:225.19rpx;height:78.24rpx;font-size:28.63rpx;line-height:80rpx;margin-left:30rpx;color:#03aba8;border-top-left-radius:50rpx;border-bottom-left-radius:50rpx;border-bottom-right-radius:50rpx;border:1rpx solid #03aba8}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),s={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,inid:null,chatPartnerinfo:{}}),onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?inid=${this.item.id}`}},onLoad(t){this.inid=t.inid,this.inid&&this.GetonShareAppMessagedata();this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,n.request({url:"user/getUserInfo",method:"POST",data:{id:e.item.senderId},userInfo:!0}).then((e=>{200===e.code&&(this.chatPartnerinfo=e.data)}))})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{GetonShareAppMessagedata(){n.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.inid,userId:this.id,from:1},userInfo:!0}).then((t=>{200===t.code?this.item=t.data:e.index.showToast({title:t.msg,icon:"none",duration:2e3})}))},formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1,fail:()=>{e.index.reLaunch({url:"/pages/Home/Home"})}})},open(){this.$refs.popup.open("center"),this.userlist()},invite(){null!==this.InvitingPartyEventindex?this.$refs.popups.open("center"):e.index.showToast({title:"请选择您要参与的PK信息",icon:"none",duration:2e3})},closeHint(){this.$refs.popups.close()},inviteHint(){this.$refs.popups.close();const t=JSON.stringify(this.list[this.InvitingPartyEventindex]),i=JSON.stringify(this.item);e.index.redirectTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}&myitem=${t}&youritem=${i}&type=pk`})},close(){this.$refs.popup.close()},openChat(){e.wx$1.navigateTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`})},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),this.list=t.data):(e.index.hideLoading(),setTimeout((()=>{this.openPopupQuantity(),this.$refs.popup.close()}),2e3)):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math;const o=e._export_sfc(s,[["render",function(t,i,n,s,o,a){return e.e({a:e.o(((...e)=>a.Returnfunc&&a.Returnfunc(...e))),b:o.item.anchorIcon,c:e.t(o.item.disPlayId),d:"1"===o.item.sex},(o.item.sex,{}),{e:e.t(o.item.country),f:e.t(a.formatDate(o.item.pkTime)),g:e.t(o.item.coin),h:e.t(o.item.pkNumber),i:e.t(o.item.remark),j:o.item.senderId!==o.id},o.item.senderId!==o.id?{k:e.o((e=>a.openChat())),l:e.o((e=>a.open()))}:{},{m:0!==o.list.length},0!==o.list.length?{n:e.f(o.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(a.TimeFormatting(1e3*t.pkTime)),d:e.t(t.coin),e:e.o((e=>a.Select(t.id,i)),i),f:o.selectedId===t.id?"#b8ff8c74":"#ffffff",g:i})))}:{},{o:0===o.list.length},(o.list.length,{}),{p:e.o((e=>a.invite())),q:e.o((e=>a.close())),r:e.sr("popup","1ffdb2fe-0"),s:e.p({type:"center","border-radius":"10px 10px 0 0"}),t:e.sr("createModule","1ffdb2fe-1"),v:e.o((e=>a.inviteHint())),w:e.o((e=>a.closeHint())),x:e.sr("popups","1ffdb2fe-2"),y:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-1ffdb2fe"]]);s.__runtimeHooks=2,wx.createPage(o);
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/formatDate.js"),i=require("../../components/TimeFormatting.js"),n=require("../../components/request.js"),s=require("../../components/VerifyLogin.js"),o={data:()=>({item:{},id:0,InvitingPartyEventID:null,list:[],selectedId:null,InvitingPartyEventindex:null,chatInfo:{},currentConversation:null,inid:null,chatPartnerinfo:{}}),onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:`${getCurrentPages()[getCurrentPages().length-1].route}?inid=${this.item.id}`}},onLoad(t){this.inid=t.inid,console.log(this.inid),this.inid&&this.GetonShareAppMessagedata();this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,n.request({url:"user/getUserInfo",method:"POST",data:{id:e.item.senderId},userInfo:!1}).then((e=>{200===e.code&&(this.chatPartnerinfo=e.data)}))})),e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id}}),e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data}})},methods:{GetonShareAppMessagedata(){n.request({url:"pk/pkInfoDetail",method:"POST",data:{id:this.inid,userId:this.id,from:1},userInfo:!0}).then((t=>{200===t.code?this.item=t.data:e.index.showToast({title:t.msg,icon:"none",duration:2e3})}))},formatDate:t.formatDate,TimeFormatting:i.TimeFormatting,Select(e,t){this.selectedId===e?(this.selectedId=null,this.InvitingPartyEventID=null,this.InvitingPartyEventindex=null):(this.selectedId=this.selectedId===e?null:e,this.InvitingPartyEventID=e,this.InvitingPartyEventindex=t)},Returnfunc(){e.index.navigateBack({delta:1,fail:()=>{e.index.reLaunch({url:"/pages/Home/Home"})}})},open(){s.VerifyLogin(this.item.id).then((e=>{this.$refs.popup.open("center"),this.userlist()}))},invite(){null!==this.InvitingPartyEventindex?this.$refs.popups.open("center"):e.index.showToast({title:"请选择您要参与的PK信息",icon:"none",duration:2e3})},closeHint(){this.$refs.popups.close()},inviteHint(){this.$refs.popups.close();const t=JSON.stringify(this.list[this.InvitingPartyEventindex]),i=JSON.stringify(this.item);e.index.redirectTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}&myitem=${t}&youritem=${i}&type=pk`})},close(){this.$refs.popup.close()},openChat(){s.VerifyLogin(this.item.id).then((t=>{e.wx$1.navigateTo({url:`/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`})}))},async userlist(){e.index.showLoading({title:"加载中...",mask:!0});const t=await n.request({url:"pk/queryMyCanUsePkData",method:"POST",data:{userId:this.id},userInfo:!0});200===t.code?0!==t.data.length?(e.index.hideLoading(),this.list=t.data):(e.index.hideLoading(),setTimeout((()=>{this.openPopupQuantity(),this.$refs.popup.close()}),2e3)):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},openPopupQuantity(){this.$refs.createModule.open()}},components:{NewAddedPk:()=>"../NewAddedPk/NewAddedPk2.js"}};if(!Array){(e.resolveComponent("uni-popup")+e.resolveComponent("NewAddedPk"))()}Math;const r=e._export_sfc(o,[["render",function(t,i,n,s,o,r){return e.e({a:e.o(((...e)=>r.Returnfunc&&r.Returnfunc(...e))),b:o.item.anchorIcon,c:e.t(o.item.disPlayId),d:"1"===o.item.sex},(o.item.sex,{}),{e:e.t(o.item.country),f:e.t(r.formatDate(o.item.pkTime)),g:e.t(o.item.coin),h:e.t(o.item.pkNumber),i:e.t(o.item.remark),j:o.item.senderId!==o.id},o.item.senderId!==o.id?{k:e.o((e=>r.openChat())),l:e.o((e=>r.open()))}:{},{m:0!==o.list.length},0!==o.list.length?{n:e.f(o.list,((t,i,n)=>({a:t.anchorIcon,b:e.t(t.anchorId),c:e.t(r.TimeFormatting(1e3*t.pkTime)),d:e.t(t.coin),e:e.o((e=>r.Select(t.id,i)),i),f:o.selectedId===t.id?"#b8ff8c74":"#ffffff",g:i})))}:{},{o:0===o.list.length},(o.list.length,{}),{p:e.o((e=>r.invite())),q:e.o((e=>r.close())),r:e.sr("popup","523c3f03-0"),s:e.p({type:"center","border-radius":"10px 10px 0 0"}),t:e.sr("createModule","523c3f03-1"),v:e.o((e=>r.inviteHint())),w:e.o((e=>r.closeHint())),x:e.sr("popups","523c3f03-2"),y:e.p({type:"center","border-radius":"10px 10px 0 0"})})}],["__scopeId","data-v-523c3f03"]]);o.__runtimeHooks=2,wx.createPage(r);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\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","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\nexport default {\r\n data() {\r\n return {\r\n };\r\n },\r\n onLoad() {\r\n \r\n },\r\n methods: {\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","// main.js\r\nimport App from './App.vue'\r\nimport { createSSRApp } from 'vue'\r\nimport { createPinia } from 'pinia'\r\nimport GoEasy from 'goeasy'\r\n\r\nconst goeasyInstance = GoEasy.getInstance({\r\n host: \"hangzhou.goeasy.io\",\r\n appkey: \"BC-7a962ba3e9b84034a96dcc703a177017\",\r\n modules: ['im']\r\n})\r\n\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n const pinia = createPinia()\r\n\r\n app.config.globalProperties.$goeasy = goeasyInstance\r\n app.use(pinia)\r\n \r\n return { app, pinia }\r\n}"],"names":["GoEasy","createSSRApp","App","createPinia"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAe,YAAA;AAAA,EACb,OAAO;AACL,WAAO;EAET;AAAA,EACA,SAAS;AAAA,EAET;AAAA,EACA,SAAS,CACT;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACdA,MAAM,iBAAiBA,cAAM,GAAC,YAAY;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS,CAAC,IAAI;AAChB,CAAC;AAEM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,QAAM,QAAQC,cAAAA,YAAa;AAE3B,MAAI,OAAO,iBAAiB,UAAU;AACtC,MAAI,IAAI,KAAK;AAEb,SAAO,EAAE,KAAK,MAAO;AACvB;AACA,YAAY,IAAI,MAAM,MAAM;;"}

View File

@@ -1 +1 @@
{"version":3,"file":"VerifyLogin.js","sources":["components/VerifyLogin.js"],"sourcesContent":["function VerifyLogin() {\r\n return new Promise((resolve, reject) => {\r\n \r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n if (res.data) {\r\n if (res.data.nickName) {\r\n resolve(true);\r\n } else {\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route);\r\n uni.reLaunch({ url: \"/pages/UserInformation/UserInformation\" });\r\n resolve(false);\r\n }\r\n } else {\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route);\r\n uni.navigateTo({ url: '/pages/login/login' });\r\n resolve(false);\r\n }\r\n },\r\n fail: (err) => {\r\n console.error(\"获取用户信息失败\", err);\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route);\r\n uni.navigateTo({ url: '/pages/login/login' });\r\n reject(err);\r\n }\r\n });\r\n });\r\n}\r\n\r\nexport default VerifyLogin;\r\n"],"names":["uni"],"mappings":";;AAAA,SAAS,cAAc;AACnB,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAEpCA,kBAAAA,MAAI,WAAW;AAAA,MACX,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AACd,YAAI,IAAI,MAAM;AACV,cAAI,IAAI,KAAK,UAAU;AACnB,oBAAQ,IAAI;AAAA,UACpC,OAA2B;AACHA,gCAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAiB,EAAC,SAAS,CAAC,EAAE,KAAK;AACpFA,0BAAAA,MAAI,SAAS,EAAE,KAAK,yCAA0C,CAAA;AAC9D,oBAAQ,KAAK;AAAA,UAChB;AAAA,QACrB,OAAuB;AACHA,8BAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAiB,EAAC,SAAS,CAAC,EAAE,KAAK;AACpFA,wBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAsB,CAAA;AAC5C,kBAAQ,KAAK;AAAA,QAChB;AAAA,MACJ;AAAA,MACD,MAAM,CAAC,QAAQ;AACXA,sBAAA,MAAA,MAAA,SAAA,mCAAc,YAAY,GAAG;AAC7BA,4BAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAiB,EAAC,SAAS,CAAC,EAAE,KAAK;AACpFA,sBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAsB,CAAA;AAC5C,eAAO,GAAG;AAAA,MACb;AAAA,IACb,CAAS;AAAA,EACT,CAAK;AACL;;"}
{"version":3,"file":"VerifyLogin.js","sources":["components/VerifyLogin.js"],"sourcesContent":["function VerifyLogin(id) {\r\n return new Promise((resolve, reject) => {\r\n \r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n if (res.data) {\r\n if (res.data.nickName) {\r\n resolve(true);\r\n } else {\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route+\"?inid=\" + id);\r\n uni.reLaunch({ url: \"/pages/UserInformation/UserInformation\" });\r\n resolve(false);\r\n }\r\n } else {\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route+\"?inid=\" + id);\r\n uni.navigateTo({ url: '/pages/login/login' });\r\n resolve(false);\r\n }\r\n },\r\n fail: (err) => {\r\n uni.setStorageSync(\"lastPage\", getCurrentPages()[getCurrentPages().length - 1].route+\"?inid=\" + id);\r\n uni.navigateTo({ url: '/pages/login/login' });\r\n reject(err);\r\n }\r\n });\r\n });\r\n}\r\n\r\nexport default VerifyLogin;\r\n"],"names":["uni"],"mappings":";;AAAA,SAAS,YAAY,IAAI;AACrB,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAEpCA,kBAAAA,MAAI,WAAW;AAAA,MACX,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AACd,YAAI,IAAI,MAAM;AACV,cAAI,IAAI,KAAK,UAAU;AACnB,oBAAQ,IAAI;AAAA,UACpC,OAA2B;AACHA,0BAAAA,MAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAe,EAAG,SAAS,CAAC,EAAE,QAAM,WAAW,EAAE;AAClGA,0BAAAA,MAAI,SAAS,EAAE,KAAK,yCAA0C,CAAA;AAC9D,oBAAQ,KAAK;AAAA,UAChB;AAAA,QACrB,OAAuB;AACHA,wBAAAA,MAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAe,EAAG,SAAS,CAAC,EAAE,QAAM,WAAW,EAAE;AAClGA,wBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAsB,CAAA;AAC5C,kBAAQ,KAAK;AAAA,QAChB;AAAA,MACJ;AAAA,MACD,MAAM,CAAC,QAAQ;AACXA,sBAAAA,MAAI,eAAe,YAAY,gBAAiB,EAAC,gBAAe,EAAG,SAAS,CAAC,EAAE,QAAM,WAAW,EAAE;AAClGA,sBAAAA,MAAI,WAAW,EAAE,KAAK,qBAAsB,CAAA;AAC5C,eAAO,GAAG;AAAA,MACb;AAAA,IACb,CAAS;AAAA,EACT,CAAK;AACL;;"}

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"bindEmail.js","sources":["pages/Mine/minecomponents/bindEmail.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvTWluZS9taW5lY29tcG9uZW50cy9iaW5kRW1haWwudnVl"],"sourcesContent":["<template>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n data() {\r\n return {\r\n title: 'Hello'\r\n }\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 方法定义\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n /* 样式定义 */\r\n</style>","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Mine/minecomponents/bindEmail.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;AAII,MAAK,YAAU;AAAA,EACX,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,EAET;AACJ;;;;;ACfJ,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"changeEmail.js","sources":["pages/Setting/settingmod/changeEmail.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvU2V0dGluZy9zZXR0aW5nbW9kL2NoYW5nZUVtYWlsLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"changeEmail\">\r\n <view class=\"bg\">\r\n <image\r\n class=\"bgImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"Return\" @click=\"onBack\">\r\n <image\r\n class=\"ReturnImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"title\">邮箱</view>\r\n <view class=\"contentbox\">\r\n <view class=\"content\">\r\n <!-- -->\r\n \r\n\r\n <!-- -->\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 返回上一页\r\n onBack() {\r\n wx.navigateBack({\r\n delta: 1,\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.bg {\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n top: 0;\r\n z-index: -1;\r\n}\r\n.bgImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.Return {\r\n position: fixed;\r\n left: 35rpx;\r\n top: 120rpx;\r\n width: 46rpx;\r\n height: 46rpx;\r\n z-index: 2;\r\n}\r\n.title {\r\n position: fixed;\r\n top: 120rpx;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n font-size: 34rpx;\r\n color: #100e0f;\r\n font-weight: bold;\r\n z-index: 1;\r\n}\r\n.ReturnImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.contentbox {\r\n position: absolute;\r\n top: 200rpx;\r\n left: 0rpx;\r\n right: 0rpx;\r\n bottom: 0rpx;\r\n}\r\n.content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Setting/settingmod/changeEmail.vue'\nwx.createPage(MiniProgramPage)"],"names":["wx"],"mappings":";;AA6BA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA;EAEV;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;AC7CA,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"changePassword.js","sources":["pages/Setting/settingmod/changePassword.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvU2V0dGluZy9zZXR0aW5nbW9kL2NoYW5nZVBhc3N3b3JkLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"change-password\">\r\n <view class=\"bg\">\r\n <image\r\n class=\"bgImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"Return\" @click=\"onBack\">\r\n <image\r\n class=\"ReturnImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"title\">修改密码</view>\r\n <view class=\"contentbox\">\r\n <view class=\"content\">\r\n <!-- -->\r\n\r\n <!-- -->\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n title: \"Hello\",\r\n };\r\n },\r\n onLoad() {\r\n // 页面加载时执行\r\n },\r\n methods: {\r\n // 返回上一页\r\n onBack() {\r\n console.log(1);\r\n wx.navigateBack({\r\n delta: 1,\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.bg {\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n top: 0;\r\n z-index: -1;\r\n}\r\n.bgImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.Return {\r\n position: fixed;\r\n left: 35rpx;\r\n top: 120rpx;\r\n width: 46rpx;\r\n height: 46rpx;\r\n z-index: 2;\r\n}\r\n.title {\r\n position: fixed;\r\n top: 120rpx;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n font-size: 34rpx;\r\n color: #100e0f;\r\n font-weight: bold;\r\n z-index: 1;\r\n}\r\n.ReturnImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.contentbox {\r\n position: absolute;\r\n top: 200rpx;\r\n left: 0rpx;\r\n right: 0rpx;\r\n bottom: 0rpx;\r\n}\r\n.content {\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Setting/settingmod/changePassword.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni","wx"],"mappings":";;AA4BA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO;AAAA;EAEV;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,IAEP,SAAS;AACPA,oBAAAA,MAAY,MAAA,OAAA,qDAAA,CAAC;AACbC,oBAAAA,KAAG,aAAa;AAAA,QACd,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA,EACF;AACH;;;;;;;AC7CA,GAAG,WAAW,eAAe;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"scanCode.js","sources":["pages/Setting/settingmod/scanCode.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvU2V0dGluZy9zZXR0aW5nbW9kL3NjYW5Db2RlLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"scanCode\">\r\n <view class=\"bg\">\r\n <image\r\n class=\"bgImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"Return\" @click=\"onBack\">\r\n <image\r\n class=\"ReturnImg\"\r\n src=\"https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n <view class=\"title\">扫码登录</view>\r\n <view class=\"content\">\r\n <view class=\"box\">\r\n\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n uuid: \"\",\r\n userId: \"\",\r\n };\r\n },\r\n onLoad(options) {\r\n // 页面加载时执行\r\n this.uuid = options.uuid;\r\n this.userId = options.userId;\r\n },\r\n methods: {\r\n onBack() {\r\n uni.navigateBack({\r\n delta: 1,\r\n });\r\n },\r\n // request({\r\n // url: \"user/scan\",\r\n // method: \"POST\",\r\n // data: {\r\n // userId: this.id,\r\n // uuid: res.result,\r\n // },\r\n // userInfo: true,\r\n // }).then((ress) => {\r\n // });\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.bg {\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n top: 0;\r\n z-index: -1;\r\n}\r\n.bgImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.Return {\r\n position: fixed;\r\n left: 35rpx;\r\n top: 120rpx;\r\n width: 46rpx;\r\n height: 46rpx;\r\n z-index: 2;\r\n}\r\n.title {\r\n position: fixed;\r\n top: 120rpx;\r\n left: 0;\r\n right: 0;\r\n text-align: center;\r\n font-size: 34rpx;\r\n color: #100e0f;\r\n font-weight: bold;\r\n z-index: 1;\r\n}\r\n.ReturnImg {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.content {\r\n position: absolute;\r\n top: 200rpx;\r\n left: 0rpx;\r\n right: 0rpx;\r\n bottom: 0rpx;\r\n}\r\n.box{\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Setting/settingmod/scanCode.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AA0BA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA;EAEX;AAAA,EACD,OAAO,SAAS;AAEd,SAAK,OAAO,QAAQ;AACpB,SAAK,SAAS,QAAQ;AAAA,EACvB;AAAA,EACD,SAAS;AAAA,IACP,SAAS;AACPA,oBAAAA,MAAI,aAAa;AAAA,QACf,OAAO;AAAA,MACT,CAAC;AAAA,IACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWF;AACH;;;;;;;ACtDA,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -23,6 +23,9 @@ if (!Math) {
"./pages/Setting/Setting.js";
"./pages/NewAddedPk/NewAddedPk.js";
"./pages/pkDetail/pkDetail.js";
"./pages/Setting/settingmod/changePassword.js";
"./pages/Setting/settingmod/changeEmail.js";
"./pages/Setting/settingmod/changeNickname.js";
}
const _sfc_main = {
data() {

View File

@@ -20,7 +20,10 @@
"pages/UserInformation/UserInformation",
"pages/Setting/Setting",
"pages/NewAddedPk/NewAddedPk",
"pages/pkDetail/pkDetail"
"pages/pkDetail/pkDetail",
"pages/Setting/settingmod/changePassword",
"pages/Setting/settingmod/changeEmail",
"pages/Setting/settingmod/changeNickname"
],
"window": {
"navigationStyle": "custom",

View File

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

View File

@@ -1,6 +1,6 @@
"use strict";
const common_vendor = require("../common/vendor.js");
function VerifyLogin() {
function VerifyLogin(id) {
return new Promise((resolve, reject) => {
common_vendor.index.getStorage({
key: "userinfo",
@@ -9,19 +9,18 @@ function VerifyLogin() {
if (res.data.nickName) {
resolve(true);
} else {
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route + "?inid=" + id);
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
resolve(false);
}
} else {
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route + "?inid=" + id);
common_vendor.index.navigateTo({ url: "/pages/login/login" });
resolve(false);
}
},
fail: (err) => {
common_vendor.index.__f__("error", "at components/VerifyLogin.js:22", "获取用户信息失败", err);
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route + "?inid=" + id);
common_vendor.index.navigateTo({ url: "/pages/login/login" });
reject(err);
}

View File

@@ -3,7 +3,7 @@ const common_vendor = require("../common/vendor.js");
const components_addPrefixToHeaderIcon = require("./addPrefixToHeaderIcon.js");
function request(urldata) {
const { url, data, method, header, userInfo } = urldata;
const baseUrl = "https://pk.zhukeping.com/" + url;
const baseUrl = "http://192.168.1.174:8086/" + url;
if (userInfo) {
return new Promise((resolve, reject) => {
common_vendor.index.getStorage({
@@ -11,17 +11,28 @@ function request(urldata) {
success: (res) => {
if (res.data) {
if (res.data.nickName) {
common_vendor.index.request({
url: baseUrl,
data,
method,
header,
success: function(res2) {
common_vendor.index.__f__("log", "at components/request.js:21", "请求成功", res2);
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
common_vendor.index.getStorage({
key: "token",
success: (res2) => {
common_vendor.index.__f__("log", "at components/request.js:18", "token", res2.data);
common_vendor.index.request({
url: baseUrl,
data,
method,
header: {
token: res2.data,
...header
},
success: function(res3) {
common_vendor.index.__f__("log", "at components/request.js:28", "请求成功", res3);
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res3.data));
},
fail: function(res3) {
reject(res3);
}
});
},
fail: function(res2) {
reject(res2);
fail: (res2) => {
}
});
} else {
@@ -42,17 +53,43 @@ function request(urldata) {
});
} else {
return new Promise((resolve, reject) => {
common_vendor.index.request({
url: baseUrl,
data,
method,
header,
success: function(res) {
common_vendor.index.__f__("log", "at components/request.js:52", "请求成功", res);
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res.data));
common_vendor.index.getStorage({
key: "token",
success: (res) => {
common_vendor.index.__f__("log", "at components/request.js:59", "token", res.data);
common_vendor.index.request({
url: baseUrl,
data,
method,
header: {
token: res.data,
...header
},
success: function(res2) {
common_vendor.index.__f__("log", "at components/request.js:69", "请求成功", res2);
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
},
fail: function(res2) {
reject(res2);
}
});
},
fail: function(res) {
reject(res);
fail: (res) => {
common_vendor.index.request({
url: baseUrl,
data,
method,
header: {
...header
},
success: function(res2) {
common_vendor.index.__f__("log", "at components/request.js:86", "请求成功", res2);
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
},
fail: function(res2) {
reject(res2);
}
});
}
});
});

View File

@@ -4,7 +4,8 @@ const _sfc_main = {
data() {
return {
title: "Hello",
Select: false
Select: true
//是否选中实时PK/今日PK false/大厅 true
};
},
onLoad() {
@@ -28,12 +29,12 @@ const _sfc_main = {
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
b: !$data.Select ? 1 : "",
c: $data.Select ? 1 : "",
d: common_vendor.o((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
e: $data.Select ? 1 : "",
f: !$data.Select ? 1 : "",
a: common_vendor.o((...args) => $options.RealTimePk && $options.RealTimePk(...args)),
b: $data.Select ? 1 : "",
c: !$data.Select ? 1 : "",
d: common_vendor.o((...args) => $options.MakeAppointmentPK && $options.MakeAppointmentPK(...args)),
e: !$data.Select ? 1 : "",
f: $data.Select ? 1 : "",
g: common_vendor.o((...args) => $options.screening && $options.screening(...args))
};
}

View File

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

View File

@@ -30,7 +30,7 @@ const _sfc_main = {
// PK大厅列表数据
MakeAppointmentPKlist: [],
// 今日PK列表数据
listtype: 1,
listtype: 2,
// 列表类型 1 当天 2 大于当天
filterable: true,
//是否可搜索
@@ -228,6 +228,10 @@ const _sfc_main = {
goAdvertisement() {
common_vendor.index.navigateTo({ url: "/pages/pkDetail/pkDetail" });
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
//下拉刷新
onRefresherRefresh() {
this.page = 0;
@@ -269,7 +273,7 @@ const _sfc_main = {
userId: this.info.id,
from: 1
},
userInfo: true
userInfo: false
});
this.detailsdata = res.data;
if (res.code === 200) {
@@ -329,10 +333,6 @@ const _sfc_main = {
}
}
},
onScrollToLower() {
this.page++;
this.pkList({ type: this.listtype });
},
components: {
topNavigation,
Advertisement,
@@ -385,7 +385,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
f: $data.list.length === 0
}, $data.list.length === 0 ? {} : {}, {
g: common_vendor.o((...args) => $options.onRefresherRefresh && $options.onRefresherRefresh(...args)),
h: common_vendor.o((...args) => _ctx.onScrollToLower && _ctx.onScrollToLower(...args)),
h: common_vendor.o((...args) => $options.onScrollToLower && $options.onScrollToLower(...args)),
i: $data.triggered,
j: common_vendor.o(($event) => $options.onRefresherRefresh()),
k: common_vendor.p({

File diff suppressed because one or more lines are too long

View File

@@ -45,7 +45,7 @@ const _sfc_main = {
},
userInfo: true
}).then((res) => {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:227", res.data);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:236", res.data);
this.PkIDInfodata = res.data;
});
},
@@ -61,9 +61,9 @@ const _sfc_main = {
},
userInfo: false
}).then((res) => {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:243", res);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:252", res);
if (res.code === 200) {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:245", res.data);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:254", res.data);
this.SenderData = res.data;
} else {
common_vendor.wx$1.showToast({
@@ -87,7 +87,7 @@ const _sfc_main = {
userInfo: false
}).then((res) => {
if (res.code === 200) {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:269", res.data);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:278", res.data);
this.ReceiverData = res.data;
} else {
common_vendor.wx$1.showToast({
@@ -166,7 +166,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
b: $data.SenderData.anchorIcon,
c: common_vendor.t($data.SenderData.anchorId),
c: common_vendor.t($data.SenderData.disPlayId),
d: $data.SenderData.sex === "1"
}, $data.SenderData.sex === "1" ? {
e: common_vendor.t($data.SenderData.sex == 1 ? "男" : "女")
@@ -178,7 +178,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
i: common_vendor.t($data.SenderData.coin),
j: common_vendor.t($data.SenderData.pkNumber),
k: $data.ReceiverData.anchorIcon,
l: common_vendor.t($data.ReceiverData.anchorId),
l: common_vendor.t($data.ReceiverData.disPlayId),
m: $data.ReceiverData.sex === "1"
}, $data.ReceiverData.sex === "1" ? {
n: common_vendor.t($data.ReceiverData.sex == 1 ? "男" : "女")

File diff suppressed because one or more lines are too long

View File

@@ -38,7 +38,7 @@
display: flex;
flex-direction: column;
align-items: center;
margin-top: 80rpx;
margin-top: 10rpx;
}
.sengderIcon.data-v-cadadfe7 {
width: 150rpx;
@@ -148,11 +148,16 @@
flex-direction: column;
align-items: center;
}
.flex.data-v-cadadfe7{
position: fixed;
left: 0;
right: 0;
bottom: 15px;
}
.button.data-v-cadadfe7 {
display: flex;
justify-content: center;
align-items: center;
margin-top: 150rpx;
}
.buttontext.data-v-cadadfe7 {
font-size: 40rpx;

View File

@@ -12,7 +12,9 @@ const _sfc_main = {
name: "",
id: "",
info: {},
useravatar: ""
useravatar: "",
email: null,
havaPassword: false
};
},
onLoad(option) {
@@ -22,110 +24,157 @@ const _sfc_main = {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = this.useravatar = res.data.headerIcon;
this.email = res.data.email;
this.havaPassword = res.data.havaPassword;
}
});
},
onShow() {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.id = res.data.id;
this.name = res.data.nickName;
this.userinfo = this.useravatar = res.data.headerIcon;
this.email = res.data.email;
this.havaPassword = res.data.havaPassword;
}
});
},
methods: {
cancel() {
//修改密码
modifyPassword() {
common_vendor.index.navigateTo({
url: "/pages/Setting/settingmod/changePassword?id=" + this.id
});
},
// 修改邮箱
modifyEmailAddress() {
common_vendor.index.navigateTo({
url: "/pages/Setting/settingmod/changeEmail?email=" + this.email + "&id=" + this.id
});
},
// 修改昵称
inputNickname() {
common_vendor.index.navigateTo({
url: "/pages/Setting/settingmod/changeNickname?name=" + this.name + "&id=" + this.id
});
},
// 扫码登录web端
scanCode() {
common_vendor.index.scanCode({
success: (res) => {
const data = JSON.parse(res.result);
if (data.type === "qrcdoe") {
components_request.request({
url: "user/scan",
method: "POST",
data: {
uuid: data.uuid,
userId: this.id
},
userInfo: true
}).then((res2) => {
if (res2.code === 200) {
common_vendor.index.showToast({
title: "登录成功",
icon: "success"
});
} else {
common_vendor.index.showToast({
title: res2,
icon: "none"
});
}
}).catch((err) => {
common_vendor.index.showToast({
title: "登录失败",
icon: "none"
});
});
}
}
});
},
onBack() {
common_vendor.index.navigateBack({
delta: 1
});
},
// 输入昵称
inputName(e) {
this.name = e.detail.value;
},
// 选择头像
async Userinfo(e) {
const { avatarUrl } = e.detail;
this.userinfo = avatarUrl;
this.changeHeaderIcon();
},
// 微信登录
wxLogin(e) {
// 修改头像
changeHeaderIcon() {
components_goEasyTool_tool.goEasylogout(this.$goeasy);
common_vendor.index.showLoading({
title: "修改中...",
mask: true
});
if (this.useravatar == this.userinfo) {
components_postFile.uploadFile({
path: this.userinfo,
name: components_generateFileName.generateFileName()
}).then((res) => {
components_request.request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: this.userinfo.split("/").pop(),
headerIcon: res.split("/").pop(),
nickName: this.name
},
userInfo: true
}).then((ress) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:226", "修改调用返回", ress);
if (ress.code === 200) {
common_vendor.index.showToast({
title: "修改成功",
icon: "success"
});
common_vendor.index.setStorageSync("userinfo", ress.data.info);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(ress.data.info.id), ress.data.info.headerIcon, ress.data.info.nickName);
components_goEasyTool_tool.goEasylogin(
this.$goeasy,
String(ress.data.info.id),
ress.data.info.headerIcon,
ress.data.info.nickName
);
common_vendor.index.hideLoading();
common_vendor.index.navigateBack({
delta: 1
});
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "修改失败",
title: ress.msg,
icon: "none"
});
}
});
} else {
components_postFile.uploadFile({
path: this.userinfo,
name: components_generateFileName.generateFileName()
}).then((res) => {
components_request.request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
headerIcon: res.split("/").pop(),
nickName: this.name
},
userInfo: true
}).then((ress) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:112", "修改调用返回", ress);
if (ress.code === 200) {
common_vendor.index.showToast({
title: "修改成功",
icon: "success"
});
common_vendor.index.setStorageSync("userinfo", ress.data.info);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(ress.data.info.id), ress.data.info.headerIcon, ress.data.info.nickName);
common_vendor.index.hideLoading();
common_vendor.index.navigateBack({
delta: 1
});
} else {
common_vendor.index.showToast({
title: "修改失败",
icon: "none"
});
}
});
}).catch((err) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:135", "上传失败", err);
}).catch((err) => {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "上传失败",
icon: "none"
});
}
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: $data.userinfo,
b: common_vendor.o((...args) => $options.Userinfo && $options.Userinfo(...args)),
c: common_vendor.o((...args) => $options.inputName && $options.inputName(...args)),
d: $data.name,
e: common_vendor.o(($event) => $data.name = $event.detail.value),
f: common_vendor.o((...args) => $options.wxLogin && $options.wxLogin(...args)),
g: common_vendor.o((...args) => $options.cancel && $options.cancel(...args))
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args)),
b: $data.userinfo,
c: common_vendor.o((...args) => $options.Userinfo && $options.Userinfo(...args)),
d: common_vendor.t($data.name),
e: common_vendor.o((...args) => $options.inputNickname && $options.inputNickname(...args)),
f: common_vendor.t($data.email == "" || $data.email == null ? "未绑定" : $data.email),
g: common_vendor.o((...args) => $options.modifyEmailAddress && $options.modifyEmailAddress(...args)),
h: common_vendor.t($data.havaPassword ? "" : "未设置"),
i: common_vendor.o((...args) => $options.modifyPassword && $options.modifyPassword(...args)),
j: common_vendor.o((...args) => $options.scanCode && $options.scanCode(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c55a289"]]);

View File

@@ -1 +1 @@
<view class="container data-v-3c55a289"><button class="login-btn data-v-3c55a289" open-type="chooseAvatar" bindchooseavatar="{{b}}"><image class="avatar data-v-3c55a289" src="{{a}}"></image></button><input type="nickname" class="weui-input data-v-3c55a289" placeholder="请输入昵称" bindblur="{{c}}" value="{{d}}" bindinput="{{e}}"/><button class="weui-btn data-v-3c55a289" bindtap="{{f}}">修改</button><button class="weui-btn data-v-3c55a289" bindtap="{{g}}">取消</button></view>
<view class="container data-v-3c55a289"><view class="bg data-v-3c55a289"><image class="bgImg data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-3c55a289" bindtap="{{a}}"><image class="ReturnImg data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-3c55a289">设置</view><view class="contentbox data-v-3c55a289"><view class="content data-v-3c55a289"><button class="login-btn data-v-3c55a289" open-type="chooseAvatar" bindchooseavatar="{{c}}"><view class="avatarmodify data-v-3c55a289"><view class="avatarmodify-item data-v-3c55a289">头像</view><view class="avatarmodify-img data-v-3c55a289"><image class="avatar data-v-3c55a289" src="{{b}}"></image><image class="more data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></button><view class="Nickname data-v-3c55a289" bindtap="{{e}}"><view class="avatarmodify-item data-v-3c55a289">昵称</view><view class="NicknameInput data-v-3c55a289"><view class="NicknameInput-name data-v-3c55a289">{{d}}</view><image class="more data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-3c55a289" bindtap="{{g}}"><view class="avatarmodify-item data-v-3c55a289">邮箱</view><view class="NicknameInput data-v-3c55a289"><view class="NicknameInput-name data-v-3c55a289">{{f}}</view><image class="more data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-3c55a289" bindtap="{{i}}"><view class="avatarmodify-item data-v-3c55a289">密码</view><view class="NicknameInput data-v-3c55a289"><view class="NicknameInput-name data-v-3c55a289">{{h}}</view><image class="more data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-3c55a289" bindtap="{{j}}"><view class="avatarmodify-item data-v-3c55a289">扫码</view><view class="NicknameInput data-v-3c55a289"><image class="more data-v-3c55a289" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></view></view></view>

View File

@@ -1,33 +1,115 @@
.container.data-v-3c55a289 {
.bg.data-v-3c55a289 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg.data-v-3c55a289 {
width: 100%;
height: 100%;
}
.Return.data-v-3c55a289 {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title.data-v-3c55a289 {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg.data-v-3c55a289 {
width: 100%;
height: 100%;
}
.contentbox.data-v-3c55a289 {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content.data-v-3c55a289 {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #11cb2a6e, #2574fc6d);
}
.avatarmodify.data-v-3c55a289 {
width: 94%;
height: 100rpx;
background-color: #fff;
padding-left: 3%;
padding-right: 3%;
display: flex;
justify-content: space-between;
align-items: center;
}
.avatarmodify-item.data-v-3c55a289 {
font-size: 24rpx;
color: #100e0f;
line-height: 100rpx;
font-weight: bold;
}
.avatarmodify-img.data-v-3c55a289 {
display: flex;
align-items: center;
}
.login-btn.data-v-3c55a289 {
width: 200rpx;
height: 200rpx;
border-radius: 50%;
padding: 0px;
margin-bottom: 60rpx;
width: 100%;
height: 100rpx;
padding: 0;
margin: 0;
border: none;
background-color: #fff;
border-radius: 0rpx;
display: flex;
}
.login-btn.data-v-3c55a289::after {
border: none;
border-radius: 0rpx;
}
.avatar.data-v-3c55a289 {
width: 100%;
height: 100%;
border-radius: 50%;
width: 80rpx;
height: 80rpx;
border-radius: 10rpx;
}
.weui-input.data-v-3c55a289 {
width: 80%;
text-align: center;
margin-bottom: 40rpx;
.more.data-v-3c55a289 {
width: 15rpx;
height: 30rpx;
margin-left: 30rpx;
}
.weui-btn.data-v-3c55a289 {
width: 40%;
margin-top: 20rpx;
background-color: #11cb2a00;
color: #fff;
.Nickname.data-v-3c55a289 {
width: 94%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 3%;
padding-right: 3%;
background-color: #fff;
border-top: 1rpx solid #f0f0f0;
}
.NicknameInput.data-v-3c55a289 {
display: flex;
align-items: center;
}
.NicknameInput-name.data-v-3c55a289 {
font-size: 24rpx;
color: #bdbdbd;
line-height: 100rpx;
font-weight: bold;
}

View File

@@ -0,0 +1,27 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: "Hello"
};
},
onLoad() {
},
methods: {
// 返回上一页
onBack() {
common_vendor.wx$1.navigateBack({
delta: 1
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-87d0cc44"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changeEmail.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "修改邮箱",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="changeEmail data-v-87d0cc44"><view class="bg data-v-87d0cc44"><image class="bgImg data-v-87d0cc44" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-87d0cc44" bindtap="{{a}}"><image class="ReturnImg data-v-87d0cc44" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-87d0cc44">邮箱</view><view class="contentbox data-v-87d0cc44"><view class="content data-v-87d0cc44"></view></view></view>

View File

@@ -0,0 +1,50 @@
.bg.data-v-87d0cc44 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg.data-v-87d0cc44 {
width: 100%;
height: 100%;
}
.Return.data-v-87d0cc44 {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title.data-v-87d0cc44 {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg.data-v-87d0cc44 {
width: 100%;
height: 100%;
}
.contentbox.data-v-87d0cc44 {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content.data-v-87d0cc44 {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}

View File

@@ -0,0 +1,90 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const components_goEasyTool_tool = require("../../../components/goEasyTool/tool.js");
const components_request = require("../../../components/request.js");
const _sfc_main = {
data() {
return {
name: "",
id: ""
};
},
onLoad(options) {
this.name = options.name;
this.id = options.id;
},
methods: {
// 提交修改
onSubmit() {
if (this.name.trim() === "") {
common_vendor.wx$1.showToast({
title: "昵称不能为空",
icon: "none",
duration: 1e3
});
return;
}
common_vendor.index.showLoading({
title: "修改中...",
mask: true
});
components_goEasyTool_tool.goEasylogout(this.$goeasy);
components_request.request({
url: "user/updateUserInfo",
method: "POST",
data: {
id: this.id,
nickName: this.name
},
userInfo: true
}).then((ress) => {
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeNickname.vue:75", "修改调用返回", ress);
if (ress.code === 200) {
common_vendor.index.showToast({
title: "修改成功",
icon: "success"
});
common_vendor.index.setStorageSync("userinfo", ress.data);
components_goEasyTool_tool.goEasylogin(
this.$goeasy,
String(ress.data.id),
ress.data.headerIcon,
ress.data.nickName
);
common_vendor.index.hideLoading();
common_vendor.index.navigateBack({
delta: 1
});
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: ress.msg,
icon: "none"
});
}
});
},
// 输入昵称
inputName(e) {
this.name = e.detail.value;
},
// 返回上一页
onBack() {
common_vendor.wx$1.navigateBack({
delta: 1
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args)),
b: common_vendor.o((...args) => $options.inputName && $options.inputName(...args)),
c: $data.name,
d: common_vendor.o(($event) => $data.name = $event.detail.value),
e: common_vendor.o((...args) => $options.onSubmit && $options.onSubmit(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0dc78cdb"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changeNickname.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "修改昵称",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="changeNickname data-v-0dc78cdb"><view class="bg data-v-0dc78cdb"><image class="bgImg data-v-0dc78cdb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-0dc78cdb" bindtap="{{a}}"><image class="ReturnImg data-v-0dc78cdb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-0dc78cdb">修改昵称</view><view class="contentbox data-v-0dc78cdb"><view class="content data-v-0dc78cdb"><input type="nickname" class="weui-input data-v-0dc78cdb" placeholder="请输入昵称" bindblur="{{b}}" value="{{c}}" bindinput="{{d}}"/><view class="btn data-v-0dc78cdb" bindtap="{{e}}">确认修改</view></view></view></view>

View File

@@ -0,0 +1,69 @@
.bg.data-v-0dc78cdb {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg.data-v-0dc78cdb {
width: 100%;
height: 100%;
}
.Return.data-v-0dc78cdb {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title.data-v-0dc78cdb {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg.data-v-0dc78cdb {
width: 100%;
height: 100%;
}
.contentbox.data-v-0dc78cdb {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content.data-v-0dc78cdb {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.weui-input.data-v-0dc78cdb {
width: 80%;
height: 80rpx;
margin-top: 40rpx;
border-bottom: 1px solid #ccc;
}
.btn.data-v-0dc78cdb {
width: 80%;
height: 80rpx;
margin-top: 50rpx;
background-color: #00b4ff;
color: #fff;
text-align: center;
line-height: 80rpx;
border-radius: 40rpx;
font-size: 30rpx;
border: none;
cursor: pointer;
}

View File

@@ -0,0 +1,28 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: "Hello"
};
},
onLoad() {
},
methods: {
// 返回上一页
onBack() {
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changePassword.vue:41", 1);
common_vendor.wx$1.navigateBack({
delta: 1
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6e931930"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changePassword.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "修改密码",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="change-password data-v-6e931930"><view class="bg data-v-6e931930"><image class="bgImg data-v-6e931930" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6e931930" bindtap="{{a}}"><image class="ReturnImg data-v-6e931930" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6e931930">修改密码</view><view class="contentbox data-v-6e931930"><view class="content data-v-6e931930"></view></view></view>

View File

@@ -0,0 +1,50 @@
.bg.data-v-6e931930 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg.data-v-6e931930 {
width: 100%;
height: 100%;
}
.Return.data-v-6e931930 {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title.data-v-6e931930 {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg.data-v-6e931930 {
width: 100%;
height: 100%;
}
.contentbox.data-v-6e931930 {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.content.data-v-6e931930 {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
}

View File

@@ -0,0 +1,39 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
uuid: "",
userId: ""
};
},
onLoad(options) {
this.uuid = options.uuid;
this.userId = options.userId;
},
methods: {
onBack() {
common_vendor.index.navigateBack({
delta: 1
});
}
// request({
// url: "user/scan",
// method: "POST",
// data: {
// userId: this.id,
// uuid: res.result,
// },
// userInfo: true,
// }).then((ress) => {
// });
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d0939827"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/scanCode.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "扫码验证",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="scanCode data-v-d0939827"><view class="bg data-v-d0939827"><image class="bgImg data-v-d0939827" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-d0939827" bindtap="{{a}}"><image class="ReturnImg data-v-d0939827" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-d0939827">扫码登录</view><view class="content data-v-d0939827"><view class="box data-v-d0939827"></view></view></view>

View File

@@ -0,0 +1,50 @@
.bg.data-v-d0939827 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
}
.bgImg.data-v-d0939827 {
width: 100%;
height: 100%;
}
.Return.data-v-d0939827 {
position: fixed;
left: 35rpx;
top: 120rpx;
width: 46rpx;
height: 46rpx;
z-index: 2;
}
.title.data-v-d0939827 {
position: fixed;
top: 120rpx;
left: 0;
right: 0;
text-align: center;
font-size: 34rpx;
color: #100e0f;
font-weight: bold;
z-index: 1;
}
.ReturnImg.data-v-d0939827 {
width: 100%;
height: 100%;
}
.content.data-v-d0939827 {
position: absolute;
top: 200rpx;
left: 0rpx;
right: 0rpx;
bottom: 0rpx;
}
.box.data-v-d0939827{
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

View File

@@ -86,6 +86,7 @@ const _sfc_main = {
icon: "success"
});
common_vendor.index.setStorageSync("userinfo", res.data.info);
common_vendor.index.setStorageSync("token", res.data.info.token);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(res.data.info.id), this.picture, this.name);
counter.$patch({ myitem: res.data.info });
common_vendor.index.hideLoading();
@@ -100,7 +101,7 @@ const _sfc_main = {
}
});
}).catch((err) => {
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:131", err);
common_vendor.index.__f__("log", "at pages/UserInformation/UserInformation.vue:132", err);
});
} else {
common_vendor.index.showToast({

View File

@@ -81,11 +81,11 @@ const _sfc_main = {
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Album.png",
type: "Album"
},
{
name: "视频",
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
type: "Video"
},
// {
// name: "视频",
// icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Video.png",
// type: "Video",
// },
{
name: "邀请",
icon: "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chat_invite.png",

View File

@@ -40,7 +40,7 @@ const _sfc_main = {
});
},
// 获取手机号
async getPhoneNumber(e) {
getPhoneNumber(e) {
if (e.detail.code == void 0) {
common_vendor.index.showToast({
title: "登录失败",
@@ -52,39 +52,49 @@ const _sfc_main = {
title: "登录中...",
mask: true
});
const res = await components_request.request({
components_request.request({
url: "user/loginWithPhoneNumber",
method: "POST",
data: {
code: e.detail.code
},
userInfo: false
});
this.info = res;
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
const now = Date.now();
common_vendor.index.setStorageSync("last_clean_time", now);
counter.$patch({ myitem: this.info.data.info });
if (this.info.code === 200) {
if (this.info.data.newAccount) {
common_vendor.index.reLaunch({
url: "/pages/UserInformation/UserInformation"
});
common_vendor.index.hideLoading();
}).then((res) => {
common_vendor.index.hideLoading();
this.info = res;
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
const now = Date.now();
common_vendor.index.setStorageSync("last_clean_time", now);
counter.$patch({ myitem: this.info.data.info });
if (this.info.code === 200) {
if (this.info.data.newAccount) {
common_vendor.index.reLaunch({
url: "/pages/UserInformation/UserInformation"
});
common_vendor.index.hideLoading();
} else {
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
common_vendor.index.setStorageSync("token", res.data.info.token);
components_goEasyTool_tool.goEasylogin(
this.$goeasy,
String(this.info.data.info.id),
this.info.data.info.headerIcon,
this.info.data.info.nickName
);
common_vendor.index.hideLoading();
common_vendor.index.reLaunch({
url: this.lastPage
});
}
} else {
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(this.info.data.info.id), this.info.data.info.headerIcon, this.info.data.info.nickName);
common_vendor.index.hideLoading();
common_vendor.index.reLaunch({
url: this.lastPage
common_vendor.index.showToast({
title: "登录失败",
icon: "none"
});
}
} else {
common_vendor.index.showToast({
title: "登录失败",
icon: "none"
});
}
}).catch((err) => {
common_vendor.index.__f__("log", "at pages/login/login.vue:116", err);
});
}
}
};

View File

@@ -33,7 +33,7 @@
font-size: 24rpx;
margin-top: 40rpx;
}
.return{
.return {
position: fixed;
top: 100rpx;
left: 80rpx;

View File

@@ -3,6 +3,7 @@ const common_vendor = require("../../common/vendor.js");
const components_formatDate = require("../../components/formatDate.js");
const components_TimeFormatting = require("../../components/TimeFormatting.js");
const components_request = require("../../components/request.js");
const components_VerifyLogin = require("../../components/VerifyLogin.js");
const NewAddedPk = () => "../NewAddedPk/NewAddedPk2.js";
const _sfc_main = {
data() {
@@ -29,6 +30,7 @@ const _sfc_main = {
},
onLoad(options) {
this.inid = options.inid;
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:194", this.inid);
if (this.inid) {
this.GetonShareAppMessagedata();
}
@@ -41,7 +43,7 @@ const _sfc_main = {
data: {
id: data.item.senderId
},
userInfo: true
userInfo: false
}).then((res) => {
if (res.code === 200) {
this.chatPartnerinfo = res.data;
@@ -114,8 +116,10 @@ const _sfc_main = {
});
},
open() {
this.$refs.popup.open("center");
this.userlist();
components_VerifyLogin.VerifyLogin(this.item.id).then((res) => {
this.$refs.popup.open("center");
this.userlist();
});
},
invite() {
if (this.InvitingPartyEventindex === null) {
@@ -144,8 +148,10 @@ const _sfc_main = {
this.$refs.popup.close();
},
openChat() {
common_vendor.wx$1.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`
components_VerifyLogin.VerifyLogin(this.item.id).then((res) => {
common_vendor.wx$1.navigateTo({
url: `/pages/index/chat/chat?userId=${this.chatPartnerinfo.id}&nickname=${this.chatPartnerinfo.nickName}&avatar=${this.chatPartnerinfo.headerIcon}`
});
});
},
async userlist() {

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,7 @@
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
}
.popup-Hintcontent.data-v-9639f721{
.popup-Hintcontent.data-v-9639f721 {
width: 600rpx;
height: 500rpx;
background-repeat: no-repeat;
@@ -73,7 +73,7 @@
font-weight: bold;
margin-bottom: 30rpx;
}
.popup-texts.data-v-9639f721{
.popup-texts.data-v-9639f721 {
margin-left: 50rpx;
color: #7e7e7e;
font-size: 26rpx;
@@ -310,7 +310,7 @@
margin-top: 60rpx;
width: 90%;
}
.Remarkscroll.data-v-9639f721{
.Remarkscroll.data-v-9639f721 {
width: 100%;
height: 300rpx;
}
@@ -320,14 +320,14 @@
color: transparent;
display: none;
}
.Remarkscss.data-v-9639f721{
.Remarkscss.data-v-9639f721 {
padding: 20rpx;
word-break: break-all; /* 强制换行 */
white-space: pre-line; /* 保留空白符并换行 */
width: 100%;
font-size: 28rpx;
}
.buttonflex.data-v-9639f721{
.buttonflex.data-v-9639f721 {
position: fixed;
left: 0;
right: 0;