This commit is contained in:
wtq
2025-12-09 18:01:36 +08:00
parent 467e130f7b
commit e01259818b
9 changed files with 72 additions and 72 deletions

View File

@@ -23,7 +23,7 @@ export default {
const storeName = ref('') // 门店名称
const logoUrl = ref('https://image.jxc4.com/image/9b9436561e7ff7d8d764787b1aa5182e.jpg')
const { isTxd } = useGlobalFunc()
// const { isTxd } = useGlobalFunc()
onLoad(async () => {
store.commit('storeInfo/jxLoadingFn', true)
@@ -92,7 +92,7 @@ export default {
}),
};
await merchant.update_store(data);
setTxdIngState(1)
// setTxdIngState(1)
newAutoEnableAt.value = ''
toast("操作成功", 1)
// state.value = 1;
@@ -117,7 +117,7 @@ export default {
}),
};
await merchant.update_store(data);
setTxdIngState(-1)
// setTxdIngState(-1)
newAutoEnableAt.value = ''
// businessStatus.value = item.id
toast("操作成功", 1)
@@ -133,35 +133,35 @@ export default {
/**
* 设置第三方平台
*/
async function setTxdIngState(type: number) {
if (isTxd()) {
let data = {
vendorOrgCode: 34402634,
txdStores: JSON.stringify({
flag: [1],
txdStoreID: `JX${getStorage('storeID')}`,
status: type
})
}
await merchant.update_txd_store(data)
}
// async function setTxdIngState(type: number) {
// // if (isTxd()) {
// // let data = {
// // vendorOrgCode: 34402634,
// // txdStores: JSON.stringify({
// // flag: [1],
// // txdStoreID: `JX${getStorage('storeID')}`,
// // status: type
// // })
// // }
// // await merchant.update_txd_store(data)
// // }
// 更新线上平台的营业状态
let arr = store.state.storeInfo.allStoreInfo.StoreMaps.map((item: AnyObject) => {
if (item.isSync) return item.vendorID + ''
})
// // 更新线上平台的营业状态
// let arr = store.state.storeInfo.allStoreInfo.StoreMaps.map((item: AnyObject) => {
// if (item.isSync) return item.vendorID + ''
// })
arr = arr.filter((item: string) => item !== '9')
if (arr.length > 0) {
let data = {
storeID: getStorage('storeID'),
vendorIDs: arr.join(','),
status: type
}
await merchant.update_vendors_store_states(data);
}
// uni.navigateBack()
}
// arr = arr.filter((item: string) => item !== '9')
// if (arr.length > 0) {
// let data = {
// storeID: getStorage('storeID'),
// vendorIDs: arr.join(','),
// status: type
// }
// await merchant.update_vendors_store_states(data);
// }
// // uni.navigateBack()
// }
async function storeRest() {
let autoEnableAt = currentTime.value
@@ -175,7 +175,7 @@ export default {
}),
};
await merchant.update_store(data);
setTxdIngState(0)
// setTxdIngState(0)
toast("操作成功", 1);
popupTime.value.close()
businessStatus.value = 0;

View File

@@ -7,7 +7,7 @@ import { store } from "@/store";
export default {
setup() {
const { isTxd } = useGlobalFunc()
// const { isTxd } = useGlobalFunc()
// ******************** 时间选择组件操作 *****************************
//#region
@@ -112,7 +112,7 @@ export default {
closeTime2: formatTime(time.timer4),
}),
}
setTxdIngTime(time)
// setTxdIngTime(time)
let updateTimerRes = await merchant.update_store(data)
if (updateTimerRes.code == 0) {
uni.jxAlert({
@@ -142,22 +142,22 @@ export default {
// ******************** 修改淘鲜达线上时间 *****************************
//#region
async function setTxdIngTime(time: AnyObject) {
if (isTxd()) {
let data = {
vendorOrgCode: 34402634,
txdStores: JSON.stringify({
flag: [2],
txdStoreID: `JX${getStorage('storeID')}`,
startTime: time.timer1,
endTime: time.timer2
})
}
await merchant.update_txd_store(data)
} else {
console.log('此店铺暂无淘鲜达店铺')
}
}
// async function setTxdIngTime(time: AnyObject) {
// // if (isTxd()) {
// // let data = {
// // vendorOrgCode: 34402634,
// // txdStores: JSON.stringify({
// // flag: [2],
// // txdStoreID: `JX${getStorage('storeID')}`,
// // startTime: time.timer1,
// // endTime: time.timer2
// // })
// // }
// // await merchant.update_txd_store(data)
// // } else {
// // console.log('此店铺暂无淘鲜达店铺')
// // }
// }
//#endregion

View File

@@ -4,7 +4,7 @@
<view> 门店营业时间需在配送站点营业时间内才会有骑手配送</view>
<view> 如需在此时间范围外营业请咨询业务经理调整配送方式</view>
<view> 第二段营业时间需要在第一段营业时间之后</view>
<view> 淘先达仅使用营业时间一</view>
<!-- <view> 淘先达仅使用营业时间一</view> -->
</view>
<view class="time-root">