|  |  |  | 
|---|
|  |  |  | import { shareContent, getProductNewsInfo } from '../../api/index' | 
|---|
|  |  |  | import { actionDo, getProductNewsInfo } from '../../api/index' | 
|---|
|  |  |  | Page({ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleShare() { | 
|---|
|  |  |  | console.log('点击了分享'); | 
|---|
|  |  |  | shareContent(this.data.info.id) | 
|---|
|  |  |  | actionDo({ | 
|---|
|  |  |  | actionType: 'share', | 
|---|
|  |  |  | id: this.data.info.id | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // onShareAppMessage: function () { | 
|---|
|  |  |  | //   // let { productDetail, userInfo } = this.data | 
|---|
|  |  |  | //   return { | 
|---|
|  |  |  | //     title: productDetail.title, | 
|---|
|  |  |  | //     path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0' | 
|---|
|  |  |  | //   } | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | onClose() { | 
|---|
|  |  |  | this.setData({showShare: false}) | 
|---|
|  |  |  | }, | 
|---|