Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-27 23:09:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13be25c1a3222a17700c4b7b38de69c012bb9313
13be25c1
1 parent
d3cbad9a
fix 调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
src/components/FlowerIcon/index.vue
src/components/RankingItem/index.vue
src/components/FlowerIcon/index.vue
View file @
13be25c
<!--
* @Date: 2022-06-25 03:29:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-25 1
1:19:40
* @LastEditTime: 2022-06-25 1
5:50:08
* @FilePath: /tswj/src/components/FlowerIcon/index.vue
* @Description: 文件描述
-->
<template>
<div :class="[type === 'center' ? 'global-center' : 'flower']"
@click="goTo"
>
<div :class="[type === 'center' ? 'global-center' : 'flower']">
<van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" :style="{ verticalAlign: align }" />
<span :style="{ color, fontSize }"> {{ qty }}</span>
</div>
...
...
@@ -25,10 +25,6 @@ const props = defineProps({
type: String,
fontSize: String
})
const emit = defineEmits(['on-click']);
const goTo = () => {
emit('on-click', true)
}
</script>
<style lang="less" scoped>
...
...
src/components/RankingItem/index.vue
View file @
13be25c
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-30 10:20:34
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-25
12:24:11
* @LastEditTime: 2022-06-25
20:13:49
* @FilePath: /tswj/src/components/RankingItem/index.vue
-->
<template>
...
...
@@ -15,8 +15,7 @@
</div>
</van-col>
<van-col span="18" class="content-wrapper">
<div :class="[rankInfo.multi_name ? 'height3rem' : 'height3rem', 'kg-name']"
@click="go('/client/chooseBook', { kg_id: rankInfo.id })">
<div :class="['height3rem', 'kg-name']" @click="go('/client/chooseBook', { kg_id: rankInfo.id })">
<van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="rankInfo.logo ? rankInfo.logo : icon_logo"
...
...
@@ -24,7 +23,7 @@
</van-col>
<van-col span="20">
<div v-if="rankInfo.multi_name" style="margin-left: 0.5rem;">
<p>{{ rankInfo.multi_name[0] }}<br
/
>{{ rankInfo.multi_name[1] }}</p>
<p>{{ rankInfo.multi_name[0] }}<br>{{ rankInfo.multi_name[1] }}</p>
</div>
<p v-else style="margin-left: 0.5rem;">
{{ rankInfo.name }}
...
...
@@ -34,7 +33,8 @@
</div>
</van-col>
<van-col>
<flower-icon type="right" :qty="rankInfo.qty" align="text-bottom" @on-click="onFlowerClick" />
<flower-icon type="right" :qty="rankInfo.qty" align="text-bottom"
@click="go('/client/donateList', { kg_id: rankInfo.id })" />
</van-col>
</van-row>
</div>
...
...
Please
register
or
login
to post a comment