|
@@ -271,7 +271,6 @@
|
|
|
let that = this;
|
|
let that = this;
|
|
|
// 用户绑定门店
|
|
// 用户绑定门店
|
|
|
this.$api.storeList(data).then((res) => {
|
|
this.$api.storeList(data).then((res) => {
|
|
|
- console.log(res.data.data[0])
|
|
|
|
|
that.storeInfo = res.data.data[0]
|
|
that.storeInfo = res.data.data[0]
|
|
|
// 更新用户选择的门店信息
|
|
// 更新用户选择的门店信息
|
|
|
uni.setStorageSync('storeInfo', res.data.data[0])
|
|
uni.setStorageSync('storeInfo', res.data.data[0])
|
|
@@ -280,11 +279,9 @@
|
|
|
// 获取经纬度信息
|
|
// 获取经纬度信息
|
|
|
getLocation() {
|
|
getLocation() {
|
|
|
let that = this
|
|
let that = this
|
|
|
- console.log('+++++++++++++开始获取位置信息++++++++++++++++')
|
|
|
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
|
type: 'gcj02',
|
|
type: 'gcj02',
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
- console.log(res)
|
|
|
|
|
let latitude = res.latitude; // 纬度
|
|
let latitude = res.latitude; // 纬度
|
|
|
let longitude = res.longitude; // 经度
|
|
let longitude = res.longitude; // 经度
|
|
|
let speed = res.speed; // 速度
|
|
let speed = res.speed; // 速度
|
|
@@ -297,7 +294,6 @@
|
|
|
that.getStoreListData(that.reqParm)
|
|
that.getStoreListData(that.reqParm)
|
|
|
},
|
|
},
|
|
|
fail:function (fail) {
|
|
fail:function (fail) {
|
|
|
- console.log('获取用户地址失败==》',fail)
|
|
|
|
|
that.getStoreListData(that.reqParm)
|
|
that.getStoreListData(that.reqParm)
|
|
|
},
|
|
},
|
|
|
complete:function (complete) {
|
|
complete:function (complete) {
|
|
@@ -320,7 +316,6 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
clickPeriodDateList(e){
|
|
clickPeriodDateList(e){
|
|
|
- console.log("666666666666666",e)
|
|
|
|
|
this.periodDateIndex = e.index
|
|
this.periodDateIndex = e.index
|
|
|
this.periodDate = e
|
|
this.periodDate = e
|
|
|
this.orderParam.serviceDate=this.periodDate.label
|
|
this.orderParam.serviceDate=this.periodDate.label
|
|
@@ -359,7 +354,6 @@
|
|
|
tmplIds: this.templateId,
|
|
tmplIds: this.templateId,
|
|
|
success: (res) =>{
|
|
success: (res) =>{
|
|
|
let {errMsg,...param} = res
|
|
let {errMsg,...param} = res
|
|
|
- console.log('+++++++++++++success+++++++++++++',param)
|
|
|
|
|
this.$api.updateSubscribe(param).then(res=>{
|
|
this.$api.updateSubscribe(param).then(res=>{
|
|
|
console.log('+++++++++++++updateSubscribe+++++++++++++',res)
|
|
console.log('+++++++++++++updateSubscribe+++++++++++++',res)
|
|
|
})
|
|
})
|
|
@@ -368,7 +362,6 @@
|
|
|
console.log('+++++++++++++fail+++++++++++++',err)
|
|
console.log('+++++++++++++fail+++++++++++++',err)
|
|
|
},
|
|
},
|
|
|
complete:(complete)=>{
|
|
complete:(complete)=>{
|
|
|
- console.log('+++++++++++++complete+++++++++++++',complete)
|
|
|
|
|
this.commitOrder()
|
|
this.commitOrder()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -389,11 +382,9 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
bindPickerChange(e){
|
|
bindPickerChange(e){
|
|
|
- console.log(e)
|
|
|
|
|
if (e.detail.value == this.periodDateIndex){
|
|
if (e.detail.value == this.periodDateIndex){
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- console.log('++++++++++++++')
|
|
|
|
|
this.periodDateIndex = e.detail.value
|
|
this.periodDateIndex = e.detail.value
|
|
|
this.periodDate = this.periodDateList[e.detail.value]
|
|
this.periodDate = this.periodDateList[e.detail.value]
|
|
|
this.orderParam.serviceDate=this.periodDate.label
|
|
this.orderParam.serviceDate=this.periodDate.label
|
|
@@ -403,7 +394,6 @@
|
|
|
},
|
|
},
|
|
|
//获取排班日期
|
|
//获取排班日期
|
|
|
selectDate() {
|
|
selectDate() {
|
|
|
- console.log(this.store)
|
|
|
|
|
this.$api.selectDate({
|
|
this.$api.selectDate({
|
|
|
organization: this.store.storeId
|
|
organization: this.store.storeId
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -467,7 +457,6 @@
|
|
|
// 查询服务对象信息列表
|
|
// 查询服务对象信息列表
|
|
|
listServiceObject() {
|
|
listServiceObject() {
|
|
|
this.$api.listServiceObject(this.reqParm).then((res) => {
|
|
this.$api.listServiceObject(this.reqParm).then((res) => {
|
|
|
- console.log(res)
|
|
|
|
|
this.serviceObjectList = res.data.data
|
|
this.serviceObjectList = res.data.data
|
|
|
this.getServiceObjectUrl(this.serviceObjectList);
|
|
this.getServiceObjectUrl(this.serviceObjectList);
|
|
|
|
|
|
|
@@ -581,7 +570,6 @@
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- console.log(periodTimeList)
|
|
|
|
|
//这里只为了断开技师列表的应用关系
|
|
//这里只为了断开技师列表的应用关系
|
|
|
let serviceTeacherListStr = JSON.stringify(this.serviceTeacherList)
|
|
let serviceTeacherListStr = JSON.stringify(this.serviceTeacherList)
|
|
|
let serviceTeacherList = JSON.parse(serviceTeacherListStr)
|
|
let serviceTeacherList = JSON.parse(serviceTeacherListStr)
|
|
@@ -630,7 +618,6 @@
|
|
|
this.price = this.price * 1 + childService.fee * 1
|
|
this.price = this.price * 1 + childService.fee * 1
|
|
|
this.price = this.price.toFixed(2)
|
|
this.price = this.price.toFixed(2)
|
|
|
}
|
|
}
|
|
|
- console.log(this.price)
|
|
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
}else {
|
|
}else {
|
|
|
let selectServiceObjectList = this.orderParam.childService.filter(selectServiceObject =>
|
|
let selectServiceObjectList = this.orderParam.childService.filter(selectServiceObject =>
|
|
@@ -672,11 +659,9 @@
|
|
|
this.price = this.price * 1 + childService.fee * 1
|
|
this.price = this.price * 1 + childService.fee * 1
|
|
|
this.price = this.price.toFixed(2)
|
|
this.price = this.price.toFixed(2)
|
|
|
}
|
|
}
|
|
|
- console.log(this.price)
|
|
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
selectServiceTime(items,index,index2){
|
|
selectServiceTime(items,index,index2){
|
|
|
- console.log(items,index,index2)
|
|
|
|
|
items.forEach(e=>{
|
|
items.forEach(e=>{
|
|
|
e.select=false
|
|
e.select=false
|
|
|
})
|
|
})
|