You need to sign in or sign up before continuing.
hookehuyr

fix 调整

<!--
* @Date: 2022-06-25 03:29:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-25 11:19:40
* @LastEditTime: 2022-06-25 15: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 }">&nbsp;{{ 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>
......
......@@ -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>
......