fix:客服上传图片及接受问题修复

This commit is contained in:
李伊帆
2026-10-20 14:35:39 +08:00
parent 4b93b50e50
commit 83a1e961ea
24 changed files with 937 additions and 652 deletions

View File

@@ -157,11 +157,26 @@ export function useCompleteDevice() {
initialized.value = true
}
function onProductChange(event: { detail: { value: number } }) {
const index = Number(event.detail.value)
const option = productOptions.value[index]
if (!option) return
applyProduct(option)
function onPickProduct() {
if (productOptionsLoading.value) {
uni.showToast({ title: '产品型号加载中', icon: 'none' })
return
}
const options = productOptions.value
if (!options.length) {
uni.showToast({ title: '暂无产品型号,请稍后重试', icon: 'none' })
void loadProductOptions()
return
}
const labels = options.map((item) => item.model || item.name || '未知型号')
uni.showActionSheet({
itemList: labels.slice(0, 6),
success: (res) => {
const option = options[res.tapIndex]
if (option) applyProduct(option)
},
})
}
function onPickRoom() {
@@ -268,7 +283,7 @@ export function useCompleteDevice() {
bluetoothConnected,
bluetoothStatusText,
initPage,
onProductChange,
onPickProduct,
onPickRoom,
onFinishAdd,
}