New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smt-ui-template/page-feed

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-ui-template/page-feed

smt-ui-template 信息流模板

  • 0.0.2-alpha.0
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source
模板名称

page-content-detail

解释:

content-detail 内容详情

查看内容详情页本身不需要用户登录,如果用户在其他页面已登录,关注/取消关注按钮会显示出来,可以通过以下语句在其它页面缓存用户id信息。

swan.setStorageSync('@content-detail:userId', 'xxx');

推荐swan.request设置interceptor来设置一些通用参数,例如当前登录用户身份信息。

内容详情页包含两个接口:

  1. 一个为获取文章详情

可以在 getArticleDetail 方法中设置请求地址和参数

  1. 另一个为 关注/取消关注 接口

可以在 tapfollow 方法中设置请求地址和参数

内容详情页包含一个页面跳转:

可以在 tapuser 中设置点击用户头像区域时的跳转页面

内容详情页包括6个数据记录事件:

  • articleshow: 页面展现
  • tapuser: 点击用户区域
  • tapfollow: 点击关注/取消关注按钮
  • tapimg: 点击图片
  • saveimg: 下载图片
  • backtotop: 点击回到顶部按钮

FAQs

Package last updated on 24 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc