| | |
| | | import { |
| | | getRealcaseInfo, |
| | | actionDo |
| | | actionDo, |
| | | getMemberInfo |
| | | } from '../../api/index' |
| | | import { |
| | | eventBus |
| | |
| | | actionType: 'view', |
| | | id: options.id |
| | | }) |
| | | }, |
| | | onShow(){ |
| | | this.setData({ member: wx.getStorageSync('member') }) |
| | | }, |
| | | onUnload() { |
| | | console.log('详情进行了销毁'); |
| | |
| | | info |
| | | } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | |
| | | this.setData({ |
| | | member: res.data |
| | | }) |
| | | wx.setStorageSync('member', res.data) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | if (!member.phone) { |
| | | wx.setStorageSync('tempPath', '/pages/design/design') |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | }) |
| | |
| | | // this.setData({showShare: false}) |
| | | // }) |
| | | }, |
| | | // 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 |
| | |
| | | info |
| | | } = this.data |
| | | console.log('点击了分享') |
| | | return { |
| | | path: '/pages/detailDis/realpic?id=' + info.id + '&userId=' + info.users.id |
| | | if(info.users && info.users.id){ |
| | | return { |
| | | path: '/pages/detailDis/realpic?id=' + info.id + '&userId=' + info.users.id |
| | | } |
| | | }else{ |
| | | return { |
| | | path: '/pages/detailDis/realpic?id=' + info.id |
| | | } |
| | | } |
| | | }, |
| | | }) |