| | |
| | | // components/buoyClient/index.js |
| | | import { getCrmAuthUrl } from '../../api/index' |
| | | Component({ |
| | | /** |
| | | * 组件的属性列表 |
| | | */ |
| | | properties: { |
| | | |
| | | showPurpose: { |
| | | type: String, |
| | | value: '0' |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | jumpPage(e) { |
| | | const urls = [ '/pages/kefu/fond', '/pages/store/staff' ] |
| | | const i = e.currentTarget.dataset.i |
| | | if(i == 2){ |
| | | getCrmAuthUrl({type:1}).then(res => { |
| | | console.log(res.data) |
| | | this.setData({ url: res.data }) |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + res.data, |
| | | }) |
| | | }) |
| | | } |
| | | console.log('i', i); |
| | | wx.navigateTo({ |
| | | url: urls[i], |