update code

This commit is contained in:
RuoYi
2025-03-28 23:15:14 +08:00
parent 3ea5d45faf
commit fb0656fe14
11 changed files with 26 additions and 59 deletions

View File

@@ -7,14 +7,7 @@
</view> </view>
</template> </template>
<script> <style scoped>
export default {
onLoad: function() {
}
}
</script>
<style>
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@@ -53,7 +53,7 @@
username: "admin", username: "admin",
password: "admin123", password: "admin123",
code: "", code: "",
uuid: '' uuid: ""
} }
} }
}, },
@@ -88,9 +88,9 @@
// 登录方法 // 登录方法
async handleLogin() { async handleLogin() {
if (this.loginForm.username === "") { if (this.loginForm.username === "") {
this.$modal.msgError("请输入您的账号") this.$modal.msgError("请输入账号")
} else if (this.loginForm.password === "") { } else if (this.loginForm.password === "") {
this.$modal.msgError("请输入您的密码") this.$modal.msgError("请输入密码")
} else if (this.loginForm.code === "" && this.captchaEnabled) { } else if (this.loginForm.code === "" && this.captchaEnabled) {
this.$modal.msgError("请输入验证码") this.$modal.msgError("请输入验证码")
} else { } else {
@@ -120,7 +120,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #ffffff; background-color: #ffffff;
} }

View File

@@ -38,7 +38,7 @@
</view> </view>
<view class="copyright"> <view class="copyright">
<view>Copyright &copy; 2022 ruoyi.vip All Rights Reserved.</view> <view>Copyright &copy; 2025 ruoyi.vip All Rights Reserved.</view>
</view> </view>
</view> </view>
</template> </template>
@@ -54,7 +54,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #f8f8f8; background-color: #f8f8f8;
} }

View File

@@ -332,20 +332,7 @@
} }
</script> </script>
<style> <style scoped>
/* pages/uni-cropper/index.wxss */
.uni-content-info {
/* position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: block;
align-items: center;
flex-direction: column; */
}
.cropper-config { .cropper-config {
padding: 20rpx 40rpx; padding: 20rpx 40rpx;
} }
@@ -382,8 +369,8 @@
image-orientation: 0deg !important; image-orientation: 0deg !important;
margin: 0 auto; margin: 0 auto;
} }
/* 移动图片效果 */
/* 移动图片效果 */
.uni-cropper-drag-box { .uni-cropper-drag-box {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -394,8 +381,8 @@
background: rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.6);
z-index: 1; z-index: 1;
} }
/* 内部的信息 */
/* 内部的信息 */
.uni-corpper-crop-box { .uni-corpper-crop-box {
position: absolute; position: absolute;
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
@@ -411,8 +398,8 @@
outline: 1rpx solid #69f; outline: 1rpx solid #69f;
outline-color: rgba(102, 153, 255, .75) outline-color: rgba(102, 153, 255, .75)
} }
/* 横向虚线 */
/* 横向虚线 */
.uni-cropper-dashed-h { .uni-cropper-dashed-h {
position: absolute; position: absolute;
top: 33.33333333%; top: 33.33333333%;
@@ -422,8 +409,8 @@
border-top: 1rpx dashed rgba(255, 255, 255, 0.5); border-top: 1rpx dashed rgba(255, 255, 255, 0.5);
border-bottom: 1rpx dashed rgba(255, 255, 255, 0.5); border-bottom: 1rpx dashed rgba(255, 255, 255, 0.5);
} }
/* 纵向虚线 */
/* 纵向虚线 */
.uni-cropper-dashed-v { .uni-cropper-dashed-v {
position: absolute; position: absolute;
left: 33.33333333%; left: 33.33333333%;
@@ -433,8 +420,8 @@
border-left: 1rpx dashed rgba(255, 255, 255, 0.5); border-left: 1rpx dashed rgba(255, 255, 255, 0.5);
border-right: 1rpx dashed rgba(255, 255, 255, 0.5); border-right: 1rpx dashed rgba(255, 255, 255, 0.5);
} }
/* 四个方向的线 为了之后的拖动事件*/
/* 四个方向的线 为了之后的拖动事件*/
.uni-cropper-line-t { .uni-cropper-line-t {
position: absolute; position: absolute;
display: block; display: block;
@@ -615,8 +602,8 @@
margin-top: -3rpx; margin-top: -3rpx;
cursor: n-resize; cursor: n-resize;
} }
/* 裁剪框预览内容 */
/* 裁剪框预览内容 */
.uni-cropper-viewer { .uni-cropper-viewer {
position: relative; position: relative;
width: 100%; width: 100%;

View File

@@ -77,8 +77,6 @@
</template> </template>
<script> <script>
import storage from '@/utils/storage'
export default { export default {
data() { data() {
return { return {
@@ -110,13 +108,6 @@
handleToAvatar() { handleToAvatar() {
this.$tab.navigateTo('/pages/mine/avatar/index') this.$tab.navigateTo('/pages/mine/avatar/index')
}, },
handleLogout() {
this.$modal.confirm('确定注销并退出系统吗?').then(() => {
this.$store.dispatch('LogOut').then(() => {
this.$tab.reLaunch('/pages/index')
})
})
},
handleHelp() { handleHelp() {
this.$tab.navigateTo('/pages/mine/help/index') this.$tab.navigateTo('/pages/mine/help/index')
}, },
@@ -133,7 +124,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #f5f6f7; background-color: #f5f6f7;
} }

View File

@@ -91,7 +91,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #ffffff; background-color: #ffffff;
} }

View File

@@ -73,7 +73,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #ffffff; background-color: #ffffff;
} }

View File

@@ -49,7 +49,7 @@
}, },
handleLogout() { handleLogout() {
this.$modal.confirm('确定注销并退出系统吗?').then(() => { this.$modal.confirm('确定注销并退出系统吗?').then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {}).finally(()=>{
this.$tab.reLaunch('/pages/index') this.$tab.reLaunch('/pages/index')
}) })
}) })

View File

@@ -49,7 +49,7 @@
password: "", password: "",
confirmPassword: "", confirmPassword: "",
code: "", code: "",
uuid: '' uuid: ""
} }
} }
}, },
@@ -106,19 +106,12 @@
this.getCode() this.getCode()
} }
}) })
},
// 注册成功后,处理函数
registerSuccess(result) {
// 设置用户信息
this.$store.dispatch('GetInfo').then(res => {
this.$tab.reLaunch('/pages/index')
})
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
page { page {
background-color: #ffffff; background-color: #ffffff;
} }

View File

@@ -106,7 +106,7 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
page { page {
display: flex; display: flex;
@@ -121,7 +121,6 @@
font-size: 14px; font-size: 14px;
line-height: inherit; line-height: inherit;
} }
/* #endif */ /* #endif */
.text { .text {

View File

@@ -69,6 +69,10 @@ export default {
}, },
// 关闭遮罩层 // 关闭遮罩层
closeLoading() { closeLoading() {
uni.hideLoading() try {
uni.hideLoading()
} catch (e) {
console.log(e)
}
} }
} }