优化代码

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

@@ -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;