初始化商家端

This commit is contained in:
wangxiaowei
2025-04-30 14:08:39 +08:00
commit 68b408b1e7
568 changed files with 118884 additions and 0 deletions

View File

@ -0,0 +1,283 @@
<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center forgotPassword_flex_0"
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub forgotPassword_fd0_0'>
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
<text class='fu-iconfont2 forgotPassword_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
data-url="1">&#xE794;</text>
</view>
<view class='flex flex-wrap align-stretch justify-center flex-sub'>
<text class='forgotPassword_fd0_0_c1_c0'>忘记密码</text>
</view>
<view class='flex flex-wrap align-center forgotPassword_fd0_0_c2'>
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
<!---flex布局flex布局开始-->
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout forgotPassword_flex_1">
<view class='flex flex-wrap align-center forgotPassword_fd1_0'>
<text class='forgotPassword_fd1_0_c0'>欢迎来到萬家商超商家端</text>
</view>
<view class='flex flex-direction flex-wrap align-stretch forgotPassword_fd1_1'>
<text class='forgotPassword_fd1_1_c0'>账号</text>
<view class='flex flex-wrap align-center justify-between'>
<input type="number" placeholder="请输入手机号" confirm-type="done" :maxlength="11"
placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx" v-model="mible" />
</view>
</view>
<view class='flex flex-direction flex-wrap align-stretch forgotPassword_fd1_2'>
<text class='forgotPassword_fd1_2_c0'>验证码</text>
<view class='flex flex-wrap align-center justify-between'>
<input class="flex-sub codeLogon_fd1_1_c1" type="number" placeholder="请输入验证码" confirm-type="done" :maxlength="4"
placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx" v-model="code" />
<benben-send-verification-code class='flex forgotPassword_fd1_2_c1_c1' after-text='后重新获取'
before-text='获取验证码' type='2' :phone="mible"></benben-send-verification-code>
</view>
</view>
<view class='flex flex-direction flex-wrap align-stretch forgotPassword_fd1_3'>
<text class='forgotPassword_fd1_3_c0'>密码</text>
<view class='flex flex-wrap align-center justify-between'>
<benben-flex-password-diy v-model="Passworld"
class-name="flex flex align-center forgotPassword_fd1_3_c1_c0"
:placeholder="'请输入密码(6~12位字母+数字)'" :maxlength="12" :default-type='true'
placeholder-style="color:#999;font-size:32rpx">
<template #show>
<text class='fu-iconfont2 forgotPassword_fd1_3_c1_c0_icon1'
data-type="show">&#xE837;</text>
</template>
<template #hide>
<text class='fu-iconfont2 forgotPassword_fd1_3_c1_c0_icon2'
data-type="hide">&#xEBCC;</text>
</template>
</benben-flex-password-diy>
</view>
</view>
<view class='flex flex-wrap align-center forgotPassword_fd1_4'>
<button class='flex-sub forgotPassword_fd1_4_c0' @tap.stop="logetLoginFunc()">确定</button>
</view>
</view>
<!---flex布局flex布局结束-->
</view>
</template>
<script>
import {
validate
} from '@/common/utils/validate.js'
export default {
components: {},
data() {
return {
"mible": "",
"code": "",
"Passworld": "",
is_click:false
};
},
computed: {
themeColor() {
return this.$store.getters.themeColor
},
},
methods: {
//忘记密码
logetLoginFunc() {
if (!validate(this.mible, 'require')) {
this.$message.info('手机号不能为空');
return false;
}
if (!validate(this.mible, 'phone')) {
this.$message.info('请输入正确的手机号');
return false;
}
if (!validate(this.code, 'require')) {
this.$message.info('验证码不能为空');
return false;
}
if (!validate(this.code, 'captcha')) {
this.$message.info('请输入正确的验证码');
return false;
}
if (!validate(this.Passworld, 'require')) {
this.$message.info('密码不能为空');
return false;
}
if (!validate(this.Passworld, 'password')) {
this.$message.info('请输入正确的密码格式');
return false;
}
// 加载动画完成
this.is_click = true;
// 调用重置密码接口
this.$api
.post(global.apiUrls.postForgetPassword, {
password: this.Passworld,
account: this.mible,
code: this.code,
cate:1,
type:2,
account_type:"mobile"
})
.then(res => {
this.is_click = false;
// 重置密码成功跳转密码登录页面进行登录
if (res.data.code == 1 && res.data.data) {
// 重置密码成功提示
this.$message.info(res.data.msg);
setTimeout(() => {
uni.navigateBack({
delta: 1
});
}, 500);
} else {
// 重置密码失败提示
this.$message.info(res.data.msg);
}
});
}
}
};
</script>
<style lang="scss" scoped>
.page {
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background: url(/static/images/81.png) no-repeat, rgba(255, 255, 255, 1);
background-size: 100% auto !important;
}
.forgotPassword_flex_0 {
background: transparent;
width: 750rpx;
height: 88rpx;
overflow: hidden;
z-index: 10;
top: 0rpx;
background-size: 100% auto !important;
}
.forgotPassword_fd0_0_c2 {
width: 32rpx;
height: 32rpx;
}
.forgotPassword_fd0_0_c1_c0 {
color: #333333;
font-size: 36rpx;
font-weight: 500;
line-height: 36rpx;
}
.forgotPassword_fd0_0_c0_c0 {
font-size: 32rpx;
font-weight: 500;
color: #333;
line-height: 88rpx;
}
.forgotPassword_fd0_0 {
margin: 0rpx 32rpx 0rpx 32rpx;
}
.forgotPassword_flex_1 {
padding: 88rpx 75rpx 0rpx 75rpx;
}
.forgotPassword_fd1_4_c0 {
background: rgba(255, 147, 0, 1);
border-radius: 44rpx 44rpx 44rpx 44rpx;
font-size: 32rpx;
color: #fff;
height: 80rpx;
line-height: 80rpx;
}
.forgotPassword_fd1_4 {
padding: 88rpx 0rpx 0rpx 0rpx;
}
.forgotPassword_fd1_3_c1_c0_icon2 {
width: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 40rpx;
}
.forgotPassword_fd1_3_c1_c0_icon1 {
width: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 40rpx;
}
::v-deep .forgotPassword_fd1_3_c1_c0 {
width: 600rpx;
font-size: 32rpx;
height: 50rpx;
}
.forgotPassword_fd1_3_c0 {
margin: 0rpx 0rpx 24rpx 0rpx;
color: #333333;
font-size: 30rpx;
font-weight: 600;
line-height: 32rpx;
}
.forgotPassword_fd1_3 {
border-bottom: 1px solid #eee;
padding: 40rpx 0rpx 20rpx 0rpx;
}
.forgotPassword_fd1_2_c1_c1 {
font-size: 24rpx;
color: #FF7F1E;
font-weight: 400;
}
.forgotPassword_fd1_2_c0 {
margin: 0rpx 0rpx 24rpx 0rpx;
color: #333333;
font-size: 30rpx;
font-weight: 600;
line-height: 32rpx;
}
.forgotPassword_fd1_2 {
border-bottom: 1px solid #eee;
padding: 40rpx 0rpx 20rpx 0rpx;
}
.forgotPassword_fd1_1_c0 {
margin: 0rpx 0rpx 24rpx 0rpx;
color: #333333;
font-size: 30rpx;
font-weight: 600;
line-height: 32rpx;
}
.forgotPassword_fd1_1 {
border-bottom: 1px solid #eee;
padding: 40rpx 0rpx 20rpx 0rpx;
}
.forgotPassword_fd1_0_c0 {
color: #333333;
font-size: 50rpx;
font-weight: 600;
line-height: 50rpx;
}
.forgotPassword_fd1_0 {
margin: 0rpx 0rpx 24rpx 0rpx;
}
</style>