|
|
|
@ -11,33 +11,41 @@ |
|
|
|
|
|
|
|
|
|
<div class="secondaryBox majorBoxStyle majorBoxStyleBc"> |
|
|
|
|
<div v-show="isRemake === false" class="profileContent"> |
|
|
|
|
<span class="secondaryTitle">{{ $t('personal.profile.basicInfo.userName') }}:</span> |
|
|
|
|
<span class="secondaryTitle" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.userName') }}:</span |
|
|
|
|
> |
|
|
|
|
<span class="secondaryCont">{{ userName }}</span> |
|
|
|
|
<div |
|
|
|
|
class="btnRemake" |
|
|
|
|
@click="remakeName" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.changeNameBtn') }}</div> |
|
|
|
|
<div class="btnRemake" @click="remakeName"> |
|
|
|
|
{{ $t('personal.profile.basicInfo.changeNameBtn') }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-show="isRemake == true" class="profileContent"> |
|
|
|
|
<span class="secondaryTitle">{{ $t('personal.profile.basicInfo.userName') }}:</span> |
|
|
|
|
<el-input v-model="userName" :placeholder="$t('personal.profile.basicInfo.userName_p')"></el-input> |
|
|
|
|
<div |
|
|
|
|
class="btnHandle" |
|
|
|
|
@click="renameSuccess" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.affirm') }}</div> |
|
|
|
|
<div |
|
|
|
|
class="btnHandle" |
|
|
|
|
@click="remakeName('cancel')" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.cancel') }}</div> |
|
|
|
|
<span class="secondaryTitle" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.userName') }}:</span |
|
|
|
|
> |
|
|
|
|
<el-input |
|
|
|
|
v-model="userName" |
|
|
|
|
:placeholder="$t('personal.profile.basicInfo.userName_p')" |
|
|
|
|
></el-input> |
|
|
|
|
<div class="btnHandle" @click="renameSuccess"> |
|
|
|
|
{{ $t('personal.profile.basicInfo.affirm') }} |
|
|
|
|
</div> |
|
|
|
|
<div class="btnHandle" @click="remakeName('cancel')"> |
|
|
|
|
{{ $t('personal.profile.basicInfo.cancel') }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="secondaryBox majorBoxStyle"> |
|
|
|
|
<div class="profileContent"> |
|
|
|
|
<span class="secondaryTitle">{{ $t('personal.profile.basicInfo.loginPasswrod') }}:</span> |
|
|
|
|
<span class="secondaryTitle" |
|
|
|
|
>{{ $t('personal.profile.basicInfo.loginPasswrod') }}:</span |
|
|
|
|
> |
|
|
|
|
<span class="secondaryCont">*********</span> |
|
|
|
|
<router-link to="/profile/change-password"> |
|
|
|
|
<div class="btnRemake">{{ $t('personal.profile.basicInfo.changePasswordBtn') }}</div> |
|
|
|
|
<div class="btnRemake"> |
|
|
|
|
{{ $t('personal.profile.basicInfo.changePasswordBtn') }} |
|
|
|
|
</div> |
|
|
|
|
</router-link> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -46,7 +54,9 @@ |
|
|
|
|
<div class="loginHistory" :style="{height: calac + 'px'}"> |
|
|
|
|
<div class="majorBox"> |
|
|
|
|
<div class="majorTitleBox majorBoxStyle"> |
|
|
|
|
<p class="majorTitle">{{ $t('personal.profile.loginHistory.title') }}</p> |
|
|
|
|
<p class="majorTitle"> |
|
|
|
|
{{ $t('personal.profile.loginHistory.title') }} |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="loginHistory" stripe style="width: 100%"> |
|
|
|
@ -55,23 +65,30 @@ |
|
|
|
|
:label="$t('personal.profile.loginHistory.table_header_time')" |
|
|
|
|
> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span class="timeData">{{ scope.row.createTime.split(' ')[0].replace(/-/g, '/') }}</span> |
|
|
|
|
<span class="timeData timeDataAfter">{{ scope.row.createTime.split(' ')[1] }}</span> |
|
|
|
|
<span class="timeData">{{ |
|
|
|
|
scope.row.createTime.split(' ')[0].replace(/-/g, '/') |
|
|
|
|
}}</span> |
|
|
|
|
<span class="timeData timeDataAfter">{{ |
|
|
|
|
scope.row.createTime.split(' ')[1] |
|
|
|
|
}}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="mobilePhone" :label="$t('personal.profile.loginHistory.phone')"></el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="mobilePhone" |
|
|
|
|
:label="$t('personal.profile.loginHistory.phone')" |
|
|
|
|
></el-table-column> |
|
|
|
|
<el-table-column prop="ipAddress" label="IP"></el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="status" |
|
|
|
|
:label="$t('personal.profile.loginHistory.table_header_status')" |
|
|
|
|
> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span |
|
|
|
|
v-show="scope.row.status === 'SUCCESS'" |
|
|
|
|
>{{ $t('personal.profile.loginHistory.success') }}</span> |
|
|
|
|
<span |
|
|
|
|
v-show="scope.row.status === 'FAIL'" |
|
|
|
|
>{{ $t('personal.profile.loginHistory.fail') }}</span> |
|
|
|
|
<span v-show="scope.row.status === 'SUCCESS'">{{ |
|
|
|
|
$t('personal.profile.loginHistory.success') |
|
|
|
|
}}</span> |
|
|
|
|
<span v-show="scope.row.status === 'FAIL'">{{ |
|
|
|
|
$t('personal.profile.loginHistory.fail') |
|
|
|
|
}}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -127,33 +144,33 @@ export default { |
|
|
|
|
methods: { |
|
|
|
|
// 取消商家 |
|
|
|
|
getMerchant() { |
|
|
|
|
this.$confirm( |
|
|
|
|
this.$t('exchangeotc.merchant.cao'), |
|
|
|
|
this.$t('exchangeotc.merchant.tishi'), |
|
|
|
|
{ |
|
|
|
|
confirmButtonText: this.$t('exchangeotc.merchant.sure'), |
|
|
|
|
cancelButtonText: this.$t('exchangeotc.merchant.delete'), |
|
|
|
|
type: 'warning', |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
.then(() => { |
|
|
|
|
getCancelApply().then(res => { |
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: this.$t('exchangeotc.merchant.success'), |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
// this.$confirm( |
|
|
|
|
// this.$t('exchangeotc.merchant.cao'), |
|
|
|
|
// this.$t('exchangeotc.merchant.tishi'), |
|
|
|
|
// { |
|
|
|
|
// confirmButtonText: this.$t('exchangeotc.merchant.sure'), |
|
|
|
|
// cancelButtonText: this.$t('exchangeotc.merchant.delete'), |
|
|
|
|
// type: 'warning', |
|
|
|
|
// } |
|
|
|
|
// ) |
|
|
|
|
// .then(() => { |
|
|
|
|
getCancelApply().then(res => { |
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'info', |
|
|
|
|
message: this.$t('exchangeotc.merchant.deled'), |
|
|
|
|
type: 'success', |
|
|
|
|
message: this.$t('exchangeotc.merchant.success'), |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// }) |
|
|
|
|
// .catch(() => { |
|
|
|
|
// this.$message({ |
|
|
|
|
// type: 'info', |
|
|
|
|
// message: this.$t('exchangeotc.merchant.deled'), |
|
|
|
|
// }); |
|
|
|
|
// }); |
|
|
|
|
}, |
|
|
|
|
remakeName(e) { |
|
|
|
|
if (e == 'cancel') { |
|
|
|
|