初始化万家商超用户端仓库

This commit is contained in:
wangxiaowei
2025-04-30 14:04:34 +08:00
commit 022c640d89
425 changed files with 160005 additions and 0 deletions

View File

@ -0,0 +1,164 @@
<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center setNewpswd_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub setNewpswd_fd0_0' >
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1" >
<text class='fu-iconfont2 setNewpswd_fd0_0_c0_c0' >&#xE794;</text>
</view>
<view class='flex flex-wrap align-stretch justify-center flex-sub' >
<text class='setNewpswd_fd0_0_c1_c0' >修改密码</text>
</view>
<view class='flex flex-wrap align-center setNewpswd_fd0_0_c2' >
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}" ></view>
<view class="flex flex-direction flex-wrap align-stretch setNewpswd_flex_1" >
<view class='flex flex-wrap align-center setNewpswd_fd1_0' >
<text class='setNewpswd_fd1_0_c0' >新密码</text>
<input class='flex-sub setNewpswd_fd1_0_c1' type="text" :focus='true' placeholder="请输入新密码" confirm-type="done" :maxlength="12" :password='true' placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx" v-model="newPwd" />
</view>
<view class='flex flex-wrap align-center setNewpswd_fd1_1' >
<text class='setNewpswd_fd1_1_c0' >确认新密码</text>
<input class='flex-sub setNewpswd_fd1_1_c1' type="text" :focus='true' placeholder="请再次输入新密码" confirm-type="done" :maxlength="12" :password='true' placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx" v-model="qrPwd" />
</view>
</view>
<view class="flex flex-direction flex-wrap align-center justify-center benben-position-layout flex setNewpswd_flex_2" >
<button class='setNewpswd_fd2_0' @tap.stop="changePwdPhoneFunc()" > </button>
</view>
<view :style="{height: '88rpx'}" ></view>
</view>
</template>
<script>
import {validate} from '@/common/utils/validate.js'
export default {
components:{},
data(){
return {"newPwd":"","qrPwd":"","phone":"","code":""};
},
computed:{
themeColor() {
return this.$store.getters.themeColor
},
},
watch:{},
onLoad(options){
let {phone,code}=options
if (phone !== undefined) this.phone = phone
if (code !== undefined) this.code = code
},
onUnload() {
},
onReady(){
},
onShow(){
},
onHide(){
},
onResize(){
},
onPullDownRefresh(){
},
onReachBottom(e){
},
onPageScroll(e){
},
methods:{
//设置密码
changePwdPhoneFunc(){
if(!validate(this.newPwd,'require')){
this.$message.info('新密码不能为空');
return false;
}
if(!validate(this.newPwd,'password')){
this.$message.info('请输入新密码6~12位字母+数字)');
return false;
}
if(!validate(this.qrPwd,'require')){
this.$message.info('确认新密码不能为空');
return false;
}
if(!validate(this.qrPwd,'password')){
this.$message.info('请输入确认密码6~12位字母+数字)');
return false;
}
if(!(this.newPwd == this.qrPwd)){
this.$message.info('两次输入密码不一致');
return false;
}
setTimeout(()=>{
this.$message.info('设置成功');
this.$urouter.navigateBack(2);
},1000)
}
}
};
</script>
<style lang="scss" scoped>
.page{
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background:rgba(248, 248, 248, 1);background-size: 100% auto !important;
}
.setNewpswd_flex_0{
border:1px solid #eee;background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
}
.setNewpswd_fd0_0_c2{
width:32rpx;height:32rpx;
}
.setNewpswd_fd0_0_c1_c0{
font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
}
.setNewpswd_fd0_0_c0_c0{
font-size:32rpx;font-weight:500;color:#333;line-height:88rpx;
}
.setNewpswd_fd0_0{
margin:0rpx 32rpx 0rpx 32rpx;
}
.setNewpswd_flex_1{
background:#fff;font-size:32rpx;background-size:100% auto !important;padding:0rpx 32rpx 0rpx 32rpx;
}
.setNewpswd_fd1_1_c1{
line-height:32rpx;font-size:32rpx;font-weight:400;color:#333;
}
.setNewpswd_fd1_1_c0{
font-size:32rpx;font-weight:400;font-style:normal;color:#333333;line-height:32rpx;
}
.setNewpswd_fd1_1{
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
}
.setNewpswd_fd1_0_c1{
line-height:32rpx;font-size:32rpx;font-weight:400;color:#333;
}
.setNewpswd_fd1_0_c0{
font-size:32rpx;font-weight:400;font-style:normal;color:#333333;line-height:32rpx;
}
.setNewpswd_fd1_0{
border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
}
.setNewpswd_flex_2{
width:750rpx;height:88rpx;overflow:hidden;z-index:10;bottom:calc(40rpx + var(--window-bottom));
}
.setNewpswd_fd2_0{
background:rgba(255, 147, 0, 1);border-radius:16rpx 16rpx 16rpx 16rpx;font-size:32rpx;color:#fff;width:686rpx;height:88rpx;line-height:88rpx;font-weight:400;
}
</style>