uniapp
收藏与取消收藏:就是点击这个:@click="store(item.content,item.star_style)"
通过点击的item.content传给后端判断当前点击的这条目是什么
展示星星的颜色与条目信息是在onload函数里的。
<template>
<view class="flex-col page">
<view class="flex-col group">
<view class="justify-between section_1" @click="toPost">
<text class="text">发帖</text>
<image
src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/621b3ba25a7e3f031094e05a/6263de904eb5590011d34380/16507122302491358008.png"
class="image"
/>
</view>
<view class="flex-row group_1">
<image
src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/621b3ba25a7e3f031094e05a/6263de904eb5590011d34380/16514940693480572865.png"
class="image_1"
/>
<view class="flex-col items-center text-wrapper">
<text>就近帮扶</text>
</view>
</view>
<view class="flex-col group_2">
<view class="flex-col section_2">
<view v-for="item in items" >
<text class="text_2">{
{item.content}}</text>
<view class="justify-between group_4">
<image
:src=item.star_style
class="image_3 image_4"
@click="store(item.content,item.star_style)"
/>
<view class="flex-row">
<view class="left