|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
|
|
<head> |
|
|
|
|
<meta charset="UTF-8"> |
|
|
|
|
<title>商家申请</title> |
|
|
|
|
<title>商家管理</title> |
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"> |
|
|
|
|
<link href="../../../lib/css/mui.min.css" rel="stylesheet" /> |
|
|
|
|
<!--引入公共样式--> |
|
|
|
@ -21,7 +21,9 @@ |
|
|
|
|
<!--baseJs--> |
|
|
|
|
<script src="../js/ajax/config_ajax.js"></script> |
|
|
|
|
<script src="../js/ajax/market_apply_ajax.js"></script> |
|
|
|
|
<script src="../js/ajax/market_user_ajax.js"></script> |
|
|
|
|
</head> |
|
|
|
|
|
|
|
|
|
<body> |
|
|
|
|
<div id='data-info'> |
|
|
|
|
<header class="mui-bar mui-bar-nav"> |
|
|
|
@ -29,23 +31,35 @@ |
|
|
|
|
<h1 class="mui-title">{{langue.title}}</h1> |
|
|
|
|
</header> |
|
|
|
|
<div class="mui-content"> |
|
|
|
|
<div class="txt-box"> |
|
|
|
|
<h4>{{langue.rule}}</h4> |
|
|
|
|
<!--<p>商家服务准则与制度标准会员需通过平台认证获取商家身份及权限。 申请商家条件如下: 1.需确保账户内拥有10000USDT,作为商家保证金,冻结于自身账户内。取消商家资格,将解冻此保证金。 |
|
|
|
|
2.商家需遵守按时打款、快速放行、不恶意卡单、不恶意拍单、不随意取消订单等诚信交易的基本原则。 优质的商家应当具备快速打款、快速放行,低申诉率、低取消率,服务态度好、服务意识强等特质。 商家基本准则: (1)、 |
|
|
|
|
对自己的广告负责,确认好广告价格、数量再上架;当人离开或者下线 时,定先下架广告。(单价根据实时价幅度的5%) (2)、熟知各个银行的转款规定,在订单有效时间内,高效完成转款。 |
|
|
|
|
(3)、当收到买家转款,核对好金额后,及时放行。(收到到账信息后, 放行时间不得超过30分钟) (4)、当有需要时,才申诉订单。不因和对手方发生纠纷,而恶意申诉。 (5)、商家对普通用户应怀有服务意识,反应及时、用语礼貌。 |
|
|
|
|
</p>--> |
|
|
|
|
<div v-html='marketFreezeRule'> |
|
|
|
|
{{marketFreezeRule}} |
|
|
|
|
<div v-show="marketUserStatus == 'NOTMARKET' || marketUserStatus == null"> |
|
|
|
|
<div class="txt-box"> |
|
|
|
|
<h4>{{langue.rule}}</h4> |
|
|
|
|
<!--<p>商家服务准则与制度标准会员需通过平台认证获取商家身份及权限。 申请商家条件如下: 1.需确保账户内拥有10000USDT,作为商家保证金,冻结于自身账户内。取消商家资格,将解冻此保证金。 |
|
|
|
|
2.商家需遵守按时打款、快速放行、不恶意卡单、不恶意拍单、不随意取消订单等诚信交易的基本原则。 优质的商家应当具备快速打款、快速放行,低申诉率、低取消率,服务态度好、服务意识强等特质。 商家基本准则: (1)、 |
|
|
|
|
对自己的广告负责,确认好广告价格、数量再上架;当人离开或者下线 时,定先下架广告。(单价根据实时价幅度的5%) (2)、熟知各个银行的转款规定,在订单有效时间内,高效完成转款。 |
|
|
|
|
(3)、当收到买家转款,核对好金额后,及时放行。(收到到账信息后, 放行时间不得超过30分钟) (4)、当有需要时,才申诉订单。不因和对手方发生纠纷,而恶意申诉。 (5)、商家对普通用户应怀有服务意识,反应及时、用语礼貌。 |
|
|
|
|
</p>--> |
|
|
|
|
<div v-html='marketFreezeRule'> |
|
|
|
|
{{marketFreezeRule}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="mui-input-row mui-checkbox mui-left"> |
|
|
|
|
<input id="agree-radio" name="radio" type="checkbox"> |
|
|
|
|
<label for="agree-radio" class="agree-radio">{{langue.checkThePrompt}}</label> |
|
|
|
|
</div> |
|
|
|
|
<div class="btn"> |
|
|
|
|
<button id="submitBtn" class="app-btn app-btn-darkly">{{langue.applyImmediately}}</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="mui-input-row mui-checkbox mui-left"> |
|
|
|
|
<input id="agree-radio" name="radio" type="checkbox"> |
|
|
|
|
<label for="agree-radio" class="agree-radio">{{langue.checkThePrompt}}</label> |
|
|
|
|
<div v-show="marketUserStatus == 'MARKET'" style="margin-top: 0.2rem;"> |
|
|
|
|
<div class="btn"> |
|
|
|
|
<button id="cancel-M" class="app-btn app-btn-darkly">{{langue.marketCancelBtn}}</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="btn"> |
|
|
|
|
<button id="submitBtn" class="app-btn app-btn-darkly">{{langue.applyImmediately}}</button> |
|
|
|
|
<div v-show="marketUserStatus == 'CANCELING'" style="margin-top: 0.2rem;"> |
|
|
|
|
<div class="btn"> |
|
|
|
|
<button class="app-btn app-btn-darkly" disabled>{{langue.canceling}}</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!--弹出框--> |
|
|
|
@ -69,7 +83,7 @@ |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
var langues = { |
|
|
|
|
zh_CN: { |
|
|
|
|
title: '商家申请', |
|
|
|
|
title: '商家管理', |
|
|
|
|
rule: '商家规则', |
|
|
|
|
note1: "请勾选商家规则", |
|
|
|
|
affirmBtn: '确认', |
|
|
|
@ -83,9 +97,15 @@ |
|
|
|
|
handleSuccess: '操作成功!', |
|
|
|
|
netError: '网络异常,请刷新重试!', |
|
|
|
|
balanceError: '余额不足!', |
|
|
|
|
marketCancelBtn: '取消市商', |
|
|
|
|
canceling: '取消中...', |
|
|
|
|
marketMsg: '确认是否取消商家?', |
|
|
|
|
marketNote: '提示', |
|
|
|
|
yes: '确认', |
|
|
|
|
no: '取消', |
|
|
|
|
}, |
|
|
|
|
zh_HK: { |
|
|
|
|
title: '商家申請', |
|
|
|
|
title: '商家管理', |
|
|
|
|
rule: '商家規則', |
|
|
|
|
note1: "請勾選商家規則", |
|
|
|
|
affirmBtn: '確認', |
|
|
|
@ -99,10 +119,15 @@ |
|
|
|
|
handleSuccess: '操作成功!', |
|
|
|
|
netError: '網路異常,請刷新重試!', |
|
|
|
|
balanceError: '餘額不足!', |
|
|
|
|
|
|
|
|
|
marketCancelBtn: '取消市商', |
|
|
|
|
canceling: '取消中...', |
|
|
|
|
marketMsg: '確認是否取消商家?', |
|
|
|
|
marketNote: '提示', |
|
|
|
|
yes: '確認', |
|
|
|
|
no: '取消', |
|
|
|
|
}, |
|
|
|
|
en_US: { |
|
|
|
|
title: 'Merchant', |
|
|
|
|
title: 'Merchant Management', |
|
|
|
|
rule: 'Business rules', |
|
|
|
|
note1: "Please tick the merchant rule", |
|
|
|
|
affirmBtn: 'confirm', |
|
|
|
@ -116,6 +141,12 @@ |
|
|
|
|
handleSuccess: 'Successful operation!', |
|
|
|
|
netError: 'Network exception, please refresh and try again!', |
|
|
|
|
balanceError: 'not sufficient funds!', |
|
|
|
|
marketCancelBtn: 'Cancel the market makers', |
|
|
|
|
canceling: 'To cancel the...', |
|
|
|
|
marketMsg: 'Confirm whether to cancel the market?', |
|
|
|
|
marketNote: 'Prompt', |
|
|
|
|
yes: 'Confirm', |
|
|
|
|
no: 'Cancel', |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
//2、页面上所有需要国际化的文字,包括提示,都通过Vue去引用,例子: |
|
|
|
@ -136,6 +167,7 @@ |
|
|
|
|
marketFreezeAmount: '-', |
|
|
|
|
marketFreezeRule: '', |
|
|
|
|
freeBalance: 0, |
|
|
|
|
marketUserStatus: null, //用户市商状态 |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
reload_coin_balances: function reload_coin_balances() { //触发钱包数据列表 |
|
|
|
@ -149,21 +181,15 @@ |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
/*主体代码块*/ |
|
|
|
|
mui.plusReady(function() { |
|
|
|
|
//查询保证金代币 |
|
|
|
|
selectMarketFreezeCoin(); |
|
|
|
|
//查询保证金数量 |
|
|
|
|
selectMarketFreezeAmount(); |
|
|
|
|
//规则查询 |
|
|
|
|
selectMarketFreezeRule(); |
|
|
|
|
//刷新钱包 |
|
|
|
|
dataInfo.reload_coin_balances(); |
|
|
|
|
//查询用户市商状态,再进行操作 |
|
|
|
|
selectStatusByUser(); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
/*事件代码块*/ |
|
|
|
|
document.getElementById("submitBtn").addEventListener("tap", function() { |
|
|
|
|
if (!document.getElementById("agree-radio").checked) { |
|
|
|
|
if(!document.getElementById("agree-radio").checked) { |
|
|
|
|
mui.toast(dataInfo.langue.note1); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
@ -173,7 +199,7 @@ |
|
|
|
|
}); |
|
|
|
|
//确认提交按钮 |
|
|
|
|
document.getElementById("sureBtn").addEventListener("tap", function() { |
|
|
|
|
if (dataInfo.freeBalance * 1 < dataInfo.marketFreezeAmount * 1) { |
|
|
|
|
if(dataInfo.freeBalance * 1 < dataInfo.marketFreezeAmount * 1) { |
|
|
|
|
mui.toast(dataInfo.langue.balanceError); |
|
|
|
|
} else { |
|
|
|
|
marketApply(); |
|
|
|
@ -184,10 +210,19 @@ |
|
|
|
|
dataInfo.bgStatus = false; |
|
|
|
|
dataInfo.popover_Status = false; |
|
|
|
|
}); |
|
|
|
|
//取消市商申请 |
|
|
|
|
document.getElementById("cancel-M").addEventListener("tap", function() { |
|
|
|
|
mui.confirm(dataInfo.langue.marketMsg, dataInfo.langue.marketNote, [dataInfo.langue.no, dataInfo.langue.yes], |
|
|
|
|
function(e) { |
|
|
|
|
if(e.index == 1) { |
|
|
|
|
cancelMarket(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
//钱包刷新触发事件 |
|
|
|
|
window.addEventListener("saveCoinsEven", function(e) { |
|
|
|
|
var balances = e.detail; |
|
|
|
|
if (balances[dataInfo.marketFreezeCoin]) { |
|
|
|
|
if(balances[dataInfo.marketFreezeCoin]) { |
|
|
|
|
dataInfo.freeBalance = balances[dataInfo.marketFreezeCoin].freeBalance; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -209,15 +244,15 @@ |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
plus.nativeUI.closeWaiting(); |
|
|
|
|
if (data.code == 200) { |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
dataInfo.bgStatus = false; |
|
|
|
|
dataInfo.popover_Status = false; |
|
|
|
|
mui.toast(dataInfo.langue.handleSuccess); |
|
|
|
|
mui.back(); |
|
|
|
|
} else if (data.code == 201) { |
|
|
|
|
} else if(data.code == 201) { |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
|
} else if (data.code == 202) { |
|
|
|
|
} else if(data.code == 202) { |
|
|
|
|
mui.toast(dataInfo.langue.logInElse); |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
@ -233,6 +268,40 @@ |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//申请取消市商 |
|
|
|
|
function cancelMarket() { |
|
|
|
|
plus.nativeUI.showWaiting(dataInfo.langue.waiting); |
|
|
|
|
mui.ajax(marketApplyAjax.CANCEL_APPLY.getUrl, { |
|
|
|
|
headers: { |
|
|
|
|
"X-Requested-Token": app.getTokenStorage(), // token头部 |
|
|
|
|
"locale": app.getLanguageLocalStorage() // 语种头部 |
|
|
|
|
}, |
|
|
|
|
dataType: 'json', |
|
|
|
|
type: marketApplyAjax.CANCEL_APPLY.getType, |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
plus.nativeUI.closeWaiting(); |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
mui.toast(dataInfo.langue.handleSuccess); |
|
|
|
|
mui.back(); |
|
|
|
|
} else if(data.code == 201) { |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
|
} else if(data.code == 202) { |
|
|
|
|
mui.toast(dataInfo.langue.logInElse); |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
|
} else { |
|
|
|
|
app.toast(data.msg); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
error: function(xhr, type, errorThrown) { |
|
|
|
|
plus.nativeUI.closeWaiting(); |
|
|
|
|
app.toast(dataInfo.langue.note15); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询保证金代币 |
|
|
|
|
function selectMarketFreezeCoin() { |
|
|
|
|
mui.ajax(otcConfigAjax.SELECT_MARKET_FREEZE_COIN.getUrl, { |
|
|
|
@ -244,14 +313,14 @@ |
|
|
|
|
type: otcConfigAjax.SELECT_MARKET_FREEZE_COIN.getType, |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
if (data.code == 200) { |
|
|
|
|
if (data.data != null) { |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
if(data.data != null) { |
|
|
|
|
dataInfo.marketFreezeCoin = data.data; |
|
|
|
|
} |
|
|
|
|
} else if (data.code == 201) { |
|
|
|
|
} else if(data.code == 201) { |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
|
} else if (data.code == 202) { |
|
|
|
|
} else if(data.code == 202) { |
|
|
|
|
mui.toast(dataInfo.langue.logInElse); |
|
|
|
|
//未登录,跳转登录页面 |
|
|
|
|
app.openWin(requestUrl.LOGIN.getUrl, requestUrl.LOGIN.getId); |
|
|
|
@ -271,12 +340,13 @@ |
|
|
|
|
type: otcConfigAjax.SELECT_MARKET_FREEZE_AMOUNT.getType, |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
if (data.code == 200) { |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
dataInfo.marketFreezeAmount = data.data; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询市商规则 |
|
|
|
|
function selectMarketFreezeRule() { |
|
|
|
|
mui.ajax(otcConfigAjax.SELECT_MARKET_FREEZE_RULE.getUrl, { |
|
|
|
@ -291,8 +361,42 @@ |
|
|
|
|
type: otcConfigAjax.SELECT_MARKET_FREEZE_RULE.getType, |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
if (data.code == 200) { |
|
|
|
|
dataInfo.marketFreezeRule = data.data.textContent; |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
if(data.data) { |
|
|
|
|
dataInfo.marketFreezeRule = data.data.textContent; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询用户市商状态 |
|
|
|
|
function selectStatusByUser() { |
|
|
|
|
mui.ajax(marketUserAjax.GET_STATUS_BY_USER.getUrl, { |
|
|
|
|
headers: { |
|
|
|
|
"X-Requested-Token": app.getTokenStorage(), // token头部 |
|
|
|
|
"locale": app.getLanguageLocalStorage() // 语种头部 |
|
|
|
|
}, |
|
|
|
|
dataType: 'json', |
|
|
|
|
data: { |
|
|
|
|
type: 'business' |
|
|
|
|
}, |
|
|
|
|
type: marketUserAjax.GET_STATUS_BY_USER.getType, |
|
|
|
|
timeout: 10000, //超时时间设置为10秒 |
|
|
|
|
success: function(data) { |
|
|
|
|
if(data.code == 200) { |
|
|
|
|
dataInfo.marketUserStatus = data.data; |
|
|
|
|
//市商记录为空 或者 市商未认证状态下才查询市商申请相关信息 |
|
|
|
|
if(data.data == null || data.data == 'NOTMARKET') { |
|
|
|
|
//查询保证金代币 |
|
|
|
|
selectMarketFreezeCoin(); |
|
|
|
|
//查询保证金数量 |
|
|
|
|
selectMarketFreezeAmount(); |
|
|
|
|
//规则查询 |
|
|
|
|
selectMarketFreezeRule(); |
|
|
|
|
//刷新钱包 |
|
|
|
|
dataInfo.reload_coin_balances(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|