问题清单修复
This commit is contained in:
parent
e48e6d1025
commit
89f2ab9a0b
|
|
@ -186,7 +186,7 @@
|
|||
|
||||
<van-popup v-model:show="showArea" destroy-on-close position="bottom">
|
||||
<van-area
|
||||
:area-list="areaList"
|
||||
:area-list="anAreaList"
|
||||
v-model="areaListValue"
|
||||
@confirm="onConfirmArea"
|
||||
@cancel="showArea = false"
|
||||
|
|
@ -221,7 +221,7 @@ import { addLeaseInfoAPI } from '@/services/demand/index.js'
|
|||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { areaList } from '@vant/area-data'
|
||||
import moment from 'moment'
|
||||
import { reactive, ref } from 'vue'
|
||||
import { computed, reactive, ref } from 'vue'
|
||||
const minDate = new Date(moment().format('YYYY'), moment().format('MM') - 1, moment().format('DD'))
|
||||
const maxDate = new Date(moment().format('YYYY') * 1 + 100, 12, 31)
|
||||
const showArea = ref(false)
|
||||
|
|
@ -412,10 +412,19 @@ const onConfirmArea = (val) => {
|
|||
})
|
||||
showArea.value = false
|
||||
}
|
||||
|
||||
const anAreaList = computed(() => {
|
||||
return {
|
||||
province_list: { 340000: '安徽省' },
|
||||
city_list: areaList.city_list,
|
||||
county_list: areaList.county_list,
|
||||
}
|
||||
})
|
||||
onLoad(() => {
|
||||
getEquipmentTypeData()
|
||||
console.log(areaList, 'areaList')
|
||||
// anAreaList.province = areaList.value.province.filter(
|
||||
// (province) => ['340000'].includes(province.code), // 只保留北京和天津
|
||||
// )
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<van-grid-item v-if="memberStore.userType === 2">
|
||||
<navigator url="/pages/order-details/index?type=2">
|
||||
<van-icon name="cart" />
|
||||
<text>租赁订单</text>
|
||||
<text>承租订单</text>
|
||||
</navigator>
|
||||
</van-grid-item>
|
||||
</van-grid>
|
||||
|
|
|
|||
Loading…
Reference in New Issue