|
@@ -170,6 +170,7 @@
|
|
|
// 查询门店信息
|
|
// 查询门店信息
|
|
|
const data = uni.getStorageSync('storeInfo');
|
|
const data = uni.getStorageSync('storeInfo');
|
|
|
this.store = uni.getStorageSync('storeInfo')
|
|
this.store = uni.getStorageSync('storeInfo')
|
|
|
|
|
+ this.userInfo = uni.getStorageSync('userInfo')
|
|
|
if (!data) {
|
|
if (!data) {
|
|
|
// 获取位置信息查询门店列表数据
|
|
// 获取位置信息查询门店列表数据
|
|
|
this.getLocation();
|
|
this.getLocation();
|
|
@@ -246,11 +247,9 @@
|
|
|
if (index != i){
|
|
if (index != i){
|
|
|
for (const time of this.orderParam.childService[i].periodTimeList) {
|
|
for (const time of this.orderParam.childService[i].periodTimeList) {
|
|
|
if (time.label == oidTime){
|
|
if (time.label == oidTime){
|
|
|
- console.log('++++++++++++++++++++',oidTime)
|
|
|
|
|
time.total = time.total + 1
|
|
time.total = time.total + 1
|
|
|
}
|
|
}
|
|
|
if (time.label == items[index2].label) {
|
|
if (time.label == items[index2].label) {
|
|
|
- console.log('------------------', items[index2].label)
|
|
|
|
|
time.total = time.total - 1
|
|
time.total = time.total - 1
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -262,7 +261,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.getImgUrlByBannerOssId(this.serviceObjectList);
|
|
this.getImgUrlByBannerOssId(this.serviceObjectList);
|
|
|
|
|
|
|
@@ -316,7 +314,6 @@
|
|
|
date: this.orderParam.serviceDate,
|
|
date: this.orderParam.serviceDate,
|
|
|
storeId:this.store.storeId
|
|
storeId:this.store.storeId
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
- console.log("++++++++++++++++++res++++++++++++++++++++",res)
|
|
|
|
|
this.periodTimeList = res.data.data
|
|
this.periodTimeList = res.data.data
|
|
|
if (this.periodTimeList.length===0){
|
|
if (this.periodTimeList.length===0){
|
|
|
uni.$u.toast('暂无可预约排班')
|
|
uni.$u.toast('暂无可预约排班')
|
|
@@ -384,12 +381,10 @@
|
|
|
},
|
|
},
|
|
|
getSelectionRules(data){
|
|
getSelectionRules(data){
|
|
|
this.$api.getSelectionRules(data).then(res=>{
|
|
this.$api.getSelectionRules(data).then(res=>{
|
|
|
- console.log(res.data.rows,'222222222222')
|
|
|
|
|
this.takeNumberRules = res.data.rows
|
|
this.takeNumberRules = res.data.rows
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
openSetting(){
|
|
openSetting(){
|
|
|
-
|
|
|
|
|
if (!this.userInfo.phone){
|
|
if (!this.userInfo.phone){
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title:'温馨提示',
|
|
title:'温馨提示',
|