mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
优化
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 用户信息 -->
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user