From 22c6e0aa5a32e6fa19fa89bd7fea203c5de61c3e Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Wed, 2 May 2018 09:42:30 +0800 Subject: [PATCH 1/4] fix html~ --- src/main/ui/static/payment/partner/templates/add_partner.html | 3 ++- src/main/ui/static/payment/partner/templates/partner_edit.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/ui/static/payment/partner/templates/add_partner.html b/src/main/ui/static/payment/partner/templates/add_partner.html index 65c491856..f337b44c2 100644 --- a/src/main/ui/static/payment/partner/templates/add_partner.html +++ b/src/main/ui/static/payment/partner/templates/add_partner.html @@ -402,7 +402,8 @@
- + +

eg:https://www.baidu.com

diff --git a/src/main/ui/static/payment/partner/templates/partner_edit.html b/src/main/ui/static/payment/partner/templates/partner_edit.html index 65dd50894..b429c17a6 100644 --- a/src/main/ui/static/payment/partner/templates/partner_edit.html +++ b/src/main/ui/static/payment/partner/templates/partner_edit.html @@ -294,7 +294,8 @@
- + +

eg:https://www.baidu.com

From f4d5bdabafe674d27f4e7a2e3261829589fd9af3 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Wed, 2 May 2018 10:57:26 +0800 Subject: [PATCH 2/4] fix html~ --- .../static/payment/partner/partner-manage.js | 68 ++++++++++++----- .../partner/templates/add_partner.html | 8 +- .../templates/add_sub_partner_dialog.html | 74 +++++++++++++++++-- .../partner/templates/partner_detail.html | 4 +- .../partner/templates/partner_edit.html | 8 +- 5 files changed, 126 insertions(+), 36 deletions(-) diff --git a/src/main/ui/static/payment/partner/partner-manage.js b/src/main/ui/static/payment/partner/partner-manage.js index 75ab6ce26..8c26cd629 100644 --- a/src/main/ui/static/payment/partner/partner-manage.js +++ b/src/main/ui/static/payment/partner/partner-manage.js @@ -404,6 +404,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter } }) } + if(!window.frames['merchant_detail'].merchant_location){ + alert("Please Locate Merchant's Location"); + return; + } $http.post('/sys/partners', $scope.partner).then(function (resp) { commonDialog.alert({title: 'Success', content: 'Register new partner successfully', type: 'success'}); $scope.updateMerchantLocation(); @@ -473,8 +477,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter if (params) { $http.put('/sys/partners/modify/' + $scope.partner.client_moniker + '/location', params).then(function () { }); - } else { - alert("Please Locate Merchant's Location"); } } }]); @@ -954,11 +956,14 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter } }) } - $scope.updateMerchantLocation(); var content = ''; if (!origin_referrer_id && $scope.partner.referrer_id) { content = 'Update partner info successfully,But You Had add new Referrer,Please Change the BD Commission Proportion!'; } + if(!window.frames['merchant_detail'].merchant_location){ + alert("Please Locate Merchant Location!"); + return; + } $http.put('/sys/partners/' + $scope.partner.client_moniker, $scope.partner).then(function () { if (content != '') { commonDialog.alert({ @@ -973,6 +978,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter type: 'success' }); } + $scope.updateMerchantLocation(); $scope.loadPartners(); $state.go('^.detail', {clientMoniker: $scope.partner.client_moniker}, {reload: true}); }, function (resp) { @@ -1046,12 +1052,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter if (params) { $http.put('/sys/partners/modify/' + $scope.partner.client_moniker + '/location', params).then(function () { }); - } else { - commonDialog.alert({ - title: 'Warning', - content: 'Please Locate Merchant Location', - type: 'error' - }); } } }]); @@ -1823,6 +1823,24 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter return; } } + if (!$scope.partner.logo_url) { + alert("Logo is necessary!"); + return; + } + if($scope.partner.partner_type == 'photo'){ + if (!$scope.partner.company_photo) { + alert('Shop Photo1 is necessary'); + return; + } + if (!$scope.partner.store_photo) { + alert('Shop Photo2 is necessary'); + return; + } + } + if(!window.frames['merchant_detail'].merchant_location){ + alert("Please Locate Merchant Location!"); + return; + } $http.post('/sys/partners/' + clientMoniker + '/sub_clients', $scope.partner).then(function () { $scope.updateMerchantLocation(); $scope.$close(); @@ -1851,18 +1869,36 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter $scope.uploadShopPhoto = function (file) { if (file != null) { - $scope.photoProgress = {value: 0}; + $scope.shopPhotoProgress = {value: 0}; Upload.upload({ url: '/attachment/files', data: {file: file} }).then(function (resp) { - delete $scope.photoProgress; + delete $scope.shopPhotoProgress; $scope.partner.company_photo = resp.data.url; }, function (resp) { - delete $scope.photoProgress; + delete $scope.shopPhotoProgress; + commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'}) + }, function (evt) { + $scope.shopPhotoProgress.value = parseInt(100 * evt.loaded / evt.total); + }) + } + }; + + $scope.uploadStorePhoto = function (file) { + if (file != null) { + $scope.storePhotoProgress = {value: 0}; + Upload.upload({ + url: '/attachment/files', + data: {file: file} + }).then(function (resp) { + delete $scope.storePhotoProgress; + $scope.partner.store_photo = resp.data.url; + }, function (resp) { + delete $scope.storePhotoProgress; commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'}) }, function (evt) { - $scope.photoProgress.value = parseInt(100 * evt.loaded / evt.total); + $scope.storePhotoProgress.value = parseInt(100 * evt.loaded / evt.total); }) } }; @@ -1871,12 +1907,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter if (params) { $http.put('/sys/partners/modify/' + $scope.partner.client_moniker + '/location', params).then(function () { }); - } else { - commonDialog.alert({ - title: 'Warning', - content: 'Please Locate Merchant Location', - type: 'error' - }); } } }]); diff --git a/src/main/ui/static/payment/partner/templates/add_partner.html b/src/main/ui/static/payment/partner/templates/add_partner.html index f337b44c2..df9fa4b0f 100644 --- a/src/main/ui/static/payment/partner/templates/add_partner.html +++ b/src/main/ui/static/payment/partner/templates/add_partner.html @@ -1,6 +1,6 @@ @@ -237,7 +237,7 @@ - +
2:  @@ -249,7 +249,7 @@
- +
@@ -372,7 +372,7 @@
-
Alipay Information
+
Alipay Information  (Optional)
diff --git a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html index 64d9f7be1..9976059e9 100644 --- a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html +++ b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html @@ -1,3 +1,9 @@ + @@ -169,6 +175,8 @@

If the partner is a offline shop then a photo of shop is required while an online store shall choose companyWebsite

+

+ 只要有可能产生线下交易(商户静态码、POS),就必须上传照片,否则支付宝会禁止交易

Required Field

@@ -177,16 +185,29 @@
-
-
+
+
1:  + +
+ + +
+
+
2: 
- - + +
+
+
Alipay Information  (Optional)
+
+
+
+ +
+ +

+ eg:Monday-Friday 09:00-20:00,Saturday-Sunday 10:00-22:00

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +

eg:https://www.baidu.com

+
+
+
+
+
+
Contact Information
diff --git a/src/main/ui/static/payment/partner/templates/partner_detail.html b/src/main/ui/static/payment/partner/templates/partner_detail.html index 0fd091ad1..7b9717ead 100644 --- a/src/main/ui/static/payment/partner/templates/partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/partner_detail.html @@ -308,7 +308,7 @@
- +
@@ -454,7 +454,7 @@
-
Alipay Information
+
Alipay Information  (Optional)
diff --git a/src/main/ui/static/payment/partner/templates/partner_edit.html b/src/main/ui/static/payment/partner/templates/partner_edit.html index b429c17a6..ace8a6272 100644 --- a/src/main/ui/static/payment/partner/templates/partner_edit.html +++ b/src/main/ui/static/payment/partner/templates/partner_edit.html @@ -1,6 +1,6 @@ @@ -186,7 +186,7 @@
- +
2:  @@ -198,7 +198,7 @@
- +
-
Alipay Information
+
Alipay Information   (Optional)
From ee3e71e5c5d8636be7225e4b4c55c2ced9398364 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Wed, 2 May 2018 13:58:11 +0800 Subject: [PATCH 3/4] fix html~ --- src/main/ui/static/payment/partner/partner-manage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/ui/static/payment/partner/partner-manage.js b/src/main/ui/static/payment/partner/partner-manage.js index 8c26cd629..138388d1f 100644 --- a/src/main/ui/static/payment/partner/partner-manage.js +++ b/src/main/ui/static/payment/partner/partner-manage.js @@ -1495,6 +1495,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter }; $scope.getRates(); $scope.saveBankAccount = function () { + if(isNaN($scope.bankaccount.account_no)){ + alert("Account No应输入数字!"); + return; + }; $http.put('/sys/partners/' + $scope.partner.client_moniker + '/bank_account', $scope.bankaccount).then(function () { $scope.getBankAccount(); }, function (resp) { From e11fa1efd5ae0c346fade1cb9da29508295ea238 Mon Sep 17 00:00:00 2001 From: yixian Date: Wed, 2 May 2018 15:39:23 +0800 Subject: [PATCH 4/4] rpay channel edit --- src/document/cn/overview.md | 4 ++-- src/document/en/overview.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/document/cn/overview.md b/src/document/cn/overview.md index 210dfdbab..0b63621c3 100644 --- a/src/document/cn/overview.md +++ b/src/document/cn/overview.md @@ -32,8 +32,8 @@ ## 支付宝渠道区分 支付宝根据调用接口不同分为线上和线下两个渠道,两个渠道分别使用不同的汇率和手续费费率,为避免混淆在此区分: -+ 线上渠道:包含H5 Mobile、Web支付以及APP SDK三种支付方式 -+ 线下渠道:包含JSAPI、QR Code、Retail Pay 3种支付方式 ++ 线上渠道:包含H5 Mobile、Web支付、APP SDK、JSAPI、QR Code 5种支付方式 ++ 线下渠道:Retail Pay 支付方式 相似接口区别 - JSAPI和H5 Mobile:JSAPI只能在支付宝客户端内访问的页面调起支付,H5可以在移动设备任意浏览器或App的WebView调起支付 diff --git a/src/document/en/overview.md b/src/document/en/overview.md index 1aadf8293..287ebaae2 100644 --- a/src/document/en/overview.md +++ b/src/document/en/overview.md @@ -37,8 +37,8 @@ System error message supports Simplified Chinese and English. The system by defa ## Alipay Channels According to different Api used, Alipay channel was distributed to Retail channel and Online channel. Two channels has different exchange rate and surcharge rate. -+ Online Channel: Including H5 Mobile, Online Payment and APP SDK -+ Retail Channel: Including JSAPI, QR Code Api, Retail Pay ++ Online Channel: Including H5 Mobile, Online Payment, APP SDK, JSAPI and QR Code Api ++ Retail Channel: Including Retail Pay Difference - JSAPI and H5 Mobile: JSAPI can only be called in the web page opened in Alipay Client. H5 Mobile can call the payment panel in any browser or webview in App in the mobile device.