diff --git a/postcss.config.js b/postcss.config.js index 945fba9..b0c0e98 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -2,7 +2,7 @@ module.exports = { plugins: [ require('postcss-pxtorem')({ rootValue:({ file }) => { - if (file.includes('userRanking') || file.includes('dietaryNutritionTips')) { + if (file.includes('userRanking') || file.includes('dietaryNutritionTips') || file.includes('restaurantAndCafeteriaCombined')) { return 108; } else { return 192; diff --git a/src/router/index.js b/src/router/index.js index 6e28318..baa936d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -121,6 +121,33 @@ const routes = [ }, component: () => import('@/views/led/led.vue') }, + { + path: '/restaurantAndCafeteriaCombined_canteen', + name: 'restaurantAndCafeteriaCombined_canteen', + meta: { + title: '食堂 _ 排行榜', + rootValue: 108 + }, + component: () => import('@/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_canteen.vue') + }, + { + path: '/restaurantAndCafeteriaCombined_restaurant', + name: 'restaurantAndCafeteriaCombined_restaurant', + meta: { + title: '餐厅 _ 排行榜', + rootValue: 108 + }, + component: () => import('@/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_restaurant.vue') + }, + { + path: '/restaurantAndCafeteriaCombined_weight', + name: 'restaurantAndCafeteriaCombined_weight', + meta: { + title: '体重 _ 排行榜', + rootValue: 108 + }, + component: () => import('@/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_weight.vue') + }, { path: '/:catchAll(.*)', redirect: '/dietaryNutritionTips1' @@ -133,6 +160,9 @@ const router = new VueRouter({ routes }); +// http://192.168.1.210/gateway/local/zhstapi/zhst/tv/rankingList?number=9 +// http://vip.shuziweidao.com/shuwei-zhct/swLargeScreenFood/rankingList?type=1 + router.beforeEach((to, from, next) => { if (to.meta && to.meta.rootValue) { window.POSTCSS_PXTOREM_ROOT_VALUE = to.meta.rootValue; diff --git a/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_canteen.vue b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_canteen.vue new file mode 100644 index 0000000..adb359c --- /dev/null +++ b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_canteen.vue @@ -0,0 +1,518 @@ + + + + + \ No newline at end of file diff --git a/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_restaurant.vue b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_restaurant.vue new file mode 100644 index 0000000..d786e4e --- /dev/null +++ b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_restaurant.vue @@ -0,0 +1,544 @@ + + + + + diff --git a/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_weight.vue b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_weight.vue new file mode 100644 index 0000000..8fbf019 --- /dev/null +++ b/src/views/restaurantAndCafeteriaCombined/restaurantAndCafeteriaCombined_weight.vue @@ -0,0 +1,523 @@ + + + + + \ No newline at end of file