Commit 5e4b985f authored by 肖健's avatar 肖健

更改接口地址

parent 3fb01edd
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
}, },
//检查挪车码存在、是否绑定 //检查挪车码存在、是否绑定
getCheckMoveCode(){ getCheckMoveCode(){
let opts = { url: '/app/index/check/move/code', method: 'post' }; let opts = { url: '/app/user/check/move/code', method: 'post' };
this.http.httpTokenRequest(opts, {code:this.scene}).then(res => { this.http.httpTokenRequest(opts, {code:this.scene}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.checkCode = res.data.data this.checkCode = res.data.data
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
if(this.scene) { if(this.scene) {
let param = {code : this.scene} let param = {code : this.scene}
opts = { url: '/app/index/check/move/code', method: 'post' } opts = { url: '/app/user/check/move/code', method: 'post' }
that.http.httpTokenRequest(opts, param).then(res => { that.http.httpTokenRequest(opts, param).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
if(res.data.data.bindFlag) { if(res.data.data.bindFlag) {
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
uni.setStorageSync('xcxIndexPath', res.data.data.xcxIndexPath); uni.setStorageSync('xcxIndexPath', res.data.data.xcxIndexPath);
if(that.scene) { if(that.scene) {
let param = {code : this.scene} let param = {code : this.scene}
opts = { url: '/app/index/check/move/code', method: 'post' } opts = { url: '/app/user/check/move/code', method: 'post' }
that.http.httpTokenRequest(opts, param).then(res => { that.http.httpTokenRequest(opts, param).then(res => {
console.info(res); console.info(res);
if (res.data.code == 200) { if (res.data.code == 200) {
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
code: scene code: scene
} }
let opts = { let opts = {
url: '/app/index/check/move/code', url: '/app/user/check/move/code',
method: 'post' method: 'post'
} }
......
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
code: scene code: scene
} }
let opts = { let opts = {
url: '/app/index/check/move/code', url: '/app/user/check/move/code',
method: 'post' method: 'post'
} }
console.log(param); console.log(param);
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
code: scene code: scene
} }
let opts = { let opts = {
url: '/app/index/check/move/code', url: '/app/user/check/move/code',
method: 'post' method: 'post'
} }
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
load(paging) { load(paging) {
setTimeout(() => { setTimeout(() => {
let opts = { let opts = {
url: '/app/mall/list?pageSize=' + paging.size + '&pageNum=' + paging.page, url: '/app/index/mall/list?pageSize=' + paging.size + '&pageNum=' + paging.page,
method: 'get' method: 'get'
}; };
this.http.httpTokenRequest(opts, { this.http.httpTokenRequest(opts, {
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
}, },
getMallList() { getMallList() {
let opts = { let opts = {
url: '/app/mall/list', url: '/app/index/mall/list',
method: 'get' method: 'get'
}; };
this.http.httpTokenRequest(opts, { this.http.httpTokenRequest(opts, {
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
}, },
getBoutiqueMallList() { getBoutiqueMallList() {
let opts = { let opts = {
url: '/app/mall/list', url: '/app/index/mall/list',
method: 'get' method: 'get'
}; };
this.http.httpTokenRequest(opts, { this.http.httpTokenRequest(opts, {
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
}) })
}, },
getMallInfo(){ getMallInfo(){
let opts = { url: '/app/mall/' + this.id, method: 'get' }; let opts = { url: '/app/index/mall/' + this.id, method: 'get' };
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.mallInfo = res.data.data this.mallInfo = res.data.data
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
}, },
getMallInfo(){ getMallInfo(){
let opts = { url: '/app/mall/' + this.id, method: 'get' }; let opts = { url: '/app/index/mall/' + this.id, method: 'get' };
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.mallInfo = res.data.data this.mallInfo = res.data.data
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
searchVal: this.keyword searchVal: this.keyword
} }
console.log(searchCondition) console.log(searchCondition)
let opts = { url: '/app/mall/list', method: 'get' }; let opts = { url: '/app/index/mall/list', method: 'get' };
this.http.httpTokenRequest(opts, searchCondition).then(res => { this.http.httpTokenRequest(opts, searchCondition).then(res => {
if(res.data.code == 200){ if(res.data.code == 200){
this.items = res.data.data.rows this.items = res.data.data.rows
......
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