|
|
@@ -17,6 +17,9 @@ Page({ |
|
|
|
pickedStartTime: "请选择", |
|
|
|
pickedEndTime: "请选择", |
|
|
|
describeStr: "", |
|
|
|
mallList: [], |
|
|
|
merchantId: "", |
|
|
|
currentIndex: "", |
|
|
|
status: "", |
|
|
|
isShowBtns: false |
|
|
|
}, |
|
|
@@ -37,10 +40,11 @@ Page({ |
|
|
|
id: options.id || '', |
|
|
|
orderId: options.orderId || '', |
|
|
|
startTime: finalStartTime, |
|
|
|
endTime: options.endTime || '' |
|
|
|
endTime: options.endTime || '', |
|
|
|
mallList: JSON.parse(options.mallList)[0].merchantVoList || '', |
|
|
|
}) |
|
|
|
|
|
|
|
console.log(this.data.startTime, 'startTime'); |
|
|
|
console.log(this.data.mallList, 'mallList'); |
|
|
|
|
|
|
|
const mallTenantId = tt.getStorageSync('mallTenantId'); |
|
|
|
if (mallTenantId) { |
|
|
@@ -58,6 +62,16 @@ Page({ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
setMerchant(e) { |
|
|
|
console.log(e.detail.value, 'e'); |
|
|
|
const index = e.detail.value |
|
|
|
this.setData({ |
|
|
|
currentIndex: index, |
|
|
|
merchantId: this.data.mallList[index].id |
|
|
|
}) |
|
|
|
console.log(this.data.currentIndex, this.data.merchantId); |
|
|
|
}, |
|
|
|
|
|
|
|
chooseAddress() { |
|
|
|
if (!this.data.isShowBtns) return |
|
|
|
let that = this; |
|
|
@@ -142,7 +156,8 @@ Page({ |
|
|
|
startDate: tempData.pickedDate + " " + tempData.pickedStartTime + ":00", |
|
|
|
endDate: tempData.pickedDate + " " + tempData.pickedEndTime + ":00", |
|
|
|
describeStr: tempData.describeStr, |
|
|
|
mallTenantId: tempData.mallTenantId || '' |
|
|
|
mallTenantId: tempData.mallTenantId || '', |
|
|
|
reservationMerchantId: tempData.merchantId |
|
|
|
} |
|
|
|
|
|
|
|
if (this.data.id) { |
|
|
|