|
|
@ -197,9 +197,9 @@ const handlePopClose = (item) => {
|
|
|
|
if (popupName.value == 'time') {
|
|
|
|
if (popupName.value == 'time') {
|
|
|
|
appointmentTime.value = item
|
|
|
|
appointmentTime.value = item
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (popupName.value == 'address') {
|
|
|
|
// if (popupName.value == 'address') {
|
|
|
|
recycleAddress.value = item.location
|
|
|
|
// recycleAddress.value = item.location
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (popupName.value == 'site') {
|
|
|
|
if (popupName.value == 'site') {
|
|
|
|
if (siteObj.value.id != item.id) {
|
|
|
|
if (siteObj.value.id != item.id) {
|
|
|
|
siteObj.value = item
|
|
|
|
siteObj.value = item
|
|
|
@ -238,6 +238,18 @@ const bindPickerChange = (e, item) => {
|
|
|
|
item.productWeight = weightMenuList[idx].val
|
|
|
|
item.productWeight = weightMenuList[idx].val
|
|
|
|
item.productWeightLabel = weightMenuList[idx].name
|
|
|
|
item.productWeightLabel = weightMenuList[idx].name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 处理位置
|
|
|
|
|
|
|
|
const handlePointer = () => {
|
|
|
|
|
|
|
|
uni.chooseLocation({
|
|
|
|
|
|
|
|
success: async function (res) {
|
|
|
|
|
|
|
|
recycleAddress.value = res.address
|
|
|
|
|
|
|
|
console.log(res, '返回地址')
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
fail: function (e) {
|
|
|
|
|
|
|
|
console.log(e, '报错')
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class="booking">
|
|
|
|
<view class="booking">
|
|
|
@ -258,10 +270,14 @@ const bindPickerChange = (e, item) => {
|
|
|
|
<text class="label">时间:</text>
|
|
|
|
<text class="label">时间:</text>
|
|
|
|
<text class="text ellipsis"> {{ appointmentTime }} </text>
|
|
|
|
<text class="text ellipsis"> {{ appointmentTime }} </text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view @tap="openPopup('address')" class="item arrow">
|
|
|
|
<view @tap="handlePointer()" class="item arrow">
|
|
|
|
<text class="label">地址:</text>
|
|
|
|
<text class="label">地址:</text>
|
|
|
|
<text class="text ellipsis"> {{ recycleAddress }} </text>
|
|
|
|
<text class="text ellipsis"> {{ recycleAddress }} </text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!-- <view @tap="openPopup('site')" class="item arrow">
|
|
|
|
|
|
|
|
<text class="label">地址:</text>
|
|
|
|
|
|
|
|
<text class="text ellipsis"> {{ recycleAddress }} </text>
|
|
|
|
|
|
|
|
</view> -->
|
|
|
|
<view @tap="openPopup('site')" class="item arrow">
|
|
|
|
<view @tap="openPopup('site')" class="item arrow">
|
|
|
|
<text class="label">站点:</text>
|
|
|
|
<text class="label">站点:</text>
|
|
|
|
<text class="text ellipsis">{{ siteObj?.stationName || '请选择回收站点' }}</text>
|
|
|
|
<text class="text ellipsis">{{ siteObj?.stationName || '请选择回收站点' }}</text>
|
|
|
|