Commit 7c172b534a158d68dbc3d80d05d8dae5b1b42ff2
1 parent
b137bb0e
黄石分支
Showing
5 changed files
with
44 additions
and
45 deletions
src/components/orderPay.vue
src/components/parkRecord.vue
src/router/index.js
| 1 | 1 | import Vue from 'vue' |
| 2 | 2 | import Router from 'vue-router' |
| 3 | -import plateNumber from '@/components/plateNumber' | |
| 3 | +// import plateNumber from '@/components/plateNumber' | |
| 4 | 4 | import parkRecord from '@/components/parkRecord' |
| 5 | 5 | import navigation from '@/components/navigation' |
| 6 | 6 | |
| ... | ... | @@ -11,7 +11,7 @@ export default new Router({ |
| 11 | 11 | { |
| 12 | 12 | path: '/', |
| 13 | 13 | redirect: { |
| 14 | - name: 'navigation' | |
| 14 | + name: 'parkRecord' | |
| 15 | 15 | } |
| 16 | 16 | }, |
| 17 | 17 | { |
| ... | ... | @@ -19,17 +19,19 @@ export default new Router({ |
| 19 | 19 | name: 'navigation', |
| 20 | 20 | component: navigation |
| 21 | 21 | }, |
| 22 | - { | |
| 23 | - path: '/plateNumber', | |
| 24 | - name: 'plateNumber', | |
| 25 | - component: plateNumber | |
| 26 | - }, | |
| 22 | + | |
| 27 | 23 | { |
| 28 | 24 | path: '/parkRecord', |
| 29 | 25 | name: 'parkRecord', |
| 30 | 26 | component: parkRecord |
| 31 | 27 | }, |
| 32 | 28 | { |
| 29 | + path: '/plateNumber', | |
| 30 | + name: 'plateNumber', | |
| 31 | + component: () => import("@/components/plateNumber.vue") | |
| 32 | + }, | |
| 33 | + | |
| 34 | + { | |
| 33 | 35 | path: '/orderPay', |
| 34 | 36 | name: 'orderPay', |
| 35 | 37 | component: () => import("@/components/orderPay.vue") | ... | ... |
src/utils/request.js
| 1 | 1 | import axios from 'axios' |
| 2 | 2 | |
| 3 | -// let _userToken = sessionStorage.getItem('userToken') | |
| 4 | 3 | // let _url = process.env.API_ROOT |
| 5 | 4 | // axios.defaults.baseURL = process.env.API_ROOT |
| 6 | 5 | const service = axios.create({ |
| 7 | 6 | |
| 8 | 7 | // http://pay.service.renniting.cn/ 赤峰 |
| 9 | - // http://pay.service.huangshiparking.com/ 黄石 | |
| 10 | - baseURL: 'http://pay.service.renniting.cn/', // url = base url + request url | |
| 8 | + // http://pay.service.huangshiparking.com/ 黄石正式环境 | |
| 9 | + // http://39.98.54.240:8090/ 黄石测试环境 | |
| 10 | + baseURL: 'http://39.98.54.240:8090/', // url = base url + request url | |
| 11 | 11 | // withCredentials: true, // send cookies when cross-domain requests |
| 12 | 12 | timeout: 6000 // request timeout |
| 13 | 13 | }) |
| 14 | 14 | |
| 15 | 15 | service.interceptors.request.use( |
| 16 | 16 | config => { |
| 17 | - // let token = _userToken | |
| 18 | - // //let token='298bd7ff-a025-4145-a4a3-554769375b48'; | |
| 19 | - // config.headers['X-Auth-Token'] = token | |
| 20 | 17 | return config |
| 21 | 18 | }, |
| 22 | 19 | error => { | ... | ... |
src/utils/utils.js
| ... | ... | @@ -12,31 +12,7 @@ export default { |
| 12 | 12 | return pwd; |
| 13 | 13 | }, |
| 14 | 14 | |
| 15 | - myGetSign: function (objb) { // 获取签名 | |
| 16 | - var compare = function (obj1, obj2) { | |
| 17 | - var val1 = obj1.keyname; | |
| 18 | - var val2 = obj2.keyname; | |
| 19 | - if (val1 < val2) { | |
| 20 | - return -1; | |
| 21 | - } else if (val1 > val2) { | |
| 22 | - return 1; | |
| 23 | - } else { | |
| 24 | - return 0; | |
| 25 | - } | |
| 26 | - } | |
| 27 | - objb.sort(compare); | |
| 28 | - var strmd5 = 'ny1u72b6k374sg379z0kqjgfxe2ycnpw'; | |
| 29 | - for(var i=0;i<objb.length;i++){ | |
| 30 | - if(objb[i].value != null&&objb[i].value != ''){ | |
| 31 | - strmd5 += objb[i].keyname+objb[i].value; | |
| 32 | - } | |
| 33 | - } | |
| 34 | - strmd5 += 'ny1u72b6k374sg379z0kqjgfxe2ycnpw'; | |
| 35 | - // console.log('strmd5-------->'+strmd5); | |
| 36 | - strmd5 = md5(strmd5); | |
| 37 | - strmd5=strmd5.toUpperCase(); | |
| 38 | - return strmd5; | |
| 39 | - }, | |
| 15 | + | |
| 40 | 16 | |
| 41 | 17 | dateFormat: function (msd) { // 时间转换 |
| 42 | 18 | var time = msd |
| ... | ... | @@ -112,17 +88,41 @@ export default { |
| 112 | 88 | // 0eca8f5373ca4866aec2f8e9d9367104 老的id |
| 113 | 89 | // 14318527b13840c2a4af63fef52c2d6e 老的签名 |
| 114 | 90 | |
| 115 | - | |
| 116 | 91 | // ud8yq5tv0inxupc05xfeau39jywlqoj2 新的id |
| 117 | 92 | // ny1u72b6k374sg379z0kqjgfxe2ycnpw 新的签名 |
| 118 | 93 | |
| 119 | - | |
| 120 | - myVarAppid:'ud8yq5tv0inxupc05xfeau39jywlqoj2',// 公共请求Appid | |
| 94 | + myVarAppid:'0eca8f5373ca4866aec2f8e9d9367104',// 公共请求Appid | |
| 121 | 95 | |
| 122 | 96 | myDeviceInfo: 'BC0703A4-AFB0-4B51-9089-9B7487C0CC6E', // 公共请求设备信息 |
| 123 | 97 | |
| 124 | - myVxAppId: 'wx2af2bab90d433c86' , // 微信赤峰 appid wx2af2bab90d433c86 //黄石 appid wxa1a66cc7d263afe6 | |
| 98 | + myVxAppId: 'wxa1a66cc7d263afe6' , // 微信赤峰 appid wx2af2bab90d433c86 //黄石 appid wxa1a66cc7d263afe6 | |
| 99 | + | |
| 100 | + myOrgId: '10079', // 归属地 赤峰id 10003 黄石 10079 | |
| 125 | 101 | |
| 126 | - myOrgId: '10003' // 归属地 赤峰id | |
| 102 | + myGetSign: function (objb) { // 获取签名 | |
| 103 | + var compare = function (obj1, obj2) { | |
| 104 | + var val1 = obj1.keyname; | |
| 105 | + var val2 = obj2.keyname; | |
| 106 | + if (val1 < val2) { | |
| 107 | + return -1; | |
| 108 | + } else if (val1 > val2) { | |
| 109 | + return 1; | |
| 110 | + } else { | |
| 111 | + return 0; | |
| 112 | + } | |
| 113 | + } | |
| 114 | + objb.sort(compare); | |
| 115 | + var strmd5 = '14318527b13840c2a4af63fef52c2d6e'; | |
| 116 | + for(var i=0;i<objb.length;i++){ | |
| 117 | + if(objb[i].value != null&&objb[i].value != ''){ | |
| 118 | + strmd5 += objb[i].keyname+objb[i].value; | |
| 119 | + } | |
| 120 | + } | |
| 121 | + strmd5 += '14318527b13840c2a4af63fef52c2d6e'; | |
| 122 | + // console.log('strmd5-------->'+strmd5); | |
| 123 | + strmd5 = md5(strmd5); | |
| 124 | + strmd5=strmd5.toUpperCase(); | |
| 125 | + return strmd5; | |
| 126 | + }, | |
| 127 | 127 | |
| 128 | 128 | } | ... | ... |