master
parent
161fd11009
commit
52cb4f4ac0
|
@ -4,8 +4,8 @@ console.log('当前环境', process.env.NODE_ENV)
|
|||
const apiHub = {
|
||||
//开发环境
|
||||
development: {
|
||||
BASE_URL: this.$hostapi,
|
||||
// BASE_URL: "https://hm.hmzfyy.cn/api/",
|
||||
// BASE_URL: `https://hengmei.scdxtc.cn/api/`,
|
||||
BASE_URL: "https://hm.hmzfyy.cn/api/",
|
||||
IMG_URL: "https://xx",
|
||||
BASE_UPLOAD_URL: "",
|
||||
},
|
||||
|
|
|
@ -291,7 +291,7 @@ const tools = {
|
|||
language:obj.language
|
||||
}
|
||||
uni.request({
|
||||
url: `${that.$hostapi}user/login`,
|
||||
url: `https://hm.hmzfyy.cn/api/user/login`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
|
|
2
main.js
2
main.js
|
@ -34,7 +34,7 @@ Vue.prototype.$requst = requst;
|
|||
// Vue.prototype.$http = 'https://hm.hmzfyy.cn'
|
||||
Vue.prototype.$http = 'https://oss.hmzfyy.cn';
|
||||
// Vue.prototype.$newUrl = 'https://hengmei.scdxtc.cn/api/';
|
||||
Vue.prototype.$hostapi = 'https://hm.hmzfyy.cn/api/';
|
||||
// Vue.prototype.$hostapi = 'https://hm.hmzfyy.cn/api/';
|
||||
|
||||
const {log} = console;
|
||||
Vue.prototype.$log = log
|
||||
|
|
|
@ -412,7 +412,7 @@
|
|||
is_hot:1
|
||||
}
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -246,6 +246,8 @@
|
|||
if(res.data.phone_active!=0){
|
||||
uni.setStorageSync('phone_active',res.data.phone_active);
|
||||
}
|
||||
} else {
|
||||
this.$toolAll.tools.isLogin()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
@ -304,7 +304,7 @@
|
|||
disease_id:this.disease_id//病种ID
|
||||
}
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -511,7 +511,7 @@
|
|||
this.$toolAll.tools.showToast('正在调起支付','loading',1500);
|
||||
}
|
||||
uni.request({
|
||||
url:`${this.$hostapi}order/create`,
|
||||
url:`https://hm.hmzfyy.cn/api/order/create`,
|
||||
data:parmas,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
if(index==1){
|
||||
this.isWen = false;
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/collection`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/collection`,
|
||||
data:{page:this.page,size:this.size},
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -485,7 +485,7 @@
|
|||
},
|
||||
checkPTList(id){//查询正在拼团的人数
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/group-list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/group-list`,
|
||||
data:{id:id},
|
||||
method:'post',
|
||||
header:{
|
||||
|
@ -663,7 +663,7 @@
|
|||
},
|
||||
checkDetail(newId,is_activity){
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/detail`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/detail`,
|
||||
data:{id:newId,is_activity:is_activity},
|
||||
method:'post',
|
||||
header:{
|
||||
|
@ -801,7 +801,7 @@
|
|||
disease_id:''//病种ID
|
||||
}
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
size:this.size,
|
||||
}
|
||||
uni.request({
|
||||
url:`${this.$hostapi}spu/list`,
|
||||
url:`https://hm.hmzfyy.cn/api/spu/list`,
|
||||
data:params,
|
||||
method:'post',
|
||||
header:{
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue