diff --git a/src/pages/index/home/index.vue b/src/pages/index/home/index.vue index 8e36731..5797b1e 100755 --- a/src/pages/index/home/index.vue +++ b/src/pages/index/home/index.vue @@ -94,20 +94,19 @@ import Order from '../order/index.vue' const { $Router, $api, $store } = getCurrentInstance().proxy const userRole = computed(() => $store.user.userInfo.roleName ?? 'simple') const searchVal = ref('') -const swiperList = ref([ - { - images: 'https://cdn.uviewui.com/uview/swiper/1.jpg', - title: '昨夜西风凋碧树' - }, - { - images: 'https://cdn.uviewui.com/uview/swiper/2.jpg', - title: '行色匆匆' - }, - { - images: 'https://cdn.uviewui.com/uview/swiper/3.jpg', - title: '更上一层楼' - } -]) +const swiperList = ref([]) +// { +// images: 'https://cdn.uviewui.com/uview/swiper/1.jpg', +// title: '昨夜西风凋碧树' +// }, +// { +// images: 'https://cdn.uviewui.com/uview/swiper/2.jpg', +// title: '行色匆匆' +// }, +// { +// images: 'https://cdn.uviewui.com/uview/swiper/3.jpg', +// title: '更上一层楼' +// } // 半天陪诊 全天陪诊 遵享服务 代办约号 取送报告 代取送药 上门检测护理 在线咨询 const gridList = ref([ { diff --git a/src/pages/index/order/index.vue b/src/pages/index/order/index.vue index f98540f..2af02d6 100755 --- a/src/pages/index/order/index.vue +++ b/src/pages/index/order/index.vue @@ -298,7 +298,10 @@ onShow(() => { confirmColor: '#FF8CA6' }) .then(() => { - $Router.push('/personal') + // $Router.push('/personal') + $store.user.login().then((user) => { + $store.user.setUserInfo(user) + }) }) .catch(() => '') return diff --git a/src/pages/index/personal/index.vue b/src/pages/index/personal/index.vue index c391d25..456209e 100755 --- a/src/pages/index/personal/index.vue +++ b/src/pages/index/personal/index.vue @@ -94,21 +94,22 @@ +