...
|
...
|
@@ -14,31 +14,24 @@ webpackJsonp([120],[ |
|
|
var g = new common.grid({
|
|
|
el: '#payment-list',
|
|
|
columns: [
|
|
|
{display: "ID", name: "id"},
|
|
|
{display: '支付方式名称', render:function(item){
|
|
|
if(item.id=='4'){
|
|
|
return "Apple Pay(北京银联)";
|
|
|
}else if(item.id=='5'){
|
|
|
return "银联支付(北京银联)";
|
|
|
}else if(item.id=='24'){
|
|
|
return "Apple Pay(江苏银联)";
|
|
|
}else if(item.id=='26'){
|
|
|
return "银联支付(江苏银联)";
|
|
|
}else{
|
|
|
return item.payName;
|
|
|
}
|
|
|
}},
|
|
|
{display: '推荐到确认订单页', render: function (item) {
|
|
|
var rop = ENUM.recommendOrderPage[item.recommendOrderPage];
|
|
|
return item.recommendOrderPage == 1 ? rop+"("+item.recommendWords+")" : rop;
|
|
|
}},
|
|
|
{display: '前端显示', render: function (item) {
|
|
|
var rop = ENUM.displayFirstSight[item.displayFirstSight];
|
|
|
return item.displayFirstSight == 1 ? rop+"("+item.displayFirstSight+")" : rop;
|
|
|
{display: '支付名称', render:function(item){
|
|
|
return item.payName;
|
|
|
//if(item.id=='4'){
|
|
|
// return "Apple Pay(北京银联)";
|
|
|
//}else if(item.id=='5'){
|
|
|
// return "银联支付(北京银联)";
|
|
|
//}else if(item.id=='24'){
|
|
|
// return "Apple Pay(江苏银联)";
|
|
|
//}else if(item.id=='26'){
|
|
|
// return "银联支付(江苏银联)";
|
|
|
//}else{
|
|
|
// return item.payName;
|
|
|
//}
|
|
|
}},
|
|
|
{display: "前端排序", name: "sortNumber"},
|
|
|
{display: "推荐语1", name: "recommendText1"},
|
|
|
{display: "推荐语2", name: "recommendText2"},
|
|
|
{display: "前端显示排序", name: "sortNumber"},
|
|
|
{display: "推荐语", name: "recommendText1"},
|
|
|
{display:"未开通文案",name:"noOpenText"},
|
|
|
//{display: "推荐语2", name: "recommendText2"},
|
|
|
{display: '操作', render: function (item) {
|
|
|
var HtmArr = [];
|
|
|
HtmArr.push('<a href="javascript:" class="btn btn-info btn-xs edit-btn" data-index="'+item.__index+'">编辑</a>');
|
...
|
...
|
@@ -63,8 +56,6 @@ webpackJsonp([120],[ |
|
|
$(document).on("click", ".edit-btn", function () {
|
|
|
var _index = $(this).data("index");
|
|
|
var data = g.rows[_index];
|
|
|
var recommendOrderPage_old = data.recommendOrderPage;
|
|
|
var displayFirstSight_old = data.displayFirstSight;
|
|
|
|
|
|
var d = new common.dialog({
|
|
|
title: "支付方式编辑",
|
...
|
...
|
@@ -78,40 +69,7 @@ webpackJsonp([120],[ |
|
|
newData[item.name] = item.value;
|
|
|
});
|
|
|
if(checkPaymentData(newData, data)){
|
|
|
//更变了推荐到确认订单页情况下,需要二次确认
|
|
|
if(recommendOrderPage_old != newData.recommendOrderPage){
|
|
|
new common.dialog({
|
|
|
title: "温馨提示",
|
|
|
width: "360px",
|
|
|
content:newData.recommendOrderPage == 1 ? "你确认将这个支付方式<font color='#5cb85c'>推荐</font>到确认订单页面么?" : "你确认<font color='#ff0000'>取消</font>将这个支付方式推荐到确认订单页面么?",
|
|
|
zIndex: 52,
|
|
|
button:[
|
|
|
{value: "确认", css:"btn-primary", callback: function () {
|
|
|
savePaymentData(newData);
|
|
|
d.close();
|
|
|
}},
|
|
|
{value: "取消", css:"btn-default"}
|
|
|
]
|
|
|
});
|
|
|
return false;
|
|
|
} else if(displayFirstSight_old != newData.displayFirstSight){
|
|
|
new common.dialog({
|
|
|
title: "温馨提示",
|
|
|
width: "360px",
|
|
|
content:newData.displayFirstSight == 1 ? "你确认将这个支付方式<font color='#5cb85c'>首次显示</font>吗?" : "你确认<font color='#ff0000'>取消</font>将这个支付方式首次显示吗?",
|
|
|
zIndex: 52,
|
|
|
button:[
|
|
|
{value: "确认", css:"btn-primary", callback: function () {
|
|
|
savePaymentData(newData);
|
|
|
d.close();
|
|
|
}},
|
|
|
{value: "取消", css:"btn-default"}
|
|
|
]
|
|
|
});
|
|
|
return false;
|
|
|
} else{
|
|
|
savePaymentData(newData);
|
|
|
}
|
|
|
}else{
|
|
|
return false;
|
|
|
}
|
...
|
...
|
|