Просмотр исходного кода

平安支付相关页面创建

yangc 8 лет назад
Родитель
Сommit
12d567d66d

+ 4 - 1
src/main/webapp/WEB-INF/spring/webmvc.xml

@@ -64,7 +64,7 @@
 	<mvc:view-controller path="/index" view-name="index" />
 	<mvc:view-controller path="/signin" view-name="signin" />
 	<mvc:view-controller path="/user" view-name="user_center" />
-	<mvc:view-controller path="/sale" view-name="sale_center" />
+	<mvc:view-controller path="/sale" view-name="`" />
 	<mvc:view-controller path="/product" view-name="product" />
 	<mvc:view-controller path="/news" view-name="news" />
 	<mvc:view-controller path="/activity" view-name="activity" />
@@ -87,6 +87,9 @@
 	<mvc:view-controller path="/user_erp" view-name="erp/user_center" />
 	<mvc:view-controller path="/vendor_erp" view-name="erp/vendor_center" />
 
+	<!--平安银行支付相关页面-->
+	<mvc:view-controller path="/pingan_pay" view-name="pingan_pay" />
+
 	<mvc:interceptors>
 		<!-- SSO过滤 -->
 		<mvc:interceptor>

+ 53 - 0
src/main/webapp/WEB-INF/views/normal/pingan_pay.html

@@ -0,0 +1,53 @@
+<!DOCTYPE HTML>
+<html lang="zh-CN">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="renderer" content="webkit">
+    <title>卖家中心-优软商城</title>
+    <meta name="description" content="优软商城,电子元器件搜索引擎" />
+    <meta name="keywords"
+          content="优软商城,B2B,B2C,行业门户,网上贸易,电子商务,网上贸易,网上交易,交易市场,在线交易,供求信息,采购,求购信息,供应信息" />
+    <link href="static/img/all/u.png" rel="icon" type="image/x-icon" />
+    <link rel="stylesheet" href="static/lib/bootstrap/css/bootstrap.min.css" />
+    <link rel="stylesheet" href="static/css/common.css" />
+    <link rel="stylesheet" href="static/lib/fontawesome/css/font-awesome.min.css" />
+    <link rel="stylesheet" href="static/lib/angular/toaster.css" />
+    <link rel="stylesheet" href="static/lib/jquery/themes/uploadify/uploadify.css" />
+    <link rel="stylesheet" href="static/lib/angular/ng-table.css">
+    <link rel="stylesheet" href="static/css/pinganPay/pinganPay.css">
+</head>
+<body>
+<!-- 消息提示框  Start-->
+<toaster-container
+        toaster-options="{'position-class': 'toast-bottom-center'}" style="font-size: 14px;"></toaster-container>
+<!-- 消息提示框 End -->
+<!-- Loading Start -->
+<div id="loading" class="loading">
+    <i></i>
+</div>
+<!-- Loading End -->
+
+<!--头部开始-->
+<header>
+    <div ng-include src="'static/view/common/site-nav.html'"></div>
+</header>
+
+<!--内容开始-->
+<section class="clearfix">
+    <div class="wrap">
+        <div ui-view></div>
+    </div>
+</section>
+<footer class="clearfix" style="margin-top: 40px;">
+    <div ng-include src="'static/view/common/footer.html'"></div>
+</footer>
+<div ng-include src="'static/view/common/sidebar.html'"></div>
+
+<script type="text/javascript" src="static/lib/require.js"
+        data-main="static/js/pinganPay/main.js"></script>
+
+<script src="static/lib/jquery/jquery.min.js"></script>
+
+</body>
+</html>

+ 4 - 0
src/main/webapp/resources/css/pinganPay/pinganPay.css

@@ -0,0 +1,4 @@
+.clearfix .wrap {
+    width: 1190px;
+    margin: 0 auto;
+}

+ 50 - 0
src/main/webapp/resources/js/pinganPay/app.js

@@ -0,0 +1,50 @@
+define([ 'angularAMD', 'ngLocal', 'common/services', 'common/directives', 'common/query/brand', 'common/query/kind', 'common/query/component', 'common/query/goods', 'common/query/rate','common/query/cart', 'common/query/order', 'common/query/address', 'common/query/invoice', 'common/query/property', 'common/query/kindAdvice', 'common/query/propertyAdvice', 'common/query/return' , 'common/query/change', 'common/query/logistics', 'ui.router', 'ui-bootstrap', 'ui-form', 'ui-jquery','angular-toaster', 'ngDraggable', 'angular-sanitize', 'ngTable', 'dynamicInput', 'jquery-imagezoom', 'file-upload', 'file-upload-shim', 'common/query/urlencryption' , 'common/query/purchase', 'common/query/vendor', 'common/query/goods', 'common/query/bankTransfer', 'common/query/enterprise', 'common/query/bill', 'common/query/receipt', 'common/query/collection', 'common/query/express', 'common/query/bankInfo','common/query/charge', 'common/query/statistics', 'common/query/currency', 'jquery-chart', 'common/query/responseLogistics', 'common/query/goodsPrice', 'common/query/address' , 'common/query/search', 'common/query/urlencryption', 'common/query/releaseProInfo', 'common/query/makerDemand', 'common/query/afterSale', 'common/query/messageBoard', 'common/query/logistics', 'common/query/storeInfo', 'common/query/recommendation', 'common/query/user', 'common/query/logisticsPort', 'common/query/cms', 'common/query/material', 'common/query/storeCms', 'common/query/productImport', 'common/query/stockInOut', 'common/module/store_recommend_product', 'common/module/chat_web_module', 'common/query/standardPutOnAdmin', 'common/query/storeViolations', 'common/query/internalMessage', 'common/query/installments'], function(angularAMD) {
+	'use strict';
+	/**
+	 * 自定义Array对象的属性last 方法
+	 * 调用获取数组的最后一个元素
+	 */
+	Array.prototype.last = function() {
+		return this.length > 0 ? this[this.length - 1] : null;
+	};
+
+	var app = angular.module('myApp', [ 'ui.router', 'ui.bootstrap', 'ng.local', 'ui.form', 'ui.jquery', 'toaster', 'ngDraggable', 'tool.directives', 'ngSanitize', 'common.query.kind', 'common.services', 'brandServices', 'componentServices', 'goodsServices',  'rateServices','cartServices', 'orderServices', 'addressServices', 'invoiceServices', 'common.query.propertyAdvice', 'propertyServices', 'returnServices' , 'changeServices',  'logisticsServices', 'common.query.kindAdvice', 'ngTable', 'ngDynamicInput', 'common.directives', 'angularFileUpload', 'urlencryptionServices', 'purchaseServices', 'vendorServices', 'goodsServices', 'bankTransfer', 'common.query.enterprise', 'billServices', 'receiptServices', 'collection', 'expressServices', 'bankInfo','Charge', 'statisticsServices', 'currencyService', 'responseLogisticsService', 'PriceServices', 'addressServices', 'searchService', 'urlencryptionServices', 'ReleaseProductByBatchService', 'makerDemand', 'afterSaleService', 'messageBoardServices', 'logisticsServices', 'table.directives', 'storeInfoServices', 'recommendation', 'common.query.user', 'logisticsPortService', 'cmsService', 'materialServices', 'StoreCmsServices', 'productImportModule', 'stockInOutModule', 'StoreCmsModule', 'WebChatModule', 'StandardPutOnAdminModule', 'StoreViolationsServices', 'internalMessageServices', 'installmentServices']);
+	//初始化,启动时载入app
+	app.init = function() {
+		angularAMD.bootstrap(app);
+	};
+
+	// ui-router 路由配置
+	app.config(['$stateProvider', function($stateProvider){
+		// $urlRouterProvider.otherwise("/index");
+
+		$stateProvider.state('recharge', angularAMD.route({
+			url: '/recharge',
+			templateUrl: 'static/view/pinganPay/forstore/recharge.html',
+			title: '充值-优软商城',
+			controllerUrl: 'app/controllers/forstore/recharge_ctrl',
+			controller: 'rechargeCtrl'
+		}));
+	}]);
+
+	// app.run(['$rootScope', '$state', '$q', 'BaseService', 'StoreInfo', function($rootScope, $state, $q, BaseService, StoreInfo) {
+	// }]);
+
+	//币别的过滤器
+	app.filter('currencySysmbol', function() {
+		return function(moneyParam, currency, add) {
+			if(typeof(moneyParam) == 'undefined') {
+				moneyParam = 0;
+			}
+			if(currency == 'RMB') {
+				return "¥ " + moneyParam + " " + (typeof(add) == "undefined" ? '' : add);
+			}else if(currency == "USD"){
+				return "$ " + moneyParam;
+			}else {
+				return moneyParam;
+			}
+		}
+	});
+
+	return app;
+});

+ 7 - 0
src/main/webapp/resources/js/pinganPay/controllers/forstore/recharge_ctrl.js

@@ -0,0 +1,7 @@
+define([ 'app/app' ], function(app) {
+    'use strict';
+    app.register.controller('rechargeCtrl', ['$scope', '$rootScope', 'toaster', function ($scope, $rootScope, toaster ) {
+
+    }]);
+
+});

+ 73 - 0
src/main/webapp/resources/js/pinganPay/main.js

@@ -0,0 +1,73 @@
+require.config({
+	baseUrl : 'static',
+	paths : {
+		'app' : 'js/pinganPay',
+		'angular' : 'lib/angular/angular.min',
+		'angularAMD' : 'lib/angular/angularAMD',
+		'angular-toaster': 'lib/angular/angular-toaster.min',
+		'angular-sanitize' : 'lib/angular/angular-sanitize.min',
+		'bootstrap' : 'lib/bootstrap/js/bootstrap.min',
+		'common': 'js/common',
+		'dynamicInput' : 'js/common/directives/dynamicInput',
+		'jquery' : 'lib/jquery/jquery.min',
+		'jquery-imagezoom' : 'lib/jquery/jquery.imagezoom.min',
+		'jquery-uploadify' : 'lib/jquery/jquery.uploadify.min',
+		'jquery-summernote' : 'lib/jquery/summernote.min',
+		'jquery-summernote-lang' : 'lib/jquery/summernote-zh-CN',
+		'jquery-chart' : 'lib/jquery/Chart.min',
+		'ngLocal' : 'lib/angular/angular-i18n',
+		'ngAnimate': 'lib/angular/angular-animate.min',
+		'ngDraggable' : 'lib/angular/angular-draggable-min',
+		'ngResource' : 'lib/angular/angular-resource.min',
+		'ngTable' : 'lib/angular/ng-table.min',
+		'ui-bootstrap' : 'lib/angular/ui-bootstrap-tpls.min',
+		'ui.router' : 'lib/angular/angular-ui-router.min',
+		'ui-form' : 'js/common/directives/ui-form',
+		'ui-jquery': 'js/common/ui-jquery',
+		'file-upload': 'lib/angular/angular-file-upload.min',
+		'file-upload-shim': 'lib/angular/angular-file-upload-shim.min',
+		'showdown' : 'lib/showdown/showdown.min',
+		'calendar': 'lib/calendar/calendar',
+		'big': 'lib/decimal/big.min'
+	},
+	shim : {
+		'angular' : {
+			'exports' : 'angular',
+			'deps' : [ 'jquery' ]
+		},
+		'angularAMD' : {
+			'exports' : 'angularAMD',
+			'deps' : [ 'angular' ]
+		},
+		'ngLocal' : {
+			'exports' : 'ngLocal',
+			'deps' : [ 'angular' ]
+		},
+		'ui.router' : ['angular'],
+		'ui-bootstrap' : ['angular'],
+		'bootstrap' : ['jquery'],
+		'jquery-imagezoom' : ['jquery'],
+		'jquery-summernote' : ['jquery', 'bootstrap'],
+		'jquery-summernote-lang' : ['jquery-summernote'],
+		'jquery-chart' : ['jquery'],
+		'ui-form' : ['angular', 'jquery-summernote', 'jquery-summernote-lang'],
+		'jquery-uploadify' : [ 'jquery' ],
+		'ui-jquery': ['jquery'],
+		'ngAnimate': ['angular'],
+		'angular-toaster': ['angular', 'ngAnimate'],
+		'ngDraggable': [ 'jquery', 'angular' ],
+		'angular-sanitize': ['angular'],
+		'ngResource': ['angular'],
+		'dynamicInput': ['angular'],
+		'ngTable' : {
+			'exports' : 'ngTable',
+			'deps' : [ 'angular' ]
+		},
+		'file-upload': ['angular', 'file-upload-shim'],
+		'calendar': ['jquery'],
+		'big' : ['jquery']
+	}
+});
+require([ 'app/app', 'common/controllers/commonCtrls' ], function(app) {
+	app.init();
+});

+ 3 - 0
src/main/webapp/resources/view/pinganPay/forstore/recharge.html

@@ -0,0 +1,3 @@
+<div>
+    recharge page
+</div>