运营端渠道筛选

master
dalong306 3 years ago
parent e2a3e4d213
commit 756b4bbca3

@ -1,5 +1,6 @@
package au.com.royalpay.payment.manage.analysis.core.impls; package au.com.royalpay.payment.manage.analysis.core.impls;
import au.com.royalpay.payment.core.mappers.MchChannelContractMapper;
import au.com.royalpay.payment.manage.analysis.core.ChannelsAnalysisService; import au.com.royalpay.payment.manage.analysis.core.ChannelsAnalysisService;
import au.com.royalpay.payment.manage.analysis.mappers.CustomerAndOrdersStatisticsMapper; import au.com.royalpay.payment.manage.analysis.mappers.CustomerAndOrdersStatisticsMapper;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -28,6 +29,9 @@ public class ChannelsAnalysisServiceImpl implements ChannelsAnalysisService {
@Resource @Resource
private CustomerAndOrdersStatisticsMapper customerAndOrdersStatisticsMapper; private CustomerAndOrdersStatisticsMapper customerAndOrdersStatisticsMapper;
@Resource
private MchChannelContractMapper mchChannelContractMapper;
@Override @Override
public List<JSONObject> getChannelMount(JSONObject params) { public List<JSONObject> getChannelMount(JSONObject params) {
/*if (!params.containsKey("client_ids") && !params.containsKey("org_id")){ /*if (!params.containsKey("client_ids") && !params.containsKey("org_id")){
@ -37,6 +41,7 @@ public class ChannelsAnalysisServiceImpl implements ChannelsAnalysisService {
listChannel.add(putParam(params,"Wechat")); listChannel.add(putParam(params,"Wechat"));
listChannel.add(putParam(params,"Alipay")); listChannel.add(putParam(params,"Alipay"));
listChannel.add(putParam(params,"AlipayOnline")); listChannel.add(putParam(params,"AlipayOnline"));
listChannel.add(putParam(params,"AlipayAps"));
listChannel.add(putParam(params,"Rpay")); listChannel.add(putParam(params,"Rpay"));
listChannel.add(putParam(params,"rpaypmt_card")); listChannel.add(putParam(params,"rpaypmt_card"));
listChannel.add(putParam(params,"rpaypmt_dd")); listChannel.add(putParam(params,"rpaypmt_dd"));
@ -50,7 +55,7 @@ public class ChannelsAnalysisServiceImpl implements ChannelsAnalysisService {
} }
List<JSONObject> list = new ArrayList<>(); List<JSONObject> list = new ArrayList<>();
Map<Date,JSONObject> analysisMap = new TreeMap<>(); Map<Date,JSONObject> analysisMap = new TreeMap<>();
String[] channels = {"Wechat","Alipay","AlipayOnline","Rpay","rpaypmt_card","rpaypmt_dd"}; String[] channels = {"Wechat","Alipay","AlipayOnline","Rpay","rpaypmt_card","rpaypmt_dd","AlipayAps"};
for (String channel:channels){ for (String channel:channels){
analysisChannelCustomers(params, analysisMap, channel); analysisChannelCustomers(params, analysisMap, channel);
} }
@ -136,7 +141,11 @@ public class ChannelsAnalysisServiceImpl implements ChannelsAnalysisService {
params.put("gateway_alipay_online", 1); params.put("gateway_alipay_online", 1);
enablePartners = customerAndOrdersStatisticsMapper.countEnableChannel(params); enablePartners = customerAndOrdersStatisticsMapper.countEnableChannel(params);
params.remove("gateway_alipay_online"); params.remove("gateway_alipay_online");
} else { }
else if("AlipayAps".equals(name)){
enablePartners=mchChannelContractMapper.sumEnablePartners(name);
}
else {
params.put("enable_" + name.toLowerCase(), 1); params.put("enable_" + name.toLowerCase(), 1);
enablePartners = customerAndOrdersStatisticsMapper.countEnableChannel(params); enablePartners = customerAndOrdersStatisticsMapper.countEnableChannel(params);
params.remove("enable_" + name.toLowerCase()); params.remove("enable_" + name.toLowerCase());

@ -1066,8 +1066,15 @@ public class PartnerManageController {
* @return * @return
*/ */
@ManagerMapping(value = "/{clientMoniker}/apply_alipayplus", method = RequestMethod.POST, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN}) @ManagerMapping(value = "/{clientMoniker}/apply_alipayplus", method = RequestMethod.POST, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})
public MerchantApplicationResult applyAlipayPlusMerchant(@PathVariable String clientMoniker, @RequestBody ApsMerchantApplication apsMerchantApplication, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) { public JSONObject applyAlipayPlusMerchant(@PathVariable String clientMoniker, @RequestBody ApsMerchantApplication apsMerchantApplication, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
return clientManager.alipayPlusRegisterMerchant(clientMoniker,apsMerchantApplication,manager); MerchantApplicationResult result= clientManager.alipayPlusRegisterMerchant(clientMoniker,apsMerchantApplication,manager);
JSONObject jsonObject=new JSONObject();
if(result.isSuccess()){
jsonObject.put("result",true);
}else{
jsonObject.put("result",false);
}
return jsonObject;
} }
@ManagerMapping(value = "/{clientMoniker}/query/alipay_aps_online", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN}) @ManagerMapping(value = "/{clientMoniker}/query/alipay_aps_online", method = RequestMethod.GET, role = {ManagerRole.OPERATOR, ManagerRole.ADMIN})

@ -344,6 +344,9 @@
ifnull(sum(CASE WHEN s.channel = 'AlipayOnline' THEN s.total ELSE 0 END),0) alipayonlineamount, ifnull(sum(CASE WHEN s.channel = 'AlipayOnline' THEN s.total ELSE 0 END),0) alipayonlineamount,
ifnull(sum(CASE WHEN s.channel = 'AlipayOnline' THEN s.orders ELSE 0 END),0) alipayonline_order_count, ifnull(sum(CASE WHEN s.channel = 'AlipayOnline' THEN s.orders ELSE 0 END),0) alipayonline_order_count,
ifnull(COUNT(DISTINCT s.client_id,IF(s.channel = 'AlipayOnline',TRUE,NULL)),0) alipayonline_client_count, ifnull(COUNT(DISTINCT s.client_id,IF(s.channel = 'AlipayOnline',TRUE,NULL)),0) alipayonline_client_count,
ifnull(sum(CASE WHEN s.channel = 'AlipayAps' THEN s.total ELSE 0 END),0) alipayapsamount,
ifnull(sum(CASE WHEN s.channel = 'AlipayAps' THEN s.orders ELSE 0 END),0) alipayaps_order_count,
ifnull(COUNT(DISTINCT s.client_id,IF(s.channel = 'AlipayAps',TRUE,NULL)),0) alipayaps_client_count,
ifnull(sum(CASE WHEN s.channel = 'hf' THEN s.total ELSE 0 END),0) hfamount, ifnull(sum(CASE WHEN s.channel = 'hf' THEN s.total ELSE 0 END),0) hfamount,
ifnull(sum(CASE WHEN s.channel = 'hf' THEN s.orders ELSE 0 END),0) hf_order_count, ifnull(sum(CASE WHEN s.channel = 'hf' THEN s.orders ELSE 0 END),0) hf_order_count,
ifnull(COUNT(DISTINCT s.client_id,IF(s.channel = 'hf',TRUE,NULL)),0) hf_client_count, ifnull(COUNT(DISTINCT s.client_id,IF(s.channel = 'hf',TRUE,NULL)),0) hf_client_count,

@ -173,7 +173,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
trigger: 'axis' trigger: 'axis'
}, },
legend: { legend: {
data: ['Alipay交易金额','AlipayOnline交易金额', 'Bestpay交易金额','Wechat交易金额',"JD Pay交易金额","HF Pay交易金额","Yeepay交易金额","LakalaPay交易金额","Card Payment交易金额","Direct Debit交易金额"], data: ['Alipay交易金额','AlipayOnline交易金额', 'Bestpay交易金额','Wechat交易金额',"JD Pay交易金额","HF Pay交易金额","Yeepay交易金额","LakalaPay交易金额","Card Payment交易金额","Direct Debit交易金额","Alipay+交易金额"],
bottom: 0, bottom: 0,
height: '15%', height: '15%',
width: '80%', width: '80%',
@ -185,7 +185,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
type: 'value' type: 'value'
} }
], ],
color: ['#00a0e9','#00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec"] color: ['#00a0e9','#00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec","#8f4b2e","#87843b","#f8aba6"]
}, },
xAxis: { xAxis: {
basic: {type: 'category', boundaryGap: false}, basic: {type: 'category', boundaryGap: false},
@ -301,6 +301,17 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
yAxisIndex: 0 yAxisIndex: 0
}, },
column: {key: 'rpaypmt_dd.total'} column: {key: 'rpaypmt_dd.total'}
},
{
basic: {
name: 'Alipay+交易金额',
type: 'line',
label: {normal: {show: true}},
showAllSymbols: true,
showSymbol: true,
yAxisIndex: 0
},
column: {key: 'AlipayAps.total'}
} }
] ]
}; };
@ -311,7 +322,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
trigger: 'axis' trigger: 'axis'
}, },
legend: { legend: {
data: ['Alipay交易订单','AlipayOnline交易订单', 'Bestpay交易订单','Wechat交易订单',"JD Pay交易订单","HF Pay交易订单","Yeepay交易订单","LakalaPay交易订单","Card Payment交易订单","Direct Debit交易订单"], data: ['Alipay交易订单','AlipayOnline交易订单', 'Bestpay交易订单','Wechat交易订单',"JD Pay交易订单","HF Pay交易订单","Yeepay交易订单","LakalaPay交易订单","Card Payment交易订单","Direct Debit交易订单","Alipay+交易订单"],
bottom: 0, bottom: 0,
height: '15%', height: '15%',
width: '80%', width: '80%',
@ -323,7 +334,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
type: 'value' type: 'value'
} }
], ],
color: ['#00a0e9','00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec"] color: ['#00a0e9','00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec","#8f4b2e","#87843b","#f8aba6"]
}, },
xAxis: { xAxis: {
basic: {type: 'category', boundaryGap: false}, basic: {type: 'category', boundaryGap: false},
@ -439,6 +450,17 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
yAxisIndex: 0 yAxisIndex: 0
}, },
column: {key: 'rpaypmt_dd.orders'} column: {key: 'rpaypmt_dd.orders'}
},
{
basic: {
name: 'Alipay+交易订单',
type: 'line',
label: {normal: {show: true}},
showAllSymbols: true,
showSymbol: true,
yAxisIndex: 0
},
column: {key: 'AlipayAps.orders'}
} }
] ]
}; };
@ -448,7 +470,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
trigger: 'axis' trigger: 'axis'
}, },
legend: { legend: {
data: ['Alipay交易客单价','AlipayOnline交易客单价', 'Bestpay交易客单价','Wechat交易客单价',"JD Pay交易客单价","HF Pay交易客单价","Yeepay交易客单价","LakalaPay交易客单价","Card Payment交易客单价","Direct Debit交易客单价"], data: ['Alipay交易客单价','AlipayOnline交易客单价', 'Bestpay交易客单价','Wechat交易客单价',"JD Pay交易客单价","HF Pay交易客单价","Yeepay交易客单价","LakalaPay交易客单价","Card Payment交易客单价","Direct Debit交易客单价","Alipay+交易客单价"],
bottom: 0, bottom: 0,
}, },
yAxis: [ yAxis: [
@ -457,7 +479,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
type: 'value' type: 'value'
} }
], ],
color: ['#00a0e9','#00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec"] color: ['#00a0e9','#00a0e9','#FF2D96','#09bb07','#DC0808',"#FFFF33","#66ff00","#00b0ec","#8f4b2e","#87843b","#f8aba6"]
}, },
xAxis: { xAxis: {
basic: {type: 'category', boundaryGap: false}, basic: {type: 'category', boundaryGap: false},
@ -573,6 +595,17 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
yAxisIndex: 0 yAxisIndex: 0
}, },
column: {key: 'rpaypmt_dd.single_amount'} column: {key: 'rpaypmt_dd.single_amount'}
},
{
basic: {
name: 'Alipay+交易客单价',
type: 'line',
label: {normal: {show: true}},
showAllSymbols: true,
showSymbol: true,
yAxisIndex: 0
},
column: {key: 'AlipayAps.single_amount'}
} }
] ]
}; };

@ -140,8 +140,10 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="channels in countChannels |orderBy:'total':true"> <tr ng-repeat="channels in countChannels |orderBy:'total':true">
<td style="text-align: center;font-style: italic;font-size: larger" <td style="text-align: center;font-style: italic;font-size: larger" ng-if="channels.channel!='AlipayAps'"
ng-bind="channels.channel"></td> ng-bind="channels.channel"></td>
<td style="text-align: center;font-style: italic;font-size: larger" ng-if="channels.channel=='AlipayAps'"
>Alipay+</td>
<td ng-bind="channels.total"></td> <td ng-bind="channels.total"></td>
<td ng-bind="channels.order"></td> <td ng-bind="channels.order"></td>
<td ng-bind="channels.transaction_partners"></td> <td ng-bind="channels.transaction_partners"></td>
@ -159,21 +161,21 @@
<div class="box box-warning"> <div class="box box-warning">
<div class="box-header with-border">交易总金额变化趋势</div> <div class="box-header with-border">交易总金额变化趋势</div>
<div class="box-body"> <div class="box-body">
<div class="chart" echarts="channel_total_chart" style="height: 300px" <div class="chart" echarts="channel_total_chart" style="height: 330px"
ng-class="{nodata:channel_total_chart.nodata}"></div> ng-class="{nodata:channel_total_chart.nodata}"></div>
</div> </div>
</div> </div>
<div class="box box-warning"> <div class="box box-warning">
<div class="box-header with-border">订单数变化趋势</div> <div class="box-header with-border">订单数变化趋势</div>
<div class="box-body"> <div class="box-body">
<div class="chart" echarts="channel_order_chart" style="height: 300px" <div class="chart" echarts="channel_order_chart" style="height: 330px"
ng-class="{nodata:channel_order_chart.nodata}"></div> ng-class="{nodata:channel_order_chart.nodata}"></div>
</div> </div>
</div> </div>
<div class="box box-warning"> <div class="box box-warning">
<div class="box-header with-border">客单价变化趋势</div> <div class="box-header with-border">客单价变化趋势</div>
<div class="box-body"> <div class="box-body">
<div class="chart" echarts="channel_single_amount_chart" style="height: 300px" <div class="chart" echarts="channel_single_amount_chart" style="height: 330px"
ng-class="{nodata:channel_single_amount_chart.nodata}"></div> ng-class="{nodata:channel_single_amount_chart.nodata}"></div>
</div> </div>
</div> </div>

@ -85,6 +85,8 @@ Ye<style>
ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> | ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}" <a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}"
ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> | ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayAps'}"
ng-click="params.channel='AlipayAps';doAnalysis(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> | ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='jd'}" <a role="button" ng-class="{'bg-primary':params.channel=='jd'}"

@ -95,6 +95,8 @@
ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> | ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}" <a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}"
ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> | ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayAps'}"
ng-click="params.channel='AlipayAps';doAnalysis(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> | ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='jd'}" <a role="button" ng-class="{'bg-primary':params.channel=='jd'}"

@ -95,6 +95,8 @@
ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> | ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}" <a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}"
ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> | ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayAps'}"
ng-click="params.channel='AlipayAps';doAnalysis(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> | ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='jd'}" <a role="button" ng-class="{'bg-primary':params.channel=='jd'}"

@ -97,6 +97,8 @@
ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> | ng-click="params.channel='ALIPAY';doAnalysis(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}" <a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}"
ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> | ng-click="params.channel='AlipayOnline';doAnalysis(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayAps'}"
ng-click="params.channel='AlipayAps';doAnalysis(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> | ng-click="params.channel='BESTPAY';doAnalysis(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='jd'}" <a role="button" ng-class="{'bg-primary':params.channel=='jd'}"
@ -289,6 +291,17 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-2 col-xs-6">
<div class="description-block">
<div class="description-header text-bold"><small><img src="/static/images/alipay_sign.png"/>Alipay+</small></div>
<div class="description-text">
<label class="description-text text-red"
ng-bind="totalChannelAmount.alipayapsamount|currency: ' $ '"></label></br>
<label class="description-text text-red">交易笔数:{{ totalChannelAmount.alipayaps_order_count }}</label>
<label class="description-text text-red">交易商户数:{{ totalChannelAmount.alipayaps_client_count }}</label>
</div>
</div>
</div>
</div> </div>
<!--<table class="table"> <!--<table class="table">
<tr> <tr>

@ -35,6 +35,8 @@
ng-click="params.channel='ALIPAY';loadTradeLogs()">Alipay</a> | ng-click="params.channel='ALIPAY';loadTradeLogs()">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}" <a role="button" ng-class="{'bg-primary':params.channel=='AlipayOnline'}"
ng-click="params.channel='AlipayOnline';loadTradeLogs(1)">AlipayOnline</a> | ng-click="params.channel='AlipayOnline';loadTradeLogs(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='AlipayAps'}"
ng-click="params.channel='AlipayAps';loadTradeLogs(1)">Alipay+</a>|
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';loadTradeLogs()">BestPay</a> | ng-click="params.channel='BESTPAY';loadTradeLogs()">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='jd'}" <a role="button" ng-class="{'bg-primary':params.channel=='jd'}"

@ -7392,8 +7392,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if ($scope.subMerchantInfo.business_structure) { if ($scope.subMerchantInfo.business_structure) {
$scope.subMerchantInfo.businessType = $scope.subMerchantInfo.business_structure != 'Registered body(Sole Trader)' ? 'ENTERPRISE' : 'INDIVIDUAL' $scope.subMerchantInfo.businessType = $scope.subMerchantInfo.business_structure != 'Registered body(Sole Trader)' ? 'ENTERPRISE' : 'INDIVIDUAL'
} }
$scope.subMerchantInfo.shareholderName = $scope.subMerchantInfo.representativeInfo.representative_person; $scope.subMerchantInfo.shareholderName = $scope.subMerchantInfo.representativeInfo?$scope.subMerchantInfo.representativeInfo.representative_person:"";
$scope.subMerchantInfo.representativeName = $scope.subMerchantInfo.representativeInfo.representative_person; $scope.subMerchantInfo.representativeName = $scope.subMerchantInfo.representativeInfo?$scope.subMerchantInfo.representativeInfo.representative_person:"";
$scope.subMerchantInfo.storeAddress = $scope.subMerchantInfo.address; $scope.subMerchantInfo.storeAddress = $scope.subMerchantInfo.address;
$scope.subMerchantInfo.registrationNo = $scope.subMerchantInfo.acn ? $scope.subMerchantInfo.acn : $scope.subMerchantInfo.abn; $scope.subMerchantInfo.registrationNo = $scope.subMerchantInfo.acn ? $scope.subMerchantInfo.acn : $scope.subMerchantInfo.abn;
$scope.subMerchantInfo.storeMCC = $scope.subMerchantInfo.alipayindustry; $scope.subMerchantInfo.storeMCC = $scope.subMerchantInfo.alipayindustry;
@ -7455,7 +7455,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/apply_alipayplus', params).then( $http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/apply_alipayplus', params).then(
function (resp) { function (resp) {
if (resp.data.success) { if (resp.data.result) {
commonDialog.alert({title: 'Success', content: "注册成功!", type: 'success'}) commonDialog.alert({title: 'Success', content: "注册成功!", type: 'success'})
} else { } else {
commonDialog.alert({title: 'Error', content: "注册失败!", type: 'error'}) commonDialog.alert({title: 'Error', content: "注册失败!", type: 'error'})

@ -43,7 +43,7 @@
<div class="form-group" <div class="form-group"
ng-class="{'has-error':partnerForm.alipay_category.$invalid && partnerForm.alipay_category.$dirty}"> ng-class="{'has-error':partnerForm.alipay_category.$invalid && partnerForm.alipay_category.$dirty}">
<label class="control-label col-sm-4" <label class="control-label col-sm-4"
for="alipay_category">*Alipay Category</label> for="alipay_category">* Merchant MCC</label>
<div class="col-sm-8" > <div class="col-sm-8" >
<input class="form-control" id="alipay_category" required <input class="form-control" id="alipay_category" required
name="alipay_category" readonly name="alipay_category" readonly

@ -144,8 +144,8 @@
ng-click="params.channel='ALIPAY';loadTradeLogs(1)">Alipay</a> | ng-click="params.channel='ALIPAY';loadTradeLogs(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" <a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> | ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYPLUS'}" <a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYAPS'}"
ng-click="params.channel='ALIPAYPLUS';loadTradeLogs(1)">Alipay+</a> | ng-click="params.channel='ALIPAYAPS';loadTradeLogs(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> | ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='JD'}" <a role="button" ng-class="{'bg-primary':params.channel=='JD'}"

@ -245,12 +245,10 @@
<img src="/static/images/alipay_online.png" style="width: 16px;height: 16px;" <img src="/static/images/alipay_online.png" style="width: 16px;height: 16px;"
uib-tooltip="AlipayPlus" /> uib-tooltip="AlipayPlus" />
<h5 style="margin-left: 5px;"> <h5 style="margin-left: 5px;">
AlipayPlus(Retail) : <span ng-bind="partnerInfo.ali_sub_merchant_id"></span> Alipay+(Retail) : <span ng-bind="partnerInfo.client_moniker"></span>
<span ng-if="!partnerInfo.ali_sub_merchant_id">none</span> <span ng-if="!partnerInfo.client_moniker">none</span>
</h5> </h5>
<a role="button"
ng-click="modifySubMerchantId(partnerInfo.ali_sub_merchant_id,'AlipayPlus')"
style="margin-left: 5px;"><i class="fa fa-edit"></i></a>
</div> </div>
<div> <div>
@ -286,12 +284,10 @@
<img src="/static/images/alipay_online.png" style="width: 16px;height: 16px;" <img src="/static/images/alipay_online.png" style="width: 16px;height: 16px;"
uib-tooltip="AlipayPlus" /> uib-tooltip="AlipayPlus" />
<h5 style="margin-left: 5px;"> <h5 style="margin-left: 5px;">
AlipayPlus(Online) : <span ng-bind="partnerInfo.ali_sub_merchant_id"></span> Alipay+(Online) : <span ng-bind="partnerInfo.client_moniker"></span>
<span ng-if="!partnerInfo.ali_sub_merchant_id">none</span> <span ng-if="!partnerInfo.client_moniker">none</span>
</h5> </h5>
<a role="button"
ng-click="modifySubMerchantId(partnerInfo.ali_sub_merchant_id,'AlipayPlus')"
style="margin-left: 5px;"><i class="fa fa-edit"></i></a>
</div> </div>
<div> <div>

@ -154,6 +154,10 @@
ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a>
| |
<a role="button"
ng-class="{'bg-primary':params.channel=='ALIPAYAPS'}"
ng-click="params.channel='ALIPAYAPS';loadTradeLogs(1)">Alipay+</a>
|
<a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}"
ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay +</a> | ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay +</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='RPAYPMT_CARD'}" <a role="button" ng-class="{'bg-primary':params.channel=='RPAYPMT_CARD'}"

@ -155,6 +155,10 @@
ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a>
| |
<a role="button"
ng-class="{'bg-primary':params.channel=='ALIPAYAPS'}"
ng-click="params.channel='ALIPAYAPS';loadTradeLogs(1)">Alipay+</a>
|
<a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}"
ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay +</a> | ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay +</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='RPAYPMT_CARD'}" <a role="button" ng-class="{'bg-primary':params.channel=='RPAYPMT_CARD'}"

@ -135,6 +135,8 @@
ng-click="params.channel='ALIPAY';loadTradeLogs(1)">Alipay</a> | ng-click="params.channel='ALIPAY';loadTradeLogs(1)">Alipay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" <a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> | ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYAPS'}"
ng-click="params.channel='ALIPAYAPS';loadTradeLogs(1)">Alipay+</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> | ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> |
<a role="button" ng-class="{'bg-primary':params.channel=='JD'}" <a role="button" ng-class="{'bg-primary':params.channel=='JD'}"

@ -214,8 +214,8 @@
ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a>
| |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYPLUS'}" <a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYPAPS'}"
ng-click="params.channel='ALIPAYPLUS';loadTradeLogs(1)">Alipay+</a> ng-click="params.channel='ALIPAYPAPS';loadTradeLogs(1)">Alipay+</a>
| |
<a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='RPAY'}"
ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay+</a> | ng-click="params.channel='RPAY';loadTradeLogs(1)">RPay+</a> |

@ -191,8 +191,8 @@
ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}" ng-class="{'bg-primary':params.channel=='ALIPAYONLINE'}"
ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a> ng-click="params.channel='ALIPAYONLINE';loadTradeLogs(1)">AlipayOnline</a>
| |
<a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYPLUS'}" <a role="button" ng-class="{'bg-primary':params.channel=='ALIPAYAPS'}"
ng-click="params.channel='ALIPAYPLUS';loadTradeLogs(1)">Alipay+</a> ng-click="params.channel='ALIPAYAPS';loadTradeLogs(1)">Alipay+</a>
| |
<a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}" <a role="button" ng-class="{'bg-primary':params.channel=='BESTPAY'}"
ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> | ng-click="params.channel='BESTPAY';loadTradeLogs(1)">BestPay</a> |

@ -69,3 +69,18 @@ body{
.alipay .royal-pay-btn{ .alipay .royal-pay-btn{
background: #108ee9; background: #108ee9;
} }
.alipayaps-pay-brands {
text-align: center;
line-height: 20px;
font-size: 24px;
margin-top: 64px;
color: #dddddd;
}
.alipayaps-pay-brands img {
height: 18px;
}
.alipayaps-pay-brands img.alipayaps-logo {
height: 14px;
}
Loading…
Cancel
Save