tmp: 部分代码与UnishopV5结合,但是代码有严重缺陷

This commit is contained in:
2025-12-20 15:30:39 +08:00
parent ed5181b382
commit e263a616f6
183 changed files with 31316 additions and 18590 deletions

View File

@@ -39,23 +39,21 @@
}
.head-wrap {
// width: 100vw;
width: 100vw;
background-size: 100%;
padding: 32rpx 28rpx;
padding: 60rpx 68rpx 140rpx 68rpx;
box-sizing: border-box;
// border-radius: 0 0 100% 100%/0 0 70rpx 70rpx;
border-radius: 0 0 100% 100%/0 0 70rpx 70rpx;
overflow: hidden;
margin: 24rpx 28rpx;
border-radius: 24rpx;
// #ifdef MP-WEIXIN
padding-top: 160rpx;
// #endif
height: 352rpx;
.title {
text-align: left;
line-height: 1;
color: #F6F6F6;
margin-bottom: 24rpx;
}
.balance {
@@ -63,12 +61,7 @@
text-align: left;
line-height: 1;
margin-bottom: 20rpx;
// font-size: 64rpx;
font-size: 80rpx;
line-height: 112rpx;
font-weight: 500 !important;
font-family: PingFang SC;
font-size: 64rpx;
}
.flex-box {
@@ -94,65 +87,19 @@
}
}
}
.btns{
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
position: relative;
gap: 22rpx;
margin-top: 32rpx;
.btn{
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
height: 80rpx;
box-sizing: border-box;
font-size: 32rpx;
-webkit-flex-shrink: 0;
flex-shrink: 0;
text-align: center;
font-family: PingFang SC;
border-radius: 180rpx;
background: transparent;
color: #fff;
font-style: normal;
font-weight: 500;
line-height: normal;
border: 2rpx solid #fff;
:nth-child(2) {
background: #fff;
color: #4285f8;
}
}
.recharge{
background: #fff;
color: #4285f8;
}
}
}
.menu-wrap {
border-radius: 20rpx;
margin: 0 24rpx;
padding: 0 24rpx;
padding: 0 30rpx;
background: #fff;
// transform: translateY(-90rpx);
transform: translateY(-90rpx);
.menu-item {
display: flex;
align-items: center;
padding: 4rpx 0;
padding: 12rpx 0;
.icon {
height: 80rpx;

View File

@@ -15,10 +15,9 @@ export default {
//请求数据
getData(mescroll) {
this.isShowEmpty = false;
let url = "/api/goodscollect/page"
let array = []
this.$api.sendRequest({
url: url,
url: '/api/goodscollect/page',
data: {
page_size: mescroll.size,
page: mescroll.num,

View File

@@ -184,22 +184,20 @@ export default {
this.memberInfoformData.nickName = this.memberInfo.nickname; //昵称
this.memberInfoformData.realName = this.memberInfo.realname ? this.memberInfo.realname : '请输入真实姓名'; //真实姓名
this.memberInfoformData.sex = this.memberInfo.sex == 0 ? '未知' : this.memberInfo.sex == 1 ? '男' : '女'; //性别
this.memberInfoformData.birthday = this.memberInfo.birthday ? this.$util.timeStampTurnTime(this.memberInfo.birthday, 'YYYY-MM-DD') : '请选择生日'; //生日
this.memberInfoformData.birthday = this.memberInfo.birthday ? this.$util.timeStampTurnTime(this.memberInfo.birthday, 'Y-m-d') : '请选择生日'; //生日
this.memberInfoformData.mobile = this.memberInfo.mobile; //手机号
this.formData.username = this.memberInfo.username; //用户名
this.formData.nickName = this.memberInfo.nickname; //昵称
this.formData.realName = this.memberInfo.realname; //真实姓名
this.formData.sex = this.memberInfo.sex; //性别
this.formData.birthday = this.memberInfo.birthday ? this.$util.timeStampTurnTime(this.memberInfo.birthday, 'YYYY-MM-DD') : ''; //生日
this.formData.birthday = this.memberInfo.birthday ? this.$util.timeStampTurnTime(this.memberInfo.birthday, 'Y-m-d') : ''; //生日
this.formData.provinceId = this.memberInfo.province_id;
this.formData.cityId = this.memberInfo.city_id;
this.formData.districtId = this.memberInfo.district_id;
this.formData.fullAddress = this.memberInfo.full_address;
this.formData.address = this.memberInfo.address;
if (this.memberInfo.full_address) this.defaultRegions = [this.memberInfo
.province_id, this.memberInfo.city_id, this.memberInfo.district_id
];
if (this.memberInfo.full_address) this.defaultRegions = [this.memberInfo.province_id, this.memberInfo.city_id, this.memberInfo.district_id];
},
// 切换编辑项
modifyInfo(action) {
@@ -239,35 +237,6 @@ export default {
});
}
},
cancellation() {
uni.showModal({
title: '风险提示',
content: '确定要注销当前账号吗?',
confirmColor: '#000000',
success: res => {
if (res.confirm) {
this.$api.sendRequest({
url: '/membercancel/api/membercancel/apply',
success: rres => {
let cancellation_condition = rres.data.is_audit;
if (rres.code >= 0) {
this.$store.commit('setToken', '');
this.$store.commit('setMemberInfo', '');
this.$store.dispatch('emptyCart');
this.$store.dispatch('emptyCart');
uni.removeStorageSync('authInfo');
this.$util.redirectTo('/pages/member/index');
} else {
this.$util.showToast({
title: rres.message
});
}
}
});
}
}
});
},
getCancelStatus() {
this.$api.sendRequest({
url: '/membercancel/api/membercancel/info',
@@ -288,7 +257,7 @@ export default {
});
}
} else {
this.$util.redirectTo('/pages_tool/member/assets', {
this.$util.redirectTo('/pages_tool/member/cancellation', {
back: '/pages_tool/member/info'
});
}
@@ -327,8 +296,7 @@ export default {
this.$store.commit('setToken', '');
this.$store.commit('setMemberInfo', '');
this.$store.dispatch('emptyCart');
this.$store.dispatch('emptyCart');
uni.removeStorageSync('authInfo');
// uni.removeStorageSync('authInfo');
this.$util.redirectTo('/pages/member/index');
}
}
@@ -616,30 +584,25 @@ export default {
name: 'currentPassword',
checkType: 'required',
errorMsg: this.$lang("pleaseInputOldPassword")
},
{
name: 'newPassword',
checkType: 'required',
errorMsg: this.$lang("pleaseInputNewPassword")
}
];
}, {
name: 'newPassword',
checkType: 'required',
errorMsg: this.$lang("pleaseInputNewPassword")
}];
} else {
var rule = [{
name: 'mobileVercode',
checkType: 'required',
errorMsg: this.$lang("confirmCodeInput")
},
{
name: 'mobileDynacode',
checkType: 'required',
errorMsg: this.$lang("animateCodeInput")
},
{
name: 'newPassword',
checkType: 'required',
errorMsg: this.$lang("pleaseInputNewPassword")
}
];
}, {
name: 'mobileDynacode',
checkType: 'required',
errorMsg: this.$lang("animateCodeInput")
}, {
name: 'newPassword',
checkType: 'required',
errorMsg: this.$lang("pleaseInputNewPassword")
}];
}
let regConfig = this.registerConfig;
@@ -725,7 +688,7 @@ export default {
// ------------------------修改手机号------------------------------
// 验证手机号
vertifyMobile() {
verifyMobile() {
var rule = [{
name: 'mobile',
checkType: 'required',
@@ -746,7 +709,7 @@ export default {
},
// 检测手机号是否存在
async checkMobile() {
if (!this.vertifyMobile()) return;
if (!this.verifyMobile()) return;
let res = await this.$api.sendRequest({
url: '/api/member/checkmobile',
data: {
@@ -764,7 +727,7 @@ export default {
},
// 发送短信动态码
async bindMoblieCode() {
async bindMobileCode() {
if (this.seconds != 120) return;
var rule = [{
name: 'mobile',

View File

@@ -52,7 +52,7 @@ export default {
},
copyUrl() {
let text = this.$config.h5Domain + '/pages/index/index';
if (this.memberInf && this.memberInfo.member_id) text += '?source_member=' + this.memberInfo.member_id;
if (this.memberInfo && this.memberInfo.member_id) text += '?source_member=' + this.memberInfo.member_id;
this.$util.copy(text, () => {
this.closeSharePopup();
});

View File

@@ -52,8 +52,7 @@ export default {
}
this.headimg = this.memberInfo.headimg;
this.signDaysSeries = this.memberInfo.sign_days_series;
this.getMemberInfo();
this.getSignPointData();
this.getSignGrowthData();
this.setPublicShare();
@@ -61,6 +60,16 @@ export default {
this.getIsSign();
},
methods: {
getMemberInfo(){
this.$api.sendRequest({
url: '/api/member/info',
success: (res) => {
if (res.code >= 0) {
this.signDaysSeries = res.data.sign_days_series;
}
}
});
},
// 获取签到累积积分
getSignPointData() {
this.$api.sendRequest({