|
@@ -71,7 +71,7 @@
|
|
|
<script setup>
|
|
|
import sheep from '@/sheep';
|
|
|
import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
|
|
|
-import { computed, reactive, ref } from 'vue';
|
|
|
+import { computed, reactive, ref ,onMounted} from 'vue';
|
|
|
import goodsApi from '@/sheep/api/restaurant/goods'
|
|
|
|
|
|
const cart = sheep.$store('cart');
|
|
@@ -83,6 +83,10 @@ const addressList = computed(() => {
|
|
|
console.log('restaurant', addressList)
|
|
|
return addressList
|
|
|
})
|
|
|
+ const updateTime = () => {
|
|
|
+ datetimesingle.value= new Date().getTime()
|
|
|
+ console.log('updateTime',datetimesingle.value)
|
|
|
+ }
|
|
|
const handleOk= async () =>{
|
|
|
if(datetimesingle.value ==''){
|
|
|
sheep.$helper.toast('请选择用餐时间')
|
|
@@ -153,6 +157,9 @@ const tabSelect= (e) =>{
|
|
|
console.log(e.currentTarget.dataset.id)
|
|
|
TabCur.value = e.currentTarget.dataset.id;
|
|
|
}
|
|
|
+onMounted(() => {
|
|
|
+ updateTime()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|