Commit 8456cead86bbdc75cd4cc525bf810c55e27f2836
1 parent
d6043274
购好物,代码格式优化~
Showing
1 changed file
with
6 additions
and
6 deletions
src/main.js
| @@ -186,10 +186,10 @@ Vue.prototype.getParams = function(mode) { | @@ -186,10 +186,10 @@ Vue.prototype.getParams = function(mode) { | ||
| 186 | "App-Key": app_key, | 186 | "App-Key": app_key, |
| 187 | "Timestamp": timestamp, | 187 | "Timestamp": timestamp, |
| 188 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), | 188 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), |
| 189 | + "Nonce-Str": nonce_str, | ||
| 189 | "Content-Type": "application/x-www-form-urlencoded", | 190 | "Content-Type": "application/x-www-form-urlencoded", |
| 190 | "Phone-Model": "Wap", | 191 | "Phone-Model": "Wap", |
| 191 | - "Version": "1.0.1", | ||
| 192 | - "Nonce-Str": nonce_str | 192 | + "Version": "1.0.1" |
| 193 | }, | 193 | }, |
| 194 | sellerCategory: { | 194 | sellerCategory: { |
| 195 | url: "http://wjjh5test.cnlive.com/hqyw.html" | 195 | url: "http://wjjh5test.cnlive.com/hqyw.html" |
| @@ -217,10 +217,10 @@ Vue.prototype.getParams = function(mode) { | @@ -217,10 +217,10 @@ Vue.prototype.getParams = function(mode) { | ||
| 217 | "App-Key": app_key, | 217 | "App-Key": app_key, |
| 218 | "Timestamp": timestamp, | 218 | "Timestamp": timestamp, |
| 219 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), | 219 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), |
| 220 | + "Nonce-Str": nonce_str, | ||
| 220 | "Content-Type": "application/x-www-form-urlencoded", | 221 | "Content-Type": "application/x-www-form-urlencoded", |
| 221 | "Phone-Model": "Wap", | 222 | "Phone-Model": "Wap", |
| 222 | - "Version": "1.0.1", | ||
| 223 | - "Nonce-Str": nonce_str | 223 | + "Version": "1.0.1" |
| 224 | }, | 224 | }, |
| 225 | sellerCategory: { | 225 | sellerCategory: { |
| 226 | url: "http://wjjh5.cnlive.com/hqyw.html" | 226 | url: "http://wjjh5.cnlive.com/hqyw.html" |
| @@ -249,10 +249,10 @@ Vue.prototype.getParams = function(mode) { | @@ -249,10 +249,10 @@ Vue.prototype.getParams = function(mode) { | ||
| 249 | "App-Key": app_key, | 249 | "App-Key": app_key, |
| 250 | "Timestamp": timestamp, | 250 | "Timestamp": timestamp, |
| 251 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), | 251 | "Signature": sha1(app_key + nonce + nonce_str + timestamp), |
| 252 | + "Nonce-Str": nonce_str, | ||
| 252 | "Content-Type": "application/x-www-form-urlencoded", | 253 | "Content-Type": "application/x-www-form-urlencoded", |
| 253 | "Phone-Model": "Wap", | 254 | "Phone-Model": "Wap", |
| 254 | - "Version": "1.0.1", | ||
| 255 | - "Nonce-Str": nonce_str | 255 | + "Version": "1.0.1" |
| 256 | }, | 256 | }, |
| 257 | sellerCategory: { | 257 | sellerCategory: { |
| 258 | url: "http://wjjh5test.cnlive.com/hqyw.html" | 258 | url: "http://wjjh5test.cnlive.com/hqyw.html" |