Commit d59f1113 authored by 郑秀明's avatar 郑秀明

修改请求路径

parent a61452ab
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
}, },
getData(params) { getData(params) {
uni.request({ uni.request({
url: '/api/credit_goods/get_credit_second_goods', url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST', method: 'POST',
data: params, data: params,
dataType: 'json', dataType: 'json',
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
} }
this.tabIndex = index; this.tabIndex = index;
uni.request({ uni.request({
url: '/api/credit_goods/get_credit_second_goods', url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST', method: 'POST',
data: { data: {
...params, ...params,
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
changePage(data) { changePage(data) {
const { current } = data; const { current } = data;
uni.request({ uni.request({
url: '/api/credit_goods/get_credit_second_goods', url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST', method: 'POST',
data: { data: {
...this.params, ...this.params,
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
}, },
search(keyword) { search(keyword) {
uni.request({ uni.request({
url: '/api/credit_goods/get_credit_second_goods', url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST', method: 'POST',
data: { data: {
goods_name: this.keyword, goods_name: this.keyword,
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
}, },
getData() { getData() {
uni.request({ uni.request({
url: '/api/credit_goods/get_credit_index_goods', url: '/uni/api/credit_goods/get_credit_index_goods',
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment