@@ -7,7 +7,7 @@ |
||
| 7 | 7 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 8 | 8 |
<meta name="format-detection" content="telephone=no,email=no,address=no"> |
| 9 | 9 |
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> |
| 10 |
- <title>店员销售</title> |
|
| 10 |
+ <title>店员信息</title> |
|
| 11 | 11 |
|
| 12 | 12 |
<link href="https://res.wx.qq.com/open/libs/weui/0.4.3/weui.min.css" rel="stylesheet" type="text/css" /> |
| 13 | 13 |
|
@@ -193,10 +193,7 @@ |
||
| 193 | 193 |
}); |
| 194 | 194 |
}); |
| 195 | 195 |
V.wxScanQRCodeSuccess = function (res) {
|
| 196 |
- var resultStr = res.resultStr; |
|
| 197 |
- var results = resultStr.split(',');
|
|
| 198 |
- var codeStr = results[results.length - 1]; |
|
| 199 |
- $('#code').val(codeStr);
|
|
| 196 |
+ $('#code').val(V.parseScanQRCodeResultStr(res.resultStr));
|
|
| 200 | 197 |
} |
| 201 | 198 |
</script> |
| 202 | 199 |
</body> |
@@ -243,6 +243,11 @@ |
||
| 243 | 243 |
}); |
| 244 | 244 |
} |
| 245 | 245 |
|
| 246 |
+ function parseScanQRCodeResultStr(resultStr) {
|
|
| 247 |
+ var strs = resultStr.split(',')
|
|
| 248 |
+ return strs[strs.length - 1] |
|
| 249 |
+ } |
|
| 250 |
+ |
|
| 246 | 251 |
// 10 微信支付接口 |
| 247 | 252 |
// 10.1 发起一个支付请求 |
| 248 | 253 |
function chooseWXPay(wxpay_params) {
|
@@ -306,6 +311,7 @@ |
||
| 306 | 311 |
|
| 307 | 312 |
// Scan Function |
| 308 | 313 |
scanQRCode: scanQRCode, |
| 314 |
+ parseScanQRCodeResultStr: parseScanQRCodeResultStr, |
|
| 309 | 315 |
|
| 310 | 316 |
// Pay Function |
| 311 | 317 |
chooseWXPay: chooseWXPay, |