fix:客服上传图片及接受问题修复
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user