Sanakey
3 天以前 b5c1614fe473330ceca8b7cff0f1802e19bd5039
src/views/clues/components/drawer/ScheduleDetail.vue
@@ -27,8 +27,10 @@
                <Row class="c-gray ml-22px">今天</Row>
              </Col>
              <Col span="4" class="font-bold text-right">
                <HeartOutlined class="font-size-18px" />
                <HeartFilled class="font-size-18px c-red-5" />
                <div class="cursor-pointer">
                  <HeartFilled v-if="isFollow" @click="handleCancelFollow" class="font-size-18px c-red-5" />
                  <HeartOutlined v-else @click="handleFollow" class="font-size-18px "/>
                </div>
              </Col>
            </Row>
          </div>
@@ -226,6 +228,16 @@
  function handleVisibleChange(v) {
    v && props.userData && nextTick(() => onDataReceive(props.userData));
  }
  const isFollow = ref(false);
  function handleFollow() {
    Logger.log('关注');
    isFollow.value = true;
  }
  function handleCancelFollow() {
    Logger.log('取消关注');
    isFollow.value = false;
  }
</script>
<style lang="less">
.schedule-detail-modal {