uniapp+Django技术实现点击收藏按钮变色功能
发布时间
阅读量:
阅读量
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"
全部评论 (0)
还没有任何评论哟~
