申请取消商家按钮修改

master
钟海欣 5 years ago
parent b0b62021c1
commit 702dce68f0
  1. 19
      src/components/balances/bibi-balances/bibi-balances-table.vue
  2. 32
      src/pages/exchange.vue
  3. 105
      src/views/personal/profile.vue

@ -479,15 +479,12 @@ export default {
addEos({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'OTC',
walletType: 'C2C',
}).then(res => {
console.log(name.tokenSymbol);
console.log(name.addr);
if (res.data.code === 200) {
//
this.$message.success(this.$t('balances.table.add'));
// location.reload(); //
location.reload(); //
} else {
this.$message.error(res.data.msg);
}
@ -496,13 +493,11 @@ export default {
addBtc({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'OTC',
walletType: 'C2C',
}).then(res => {
console.log(name.tokenSymbol);
console.log(name.addr);
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
// location.reload(); //
location.reload(); //
} else {
this.$message.error(res.data.msg);
}
@ -511,13 +506,11 @@ export default {
addEth({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'OTC',
walletType: 'C2C',
}).then(res => {
console.log(name.tokenSymbol);
console.log(name.addr);
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
// location.reload(); //
location.reload(); //
} else {
this.$message.error(res.data.msg);
}

@ -6,9 +6,10 @@
<ul class="exchange-menu">
<li class="mensu-item">
<a
:class="showCommentInput === true?'buyTwo':'buy'"
:class="showCommentInput === true ? 'buyTwo' : 'buy'"
@click="hangdelClickShow()"
>{{$t('order.adver.adver_buy')}}</a>
>{{ $t('order.adver.adver_buy') }}</a
>
</li>
<li class="mensu-item">
<div class="line"></div>
@ -16,14 +17,17 @@
<li class="mensu-item">
<a
class="sell"
:class="ifCommentInput === true?'buyTwo':'buy'"
:class="ifCommentInput === true ? 'buyTwo' : 'buy'"
@click="hangdelClick()"
>{{$t('order.adver.adver_sell')}}</a>
>{{ $t('order.adver.adver_sell') }}</a
>
</li>
</ul>
<!-- 申请商家 -->
<div class="merchant">
<a href="./echangeGoods/merchant">{{$t('exchangeotc.merchant.name')}}</a>
<span class="apply" @click="handleSure()">{{
$t('exchangeotc.merchant.name')
}}</span>
</div>
<!-- 判断点击的时候什么 切换对应的子组件 -->
<!-- 购买 -->
@ -45,7 +49,7 @@ import NavHeader from '@/components/common/header';
import Footer from '@/components/common/footer';
import ExchangeTableBi from '@/components/exchange/exchange-tabgle-bi';
import ExchangeTableSell from '@/components/exchange/exchange-table-sell';
import {getMarketApplyl} from '@/api/coin';
export default {
name: 'exchange',
components: {
@ -82,6 +86,17 @@ export default {
this.showCommentInput = false;
this.ifCommentInput = true;
},
//
handleSure() {
this.checked = false;
getMarketApplyl().then(res => {
if (res.data.code === 200) {
this.$message.success(res.data.msg);
} else {
this.$message.error(res.data.msg);
}
});
},
},
};
</script>
@ -142,14 +157,13 @@ export default {
position: relative;
top: -55px;
left: -38px;
a {
.apply {
color: #fff;
display: inline-block;
padding: 9px 11px;
background-color: #e8494a;
border-radius: 3px;
cursor: pointer;
}
}
</style>

@ -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,16 +144,16 @@ 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(() => {
// 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({
@ -147,13 +164,13 @@ export default {
this.$message.error(res.data.msg);
}
});
})
.catch(() => {
this.$message({
type: 'info',
message: this.$t('exchangeotc.merchant.deled'),
});
});
// })
// .catch(() => {
// this.$message({
// type: 'info',
// message: this.$t('exchangeotc.merchant.deled'),
// });
// });
},
remakeName(e) {
if (e == 'cancel') {

Loading…
Cancel
Save