床垫
This commit is contained in:
parent
e582aed977
commit
6413a2050f
|
@ -20,7 +20,7 @@ const install = (Vue, vm) => {
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
baseUrl: 'http://192.168.2.157:3302',
|
baseUrl: 'http://192.168.2.223:3302',
|
||||||
// baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
// baseUrl: 'https://kang.chuangtewl.com/prod-api',
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
loadingTime: 800,
|
loadingTime: 800,
|
||||||
|
|
|
@ -121,9 +121,11 @@
|
||||||
userflag:false,
|
userflag:false,
|
||||||
maskflag:false,
|
maskflag:false,
|
||||||
inptext:'',
|
inptext:'',
|
||||||
|
userid:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
this.userid = uni.getStorageSync('userType').userId
|
||||||
this.billId = option.billId
|
this.billId = option.billId
|
||||||
this.getxq()
|
this.getxq()
|
||||||
},
|
},
|
||||||
|
@ -148,7 +150,7 @@
|
||||||
this.$u.get(`/app/bill/arrival/${this.billId}`).then(res => {
|
this.$u.get(`/app/bill/arrival/${this.billId}`).then(res => {
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.obj = res.data
|
this.obj = res.data
|
||||||
if(res.data.status == 2){
|
if(this.userid == res.data.agentId && res.data.status == 2){
|
||||||
this.userflag = true
|
this.userflag = true
|
||||||
}else{
|
}else{
|
||||||
this.userflag = false
|
this.userflag = false
|
||||||
|
|
|
@ -297,7 +297,7 @@
|
||||||
storeId: this.storeId,
|
storeId: this.storeId,
|
||||||
userId: this.userId
|
userId: this.userId
|
||||||
}
|
}
|
||||||
this.$u.put(`/app/shareCode/use`, data).then((res) => {
|
this.$u.put(`/app/shareCode/use`, data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user