| | |
| | | import { |
| | | actionDo, |
| | | getWholecaseInfo |
| | | getWholecaseInfo, |
| | | getMemberInfo |
| | | } from '../../api/index' |
| | | import { |
| | | eventBus |
| | |
| | | setTimeout(() => { |
| | | eventBus.emit('caseDeBack', this.data.info) |
| | | }, 500) |
| | | }, |
| | | onShow(){ |
| | | this.setData({ member: wx.getStorageSync('member') }) |
| | | }, |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | |
| | | info |
| | | } = this.data |
| | | console.log('点击了分享') |
| | | return { |
| | | path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id |
| | | if(info.users && info.users.id){ |
| | | return { |
| | | path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id |
| | | } |
| | | }else{ |
| | | return { |
| | | path: '/pages/detailDis/case?id=' + info.id |
| | | } |
| | | } |
| | | }, |
| | | handleAction(e) { |
| | |
| | | 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', |
| | | }) |
| | |
| | | showShare: false |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面隐藏 |
| | | */ |