优化代码
This commit is contained in:
@@ -2,7 +2,7 @@ import addPrefixToHeaderIcon from './addPrefixToHeaderIcon.js'
|
||||
export default function request(urldata) {
|
||||
const { url, data, method, header, userInfo } = urldata;
|
||||
// const baseUrl = "http://192.168.1.174:8086/" + url;
|
||||
const baseUrl = "https://pk.zhukeping.com/"+ url;
|
||||
const baseUrl = "https://pk.hanxiaokj.cn/"+ url;
|
||||
// const baseUrl = "http://120.26.251.180:8086/"+ url;
|
||||
// const baseUrl = "http://192.168.1.218:8086/"+ url;
|
||||
if (userInfo) {
|
||||
@@ -26,6 +26,9 @@ export default function request(urldata) {
|
||||
},
|
||||
success: function (res) {
|
||||
console.log("请求成功", res);
|
||||
if (res.data.code === 40400) {
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
resolve(addPrefixToHeaderIcon(res.data));
|
||||
},
|
||||
fail: function (res) {
|
||||
@@ -84,6 +87,9 @@ export default function request(urldata) {
|
||||
},
|
||||
success: function (res) {
|
||||
console.log("请求成功", res);
|
||||
if (res.data.code === 40400) {
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
resolve(addPrefixToHeaderIcon(res.data));
|
||||
},
|
||||
fail: function (res) {
|
||||
|
||||
@@ -24,6 +24,12 @@
|
||||
"navigationBarTitleText": "联系客服"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/loginWithEmailOrAccount/loginWithEmailOrAccount",
|
||||
"style": {
|
||||
"navigationBarTitleText": "邮箱或账号登录"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Mine/minecomponents/points",
|
||||
"style": {
|
||||
|
||||
@@ -270,8 +270,18 @@ export default {
|
||||
const lastCleanTime = uni.getStorageSync("last_clean_time") || 0;
|
||||
const now = Date.now();
|
||||
if (now - lastCleanTime < 7 * 24 * 3600 * 1000) return; // 7 days
|
||||
uni.clearStorage();
|
||||
uni.setStorageSync("last_clean_time", now);
|
||||
request({
|
||||
url: "user/logout",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.info.id,
|
||||
},
|
||||
userInfo: false,
|
||||
})
|
||||
.then((res) => {
|
||||
uni.clearStorage();
|
||||
uni.setStorageSync("last_clean_time", now);
|
||||
})
|
||||
},
|
||||
//关闭弹窗(取消)
|
||||
closePopup() {
|
||||
|
||||
@@ -16,9 +16,8 @@
|
||||
</view>
|
||||
<view class="title">主播库</view>
|
||||
<view class="content">
|
||||
|
||||
<scroll-view
|
||||
show-scrollbar="false"
|
||||
show-scrollbar="false"
|
||||
scroll-y="true"
|
||||
class="scroll"
|
||||
refresher-enabled="true"
|
||||
@@ -88,8 +87,17 @@
|
||||
</view>
|
||||
<view class="addition" @click="openPopupQuantity()"> </view>
|
||||
</view>
|
||||
<anchorLibrary class="createModule" ref="createModule" @Refresh="getAnchorList"></anchorLibrary>
|
||||
<modifyStreamer ref="modifyStreamer" class="createModule" :message="modifyStreamerMessage" @Refresh="getAnchorList"></modifyStreamer>
|
||||
<anchorLibrary
|
||||
class="createModule"
|
||||
ref="createModule"
|
||||
@Refresh="getAnchorList"
|
||||
></anchorLibrary>
|
||||
<modifyStreamer
|
||||
ref="modifyStreamer"
|
||||
class="createModule"
|
||||
:message="modifyStreamerMessage"
|
||||
@Refresh="getAnchorList"
|
||||
></modifyStreamer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -115,18 +123,18 @@ export default {
|
||||
});
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
if (res.from === 'menu') {
|
||||
if (res.from === "menu") {
|
||||
return {
|
||||
title: '分享',
|
||||
path: "/pages/Home/Home"
|
||||
}
|
||||
title: "分享",
|
||||
path: "/pages/Home/Home",
|
||||
};
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 重新编辑主播信息
|
||||
onRecompose(item) {
|
||||
this.modifyStreamerMessage = item;
|
||||
this.$refs.modifyStreamer.open();
|
||||
this.modifyStreamerMessage = item;
|
||||
this.$refs.modifyStreamer.open();
|
||||
},
|
||||
// 删除主播信息
|
||||
onExpurgate(item) {
|
||||
@@ -191,7 +199,7 @@ export default {
|
||||
},
|
||||
components: {
|
||||
anchorLibrary,
|
||||
modifyStreamer
|
||||
modifyStreamer,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -242,7 +250,7 @@ export default {
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
.empty{
|
||||
.empty {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
|
||||
@@ -62,7 +62,9 @@
|
||||
<view class="Nickname" @click="modifyPassword">
|
||||
<view class="avatarmodify-item">密码</view>
|
||||
<view class="NicknameInput">
|
||||
<view class="NicknameInput-name">{{ havaPassword == true ? "" : "未设置" }}</view>
|
||||
<view class="NicknameInput-name">{{
|
||||
havaPassword == true ? "" : "未设置"
|
||||
}}</view>
|
||||
<image
|
||||
class="more"
|
||||
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png"
|
||||
@@ -128,15 +130,15 @@ export default {
|
||||
uni.setStorageSync("userinfo", res.data);
|
||||
setTimeout(() => {
|
||||
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;
|
||||
},
|
||||
});
|
||||
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;
|
||||
},
|
||||
});
|
||||
}, 300);
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
@@ -179,22 +181,39 @@ export default {
|
||||
method: "POST",
|
||||
data: {
|
||||
uuid: data.uuid,
|
||||
userId: this.id,
|
||||
id: this.id,
|
||||
},
|
||||
userInfo: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 200) {
|
||||
uni.showToast({
|
||||
title: "登录成功",
|
||||
icon: "success",
|
||||
request({
|
||||
url: "user/confirm",
|
||||
method: "POST",
|
||||
data: {
|
||||
uuid: data.uuid,
|
||||
id: 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",
|
||||
});
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
uni.showToast({
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
placeholder="请输入邮箱号"
|
||||
v-model="email"
|
||||
/>
|
||||
<text class="error" v-if="turnsoutemail == ''">第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text>
|
||||
<text class="error" v-if="turnsoutemail == ''"
|
||||
>第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text
|
||||
>
|
||||
<text class="error" v-if="error">请输入正确的邮箱地址</text>
|
||||
<view v-if="turnsoutemail != ''" class="Verificationcodebox">
|
||||
<input
|
||||
@@ -33,9 +35,16 @@
|
||||
placeholder="验证码"
|
||||
v-model="Verificationcode"
|
||||
/>
|
||||
<view class="Verificationcodebtn" @click="sendVerificationCode">获取验证码</view>
|
||||
<view class="Verificationcodebtn" @click="sendVerificationCode"
|
||||
:style="isCounting ? 'background-image: linear-gradient(0deg, #cccccc, #dddddd); cursor: not-allowed;' : ''"
|
||||
> {{ isCounting ? `${countdown}秒后重发` : '获取验证码' }}</view
|
||||
>
|
||||
</view>
|
||||
<text v-if="VerificationcodeSent && turnsoutemail != ''" class="VerificationcodeSent">验证码已发送至{{turnsoutemail}}邮箱,请注意查收</text>
|
||||
<text
|
||||
v-if="VerificationcodeSent && turnsoutemail != ''"
|
||||
class="VerificationcodeSent"
|
||||
>验证码已发送至{{ turnsoutemail }}邮箱,请注意查收</text
|
||||
>
|
||||
<!-- -->
|
||||
<view class="btn" @click="onSubmit">确认</view>
|
||||
|
||||
@@ -53,12 +62,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
email: "",//邮箱
|
||||
Verificationcode: "",//验证码
|
||||
id: "",//用户id
|
||||
error: false,//邮箱错误
|
||||
VerificationcodeSent: false,//验证码是否已发送
|
||||
turnsoutemail:'',//修改前的邮箱
|
||||
email: "", //邮箱
|
||||
Verificationcode: "", //验证码
|
||||
id: "", //用户id
|
||||
error: false, //邮箱错误
|
||||
VerificationcodeSent: false, //验证码是否已发送
|
||||
turnsoutemail: "", //修改前的邮箱
|
||||
countdown: 0, //验证码倒计时
|
||||
isCounting: false, //是否正在倒计时
|
||||
timer: null, //倒计时定时器
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -66,14 +78,24 @@ export default {
|
||||
this.id = options.id;
|
||||
},
|
||||
methods: {
|
||||
// 倒计时
|
||||
startCountdown() {
|
||||
this.countdown = 60;
|
||||
this.isCounting = true;
|
||||
this.timer = setInterval(() => {
|
||||
this.countdown -- ;
|
||||
if (this.countdown <= 0) {
|
||||
this.isCounting = false;
|
||||
}
|
||||
}, 1000);
|
||||
},
|
||||
//提交验证
|
||||
onSubmit() {
|
||||
if (this.turnsoutemail == "") {
|
||||
this.setEmail()
|
||||
}else{
|
||||
this.hasEmail()
|
||||
this.setEmail();
|
||||
} else {
|
||||
this.hasEmail();
|
||||
}
|
||||
|
||||
},
|
||||
//有邮箱修改
|
||||
hasEmail() {
|
||||
@@ -129,6 +151,9 @@ export default {
|
||||
},
|
||||
//发送验证码
|
||||
sendVerificationCode() {
|
||||
if (this.isCounting) {
|
||||
return;
|
||||
}
|
||||
request({
|
||||
url: "user/sendUpdateMailConfirmMail",
|
||||
method: "POST",
|
||||
@@ -138,6 +163,7 @@ export default {
|
||||
userInfo: true,
|
||||
}).then((ress) => {
|
||||
this.VerificationcodeSent = true;
|
||||
this.startCountdown();
|
||||
});
|
||||
},
|
||||
//第一次提交
|
||||
@@ -209,7 +235,7 @@ export default {
|
||||
onCustomerService() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/contact",
|
||||
})
|
||||
});
|
||||
},
|
||||
//返回上一页
|
||||
onBack() {
|
||||
@@ -296,7 +322,7 @@ export default {
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.VerificationcodeSent{
|
||||
.VerificationcodeSent {
|
||||
color: #00afb2;
|
||||
font-size: 24rpx;
|
||||
margin-top: 40rpx;
|
||||
@@ -318,7 +344,7 @@ export default {
|
||||
color: red;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.forget{
|
||||
.forget {
|
||||
font-size: 24rpx;
|
||||
color: #00afb2;
|
||||
margin-top: 50rpx;
|
||||
|
||||
@@ -474,6 +474,8 @@ export default {
|
||||
im.on(GoEasy.IM_EVENT.MESSAGE_READ, this.onMessageRead); //监听已读消息
|
||||
|
||||
this.getscrollviewheight();
|
||||
|
||||
this.checkRecordPermission();
|
||||
},
|
||||
methods: {
|
||||
//暂停所有播放
|
||||
@@ -535,7 +537,6 @@ export default {
|
||||
},
|
||||
//语音切换
|
||||
onVoice(status) {
|
||||
this.checkRecordPermission();
|
||||
if (status) {
|
||||
this.inputfocus = false;
|
||||
this.MoreStatus = false;
|
||||
@@ -754,8 +755,8 @@ export default {
|
||||
getIOSDeviceType() {
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const model = systemInfo.model;
|
||||
if (/iPhone X|iPhone11|iPhone12|iPhone13|iPhone14/i.test(model)) {
|
||||
if (/iPhone X|iPhone XS|iPhone 11 Pro/i.test(model)) {
|
||||
if (/iPhone X|iPhone11|iPhone12|iPhone13|iPhone14|iPhone15|iPhone16|iPhone15 Pro|iPhone15 Pro Max|iPhone14 Pro|iPhone14 Pro Max|iPhone13 Pro|iPhone13 Pro Max|iPhone12 Pro|iPhone12 Pro Max|iPhone11 Pro|iPhone11 Pro Max|iPhone13 mini|iPhone12 mini|iPhoneXS|iPhoneXS Max/i.test(model)) {
|
||||
if (/iPhone X|iPhone XS|iPhone 11 Pro|iPhone 11 Pro Max|iPhone 12 Pro|iPhone 12 Pro Max|iPhone 13 Pro|iPhone 13 Pro Max|iPhone 14 Pro|iPhone 14 Pro Max|iPhone 15 Pro|iPhone 15 Pro Max|iPhone 16/i.test(model)) {
|
||||
this.ioshide = 88;
|
||||
} else if (/iPhone 12|iPhone 13|iPhone 14/i.test(model)) {
|
||||
this.ioshide = 94;
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
||||
使用手机号快捷登录
|
||||
</button>
|
||||
<button class="login-btns" @click="loginWithEmailOrAccount">
|
||||
使用邮箱或者账号登录
|
||||
</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -51,6 +54,12 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 邮箱或者账号登录
|
||||
loginWithEmailOrAccount() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/loginWithEmailOrAccount/loginWithEmailOrAccount",
|
||||
});
|
||||
},
|
||||
// 返回首页
|
||||
Return() {
|
||||
uni.reLaunch({
|
||||
@@ -156,6 +165,12 @@ export default {
|
||||
border: 1px solid #00ff0000;
|
||||
color: #ffffff;
|
||||
}
|
||||
.login-btns{
|
||||
margin-top: 20rpx;
|
||||
background-color: hsla(0, 0%, 100%, 0);
|
||||
border: 1px solid #00ff0000;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.tips {
|
||||
color: #666;
|
||||
|
||||
190
pages/loginWithEmailOrAccount/loginWithEmailOrAccount.vue
Normal file
190
pages/loginWithEmailOrAccount/loginWithEmailOrAccount.vue
Normal file
@@ -0,0 +1,190 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="bg"> </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="form">
|
||||
<view class="form-content">
|
||||
<input
|
||||
type="text"
|
||||
class="input"
|
||||
placeholder="请输入邮箱或账号"
|
||||
v-model="EmailOrAccount"
|
||||
/>
|
||||
<input
|
||||
type="password"
|
||||
class="input"
|
||||
placeholder="请输入密码"
|
||||
v-model="Password"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<view class="btn" @click="onLogin">登录</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../components/request.js";
|
||||
import { goEasylogin } from "../../components/goEasyTool/tool.js";
|
||||
import { useCounterStore } from "@/stores/counter";
|
||||
|
||||
const counter = useCounterStore();
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
EmailOrAccount: "",
|
||||
Password: "",
|
||||
};
|
||||
},
|
||||
onLoad() {},
|
||||
methods: {
|
||||
// 登录
|
||||
onLogin() {
|
||||
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,16}$/;
|
||||
if (!passwordRegex.test(this.Password)) {
|
||||
uni.showToast({
|
||||
title: "密码必须包含大小写字母和数字,长度6-16位",
|
||||
icon: "none",
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: "登录中...",
|
||||
mask: true,
|
||||
});
|
||||
request({
|
||||
url: "user/loginWithMail",
|
||||
method: "POST",
|
||||
data: {
|
||||
userNameOrEmail: this.EmailOrAccount,
|
||||
password: this.Password,
|
||||
},
|
||||
userInfo: false,
|
||||
})
|
||||
.then((res) => {
|
||||
uni.hideLoading();
|
||||
console.log(res);
|
||||
this.info = res;
|
||||
const now = Date.now();
|
||||
uni.setStorageSync("last_clean_time", now);
|
||||
counter.$patch({ myitem: this.info.data });
|
||||
if (res.code === 200) {
|
||||
uni.setStorageSync("userinfo", this.info.data);
|
||||
uni.setStorageSync("token", this.info.data.token);
|
||||
goEasylogin(
|
||||
this.$goeasy,
|
||||
String(this.info.data.id),
|
||||
this.info.data.headerIcon,
|
||||
this.info.data.nickName
|
||||
);
|
||||
uni.reLaunch({
|
||||
url: this.lastPage||'/pages/Home/Home',
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: err.msg,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
},
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
background: linear-gradient(to bottom, #11cb2a6e, #2574fc6d);
|
||||
}
|
||||
.bgImg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.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%;
|
||||
}
|
||||
.form {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.form-content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.input {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
border: none;
|
||||
border-bottom: #4fcacd solid 1px;
|
||||
margin-bottom: 150rpx;
|
||||
padding-left: 10rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.btn {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
background-color: #4fcacd;
|
||||
border-radius: 20rpx;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
margin-top: 100rpx;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
1
unpackage/dist/build/mp-weixin/app.json
vendored
1
unpackage/dist/build/mp-weixin/app.json
vendored
@@ -4,6 +4,7 @@
|
||||
"pages/Mine/Mine",
|
||||
"pages/Mine/minecomponents/pkRecord",
|
||||
"pages/Mine/minecomponents/contact",
|
||||
"pages/loginWithEmailOrAccount/loginWithEmailOrAccount",
|
||||
"pages/Mine/minecomponents/points",
|
||||
"pages/Mine/minecomponents/anchorLibrary",
|
||||
"pages/Mine/minecomponents/pkInformation",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js"),t=require("./addPrefixToHeaderIcon.js");exports.request=function(n){const{url:a,data:o,method:r,header:s,userInfo:d}=n,i="https://pk.zhukeping.com/"+a;return new Promise(d?(n,a)=>{e.index.getStorage({key:"userinfo",success:d=>{d.data?d.data.nickName?e.index.getStorage({key:"token",success:d=>{console.log("token",d.data),e.index.request({url:i,data:o,method:r,header:{token:d.data,...s},success:function(e){console.log("请求成功",e),n(t.addPrefixToHeaderIcon(e.data))},fail:function(e){a(e)}})},fail:e=>{}}):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.reLaunch({url:"/pages/UserInformation/UserInformation"})):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}))},fail:function(t){e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),a(t)}})}:(n,a)=>{e.index.getStorage({key:"token",success:d=>{console.log("token",d.data),e.index.request({url:i,data:o,method:r,header:{token:d.data,...s},success:function(e){console.log("请求成功",e),n(t.addPrefixToHeaderIcon(e.data))},fail:function(e){a(e)}})},fail:d=>{e.index.request({url:i,data:o,method:r,header:{...s},success:function(e){console.log("请求成功",e),n(t.addPrefixToHeaderIcon(e.data))},fail:function(e){a(e)}})}})})};
|
||||
"use strict";const e=require("../common/vendor.js"),a=require("./addPrefixToHeaderIcon.js");exports.request=function(n){const{url:t,data:o,method:r,header:s,userInfo:i}=n,d="https://pk.hanxiaokj.cn/"+t;return new Promise(i?(n,t)=>{e.index.getStorage({key:"userinfo",success:i=>{i.data?i.data.nickName?e.index.getStorage({key:"token",success:i=>{console.log("token",i.data),e.index.request({url:d,data:o,method:r,header:{token:i.data,...s},success:function(t){console.log("请求成功",t),40400===t.data.code&&e.index.navigateTo({url:"/pages/login/login"}),n(a.addPrefixToHeaderIcon(t.data))},fail:function(e){t(e)}})},fail:e=>{}}):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.reLaunch({url:"/pages/UserInformation/UserInformation"})):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}))},fail:function(a){e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),t(a)}})}:(n,t)=>{e.index.getStorage({key:"token",success:i=>{console.log("token",i.data),e.index.request({url:d,data:o,method:r,header:{token:i.data,...s},success:function(e){console.log("请求成功",e),n(a.addPrefixToHeaderIcon(e.data))},fail:function(e){t(e)}})},fail:i=>{e.index.request({url:d,data:o,method:r,header:{...s},success:function(t){console.log("请求成功",t),40400===t.data.code&&e.index.navigateTo({url:"/pages/login/login"}),n(a.addPrefixToHeaderIcon(t.data))},fail:function(e){t(e)}})}})})};
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
.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}
|
||||
.page.data-v-6004dc94{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-6004dc94{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-6004dc94{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-6004dc94{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:2}.contentList.data-v-6004dc94{position:fixed;top:312rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-6004dc94{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.scroll.data-v-6004dc94 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.content-list.data-v-6004dc94{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-6004dc94{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-6004dc94{display:flex;align-items:center}.cardname.data-v-6004dc94{font-size:31rpx;color:#161616;line-height:38rpx;margin-bottom:20rpx}.Genderimg.data-v-6004dc94{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-6004dc94{color:#fff;font-size:14rpx}.Gendermale.data-v-6004dc94{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-6004dc94{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-6004dc94{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-6004dc94{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-6004dc94{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-6004dc94{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-6004dc94{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-6004dc94{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-6004dc94{width:500rpx;height:100rpx;margin-top:80rpx}.popup-sex.data-v-6004dc94{width:500rpx;height:100rpx;margin-top:40rpx;display:flex;justify-content:space-between}.p-sex.data-v-6004dc94{width:420rpx;height:100rpx}.Gendericoncss.data-v-6004dc94{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-6004dc94{width:40rpx;height:40rpx}.popup-coin.data-v-6004dc94{width:500rpx;margin-top:40rpx;display:flex}.p-coin.data-v-6004dc94{width:500rpx;display:flex;flex-direction:column;align-items:center}.p-dar.data-v-6004dc94{margin-top:30rpx}.p-coin-title.data-v-6004dc94{font-size:20rpx;color:#a3a3a3}.p-time.data-v-6004dc94{width:500rpx;margin-top:40rpx}.popup-btn-cancel.data-v-6004dc94{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-6004dc94{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-6004dc94{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-6004dc94{font-size:18rpx;color:#f55}.popup-btn.data-v-6004dc94{width:600rpx;height:100rpx;display:flex;justify-content:space-around;align-items:center;margin-top:400rpx}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),r=require("../../../components/request.js"),o={data:()=>({userinfo:{},AnchorList:[],triggered:!1,modifyStreamerMessage:{}}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.getAnchorList()}})},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:"/pages/Home/Home"}},methods:{onRecompose(e){this.modifyStreamerMessage=e,this.$refs.modifyStreamer.open()},onExpurgate(o){r.request({url:"anchor/deleteMyAnchor",method:"POST",data:{id:o.id},userInfo:!0}).then((r=>{this.triggered=!1,200==r.code?(e.index.showToast({title:"删除成功",icon:"success",duration:2e3}),this.getAnchorList()):e.index.showToast({title:r.msg,icon:"success",duration:2e3})}))},getAnchorList(){r.request({url:"anchor/list",method:"POST",data:{id:this.userinfo.id},userInfo:!0}).then((e=>{this.triggered=!1,200==e.code?this.AnchorList=e.data:console.log(e.msg)}))},openPopupQuantity(){this.$refs.createModule.open()},onRefresherRefresh(){this.triggered=!0,this.getAnchorList()},onBack(){e.wx$1.navigateBack({delta:1})}},components:{anchorLibrary:()=>"./addStreamer/addStreamer.js",modifyStreamer:()=>"./modifyStreamer/modifyStreamer.js"}};if(!Array){(e.resolveComponent("uni-card")+e.resolveComponent("anchorLibrary")+e.resolveComponent("modifyStreamer"))()}const t=e._export_sfc(o,[["render",function(r,o,t,s,n,i){return e.e({a:e.o(((...e)=>i.onBack&&i.onBack(...e))),b:0!==n.AnchorList.length},0!==n.AnchorList.length?{c:e.f(n.AnchorList,((r,o,t)=>e.e({a:r.headerIcon,b:e.t(r.anchorId),c:2===r.gender},(r.gender,{}),{d:e.t(1===r.gender?"男":"女"),e:1===r.gender?1:"",f:2===r.gender?1:"",g:e.t(r.country),h:e.o((e=>i.onRecompose(r)),o),i:e.o((e=>i.onExpurgate(r)),o),j:o,k:"b49e4183-0-"+t}))),d:e.o(((...e)=>i.onRefresherRefresh&&i.onRefresherRefresh(...e))),e:n.triggered}:{},{f:e.o((e=>i.openPopupQuantity())),g:e.sr("createModule","b49e4183-1"),h:e.o(i.getAnchorList),i:e.sr("modifyStreamer","b49e4183-2"),j:e.o(i.getAnchorList),k:e.p({message:n.modifyStreamerMessage})})}],["__scopeId","data-v-b49e4183"]]);o.__runtimeHooks=2,wx.createPage(t);
|
||||
"use strict";const e=require("../../../common/vendor.js"),r=require("../../../components/request.js"),o={data:()=>({userinfo:{},AnchorList:[],triggered:!1,modifyStreamerMessage:{}}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.getAnchorList()}})},onShareAppMessage(e){if("menu"===e.from)return{title:"分享",path:"/pages/Home/Home"}},methods:{onRecompose(e){this.modifyStreamerMessage=e,this.$refs.modifyStreamer.open()},onExpurgate(o){r.request({url:"anchor/deleteMyAnchor",method:"POST",data:{id:o.id},userInfo:!0}).then((r=>{this.triggered=!1,200==r.code?(e.index.showToast({title:"删除成功",icon:"success",duration:2e3}),this.getAnchorList()):e.index.showToast({title:r.msg,icon:"success",duration:2e3})}))},getAnchorList(){r.request({url:"anchor/list",method:"POST",data:{id:this.userinfo.id},userInfo:!0}).then((e=>{this.triggered=!1,200==e.code?this.AnchorList=e.data:console.log(e.msg)}))},openPopupQuantity(){this.$refs.createModule.open()},onRefresherRefresh(){this.triggered=!0,this.getAnchorList()},onBack(){e.wx$1.navigateBack({delta:1})}},components:{anchorLibrary:()=>"./addStreamer/addStreamer.js",modifyStreamer:()=>"./modifyStreamer/modifyStreamer.js"}};if(!Array){(e.resolveComponent("uni-card")+e.resolveComponent("anchorLibrary")+e.resolveComponent("modifyStreamer"))()}const t=e._export_sfc(o,[["render",function(r,o,t,s,n,i){return e.e({a:e.o(((...e)=>i.onBack&&i.onBack(...e))),b:0!==n.AnchorList.length},0!==n.AnchorList.length?{c:e.f(n.AnchorList,((r,o,t)=>e.e({a:r.headerIcon,b:e.t(r.anchorId),c:2===r.gender},(r.gender,{}),{d:e.t(1===r.gender?"男":"女"),e:1===r.gender?1:"",f:2===r.gender?1:"",g:e.t(r.country),h:e.o((e=>i.onRecompose(r)),o),i:e.o((e=>i.onExpurgate(r)),o),j:o,k:"28d8f2ef-0-"+t}))),d:e.o(((...e)=>i.onRefresherRefresh&&i.onRefresherRefresh(...e))),e:n.triggered}:{},{f:e.o((e=>i.openPopupQuantity())),g:e.sr("createModule","28d8f2ef-1"),h:e.o(i.getAnchorList),i:e.sr("modifyStreamer","28d8f2ef-2"),j:e.o(i.getAnchorList),k:e.p({message:n.modifyStreamerMessage})})}],["__scopeId","data-v-28d8f2ef"]]);o.__runtimeHooks=2,wx.createPage(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="anchor-library data-v-b49e4183"><view class="bg data-v-b49e4183"><image class="bgImg data-v-b49e4183" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-b49e4183" bindtap="{{a}}"><image class="ReturnImg data-v-b49e4183" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-b49e4183">主播库</view><view class="content data-v-b49e4183"><scroll-view wx:if="{{b}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-b49e4183" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{d}}" lower-threshold="100" refresher-triggered="{{e}}"><uni-card wx:for="{{c}}" wx:for-item="item" wx:key="j" u-s="{{['d']}}" class="card data-v-b49e4183" u-i="{{item.k}}" bind:__l="__l"><view class="Profile data-v-b49e4183"><image class="data-v-b49e4183" src="{{item.a}}" style="width:89.12rpx;height:89.12rpx;border-radius:72.25rpx" mode="scaleToFill"/></view><view class="Individual data-v-b49e4183"><view class="Name data-v-b49e4183">{{item.b}}</view><view class="Label data-v-b49e4183"><view class="data-v-b49e4183"><view class="{{['data-v-b49e4183', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-b49e4183" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-b49e4183" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-b49e4183">{{item.d}}</view></view></view><view class="state data-v-b49e4183">{{item.g}}</view></view></view><view class="handle data-v-b49e4183"><view class="recompose data-v-b49e4183" bindtap="{{item.h}}"><image class="data-v-b49e4183" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/recompose.png" mode="scaleToFill"/></view><view class="expurgate data-v-b49e4183" bindtap="{{item.i}}"><image class="data-v-b49e4183" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/expurgate.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:else class="empty data-v-b49e4183">暂无内容</view></view><view class="addition data-v-b49e4183" bindtap="{{f}}"></view></view><anchor-library class="createModule r data-v-b49e4183" u-r="createModule" bindRefresh="{{h}}" u-i="b49e4183-1" bind:__l="__l"></anchor-library><modify-streamer wx:if="{{k}}" u-r="modifyStreamer" class="createModule r data-v-b49e4183" bindRefresh="{{j}}" u-i="b49e4183-2" bind:__l="__l" u-p="{{k}}"></modify-streamer>
|
||||
<view class="anchor-library data-v-28d8f2ef"><view class="bg data-v-28d8f2ef"><image class="bgImg data-v-28d8f2ef" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-28d8f2ef" bindtap="{{a}}"><image class="ReturnImg data-v-28d8f2ef" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-28d8f2ef">主播库</view><view class="content data-v-28d8f2ef"><scroll-view wx:if="{{b}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-28d8f2ef" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{d}}" lower-threshold="100" refresher-triggered="{{e}}"><uni-card wx:for="{{c}}" wx:for-item="item" wx:key="j" u-s="{{['d']}}" class="card data-v-28d8f2ef" u-i="{{item.k}}" bind:__l="__l"><view class="Profile data-v-28d8f2ef"><image class="data-v-28d8f2ef" src="{{item.a}}" style="width:89.12rpx;height:89.12rpx;border-radius:72.25rpx" mode="scaleToFill"/></view><view class="Individual data-v-28d8f2ef"><view class="Name data-v-28d8f2ef">{{item.b}}</view><view class="Label data-v-28d8f2ef"><view class="data-v-28d8f2ef"><view class="{{['data-v-28d8f2ef', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-28d8f2ef" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-28d8f2ef" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-28d8f2ef">{{item.d}}</view></view></view><view class="state data-v-28d8f2ef">{{item.g}}</view></view></view><view class="handle data-v-28d8f2ef"><view class="recompose data-v-28d8f2ef" bindtap="{{item.h}}"><image class="data-v-28d8f2ef" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/recompose.png" mode="scaleToFill"/></view><view class="expurgate data-v-28d8f2ef" bindtap="{{item.i}}"><image class="data-v-28d8f2ef" style="width:46rpx;height:46rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/expurgate.png" mode="scaleToFill"/></view></view></uni-card></scroll-view><view wx:else class="empty data-v-28d8f2ef">暂无内容</view></view><view class="addition data-v-28d8f2ef" bindtap="{{f}}"></view></view><anchor-library class="createModule r data-v-28d8f2ef" u-r="createModule" bindRefresh="{{h}}" u-i="28d8f2ef-1" bind:__l="__l"></anchor-library><modify-streamer wx:if="{{k}}" u-r="modifyStreamer" class="createModule r data-v-28d8f2ef" bindRefresh="{{j}}" u-i="28d8f2ef-2" bind:__l="__l" u-p="{{k}}"></modify-streamer>
|
||||
@@ -1 +1 @@
|
||||
.bg.data-v-b49e4183{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-b49e4183{width:100%;height:100%}.Return.data-v-b49e4183{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-b49e4183{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-b49e4183{width:100%;height:100%}.scroll.data-v-b49e4183{position:absolute;top:200rpx;left:0;right:0;height:1300rpx;width:100%}.scroll.data-v-b49e4183 ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.empty.data-v-b49e4183{position:absolute;top:200rpx;left:0;right:0;height:1300rpx;width:100%;line-height:1300rpx;text-align:center;font-size:30rpx;color:#a3a3a3}.card.data-v-b49e4183{width:695rpx;height:180rpx;background:#fff;border-radius:15rpx;display:flex;align-items:center;margin-left:30rpx;margin-top:20rpx}.Profile.data-v-b49e4183{width:89rpx;height:89rpx;border-radius:50rpx;background-color:#ccc;margin-left:27.5rpx}.Gendermale.data-v-b49e4183{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-b49e4183{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Individual.data-v-b49e4183{display:flex;flex-direction:column;justify-content:center;margin-left:37rpx}.Name.data-v-b49e4183{width:288.17rpx;font-size:30.53rpx;color:#161616;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time.data-v-b49e4183{margin-top:13rpx;font-size:23rpx;color:#a3a3a3}.state.data-v-b49e4183{width:56.3rpx;height:30rpx;background:#f6f6f6;border-radius:14rpx;line-height:30rpx;font-size:17rpx;color:#666;padding:0 15rpx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.Label.data-v-b49e4183{margin-top:15rpx;display:flex}.age.data-v-b49e4183{font-size:17rpx;color:#fff;margin-left:10rpx}.Genderimg.data-v-b49e4183{width:14.22rpx;height:14.22rpx;margin-left:10rpx}.species.data-v-b49e4183{display:flex;margin-left:10rpx}.species-text.data-v-b49e4183{font-size:23rpx;color:#a3a3a3}.species-num.data-v-b49e4183{font-size:23rpx;color:#161616;font-weight:700}.handle.data-v-b49e4183{display:flex}.recompose.data-v-b49e4183{width:46rpx;height:46rpx;margin-left:90rpx}.expurgate.data-v-b49e4183{width:46rpx;height:46rpx;margin-left:40rpx}.createModule.data-v-b49e4183{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.addition.data-v-b49e4183{position:absolute;bottom:200rpx;right:100rpx;width:150rpx;height:150rpx;z-index:998;border-radius:50rpx;background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/addAnchor.png) no-repeat center;background-size:100% 100%}
|
||||
.bg.data-v-28d8f2ef{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-28d8f2ef{width:100%;height:100%}.Return.data-v-28d8f2ef{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-28d8f2ef{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-28d8f2ef{width:100%;height:100%}.scroll.data-v-28d8f2ef{position:absolute;top:200rpx;left:0;right:0;height:1300rpx;width:100%}.scroll.data-v-28d8f2ef ::-webkit-scrollbar{width:0;height:0;color:transparent;display:none}.empty.data-v-28d8f2ef{position:absolute;top:200rpx;left:0;right:0;height:1300rpx;width:100%;line-height:1300rpx;text-align:center;font-size:30rpx;color:#a3a3a3}.card.data-v-28d8f2ef{width:695rpx;height:180rpx;background:#fff;border-radius:15rpx;display:flex;align-items:center;margin-left:30rpx;margin-top:20rpx}.Profile.data-v-28d8f2ef{width:89rpx;height:89rpx;border-radius:50rpx;background-color:#ccc;margin-left:27.5rpx}.Gendermale.data-v-28d8f2ef{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-28d8f2ef{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Individual.data-v-28d8f2ef{display:flex;flex-direction:column;justify-content:center;margin-left:37rpx}.Name.data-v-28d8f2ef{width:288.17rpx;font-size:30.53rpx;color:#161616;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time.data-v-28d8f2ef{margin-top:13rpx;font-size:23rpx;color:#a3a3a3}.state.data-v-28d8f2ef{width:56.3rpx;height:30rpx;background:#f6f6f6;border-radius:14rpx;line-height:30rpx;font-size:17rpx;color:#666;padding:0 15rpx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.Label.data-v-28d8f2ef{margin-top:15rpx;display:flex}.age.data-v-28d8f2ef{font-size:17rpx;color:#fff;margin-left:10rpx}.Genderimg.data-v-28d8f2ef{width:14.22rpx;height:14.22rpx;margin-left:10rpx}.species.data-v-28d8f2ef{display:flex;margin-left:10rpx}.species-text.data-v-28d8f2ef{font-size:23rpx;color:#a3a3a3}.species-num.data-v-28d8f2ef{font-size:23rpx;color:#161616;font-weight:700}.handle.data-v-28d8f2ef{display:flex}.recompose.data-v-28d8f2ef{width:46rpx;height:46rpx;margin-left:90rpx}.expurgate.data-v-28d8f2ef{width:46rpx;height:46rpx;margin-left:40rpx}.createModule.data-v-28d8f2ef{position:fixed;bottom:0;right:0;z-index:998;width:100vw}.addition.data-v-28d8f2ef{position:absolute;bottom:200rpx;right:100rpx;width:150rpx;height:150rpx;z-index:998;border-radius:50rpx;background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/addAnchor.png) no-repeat center;background-size:100% 100%}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../components/request.js"),i=require("../../components/postFile.js"),s=require("../../components/generateFileName.js"),o=require("../../components/goEasyTool/tool.js"),n={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},useravatar:"",email:null,havaPassword:!1}),onLoad(e){this.id=e.id,this.getUserInfo()},onShow(){this.getUserInfo()},methods:{getUserInfo(){a.request({url:"user/getUserInfo",method:"POST",data:{id:this.id},userInfo:!0}).then((a=>{200==a.code?(this.userinfo=a.data,e.index.setStorageSync("userinfo",a.data),setTimeout((()=>{e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=this.useravatar=e.data.headerIcon,this.email=e.data.email,this.havaPassword=e.data.havaPassword}})}),300)):console.log(a.msg)}))},modifyPassword(){e.index.navigateTo({url:"/pages/Setting/settingmod/changePassword?id="+this.id+"&havaPassword="+this.havaPassword})},modifyEmailAddress(){e.index.navigateTo({url:"/pages/Setting/settingmod/changeEmail?email="+this.email+"&id="+this.id})},inputNickname(){e.index.navigateTo({url:"/pages/Setting/settingmod/changeNickname?name="+this.name+"&id="+this.id})},scanCode(){e.index.scanCode({success:i=>{const s=JSON.parse(i.result);"qrcdoe"===s.type&&a.request({url:"user/scan",method:"POST",data:{uuid:s.uuid,userId:this.id},userInfo:!0}).then((a=>{200===a.code?e.index.showToast({title:"登录成功",icon:"success"}):e.index.showToast({title:a,icon:"none"})})).catch((a=>{e.index.showToast({title:"登录失败",icon:"none"})}))}})},onBack(){e.index.navigateBack({delta:1})},async Userinfo(e){const{avatarUrl:a}=e.detail;this.userinfo=a,this.changeHeaderIcon()},changeHeaderIcon(){o.goEasylogout(this.$goeasy),e.index.showLoading({title:"修改中...",mask:!0}),i.uploadFile({path:this.userinfo,name:s.generateFileName()}).then((i=>{a.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:i.split("/").pop(),nickName:this.name},userInfo:!0}).then((a=>{console.log("修改调用返回",a),200===a.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",a.data.info),o.goEasylogin(this.$goeasy,String(a.data.info.id),a.data.info.headerIcon,a.data.info.nickName),e.index.hideLoading(),e.index.navigateBack({delta:1})):(e.index.hideLoading(),e.index.showToast({title:a.msg,icon:"none"}))}))})).catch((a=>{e.index.hideLoading(),e.index.showToast({title:"上传失败",icon:"none"})}))}}};const t=e._export_sfc(n,[["render",function(a,i,s,o,n,t){return{a:e.o(((...e)=>t.onBack&&t.onBack(...e))),b:n.userinfo,c:e.o(((...e)=>t.Userinfo&&t.Userinfo(...e))),d:e.t(n.name),e:e.o(((...e)=>t.inputNickname&&t.inputNickname(...e))),f:e.t(""==n.email||null==n.email?"未绑定":n.email),g:e.o(((...e)=>t.modifyEmailAddress&&t.modifyEmailAddress(...e))),h:e.t(1==n.havaPassword?"":"未设置"),i:e.o(((...e)=>t.modifyPassword&&t.modifyPassword(...e))),j:e.o(((...e)=>t.scanCode&&t.scanCode(...e)))}}],["__scopeId","data-v-64a95457"]]);wx.createPage(t);
|
||||
"use strict";const e=require("../../common/vendor.js"),i=require("../../components/request.js"),a=require("../../components/postFile.js"),s=require("../../components/generateFileName.js"),o=require("../../components/goEasyTool/tool.js"),n={inject:["$global"],data:()=>({userinfo:"",name:"",id:"",info:{},useravatar:"",email:null,havaPassword:!1}),onLoad(e){this.id=e.id,this.getUserInfo()},onShow(){this.getUserInfo()},methods:{getUserInfo(){i.request({url:"user/getUserInfo",method:"POST",data:{id:this.id},userInfo:!0}).then((i=>{200==i.code?(this.userinfo=i.data,e.index.setStorageSync("userinfo",i.data),setTimeout((()=>{e.index.getStorage({key:"userinfo",success:e=>{this.id=e.data.id,this.name=e.data.nickName,this.userinfo=this.useravatar=e.data.headerIcon,this.email=e.data.email,this.havaPassword=e.data.havaPassword}})}),300)):console.log(i.msg)}))},modifyPassword(){e.index.navigateTo({url:"/pages/Setting/settingmod/changePassword?id="+this.id+"&havaPassword="+this.havaPassword})},modifyEmailAddress(){e.index.navigateTo({url:"/pages/Setting/settingmod/changeEmail?email="+this.email+"&id="+this.id})},inputNickname(){e.index.navigateTo({url:"/pages/Setting/settingmod/changeNickname?name="+this.name+"&id="+this.id})},scanCode(){e.index.scanCode({success:a=>{const s=JSON.parse(a.result);"qrcdoe"===s.type&&i.request({url:"user/scan",method:"POST",data:{uuid:s.uuid,id:this.id},userInfo:!0}).then((a=>{i.request({url:"user/confirm",method:"POST",data:{uuid:s.uuid,id:this.id},userInfo:!0}).then((i=>{200===i.code?e.index.showToast({title:"登录成功",icon:"success"}):e.index.showToast({title:i,icon:"none"})})).catch((i=>{e.index.showToast({title:"登录失败",icon:"none"})}))})).catch((i=>{e.index.showToast({title:"登录失败",icon:"none"})}))}})},onBack(){e.index.navigateBack({delta:1})},async Userinfo(e){const{avatarUrl:i}=e.detail;this.userinfo=i,this.changeHeaderIcon()},changeHeaderIcon(){o.goEasylogout(this.$goeasy),e.index.showLoading({title:"修改中...",mask:!0}),a.uploadFile({path:this.userinfo,name:s.generateFileName()}).then((a=>{i.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,headerIcon:a.split("/").pop(),nickName:this.name},userInfo:!0}).then((i=>{console.log("修改调用返回",i),200===i.code?(e.index.showToast({title:"修改成功",icon:"success"}),e.index.setStorageSync("userinfo",i.data.info),o.goEasylogin(this.$goeasy,String(i.data.info.id),i.data.info.headerIcon,i.data.info.nickName),e.index.hideLoading(),e.index.navigateBack({delta:1})):(e.index.hideLoading(),e.index.showToast({title:i.msg,icon:"none"}))}))})).catch((i=>{e.index.hideLoading(),e.index.showToast({title:"上传失败",icon:"none"})}))}}};const t=e._export_sfc(n,[["render",function(i,a,s,o,n,t){return{a:e.o(((...e)=>t.onBack&&t.onBack(...e))),b:n.userinfo,c:e.o(((...e)=>t.Userinfo&&t.Userinfo(...e))),d:e.t(n.name),e:e.o(((...e)=>t.inputNickname&&t.inputNickname(...e))),f:e.t(""==n.email||null==n.email?"未绑定":n.email),g:e.o(((...e)=>t.modifyEmailAddress&&t.modifyEmailAddress(...e))),h:e.t(1==n.havaPassword?"":"未设置"),i:e.o(((...e)=>t.modifyPassword&&t.modifyPassword(...e))),j:e.o(((...e)=>t.scanCode&&t.scanCode(...e)))}}],["__scopeId","data-v-88ac6d2f"]]);wx.createPage(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="container data-v-64a95457"><view class="bg data-v-64a95457"><image class="bgImg data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-64a95457" bindtap="{{a}}"><image class="ReturnImg data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-64a95457">设置</view><view class="contentbox data-v-64a95457"><view class="content data-v-64a95457"><button class="login-btn data-v-64a95457" open-type="chooseAvatar" bindchooseavatar="{{c}}"><view class="avatarmodify data-v-64a95457"><view class="avatarmodify-item data-v-64a95457">头像</view><view class="avatarmodify-img data-v-64a95457"><image class="avatar data-v-64a95457" src="{{b}}"></image><image class="more data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></button><view class="Nickname data-v-64a95457" bindtap="{{e}}"><view class="avatarmodify-item data-v-64a95457">昵称</view><view class="NicknameInput data-v-64a95457"><view class="NicknameInput-name data-v-64a95457">{{d}}</view><image class="more data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-64a95457" bindtap="{{g}}"><view class="avatarmodify-item data-v-64a95457">邮箱</view><view class="NicknameInput data-v-64a95457"><view class="NicknameInput-name data-v-64a95457">{{f}}</view><image class="more data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-64a95457" bindtap="{{i}}"><view class="avatarmodify-item data-v-64a95457">密码</view><view class="NicknameInput data-v-64a95457"><view class="NicknameInput-name data-v-64a95457">{{h}}</view><image class="more data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-64a95457" bindtap="{{j}}"><view class="avatarmodify-item data-v-64a95457">扫码</view><view class="NicknameInput data-v-64a95457"><image class="more data-v-64a95457" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></view></view></view>
|
||||
<view class="container data-v-88ac6d2f"><view class="bg data-v-88ac6d2f"><image class="bgImg data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-88ac6d2f" bindtap="{{a}}"><image class="ReturnImg data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-88ac6d2f">设置</view><view class="contentbox data-v-88ac6d2f"><view class="content data-v-88ac6d2f"><button class="login-btn data-v-88ac6d2f" open-type="chooseAvatar" bindchooseavatar="{{c}}"><view class="avatarmodify data-v-88ac6d2f"><view class="avatarmodify-item data-v-88ac6d2f">头像</view><view class="avatarmodify-img data-v-88ac6d2f"><image class="avatar data-v-88ac6d2f" src="{{b}}"></image><image class="more data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></button><view class="Nickname data-v-88ac6d2f" bindtap="{{e}}"><view class="avatarmodify-item data-v-88ac6d2f">昵称</view><view class="NicknameInput data-v-88ac6d2f"><view class="NicknameInput-name data-v-88ac6d2f">{{d}}</view><image class="more data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-88ac6d2f" bindtap="{{g}}"><view class="avatarmodify-item data-v-88ac6d2f">邮箱</view><view class="NicknameInput data-v-88ac6d2f"><view class="NicknameInput-name data-v-88ac6d2f">{{f}}</view><image class="more data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-88ac6d2f" bindtap="{{i}}"><view class="avatarmodify-item data-v-88ac6d2f">密码</view><view class="NicknameInput data-v-88ac6d2f"><view class="NicknameInput-name data-v-88ac6d2f">{{h}}</view><image class="more data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view><view class="Nickname data-v-88ac6d2f" bindtap="{{j}}"><view class="avatarmodify-item data-v-88ac6d2f">扫码</view><view class="NicknameInput data-v-88ac6d2f"><image class="more data-v-88ac6d2f" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/More.png" mode="scaleToFill"/></view></view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.bg.data-v-64a95457{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.bgImg.data-v-64a95457{width:100%;height:100%}.Return.data-v-64a95457{position:fixed;left:35rpx;top:120rpx;width:46rpx;height:46rpx;z-index:2}.title.data-v-64a95457{position:fixed;top:120rpx;left:0;right:0;text-align:center;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-64a95457{width:100%;height:100%}.contentbox.data-v-64a95457{position:absolute;top:200rpx;left:0rpx;right:0rpx;bottom:0rpx}.content.data-v-64a95457{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.avatarmodify.data-v-64a95457{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-64a95457{font-size:24rpx;color:#100e0f;line-height:100rpx;font-weight:700}.avatarmodify-img.data-v-64a95457{display:flex;align-items:center}.login-btn.data-v-64a95457{width:100%;height:100rpx;padding:0;margin:0;border:none;background-color:#fff;border-radius:0rpx;display:flex}.login-btn.data-v-64a95457:after{border:none;border-radius:0rpx}.avatar.data-v-64a95457{width:80rpx;height:80rpx;border-radius:10rpx}.more.data-v-64a95457{width:15rpx;height:30rpx;margin-left:30rpx}.Nickname.data-v-64a95457{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-64a95457{display:flex;align-items:center}.NicknameInput-name.data-v-64a95457{font-size:24rpx;color:#bdbdbd;line-height:100rpx;font-weight:700}
|
||||
.bg.data-v-88ac6d2f{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.bgImg.data-v-88ac6d2f{width:100%;height:100%}.Return.data-v-88ac6d2f{position:fixed;left:35rpx;top:120rpx;width:46rpx;height:46rpx;z-index:2}.title.data-v-88ac6d2f{position:fixed;top:120rpx;left:0;right:0;text-align:center;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-88ac6d2f{width:100%;height:100%}.contentbox.data-v-88ac6d2f{position:absolute;top:200rpx;left:0rpx;right:0rpx;bottom:0rpx}.content.data-v-88ac6d2f{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.avatarmodify.data-v-88ac6d2f{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-88ac6d2f{font-size:24rpx;color:#100e0f;line-height:100rpx;font-weight:700}.avatarmodify-img.data-v-88ac6d2f{display:flex;align-items:center}.login-btn.data-v-88ac6d2f{width:100%;height:100rpx;padding:0;margin:0;border:none;background-color:#fff;border-radius:0rpx;display:flex}.login-btn.data-v-88ac6d2f:after{border:none;border-radius:0rpx}.avatar.data-v-88ac6d2f{width:80rpx;height:80rpx;border-radius:10rpx}.more.data-v-88ac6d2f{width:15rpx;height:30rpx;margin-left:30rpx}.Nickname.data-v-88ac6d2f{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-88ac6d2f{display:flex;align-items:center}.NicknameInput-name.data-v-88ac6d2f{font-size:24rpx;color:#bdbdbd;line-height:100rpx;font-weight:700}
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),i=require("../../../components/request.js"),o=require("../../../components/goEasyTool/tool.js"),t={data:()=>({title:"Hello",email:"",Verificationcode:"",id:"",error:!1,VerificationcodeSent:!1,turnsoutemail:""}),onLoad(e){this.turnsoutemail=this.email="null"==e.email?"":e.email,this.id=e.id},methods:{onSubmit(){""==this.turnsoutemail?this.setEmail():this.hasEmail()},hasEmail(){this.validateEmail(this.email)?(e.index.showLoading({title:"修改中...",mask:!0}),i.request({url:"user/updateUserMail",method:"POST",data:{code:this.Verificationcode,mailAddress:this.email},userInfo:!0}).then((i=>{console.log("修改调用返回",i),200===i.code?(e.index.hideLoading(),e.index.showToast({title:"修改成功,请到您的邮箱进行验证激活",duration:5e3,icon:"none"}),setTimeout((()=>{e.index.navigateBack({delta:1})}),5e3)):(e.index.hideLoading(),e.index.showToast({title:i.msg,icon:"none"}))})).catch((i=>{console.log("修改调用失败",i),e.index.hideLoading(),e.index.showToast({title:"修改失败",icon:"none"})}))):this.error=!0},sendVerificationCode(){i.request({url:"user/sendUpdateMailConfirmMail",method:"POST",data:{mailAddress:this.email},userInfo:!0}).then((e=>{this.VerificationcodeSent=!0}))},setEmail(){this.validateEmail(this.email)?(e.index.showLoading({title:"修改中...",mask:!0}),o.goEasylogout(this.$goeasy),i.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,email:this.email},userInfo:!0}).then((i=>{console.log("修改调用返回",i),200===i.code?(e.index.hideLoading(),e.index.showToast({title:"修改成功,请到您的邮箱进行验证激活",duration:5e3,icon:"none"}),e.index.setStorageSync("userinfo",i.data),o.goEasylogin(this.$goeasy,String(i.data.id),i.data.headerIcon,i.data.nickName),setTimeout((()=>{e.index.navigateBack({delta:1})}),5e3)):(e.index.hideLoading(),e.index.showToast({title:i.msg,icon:"none"}))})).catch((i=>{console.log("修改调用失败",i),e.index.hideLoading(),e.index.showToast({title:"修改失败",icon:"none"})}))):this.error=!0},validateEmail:e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),onCustomerService(){e.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},onBack(){e.wx$1.navigateBack({delta:1})}}};const a=e._export_sfc(t,[["render",function(i,o,t,a,n,s){return e.e({a:e.o(((...e)=>s.onBack&&s.onBack(...e))),b:n.email,c:e.o((e=>n.email=e.detail.value)),d:""==n.turnsoutemail},(n.turnsoutemail,{}),{e:n.error},(n.error,{}),{f:""!=n.turnsoutemail},""!=n.turnsoutemail?{g:n.Verificationcode,h:e.o((e=>n.Verificationcode=e.detail.value)),i:e.o(((...e)=>s.sendVerificationCode&&s.sendVerificationCode(...e)))}:{},{j:n.VerificationcodeSent&&""!=n.turnsoutemail},n.VerificationcodeSent&&""!=n.turnsoutemail?{k:e.t(n.turnsoutemail)}:{},{l:e.o(((...e)=>s.onSubmit&&s.onSubmit(...e))),m:e.o(((...e)=>s.onCustomerService&&s.onCustomerService(...e)))})}],["__scopeId","data-v-33c5a3a1"]]);wx.createPage(a);
|
||||
"use strict";const e=require("../../../common/vendor.js"),i=require("../../../components/request.js"),t=require("../../../components/goEasyTool/tool.js"),o={data:()=>({title:"Hello",email:"",Verificationcode:"",id:"",error:!1,VerificationcodeSent:!1,turnsoutemail:"",countdown:0,isCounting:!1,timer:null}),onLoad(e){this.turnsoutemail=this.email="null"==e.email?"":e.email,this.id=e.id},methods:{startCountdown(){this.countdown=60,this.isCounting=!0,this.timer=setInterval((()=>{this.countdown--,this.countdown<=0&&(this.isCounting=!1)}),1e3)},onSubmit(){""==this.turnsoutemail?this.setEmail():this.hasEmail()},hasEmail(){this.validateEmail(this.email)?(e.index.showLoading({title:"修改中...",mask:!0}),i.request({url:"user/updateUserMail",method:"POST",data:{code:this.Verificationcode,mailAddress:this.email},userInfo:!0}).then((i=>{console.log("修改调用返回",i),200===i.code?(e.index.hideLoading(),e.index.showToast({title:"修改成功,请到您的邮箱进行验证激活",duration:5e3,icon:"none"}),setTimeout((()=>{e.index.navigateBack({delta:1})}),5e3)):(e.index.hideLoading(),e.index.showToast({title:i.msg,icon:"none"}))})).catch((i=>{console.log("修改调用失败",i),e.index.hideLoading(),e.index.showToast({title:"修改失败",icon:"none"})}))):this.error=!0},sendVerificationCode(){this.isCounting||i.request({url:"user/sendUpdateMailConfirmMail",method:"POST",data:{mailAddress:this.email},userInfo:!0}).then((e=>{this.VerificationcodeSent=!0,this.startCountdown()}))},setEmail(){this.validateEmail(this.email)?(e.index.showLoading({title:"修改中...",mask:!0}),t.goEasylogout(this.$goeasy),i.request({url:"user/updateUserInfo",method:"POST",data:{id:this.id,email:this.email},userInfo:!0}).then((i=>{console.log("修改调用返回",i),200===i.code?(e.index.hideLoading(),e.index.showToast({title:"修改成功,请到您的邮箱进行验证激活",duration:5e3,icon:"none"}),e.index.setStorageSync("userinfo",i.data),t.goEasylogin(this.$goeasy,String(i.data.id),i.data.headerIcon,i.data.nickName),setTimeout((()=>{e.index.navigateBack({delta:1})}),5e3)):(e.index.hideLoading(),e.index.showToast({title:i.msg,icon:"none"}))})).catch((i=>{console.log("修改调用失败",i),e.index.hideLoading(),e.index.showToast({title:"修改失败",icon:"none"})}))):this.error=!0},validateEmail:e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),onCustomerService(){e.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},onBack(){e.wx$1.navigateBack({delta:1})}}};const n=e._export_sfc(o,[["render",function(i,t,o,n,a,s){return e.e({a:e.o(((...e)=>s.onBack&&s.onBack(...e))),b:a.email,c:e.o((e=>a.email=e.detail.value)),d:""==a.turnsoutemail},(a.turnsoutemail,{}),{e:a.error},(a.error,{}),{f:""!=a.turnsoutemail},""!=a.turnsoutemail?{g:a.Verificationcode,h:e.o((e=>a.Verificationcode=e.detail.value)),i:e.t(a.isCounting?`${a.countdown}秒后重发`:"获取验证码"),j:e.o(((...e)=>s.sendVerificationCode&&s.sendVerificationCode(...e))),k:e.s(a.isCounting?"background-image: linear-gradient(0deg, #cccccc, #dddddd); cursor: not-allowed;":"")}:{},{l:a.VerificationcodeSent&&""!=a.turnsoutemail},a.VerificationcodeSent&&""!=a.turnsoutemail?{m:e.t(a.turnsoutemail)}:{},{n:e.o(((...e)=>s.onSubmit&&s.onSubmit(...e))),o:e.o(((...e)=>s.onCustomerService&&s.onCustomerService(...e)))})}],["__scopeId","data-v-156a75a9"]]);wx.createPage(n);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="changeEmail data-v-33c5a3a1"><view class="bg data-v-33c5a3a1"><image class="bgImg data-v-33c5a3a1" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-33c5a3a1" bindtap="{{a}}"><image class="ReturnImg data-v-33c5a3a1" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-33c5a3a1">邮箱</view><view class="contentbox data-v-33c5a3a1"><view class="content data-v-33c5a3a1"><input type="email" class="weui-input data-v-33c5a3a1" placeholder="请输入邮箱号" value="{{b}}" bindinput="{{c}}"/><text wx:if="{{d}}" class="error data-v-33c5a3a1">第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text><text wx:if="{{e}}" class="error data-v-33c5a3a1">请输入正确的邮箱地址</text><view wx:if="{{f}}" class="Verificationcodebox data-v-33c5a3a1"><input type="text" class="weui-input data-v-33c5a3a1" placeholder="验证码" value="{{g}}" bindinput="{{h}}"/><view class="Verificationcodebtn data-v-33c5a3a1" bindtap="{{i}}">获取验证码</view></view><text wx:if="{{j}}" class="VerificationcodeSent data-v-33c5a3a1">验证码已发送至{{k}}邮箱,请注意查收</text><view class="btn data-v-33c5a3a1" bindtap="{{l}}">确认</view><text class="forget data-v-33c5a3a1" bindtap="{{m}}">忘记邮箱?请联系客服</text></view></view></view>
|
||||
<view class="changeEmail data-v-156a75a9"><view class="bg data-v-156a75a9"><image class="bgImg data-v-156a75a9" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-156a75a9" bindtap="{{a}}"><image class="ReturnImg data-v-156a75a9" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-156a75a9">邮箱</view><view class="contentbox data-v-156a75a9"><view class="content data-v-156a75a9"><input type="email" class="weui-input data-v-156a75a9" placeholder="请输入邮箱号" value="{{b}}" bindinput="{{c}}"/><text wx:if="{{d}}" class="error data-v-156a75a9">第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text><text wx:if="{{e}}" class="error data-v-156a75a9">请输入正确的邮箱地址</text><view wx:if="{{f}}" class="Verificationcodebox data-v-156a75a9"><input type="text" class="weui-input data-v-156a75a9" placeholder="验证码" value="{{g}}" bindinput="{{h}}"/><view class="Verificationcodebtn data-v-156a75a9" bindtap="{{j}}" style="{{k}}">{{i}}</view></view><text wx:if="{{l}}" class="VerificationcodeSent data-v-156a75a9">验证码已发送至{{m}}邮箱,请注意查收</text><view class="btn data-v-156a75a9" bindtap="{{n}}">确认</view><text class="forget data-v-156a75a9" bindtap="{{o}}">忘记邮箱?请联系客服</text></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.bg.data-v-33c5a3a1{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.bgImg.data-v-33c5a3a1{width:100%;height:100%}.Return.data-v-33c5a3a1{position:fixed;left:35rpx;top:120rpx;width:46rpx;height:46rpx;z-index:2}.title.data-v-33c5a3a1{position:fixed;top:120rpx;left:0;right:0;text-align:center;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-33c5a3a1{width:100%;height:100%}.contentbox.data-v-33c5a3a1{position:absolute;top:200rpx;left:0rpx;right:0rpx;bottom:0rpx}.content.data-v-33c5a3a1{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.weui-input.data-v-33c5a3a1{width:90%;height:80rpx;margin-top:40rpx;border-bottom:1px solid #ccc}.Verificationcodebox.data-v-33c5a3a1{width:90%;height:80rpx;margin-top:40rpx;display:flex;align-items:center}.Verificationcodebtn.data-v-33c5a3a1{width:30%;height:100%;margin-bottom:-40rpx;background-color:#e6e6e6;color:#fff;font-size:24rpx;line-height:40rpx;background-color:#00afb2;text-align:center;line-height:80rpx}.VerificationcodeSent.data-v-33c5a3a1{color:#00afb2;font-size:24rpx;margin-top:40rpx}.btn.data-v-33c5a3a1{width:80%;height:80rpx;margin-top:150rpx;background:linear-gradient(135deg,#00afb2,#4fcacd);color:#fff;text-align:center;line-height:80rpx;border-radius:40rpx;font-size:30rpx;border:none;cursor:pointer}.error.data-v-33c5a3a1{color:red;font-size:20rpx}.forget.data-v-33c5a3a1{font-size:24rpx;color:#00afb2;margin-top:50rpx}
|
||||
.bg.data-v-156a75a9{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.bgImg.data-v-156a75a9{width:100%;height:100%}.Return.data-v-156a75a9{position:fixed;left:35rpx;top:120rpx;width:46rpx;height:46rpx;z-index:2}.title.data-v-156a75a9{position:fixed;top:120rpx;left:0;right:0;text-align:center;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-156a75a9{width:100%;height:100%}.contentbox.data-v-156a75a9{position:absolute;top:200rpx;left:0rpx;right:0rpx;bottom:0rpx}.content.data-v-156a75a9{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}.weui-input.data-v-156a75a9{width:90%;height:80rpx;margin-top:40rpx;border-bottom:1px solid #ccc}.Verificationcodebox.data-v-156a75a9{width:90%;height:80rpx;margin-top:40rpx;display:flex;align-items:center}.Verificationcodebtn.data-v-156a75a9{width:30%;height:100%;margin-bottom:-40rpx;background-color:#e6e6e6;color:#fff;font-size:24rpx;line-height:40rpx;background-color:#00afb2;text-align:center;line-height:80rpx}.VerificationcodeSent.data-v-156a75a9{color:#00afb2;font-size:24rpx;margin-top:40rpx}.btn.data-v-156a75a9{width:80%;height:80rpx;margin-top:150rpx;background:linear-gradient(135deg,#00afb2,#4fcacd);color:#fff;text-align:center;line-height:80rpx;border-radius:40rpx;font-size:30rpx;border:none;cursor:pointer}.error.data-v-156a75a9{color:red;font-size:20rpx}.forget.data-v-156a75a9{font-size:24rpx;color:#00afb2;margin-top:50rpx}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../components/request.js"),o=require("../../components/goEasyTool/tool.js"),t=require("../../stores/counter.js").useCounterStore(),i={inject:["$global"],data:()=>({userInfo:{},info:{},userSig:"",lastPage:"",myuserSig:""}),onLoad(){e.index.getUserInfo({provider:"weixin",success:e=>{this.userInfo=e.userInfo}}),e.index.getStorage({key:"lastPage",success:e=>{this.lastPage="/"+e.data},fail:()=>{this.lastPage="/pages/Home/Home"}})},methods:{Return(){e.index.reLaunch({url:"/pages/Home/Home"})},getPhoneNumber(i){null!=i.detail.code?(e.index.showLoading({title:"登录中...",mask:!0}),n.request({url:"user/loginWithPhoneNumber",method:"POST",data:{code:i.detail.code},userInfo:!1}).then((n=>{e.index.hideLoading(),this.info=n,e.index.setStorageSync("userinfo",this.info.data.info);const i=Date.now();e.index.setStorageSync("last_clean_time",i),t.$patch({myitem:this.info.data.info}),200===this.info.code?this.info.data.newAccount?(e.index.reLaunch({url:"/pages/UserInformation/UserInformation"}),e.index.hideLoading()):(e.index.setStorageSync("userinfo",this.info.data.info),e.index.setStorageSync("token",n.data.info.token),o.goEasylogin(this.$goeasy,String(this.info.data.info.id),this.info.data.info.headerIcon,this.info.data.info.nickName),e.index.hideLoading(),e.index.reLaunch({url:this.lastPage})):(e.index.hideLoading(),e.index.showToast({title:"登录失败",icon:"none"}))})).catch((n=>{e.index.hideLoading(),e.index.showToast({title:"登录失败",icon:"none"})}))):e.index.showToast({title:"登录失败",icon:"none"})}}};const a=e._export_sfc(i,[["render",function(n,o,t,i,a,s){return{a:e.o(((...e)=>s.Return&&s.Return(...e))),b:a.userInfo.avatarUrl,c:e.t(a.userInfo.nickName),d:e.o(((...e)=>s.getPhoneNumber&&s.getPhoneNumber(...e)))}}]]);wx.createPage(a);
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../components/request.js"),o=require("../../components/goEasyTool/tool.js"),i=require("../../stores/counter.js").useCounterStore(),t={inject:["$global"],data:()=>({userInfo:{},info:{},userSig:"",lastPage:"",myuserSig:""}),onLoad(){e.index.getUserInfo({provider:"weixin",success:e=>{this.userInfo=e.userInfo}}),e.index.getStorage({key:"lastPage",success:e=>{this.lastPage="/"+e.data},fail:()=>{this.lastPage="/pages/Home/Home"}})},methods:{loginWithEmailOrAccount(){e.index.navigateTo({url:"/pages/loginWithEmailOrAccount/loginWithEmailOrAccount"})},Return(){e.index.reLaunch({url:"/pages/Home/Home"})},getPhoneNumber(t){null!=t.detail.code?(e.index.showLoading({title:"登录中...",mask:!0}),n.request({url:"user/loginWithPhoneNumber",method:"POST",data:{code:t.detail.code},userInfo:!1}).then((n=>{e.index.hideLoading(),this.info=n,e.index.setStorageSync("userinfo",this.info.data.info);const t=Date.now();e.index.setStorageSync("last_clean_time",t),i.$patch({myitem:this.info.data.info}),200===this.info.code?this.info.data.newAccount?(e.index.reLaunch({url:"/pages/UserInformation/UserInformation"}),e.index.hideLoading()):(e.index.setStorageSync("userinfo",this.info.data.info),e.index.setStorageSync("token",n.data.info.token),o.goEasylogin(this.$goeasy,String(this.info.data.info.id),this.info.data.info.headerIcon,this.info.data.info.nickName),e.index.hideLoading(),e.index.reLaunch({url:this.lastPage})):(e.index.hideLoading(),e.index.showToast({title:"登录失败",icon:"none"}))})).catch((n=>{e.index.hideLoading(),e.index.showToast({title:"登录失败",icon:"none"})}))):e.index.showToast({title:"登录失败",icon:"none"})}}};const a=e._export_sfc(t,[["render",function(n,o,i,t,a,s){return{a:e.o(((...e)=>s.Return&&s.Return(...e))),b:a.userInfo.avatarUrl,c:e.t(a.userInfo.nickName),d:e.o(((...e)=>s.getPhoneNumber&&s.getPhoneNumber(...e))),e:e.o(((...e)=>s.loginWithEmailOrAccount&&s.loginWithEmailOrAccount(...e)))}}]]);wx.createPage(a);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="return" bindtap="{{a}}"><image style="width:40rpx;height:40rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="container"><image class="logo" src="{{b}}"></image><view class="nickname">{{c}}</view><button class="login-btn" open-type="getPhoneNumber" bindgetphonenumber="{{d}}"> 使用手机号快捷登录 </button></view>
|
||||
<view class="return" bindtap="{{a}}"><image style="width:40rpx;height:40rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="container"><image class="logo" src="{{b}}"></image><view class="nickname">{{c}}</view><button class="login-btn" open-type="getPhoneNumber" bindgetphonenumber="{{d}}"> 使用手机号快捷登录 </button><button class="login-btns" bindtap="{{e}}"> 使用邮箱或者账号登录 </button></view>
|
||||
@@ -1 +1 @@
|
||||
.container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.logo{width:200rpx;height:200rpx;border-radius:50%}.nickname{width:300rpx;height:100rpx;color:#fff;border-radius:0;padding:20rpx 40rpx;font-size:30rpx;text-align:center;line-height:100rpx}.login-btn{background-color:rgba(255,255,255,0);border:1px solid #00ff0000;color:#fff}.tips{color:#666;font-size:24rpx;margin-top:40rpx}.return{position:fixed;top:100rpx;left:80rpx;z-index:999}
|
||||
.container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.logo{width:200rpx;height:200rpx;border-radius:50%}.nickname{width:300rpx;height:100rpx;color:#fff;border-radius:0;padding:20rpx 40rpx;font-size:30rpx;text-align:center;line-height:100rpx}.login-btn{background-color:rgba(255,255,255,0);border:1px solid #00ff0000;color:#fff}.login-btns{margin-top:20rpx;background-color:rgba(255,255,255,0);border:1px solid #00ff0000;color:#fff}.tips{color:#666;font-size:24rpx;margin-top:40rpx}.return{position:fixed;top:100rpx;left:80rpx;z-index:999}
|
||||
|
||||
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/goEasyTool/tool.js"),n=require("../../stores/counter.js").useCounterStore(),a={data:()=>({title:"Hello",EmailOrAccount:"",Password:""}),onLoad(){},methods:{onLogin(){/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,16}$/.test(this.Password)?(o.index.showLoading({title:"登录中...",mask:!0}),e.request({url:"user/loginWithMail",method:"POST",data:{userNameOrEmail:this.EmailOrAccount,password:this.Password},userInfo:!1}).then((e=>{o.index.hideLoading(),console.log(e),this.info=e;const a=Date.now();o.index.setStorageSync("last_clean_time",a),n.$patch({myitem:this.info.data}),200===e.code?(o.index.setStorageSync("userinfo",this.info.data),o.index.setStorageSync("token",this.info.data.token),t.goEasylogin(this.$goeasy,String(this.info.data.id),this.info.data.headerIcon,this.info.data.nickName),o.index.reLaunch({url:this.lastPage||"/pages/Home/Home"})):o.index.showToast({title:e.msg,icon:"none"})})).catch((e=>{o.index.hideLoading(),o.index.showToast({title:e.msg,icon:"none"})}))):o.index.showToast({title:"密码必须包含大小写字母和数字,长度6-16位",icon:"none"})},onBack(){o.index.navigateBack({delta:1})}}};const i=o._export_sfc(a,[["render",function(e,t,n,a,i,s){return{a:o.o(((...o)=>s.onBack&&s.onBack(...o))),b:i.EmailOrAccount,c:o.o((o=>i.EmailOrAccount=o.detail.value)),d:i.Password,e:o.o((o=>i.Password=o.detail.value)),f:o.o(((...o)=>s.onLogin&&s.onLogin(...o)))}}],["__scopeId","data-v-c50a090c"]]);wx.createPage(i);
|
||||
4
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "邮箱或账号登录",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-c50a090c"><view class="bg data-v-c50a090c"></view><view class="Return data-v-c50a090c" bindtap="{{a}}"><image class="ReturnImg data-v-c50a090c" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-c50a090c">邮箱或账号登录</view><view class="form data-v-c50a090c"><view class="form-content data-v-c50a090c"><input type="text" class="input data-v-c50a090c" placeholder="请输入邮箱或账号" value="{{b}}" bindinput="{{c}}"/><input type="password" class="input data-v-c50a090c" placeholder="请输入密码" autocomplete="off" value="{{d}}" bindinput="{{e}}"/><view class="btn data-v-c50a090c" bindtap="{{f}}">登录</view></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.bg.data-v-c50a090c{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1;background:linear-gradient(to bottom,rgba(17,203,42,.43),rgba(37,116,252,.427))}.bgImg.data-v-c50a090c{width:100%;height:100%}.Return.data-v-c50a090c{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx;z-index:1}.title.data-v-c50a090c{position:fixed;top:120rpx;left:0;right:0;text-align:center;font-size:34rpx;color:#100e0f;font-weight:700;z-index:1}.ReturnImg.data-v-c50a090c{width:100%;height:100%}.form.data-v-c50a090c{position:absolute;top:0rpx;left:0rpx;right:0rpx;bottom:0rpx}.form-content.data-v-c50a090c{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.input.data-v-c50a090c{width:80%;height:80rpx;border:none;border-bottom:#4fcacd solid 1px;margin-bottom:150rpx;padding-left:10rpx;font-size:24rpx;color:#000}.btn.data-v-c50a090c{width:80%;height:80rpx;background-color:#4fcacd;border-radius:20rpx;font-size:28rpx;color:#fff;text-align:center;line-height:80rpx;margin-top:100rpx;cursor:pointer}
|
||||
@@ -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;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/mp-weixin/app.js
vendored
1
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -6,6 +6,7 @@ if (!Math) {
|
||||
"./pages/Mine/Mine.js";
|
||||
"./pages/Mine/minecomponents/pkRecord.js";
|
||||
"./pages/Mine/minecomponents/contact.js";
|
||||
"./pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js";
|
||||
"./pages/Mine/minecomponents/points.js";
|
||||
"./pages/Mine/minecomponents/anchorLibrary.js";
|
||||
"./pages/Mine/minecomponents/pkInformation.js";
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.json
vendored
1
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -4,6 +4,7 @@
|
||||
"pages/Mine/Mine",
|
||||
"pages/Mine/minecomponents/pkRecord",
|
||||
"pages/Mine/minecomponents/contact",
|
||||
"pages/loginWithEmailOrAccount/loginWithEmailOrAccount",
|
||||
"pages/Mine/minecomponents/points",
|
||||
"pages/Mine/minecomponents/anchorLibrary",
|
||||
"pages/Mine/minecomponents/pkInformation",
|
||||
|
||||
14
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
14
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -6467,9 +6467,9 @@ function populateParameters(fromRes, toRes) {
|
||||
appVersion: "1.0.0",
|
||||
appVersionCode: "100",
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75",
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76",
|
||||
uniPlatform: "mp-weixin",
|
||||
deviceBrand,
|
||||
deviceModel: model,
|
||||
@@ -6618,9 +6618,9 @@ const getAppBaseInfo = {
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75"
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76"
|
||||
};
|
||||
extend(toRes, parameters);
|
||||
}
|
||||
@@ -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_oaDwei";
|
||||
const id = "mp-weixin_hMa31s";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
@@ -25,6 +25,9 @@ function request(urldata) {
|
||||
},
|
||||
success: function(res3) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:28", "请求成功", res3);
|
||||
if (res3.data.code === 40400) {
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res3.data));
|
||||
},
|
||||
fail: function(res3) {
|
||||
@@ -56,7 +59,7 @@ function request(urldata) {
|
||||
common_vendor.index.getStorage({
|
||||
key: "token",
|
||||
success: (res) => {
|
||||
common_vendor.index.__f__("log", "at components/request.js:59", "token", res.data);
|
||||
common_vendor.index.__f__("log", "at components/request.js:62", "token", res.data);
|
||||
common_vendor.index.request({
|
||||
url: baseUrl,
|
||||
data,
|
||||
@@ -66,7 +69,7 @@ function request(urldata) {
|
||||
...header
|
||||
},
|
||||
success: function(res2) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:69", "请求成功", res2);
|
||||
common_vendor.index.__f__("log", "at components/request.js:72", "请求成功", res2);
|
||||
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
|
||||
},
|
||||
fail: function(res2) {
|
||||
@@ -83,7 +86,10 @@ function request(urldata) {
|
||||
...header
|
||||
},
|
||||
success: function(res2) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:86", "请求成功", res2);
|
||||
common_vendor.index.__f__("log", "at components/request.js:89", "请求成功", res2);
|
||||
if (res2.data.code === 40400) {
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
resolve(components_addPrefixToHeaderIcon.addPrefixToHeaderIcon(res2.data));
|
||||
},
|
||||
fail: function(res2) {
|
||||
|
||||
13
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
13
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -94,8 +94,17 @@ const _sfc_main = {
|
||||
const now = Date.now();
|
||||
if (now - lastCleanTime < 7 * 24 * 3600 * 1e3)
|
||||
return;
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.setStorageSync("last_clean_time", now);
|
||||
components_request.request({
|
||||
url: "user/logout",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.info.id
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.setStorageSync("last_clean_time", now);
|
||||
});
|
||||
},
|
||||
//关闭弹窗(取消)
|
||||
closePopup() {
|
||||
|
||||
@@ -76,7 +76,7 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.AnchorList = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/anchorLibrary.vue:172", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/anchorLibrary.vue:180", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
.empty.data-v-daea6b33{
|
||||
.empty.data-v-daea6b33 {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0;
|
||||
|
||||
@@ -51,7 +51,7 @@ const _sfc_main = {
|
||||
});
|
||||
}, 300);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:142", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:144", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -84,21 +84,36 @@ const _sfc_main = {
|
||||
method: "POST",
|
||||
data: {
|
||||
uuid: data.uuid,
|
||||
userId: this.id
|
||||
id: this.id
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res2) => {
|
||||
if (res2.code === 200) {
|
||||
components_request.request({
|
||||
url: "user/confirm",
|
||||
method: "POST",
|
||||
data: {
|
||||
uuid: data.uuid,
|
||||
id: this.id
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res3) => {
|
||||
if (res3.code === 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录成功",
|
||||
icon: "success"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res3,
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
}).catch((err) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录成功",
|
||||
icon: "success"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res2,
|
||||
title: "登录失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
}).catch((err) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "登录失败",
|
||||
@@ -141,7 +156,7 @@ const _sfc_main = {
|
||||
},
|
||||
userInfo: true
|
||||
}).then((ress) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:243", "修改调用返回", ress);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:262", "修改调用返回", ress);
|
||||
if (ress.code === 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: "修改成功",
|
||||
|
||||
@@ -16,8 +16,14 @@ const _sfc_main = {
|
||||
//邮箱错误
|
||||
VerificationcodeSent: false,
|
||||
//验证码是否已发送
|
||||
turnsoutemail: ""
|
||||
turnsoutemail: "",
|
||||
//修改前的邮箱
|
||||
countdown: 0,
|
||||
//验证码倒计时
|
||||
isCounting: false,
|
||||
//是否正在倒计时
|
||||
timer: null
|
||||
//倒计时定时器
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -25,6 +31,17 @@ const _sfc_main = {
|
||||
this.id = options.id;
|
||||
},
|
||||
methods: {
|
||||
// 倒计时
|
||||
startCountdown() {
|
||||
this.countdown = 60;
|
||||
this.isCounting = true;
|
||||
this.timer = setInterval(() => {
|
||||
this.countdown--;
|
||||
if (this.countdown <= 0) {
|
||||
this.isCounting = false;
|
||||
}
|
||||
}, 1e3);
|
||||
},
|
||||
//提交验证
|
||||
onSubmit() {
|
||||
if (this.turnsoutemail == "") {
|
||||
@@ -52,7 +69,7 @@ const _sfc_main = {
|
||||
},
|
||||
userInfo: true
|
||||
}).then((ress) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:98", "修改调用返回", ress);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:120", "修改调用返回", ress);
|
||||
if (ress.code === 200) {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
@@ -73,7 +90,7 @@ const _sfc_main = {
|
||||
});
|
||||
}
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:122", "修改调用失败", err);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:144", "修改调用失败", err);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "修改失败",
|
||||
@@ -83,6 +100,9 @@ const _sfc_main = {
|
||||
},
|
||||
//发送验证码
|
||||
sendVerificationCode() {
|
||||
if (this.isCounting) {
|
||||
return;
|
||||
}
|
||||
components_request.request({
|
||||
url: "user/sendUpdateMailConfirmMail",
|
||||
method: "POST",
|
||||
@@ -92,6 +112,7 @@ const _sfc_main = {
|
||||
userInfo: true
|
||||
}).then((ress) => {
|
||||
this.VerificationcodeSent = true;
|
||||
this.startCountdown();
|
||||
});
|
||||
},
|
||||
//第一次提交
|
||||
@@ -114,7 +135,7 @@ const _sfc_main = {
|
||||
},
|
||||
userInfo: true
|
||||
}).then((ress) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:164", "修改调用返回", ress);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:190", "修改调用返回", ress);
|
||||
if (ress.code === 200) {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
@@ -142,7 +163,7 @@ const _sfc_main = {
|
||||
});
|
||||
}
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:195", "修改调用失败", err);
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeEmail.vue:221", "修改调用失败", err);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "修改失败",
|
||||
@@ -182,14 +203,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}, $data.turnsoutemail != "" ? {
|
||||
g: $data.Verificationcode,
|
||||
h: common_vendor.o(($event) => $data.Verificationcode = $event.detail.value),
|
||||
i: common_vendor.o((...args) => $options.sendVerificationCode && $options.sendVerificationCode(...args))
|
||||
i: common_vendor.t($data.isCounting ? `${$data.countdown}秒后重发` : "获取验证码"),
|
||||
j: common_vendor.o((...args) => $options.sendVerificationCode && $options.sendVerificationCode(...args)),
|
||||
k: common_vendor.s($data.isCounting ? "background-image: linear-gradient(0deg, #cccccc, #dddddd); cursor: not-allowed;" : "")
|
||||
} : {}, {
|
||||
j: $data.VerificationcodeSent && $data.turnsoutemail != ""
|
||||
l: $data.VerificationcodeSent && $data.turnsoutemail != ""
|
||||
}, $data.VerificationcodeSent && $data.turnsoutemail != "" ? {
|
||||
k: common_vendor.t($data.turnsoutemail)
|
||||
m: common_vendor.t($data.turnsoutemail)
|
||||
} : {}, {
|
||||
l: common_vendor.o((...args) => $options.onSubmit && $options.onSubmit(...args)),
|
||||
m: common_vendor.o((...args) => $options.onCustomerService && $options.onCustomerService(...args))
|
||||
n: common_vendor.o((...args) => $options.onSubmit && $options.onSubmit(...args)),
|
||||
o: common_vendor.o((...args) => $options.onCustomerService && $options.onCustomerService(...args))
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-87d0cc44"]]);
|
||||
|
||||
@@ -1 +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"><input type="email" class="weui-input data-v-87d0cc44" placeholder="请输入邮箱号" value="{{b}}" bindinput="{{c}}"/><text wx:if="{{d}}" class="error data-v-87d0cc44">第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text><text wx:if="{{e}}" class="error data-v-87d0cc44">请输入正确的邮箱地址</text><view wx:if="{{f}}" class="Verificationcodebox data-v-87d0cc44"><input type="text" class="weui-input data-v-87d0cc44" placeholder="验证码" value="{{g}}" bindinput="{{h}}"/><view class="Verificationcodebtn data-v-87d0cc44" bindtap="{{i}}">获取验证码</view></view><text wx:if="{{j}}" class="VerificationcodeSent data-v-87d0cc44">验证码已发送至{{k}}邮箱,请注意查收</text><view class="btn data-v-87d0cc44" bindtap="{{l}}">确认</view><text class="forget data-v-87d0cc44" bindtap="{{m}}">忘记邮箱?请联系客服</text></view></view></view>
|
||||
<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"><input type="email" class="weui-input data-v-87d0cc44" placeholder="请输入邮箱号" value="{{b}}" bindinput="{{c}}"/><text wx:if="{{d}}" class="error data-v-87d0cc44">第一次填写邮箱时请确保填写正确的邮箱地址,填写错误请联系客服</text><text wx:if="{{e}}" class="error data-v-87d0cc44">请输入正确的邮箱地址</text><view wx:if="{{f}}" class="Verificationcodebox data-v-87d0cc44"><input type="text" class="weui-input data-v-87d0cc44" placeholder="验证码" value="{{g}}" bindinput="{{h}}"/><view class="Verificationcodebtn data-v-87d0cc44" bindtap="{{j}}" style="{{k}}">{{i}}</view></view><text wx:if="{{l}}" class="VerificationcodeSent data-v-87d0cc44">验证码已发送至{{m}}邮箱,请注意查收</text><view class="btn data-v-87d0cc44" bindtap="{{n}}">确认</view><text class="forget data-v-87d0cc44" bindtap="{{o}}">忘记邮箱?请联系客服</text></view></view></view>
|
||||
@@ -73,7 +73,7 @@
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.VerificationcodeSent.data-v-87d0cc44{
|
||||
.VerificationcodeSent.data-v-87d0cc44 {
|
||||
color: #00afb2;
|
||||
font-size: 24rpx;
|
||||
margin-top: 40rpx;
|
||||
@@ -95,7 +95,7 @@
|
||||
color: red;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.forget.data-v-87d0cc44{
|
||||
.forget.data-v-87d0cc44 {
|
||||
font-size: 24rpx;
|
||||
color: #00afb2;
|
||||
margin-top: 50rpx;
|
||||
|
||||
@@ -193,6 +193,7 @@ const _sfc_main = {
|
||||
im.on(common_vendor.jo.IM_EVENT.PRIVATE_MESSAGE_RECEIVED, this.onPrivateMessageReceived);
|
||||
im.on(common_vendor.jo.IM_EVENT.MESSAGE_READ, this.onMessageRead);
|
||||
this.getscrollviewheight();
|
||||
this.checkRecordPermission();
|
||||
},
|
||||
methods: {
|
||||
//暂停所有播放
|
||||
@@ -211,7 +212,7 @@ const _sfc_main = {
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:494", "file uploading:", event);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:496", "file uploading:", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
@@ -224,7 +225,7 @@ const _sfc_main = {
|
||||
},
|
||||
//长按语音
|
||||
voiceTouchstart() {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:506", "长按语音");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:508", "长按语音");
|
||||
this.voicepopUpstart = true;
|
||||
this.recorderManager.start();
|
||||
this.notplayVoice(false);
|
||||
@@ -234,7 +235,7 @@ const _sfc_main = {
|
||||
setTimeout(() => {
|
||||
this.recorderManager.stop();
|
||||
}, 100);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:516", "松开语音");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:518", "松开语音");
|
||||
this.voicepopUpstart = false;
|
||||
},
|
||||
//移动语音
|
||||
@@ -251,13 +252,12 @@ const _sfc_main = {
|
||||
},
|
||||
//中断语音
|
||||
voiceTouchcancel() {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:532", "中断语音");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:534", "中断语音");
|
||||
this.voicepopUpstart = false;
|
||||
this.voiceCancelOrSend = false;
|
||||
},
|
||||
//语音切换
|
||||
onVoice(status) {
|
||||
this.checkRecordPermission();
|
||||
if (status) {
|
||||
this.inputfocus = false;
|
||||
this.MoreStatus = false;
|
||||
@@ -410,14 +410,14 @@ const _sfc_main = {
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.chatList = [...this.MoreMessageList, ...this.chatList];
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:698", "获取更多聊天记录", this.chatList);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:699", "获取更多聊天记录", this.chatList);
|
||||
this.LastTime = this.chatList[0].timestamp;
|
||||
this.ElementPositioning = this.Record;
|
||||
}, 300);
|
||||
},
|
||||
//监听已读消息
|
||||
onMessageRead(message) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:705", "1已读消息", message);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:706", "1已读消息", message);
|
||||
},
|
||||
//监听接受消息
|
||||
onPrivateMessageReceived(message) {
|
||||
@@ -432,7 +432,7 @@ const _sfc_main = {
|
||||
this.chatList.push(message);
|
||||
if (this.onPage) {
|
||||
components_goEasyTool_tool.messageRead(this.$goeasy, this.userId).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:720", "已读对方的消息");
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:721", "已读对方的消息");
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -446,7 +446,7 @@ const _sfc_main = {
|
||||
this.avatar,
|
||||
this.nickname
|
||||
).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:734", "发送成功", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:735", "发送成功", res);
|
||||
this.ElementPositioning = res.id = components_ChatId.generateId();
|
||||
res.timestampStatus = this.checkInterval(res.timestamp);
|
||||
this.chatList.push(res);
|
||||
@@ -469,8 +469,8 @@ const _sfc_main = {
|
||||
getIOSDeviceType() {
|
||||
const systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
const model = systemInfo.model;
|
||||
if (/iPhone X|iPhone11|iPhone12|iPhone13|iPhone14/i.test(model)) {
|
||||
if (/iPhone X|iPhone XS|iPhone 11 Pro/i.test(model)) {
|
||||
if (/iPhone X|iPhone11|iPhone12|iPhone13|iPhone14|iPhone15|iPhone16|iPhone15 Pro|iPhone15 Pro Max|iPhone14 Pro|iPhone14 Pro Max|iPhone13 Pro|iPhone13 Pro Max|iPhone12 Pro|iPhone12 Pro Max|iPhone11 Pro|iPhone11 Pro Max|iPhone13 mini|iPhone12 mini|iPhoneXS|iPhoneXS Max/i.test(model)) {
|
||||
if (/iPhone X|iPhone XS|iPhone 11 Pro|iPhone 11 Pro Max|iPhone 12 Pro|iPhone 12 Pro Max|iPhone 13 Pro|iPhone 13 Pro Max|iPhone 14 Pro|iPhone 14 Pro Max|iPhone 15 Pro|iPhone 15 Pro Max|iPhone 16/i.test(model)) {
|
||||
this.ioshide = 88;
|
||||
} else if (/iPhone 12|iPhone 13|iPhone 14/i.test(model)) {
|
||||
this.ioshide = 94;
|
||||
@@ -524,7 +524,7 @@ const _sfc_main = {
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:814", "file uploading:", event);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:815", "file uploading:", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
@@ -558,7 +558,7 @@ const _sfc_main = {
|
||||
data: { avatar: this.avatar, nickname: this.nickname }
|
||||
},
|
||||
onProgress: function(event) {
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:844", "上传进度", event);
|
||||
common_vendor.index.__f__("log", "at pages/index/chat/chat.vue:845", "上传进度", event);
|
||||
}
|
||||
//获取上传进度
|
||||
});
|
||||
|
||||
@@ -33,6 +33,12 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 邮箱或者账号登录
|
||||
loginWithEmailOrAccount() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/loginWithEmailOrAccount/loginWithEmailOrAccount"
|
||||
});
|
||||
},
|
||||
// 返回首页
|
||||
Return() {
|
||||
common_vendor.index.reLaunch({
|
||||
@@ -108,7 +114,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_vendor.o((...args) => $options.Return && $options.Return(...args)),
|
||||
b: $data.userInfo.avatarUrl,
|
||||
c: common_vendor.t($data.userInfo.nickName),
|
||||
d: common_vendor.o((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args))
|
||||
d: common_vendor.o((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args)),
|
||||
e: common_vendor.o((...args) => $options.loginWithEmailOrAccount && $options.loginWithEmailOrAccount(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="return" bindtap="{{a}}"><image style="width:40rpx;height:40rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="container"><image class="logo" src="{{b}}"></image><view class="nickname">{{c}}</view><button class="login-btn" open-type="getPhoneNumber" bindgetphonenumber="{{d}}"> 使用手机号快捷登录 </button></view>
|
||||
<view class="return" bindtap="{{a}}"><image style="width:40rpx;height:40rpx" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="container"><image class="logo" src="{{b}}"></image><view class="nickname">{{c}}</view><button class="login-btn" open-type="getPhoneNumber" bindgetphonenumber="{{d}}"> 使用手机号快捷登录 </button><button class="login-btns" bindtap="{{e}}"> 使用邮箱或者账号登录 </button></view>
|
||||
@@ -28,6 +28,12 @@
|
||||
border: 1px solid #00ff0000;
|
||||
color: #ffffff;
|
||||
}
|
||||
.login-btns{
|
||||
margin-top: 20rpx;
|
||||
background-color: hsla(0, 0%, 100%, 0);
|
||||
border: 1px solid #00ff0000;
|
||||
color: #ffffff;
|
||||
}
|
||||
.tips {
|
||||
color: #666;
|
||||
font-size: 24rpx;
|
||||
|
||||
93
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js
vendored
Normal file
93
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_goEasyTool_tool = require("../../components/goEasyTool/tool.js");
|
||||
const stores_counter = require("../../stores/counter.js");
|
||||
const counter = stores_counter.useCounterStore();
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
EmailOrAccount: "",
|
||||
Password: ""
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 登录
|
||||
onLogin() {
|
||||
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,16}$/;
|
||||
if (!passwordRegex.test(this.Password)) {
|
||||
common_vendor.index.showToast({
|
||||
title: "密码必须包含大小写字母和数字,长度6-16位",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.showLoading({
|
||||
title: "登录中...",
|
||||
mask: true
|
||||
});
|
||||
components_request.request({
|
||||
url: "user/loginWithMail",
|
||||
method: "POST",
|
||||
data: {
|
||||
userNameOrEmail: this.EmailOrAccount,
|
||||
password: this.Password
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.__f__("log", "at pages/loginWithEmailOrAccount/loginWithEmailOrAccount.vue:74", res);
|
||||
this.info = res;
|
||||
const now = Date.now();
|
||||
common_vendor.index.setStorageSync("last_clean_time", now);
|
||||
counter.$patch({ myitem: this.info.data });
|
||||
if (res.code === 200) {
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data);
|
||||
common_vendor.index.setStorageSync("token", this.info.data.token);
|
||||
components_goEasyTool_tool.goEasylogin(
|
||||
this.$goeasy,
|
||||
String(this.info.data.id),
|
||||
this.info.data.headerIcon,
|
||||
this.info.data.nickName
|
||||
);
|
||||
common_vendor.index.reLaunch({
|
||||
url: this.lastPage || "/pages/Home/Home"
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.msg,
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
}).catch((err) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: err.msg,
|
||||
icon: "none"
|
||||
});
|
||||
});
|
||||
},
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args)),
|
||||
b: $data.EmailOrAccount,
|
||||
c: common_vendor.o(($event) => $data.EmailOrAccount = $event.detail.value),
|
||||
d: $data.Password,
|
||||
e: common_vendor.o(($event) => $data.Password = $event.detail.value),
|
||||
f: common_vendor.o((...args) => $options.onLogin && $options.onLogin(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4471409d"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "邮箱或账号登录",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-4471409d"><view class="bg data-v-4471409d"></view><view class="Return data-v-4471409d" bindtap="{{a}}"><image class="ReturnImg data-v-4471409d" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-4471409d">邮箱或账号登录</view><view class="form data-v-4471409d"><view class="form-content data-v-4471409d"><input type="text" class="input data-v-4471409d" placeholder="请输入邮箱或账号" value="{{b}}" bindinput="{{c}}"/><input type="password" class="input data-v-4471409d" placeholder="请输入密码" autocomplete="off" value="{{d}}" bindinput="{{e}}"/><view class="btn data-v-4471409d" bindtap="{{f}}">登录</view></view></view></view>
|
||||
74
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxss
vendored
Normal file
74
unpackage/dist/dev/mp-weixin/pages/loginWithEmailOrAccount/loginWithEmailOrAccount.wxss
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
|
||||
.bg.data-v-4471409d {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
background: linear-gradient(to bottom, #11cb2a6e, #2574fc6d);
|
||||
}
|
||||
.bgImg.data-v-4471409d {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-4471409d {
|
||||
position: absolute;
|
||||
top: 110rpx;
|
||||
left: 35rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
.title.data-v-4471409d {
|
||||
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-4471409d {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.form.data-v-4471409d {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.form-content.data-v-4471409d {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.input.data-v-4471409d {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
border: none;
|
||||
border-bottom: #4fcacd solid 1px;
|
||||
margin-bottom: 150rpx;
|
||||
padding-left: 10rpx;
|
||||
font-size: 24rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.btn.data-v-4471409d {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
background-color: #4fcacd;
|
||||
border-radius: 20rpx;
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
margin-top: 100rpx;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"libVersion": "2.25.4",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"urlCheck": true,
|
||||
"compileHotReLoad": true
|
||||
},
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
|
||||
Reference in New Issue
Block a user