申请商家修改

master
钟海欣 5 years ago
parent 77ca98477a
commit 92096dc931
  1. 2
      src/api/coin.js
  2. 36
      src/pages/echangeGoods/merchant.vue
  3. 46
      src/pages/exchange.vue

@ -54,7 +54,7 @@ export function getTotal() {
} }
//确认申请商家 //确认申请商家
export function getMarketApplyl() { export function getMarketApply() {
return request({ return request({
url: marketUrl + '/marketApply', url: marketUrl + '/marketApply',
method: 'post', method: 'post',

@ -9,11 +9,15 @@
</div> </div>
<div class="merchant-contant" v-html="rule"></div> <div class="merchant-contant" v-html="rule"></div>
<div class="merchant-che"> <div class="merchant-che">
<el-checkbox v-model="checked">{{$t('exchangeotc.merchant.look')}}</el-checkbox> <el-checkbox v-model="checked">{{
$t('exchangeotc.merchant.look')
}}</el-checkbox>
</div> </div>
<!-- 立即申请 --> <!-- 立即申请 -->
<div class="merchant-btn"> <div class="merchant-btn">
<el-button @click="handleVis()">{{$t('exchangeotc.merchant.promptly')}}</el-button> <el-button @click="handleVis()">{{
$t('exchangeotc.merchant.promptly')
}}</el-button>
</div> </div>
</div> </div>
@ -27,15 +31,19 @@
{{ $t('exchangeotc.merchant.wallet') }} {{ $t('exchangeotc.merchant.wallet') }}
{{ $t('exchangeotc.merchant.fou') }} {{ $t('exchangeotc.merchant.fou') }}
</div> </div>
<div <div class="vis-contant" style="margin-top:20px;">
class="vis-contant" {{ $t('exchangeotc.merchant.deposit') }}:{{ merchantCAmount }}
style="margin-top:20px;" {{ merchantCion }}
>{{$t('exchangeotc.merchant.deposit')}}:{{merchantCAmount}} {{merchantCion}}</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- --> <!-- -->
<el-button @click="dialogVisible = false">{{$t('exchangeotc.merchant.delete')}}</el-button> <el-button @click="dialogVisible = false">{{
$t('exchangeotc.merchant.delete')
}}</el-button>
<!-- --> <!-- -->
<el-button type="primary" @click="handleSure()">{{$t('exchangeotc.merchant.sure')}}</el-button> <el-button type="primary" @click="handleSure()">{{
$t('exchangeotc.merchant.sure')
}}</el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -58,7 +66,7 @@ import NavHeader from '@/components/common/header';
import Footer from '@/components/common/footer'; import Footer from '@/components/common/footer';
import {getMerchant} from '@/api/priceSysconf'; import {getMerchant} from '@/api/priceSysconf';
import {getDeposit, getTotal, getMarketApplyl} from '@/api/coin'; import {getDeposit, getTotal, getMarketApply} from '@/api/coin';
// //
import {getOTCBtc} from '@/api/btc.js'; import {getOTCBtc} from '@/api/btc.js';
@ -124,10 +132,15 @@ export default {
// //
handleSure() { handleSure() {
this.checked = false; this.checked = false;
getMarketApplyl().then(res => { getMarketApply().then(res => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.dialogVisible = false; this.dialogVisible = false;
this.dialogSure = true; // this.dialogSure = true;
//
this.$message.success(this.$t('exchangeotc.merchant.bemarket'));
setInterval(() => {
window.location.href = '../exchange';
}, 1000);
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }
@ -288,4 +301,3 @@ export default {
} }
} }
</style> </style>

@ -29,11 +29,17 @@
<span v-if="applyStatus == 'MARKET'">{{ <span v-if="applyStatus == 'MARKET'">{{
$t('exchangeotc.merchant.market') $t('exchangeotc.merchant.market')
}}</span> }}</span>
<span <!-- <span
v-else-if="(applyStatus = 'null' || applyStatus == 'NOTMARKET')" v-else-if="(applyStatus = 'null' || applyStatus == 'NOTMARKET')"
class="apply" class="apply"
@click="handleSure()" @click="handleSure()"
>{{ $t('exchangeotc.merchant.name') }}</span >{{ $t('exchangeotc.merchant.name') }}</span
> -->
<!-- 申请商家 -->
<a
href="./echangeGoods/merchant"
v-else-if="(applyStatus = 'null' || applyStatus == 'NOTMARKET')"
>{{ $t('exchangeotc.merchant.name') }}</a
> >
<!-- 商家取消中 --> <!-- 商家取消中 -->
<span v-else-if="applyStatus == 'CANCELING'">{{ <span v-else-if="applyStatus == 'CANCELING'">{{
@ -59,7 +65,7 @@ import NavHeader from '@/components/common/header';
import Footer from '@/components/common/footer'; import Footer from '@/components/common/footer';
import ExchangeTableBi from '@/components/exchange/exchange-tabgle-bi'; import ExchangeTableBi from '@/components/exchange/exchange-tabgle-bi';
import ExchangeTableSell from '@/components/exchange/exchange-table-sell'; import ExchangeTableSell from '@/components/exchange/exchange-table-sell';
import {getMarketApplyl, cheackApply} from '@/api/coin'; import {getMarketApply, cheackApply} from '@/api/coin';
export default { export default {
name: 'exchange', name: 'exchange',
components: { components: {
@ -101,20 +107,20 @@ export default {
this.ifCommentInput = true; this.ifCommentInput = true;
}, },
// //
handleSure() { // handleSure() {
this.checked = false; // this.checked = false;
getMarketApplyl().then(res => { // getMarketApplyl().then(res => {
if (res.data.code === 200) { // if (res.data.code === 200) {
// // //
this.$message.success(this.$t('exchangeotc.merchant.bemarket')); // this.$message.success(this.$t('exchangeotc.merchant.bemarket'));
setInterval(() => { // setInterval(() => {
location.reload(); // // location.reload(); //
}, 1000); // }, 1000);
} else { // } else {
this.$message.error(res.data.msg); // this.$message.error(res.data.msg);
} // }
}); // });
}, // },
// //
getcheckApply() { getcheckApply() {
cheackApply().then(res => { cheackApply().then(res => {
@ -194,5 +200,13 @@ export default {
border-radius: 3px; border-radius: 3px;
cursor: pointer; cursor: pointer;
} }
a {
color: #fff;
display: inline-block;
padding: 9px 11px;
background-color: #e8494a;
border-radius: 3px;
cursor: pointer;
}
} }
</style> </style>

Loading…
Cancel
Save