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