diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index 1bab380..7e3b105 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -13,10 +13,15 @@ const http = axios.create({ } }) +// const requestURl = "http://localhost:8100/sqx_fast/"; +const requestURl = "https://video.hnsiyao.cn/sqx_fast/"; +// const requestURl = "https://dj-api.hnsiyao.cn/sqx_fast/"; + /** * 请求拦截 */ http.interceptors.request.use(config => { + console.log(Vue.cookie.get('token')) config.headers['token'] = Vue.cookie.get('token') // 请求头带上token return config }, error => { @@ -46,7 +51,7 @@ http.adornUrl = (actionName) => { // return 'http://192.168.0.132:8184/sqx_fast/' + actionName // return 'https://duanjudl.xianmxkj.co/sqx_fast/' + actionName actionName = actionName.replace(/^\//, ""); - return 'https://video.hnsiyao.cn/sqx_fast/' + actionName + return requestURl + actionName } http.adornUrlUp = (actionName) => { @@ -55,7 +60,7 @@ http.adornUrlUp = (actionName) => { // return 'http://192.168.0.132:8183/sqx_fast/' + actionName // return 'https://duanjudl.xianmxkj.co/sqx_fast/' + actionName actionName = actionName.replace(/^\//, ""); - return 'https://video.hnsiyao.cn/sqx_fast/' + actionName + return requestURl + actionName } /** diff --git a/src/views/finance/storeincome.vue b/src/views/finance/storeincome.vue index 91ce21c..694d7ed 100644 --- a/src/views/finance/storeincome.vue +++ b/src/views/finance/storeincome.vue @@ -1155,7 +1155,8 @@ // this.tableDataLoading1 = true let userId = this.$cookie.get('userId') this.$http({ - url: this.$http.adornUrl('cash/cashMoney'), + // url: this.$http.adornUrl('cash/cashMoney'), + url: this.$http.adornUrl('cash/withdraw'), method: 'get', params: this.$http.adornParams({ 'money': this.outMoney, @@ -2700,7 +2701,7 @@ mounted() { this.dataSelectUs() this.withdrawSelect() - + this.platformT = this.detail.qdCode this.homeSelect() }