Showing
1 changed file
with
7 additions
and
1 deletions
| @@ -22,6 +22,7 @@ import { HttpUrlUtils } from 'wdNetwork/Index'; | @@ -22,6 +22,7 @@ import { HttpUrlUtils } from 'wdNetwork/Index'; | ||
| 22 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 22 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 23 | import { PageRepository } from '../../repository/PageRepository'; | 23 | import { PageRepository } from '../../repository/PageRepository'; |
| 24 | import { SpConstants } from 'wdConstant/Index'; | 24 | import { SpConstants } from 'wdConstant/Index'; |
| 25 | +import { WDShare } from 'wdShare/Index'; | ||
| 25 | 26 | ||
| 26 | const TAG = 'OperRowListView'; | 27 | const TAG = 'OperRowListView'; |
| 27 | 28 | ||
| @@ -229,12 +230,17 @@ export struct OperRowListView { | @@ -229,12 +230,17 @@ export struct OperRowListView { | ||
| 229 | .aspectRatio(1) | 230 | .aspectRatio(1) |
| 230 | .interpolation(ImageInterpolation.High) | 231 | .interpolation(ImageInterpolation.High) |
| 231 | .onClick((event: ClickEvent) => { | 232 | .onClick((event: ClickEvent) => { |
| 232 | - ToastUtils.showToast('分享为公共方法,待开发', 1000); | 233 | + // ToastUtils.showToast('分享为公共方法,待开发', 1000); |
| 234 | + this.share() | ||
| 233 | }) | 235 | }) |
| 234 | } | 236 | } |
| 235 | .width(42) | 237 | .width(42) |
| 236 | } | 238 | } |
| 237 | 239 | ||
| 240 | + share() { | ||
| 241 | + WDShare.shareContent(this.contentDetailData) | ||
| 242 | + } | ||
| 243 | + | ||
| 238 | // 已登录->查询用户对作品收藏状态 | 244 | // 已登录->查询用户对作品收藏状态 |
| 239 | private async getInteractDataStatus() { | 245 | private async getInteractDataStatus() { |
| 240 | try { | 246 | try { |
-
Please register or login to post a comment