This commit is contained in:
Eratosici
2022-01-25 09:13:46 +08:00
parent f0c3b808ca
commit 4c19432334
3 changed files with 19 additions and 6 deletions

View File

@@ -67,7 +67,14 @@ page {
}
.none-login .click-login{
font-size:26rpx;
color: #777;
}
.none-login .unlogin,
.none-login .click-login {
text-align: left;
padding: 0;
}
.binding-phone {
position: relative;

View File

@@ -30,12 +30,12 @@
</view>
<view class="userinfo-none" v-if="!isAuthInfo">
<view class="default-pic">
<view class="default-pic" @tap="toLogin">
<image src="../../static/images/icon/head04.png"></image>
</view>
<view class="none-login">
<button class="unlogin" @tap="toLogin">未登录</button>
<button class="click-login" @tap="toLogin">点击账号登录</button>
<view class="none-login" @tap="toLogin">
<button class="unlogin">未登录</button>
<button class="click-login">点击登录账号</button>
</view>
</view>
<!-- end 用户信息 -->

View File

@@ -87,7 +87,8 @@ export default {
categoryTreeProps: {
value: 'categoryId',
label: 'categoryName'
}
},
isSubmit: false
}
},
components: {
@@ -144,6 +145,10 @@ export default {
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
if (this.isSubmit) {
return
}
this.isSubmit = true
this.$http({
url: this.$http.adornUrl(`/prod/category`),
method: this.dataForm.categoryId ? 'put' : 'post',
@@ -160,8 +165,9 @@ export default {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
duration: 1000,
onClose: () => {
this.isSubmit = false
this.visible = false
this.$emit('refreshDataList')
}