优化代码。 code review by LZF
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -21,7 +21,7 @@ var appIconPosition = { | @@ -21,7 +21,7 @@ var appIconPosition = { | ||
21 | bank: '-4rem' | 21 | bank: '-4rem' |
22 | }; | 22 | }; |
23 | 23 | ||
24 | -//隐藏微信分享选项 | 24 | +// 隐藏微信分享选项 |
25 | if (window.wx) { | 25 | if (window.wx) { |
26 | wx.hideOptionMenu(); | 26 | wx.hideOptionMenu(); |
27 | } | 27 | } |
@@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) { | @@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) { | ||
44 | onBridgeReady(); | 44 | onBridgeReady(); |
45 | } | 45 | } |
46 | 46 | ||
47 | -//调用微信JS api 支付 | 47 | +// 调用微信JS api 支付 |
48 | function jsApiCall(orderCode, jsApiParameters) { | 48 | function jsApiCall(orderCode, jsApiParameters) { |
49 | 49 | ||
50 | - //防止重复操作弹框 | 50 | + // 防止重复操作弹框 |
51 | window.WeixinJSBridge && window.WeixinJSBridge.invoke( | 51 | window.WeixinJSBridge && window.WeixinJSBridge.invoke( |
52 | 'getBrandWCPayRequest', | 52 | 'getBrandWCPayRequest', |
53 | jsApiParameters, | 53 | jsApiParameters, |
@@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) { | @@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) { | ||
57 | ); | 57 | ); |
58 | } | 58 | } |
59 | 59 | ||
60 | -//微信支付 | 60 | +// 微信支付 |
61 | function callpay(orderCode) { | 61 | function callpay(orderCode) { |
62 | var jsApiParameters; | 62 | var jsApiParameters; |
63 | 63 |
-
Please register or login to post a comment