diff --git a/pages.json b/pages.json index f7a23cf..4ce058a 100644 --- a/pages.json +++ b/pages.json @@ -9,14 +9,6 @@ "backgroundColor": "#FFFFFF" } }, - { - "path": "pages/rating/index", - "style": { - "navigationBarTitleText": "全民评分", - "navigationStyle": "custom", - "enablePullDownRefresh": true - } - }, { "path": "pages/mine/help", "style": { @@ -71,6 +63,22 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + }, + { + "path": "pages/rating/index", + "style": { + "navigationBarTitleText": "全民评分", + "navigationStyle": "custom", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/rating/detail", + "style": { + "navigationBarTitleText": "人物详情", + "navigationStyle": "custom", + "enablePullDownRefresh": true + } } ], "globalStyle": { diff --git a/pages/rating/detail.vue b/pages/rating/detail.vue new file mode 100644 index 0000000..ba752dc --- /dev/null +++ b/pages/rating/detail.vue @@ -0,0 +1,858 @@ + + + + + \ No newline at end of file diff --git a/pages/rating/index.vue b/pages/rating/index.vue index 81c986f..4969d39 100644 --- a/pages/rating/index.vue +++ b/pages/rating/index.vue @@ -74,34 +74,39 @@ - - - - - {{ item.name }} - NO.{{ item.rank }} - - {{ item.score }} - - - “{{ item.quote }}” - - - - - {{ action.emoji }} + + + + + {{ item.name }} + NO.{{ item.rank }} + + {{ item.score }} + + + “{{ item.quote }}” + + + + + {{ action.emoji }} + + {{ action.label }} - {{ action.label }} - @@ -222,6 +227,12 @@ const handleAction = (item, actionValue) => { item.userAction = item.userAction === actionValue ? '' : actionValue; }; +const goToDetail = (itemId) => { + uni.navigateTo({ + url: `/pages/rating/detail?itemId=${itemId}` + }); +}; + // 下拉刷新 onPullDownRefresh(() => { setTimeout(() => {