Authored by dongjunjie

mvc

{
"name": "yohobuy-portal-fe",
"version": "4.7.6",
"version": "4.7.7",
"description": "Construction of the presentation layer solution is based on express, handlebars",
"main": "app.js",
"scripts": {
... ...
module.exports=function(app) {
/*支付管理首页*/
app.get("/operations/payment/index","operations.payment.Index", function () {
this.$extend = {
moduleName: "支付管理",
pageName: "支付管理"
}
});
app.post("/Payment/findPayManageList", "payment_findPayManageList");
app.post("/Payment/findPayInfoById", "payment_findPayInfoById");
app.post("/Payment/createPayMode", "payment_createPayMode");
app.post("/Payment/updatePayInfoById", "payment_updatePayInfoById");
app.post("/Payment/openPayModeById", "payment_openPayModeById");
app.post("/Payment/closePayModeById", "payment_closePayModeById");
}
... ...
module.exports= {
namespace: "payment",
apis: {
findPayManageList: {
title: "支付管理列表",
url: "/PayManageController/findPayManageList",
params: []
},
findPayInfoById: {
title: "支付方式详情",
url: "/PayManageController/findPayInfoById",
params: [
{name:"id", type:"Number"}
]
},
createPayMode: {
title: "新增支付方式",
url: "/PayManageController/createPayMode",
params: [
{name:"payName", type:"String"},
{name:"recommendOrderPage", type:"Number", default:0},
{name:"recommendWords", type:"String"},
{name:"sortNumber", type:"Number", default:0},
{name:"recommendText1", type:"String"},
{name:"recommendText2", type:"String"}
]
},
updatePayInfoById: {
title: "编辑支付方式",
url: "/PayManageController/updatePayInfoById",
params: [
{name:"id", type:"Number"},
{name:"payName", type:"String"},
{name:"recommendOrderPage", type:"Number", default:0},
{name:"recommendWords", type:"String"},
{name:"sortNumber", type:"Number", default:0},
{name:"recommendText1", type:"String"},
{name:"recommendText2", type:"String"}
]
},
openPayModeById: {
title: "开启支付方式",
url: "/PayManageController/openPayModeById",
params: [
{name:"id", type:"Number"}
]
},
closePayModeById: {
title: "关闭支付方式",
url: "/PayManageController/closePayModeById",
params: [
{name:"id", type:"Number"}
]
}
}
}
\ No newline at end of file
... ...
{"name":"yohobuy-portal-fe","version":"4.7.6","description":"Construction of the presentation layer solution is based on express, handlebars","main":"app.js","scripts":{"code":"set NODE_ENV=coding&& gulp start","build":"set NODE_ENV=production && gulp && gulp mvc","server":"set NODE_ENV=server&& gulp start"},"dependencies":{"art-template":"^3.0.3","async":"^2.0.0-rc.3","body-parser":"^1.15.0","connect-multiparty":"^2.0.0","connect-redis":"^3.0.2","cookie-parser":"^1.4.1","express":"^4.13.4","express-session":"^1.13.0","lodash":"^4.11.1","md5":"^2.1.0","mkdirp":"^0.5.1","request":"^2.72.0","winston":"^2.2.0","glob":"^7.0.3"}}
\ No newline at end of file
{"name":"yohobuy-portal-fe","version":"4.7.7","description":"Construction of the presentation layer solution is based on express, handlebars","main":"app.js","scripts":{"code":"set NODE_ENV=coding&& gulp start","build":"set NODE_ENV=production && gulp && gulp mvc","server":"set NODE_ENV=server&& gulp start"},"dependencies":{"art-template":"^3.0.3","async":"^2.0.0-rc.3","body-parser":"^1.15.0","connect-multiparty":"^2.0.0","connect-redis":"^3.0.2","cookie-parser":"^1.4.1","express":"^4.13.4","express-session":"^1.13.0","lodash":"^4.11.1","md5":"^2.1.0","mkdirp":"^0.5.1","request":"^2.72.0","winston":"^2.2.0","glob":"^7.0.3"}}
\ No newline at end of file
... ...
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="contentpanel">
<div style="margin-bottom: 20px; display: none">
<a href="javascript:" class="btn btn-success edit-btn"><i class="fa fa-plus"></i> 添加支付方式</a>
</div>
<div class="panel">
<div class="panel-body nopadding">
<div class="basicTable_wrapper" id="payment-list"></div>
</div>
</div>
</div>
<script type="text/template" id="template">
<form class="form-horizontal" id="paymentEdit">
<input type="hidden" name="id" value="[[id]]" id="id" />
<div class="form-group">
<label class="col-sm-3 control-label" style="text-align: center">支付方式:</label>
<div class="col-sm-5" style="padding-top: 10px">[[payName]]</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" style="text-align: center">推荐到确认订单页:</label>
<div class="col-sm-5" style="padding-top: 3px">
<label class="radio-inline"><input name="recommendOrderPage" type="radio" value=1></label>
&nbsp;&nbsp;
<label class="radio-inline"><input name="recommendOrderPage" type="radio" value=0></label>
</div>
<input id="recommendOrderPage" type="hidden" value="[[recommendOrderPage]]" for="radio">
</div>
<div class="form-group">
<label for="recommendWords" class="col-sm-3 control-label" style="text-align: center">推荐文案:</label>
<div class="col-sm-5">
<input type="text" id="recommendWords" name="recommendWords" value="[[recommendWords]]" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="sortNumber" class="col-sm-3 control-label" style="text-align: center">前端排序:</label>
<div class="col-sm-5">
<input type="number" id="sortNumber" name="sortNumber" value="[[sortNumber]]" class="form-control" />
</div>
<div class="col-sm-4"><label style="color: #999"> * 数字越大越靠前,不要跟其他排序相同</label></div>
</div>
<div class="form-group">
<label for="recommendText1" class="col-sm-3 control-label" style="text-align: center">推荐语1</label>
<div class="col-sm-5">
<input type="text" id="recommendText1" name="recommendText1" value="[[recommendText1]]" class="form-control" maxlength="20" />
</div>
<div class="col-sm-4"><label style="color: #999"> * 建议10个字以内,不超过20个字</label></div>
</div>
<div class="form-group">
<label for="recommendText2" class="col-sm-3 control-label" style="text-align: center">推荐语2</label>
<div class="col-sm-5">
<input type="text" id="recommendText2" name="recommendText2" value="[[recommendText2]]" class="form-control" maxlength="20" />
</div>
<div class="col-sm-4"><label style="color: #999"> * 建议10个字以内,不超过20个字</label></div>
</div>
</form>
</script>
<%include '../../common/__ui/footer'%>
\ No newline at end of file
... ...