Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Codet
mini-vote
提交
d9154715
M
mini-vote
项目概览
Codet
/
mini-vote
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mini-vote
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d9154715
编写于
9月 10, 2020
作者:
N
nenyah
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(*): modify vote-item to display different
上级
4c301427
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
21 deletion
+27
-21
src/components/vote-item/vote-item.vue
src/components/vote-item/vote-item.vue
+23
-17
src/components/vote-list/vote-list.vue
src/components/vote-list/vote-list.vue
+2
-2
src/pages/detail/detail.vue
src/pages/detail/detail.vue
+2
-2
未找到文件。
src/components/vote-item/vote-item.vue
浏览文件 @
d9154715
...
...
@@ -3,7 +3,7 @@
* @Author: Steven
* @Date: 2020-09-08 09:24:24
* @LastEditors: Steven
* @LastEditTime: 2020-09-10 1
0:39:20
* @LastEditTime: 2020-09-10 1
6:56:49
-->
<
template
>
<view
...
...
@@ -11,20 +11,25 @@
>
<view
class=
"text-gray-500 my-1"
>
{{
item
.
id
}}
号
</view>
<navigator
:url=
"toUrl"
>
<image
:src=
"item.img"
mode=
"widthFix"
style=
"width: 100%; background-color: #eeeeee;"
></image>
<image
:src=
"item.img"
mode=
"widthFix"
style=
"width: 100%; background-color: #eeeeee;"
></image>
<view
class=
"text-gray-100 text-lg font-bold mt-1"
>
{{
item
.
name
}}
</view>
<view
class=
"text-gray-500 my-1"
>
{{
item
.
group
}}
</view>
</navigator>
<view
class=
"flex w-full"
>
<view
class=
"flex-1 border border-solid border-gray-500 bg-purple-300 text-white p-2"
>
{{
item
.
vote
}}
</view
>
<view
class=
"flex-1 border border-solid border-orange-500 bg-orange-500 text-white p-2"
>
投票
</view
>
<view
v-if=
"index"
>
<view
class=
"flex w-full"
>
<view
class=
"flex-1 border border-solid border-gray-500 bg-purple-300 text-white p-2"
>
{{
item
.
vote
}}
</view
>
<view
class=
"flex-1 border border-solid border-orange-500 bg-orange-500 text-white p-2"
>
投票
</view
>
</view>
</view>
</view>
</
template
>
...
...
@@ -37,14 +42,15 @@ export default Vue.extend({
},
props
:
{
item
:
Object
,
index
:
Boolean
,
},
onLoad
()
{},
methods
:
{},
computed
:{
toUrl
():
string
{
return
`/pages/detail/detail?id=
${
this
.
item
.
id
}
`
}
}
computed
:
{
toUrl
():
string
{
return
`/pages/detail/detail?id=
${
this
.
item
.
id
}
`
},
}
,
})
</
script
>
...
...
src/components/vote-list/vote-list.vue
浏览文件 @
d9154715
...
...
@@ -3,7 +3,7 @@
* @Author: Steven
* @Date: 2020-09-08 09:24:10
* @LastEditors: Steven
* @LastEditTime: 2020-09-10 16:
42:0
4
* @LastEditTime: 2020-09-10 16:
57:1
4
-->
<
template
>
<view
class=
"text-gray-100"
>
...
...
@@ -17,7 +17,7 @@
</view>
<block
v-for=
"(item, index) in items"
:key=
"item.id"
>
<view
class=
""
v-if=
"isIndex"
>
<vote-item
:item=
"item"
></vote-item>
<vote-item
:item=
"item"
:index=
"true"
></vote-item>
</view>
<view
v-else
>
<rank-item
:item=
"item"
:index=
"index"
></rank-item>
...
...
src/pages/detail/detail.vue
浏览文件 @
d9154715
...
...
@@ -3,7 +3,7 @@
* @Author: Steven
* @Date: 2020-09-08 08:48:06
* @LastEditors: Steven
* @LastEditTime: 2020-09-10 16:
46:33
* @LastEditTime: 2020-09-10 16:
53:16
-->
<
template
>
<view
class=
"bg-purple"
>
...
...
@@ -24,7 +24,7 @@
<detail-video></detail-video>
<!-- 选手简介 -->
<sub-title
:content=
"title3"
></sub-title>
<view>
{{
item
.
desc
}}
</view>
<view
class=
"text-gray-100 p-4"
>
{{
item
.
desc
}}
</view>
<!-- 脚注 -->
<vote-footer></vote-footer>
</view>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录