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>
</template>
<script>
export default {
onLoad: function() {
}
}
</script>
<style>
<style scoped>
.content {
display: flex;
flex-direction: column;

View File

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

View File

@ -38,7 +38,7 @@
</view>
<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>
</template>
@ -54,7 +54,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
page {
background-color: #f8f8f8;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -49,7 +49,7 @@
password: "",
confirmPassword: "",
code: "",
uuid: ''
uuid: ""
}
}
},
@ -106,19 +106,12 @@
this.getCode()
}
})
},
//
registerSuccess(result) {
//
this.$store.dispatch('GetInfo').then(res => {
this.$tab.reLaunch('/pages/index')
})
}
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
page {
background-color: #ffffff;
}

View File

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

View File

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