{{companyInfo.name}} {{companyInfo.symbol}} 行业:{{industry}} 地区:{{area}} 常见财务指标 资产负债表 利润表 现金流量表
const app = getApp() var touchDot = 0 var interval = "" var time = 0 var flag_hd = true Page({ // touchStart(e){ // touchDot = e.touches[0].pageX // interval = setInterval(() => { // time++ // }, 100) // }, // touchEnd(e){ // var touchMove = e.changedTouches[0].pageX // if (touchMove - touchDot <= -40 && time < 10 && flag_hd == true) { // flag_hd = false // wx.switchTab({ // url: '/pages/ai-stock/ai-stock' // }) // } // clearInterval(interval) // time = 0 // }, selectedName(e) { let detail = e.detail this.setData({ companyInfo: detail }) app.globalData.companyInfo = detail app.globalData.companyCheckedList = [] let self = this wx.request({ url: app.globalData.serverUrl, method: 'post', data: { procedure: 'com.sgai.finance.manager.anonymous.get_company_base_info_by_name', args: ['call', detail.symbol] }, success(res) { if (res.data.args[0].data) { self.setData({ industry: res.data.args[0].data.industry_involved, area: res.data.args[0].data.area_name }) } } }) }, data: { companyInfo: {}, industry: '', area: '' }, onLoad: function() { this.initData() }, onShow: function () { flag_hd = true clearInterval(interval) time = 0 }, initData() { // let companyInfo = { // name: '中国平安', // symbol: '601318', // spell: 'zgpa' // } let companyInfo = { name: '爱尔眼科', symbol: '300015', spell: 'aeyk' } app.globalData.companyInfo = companyInfo this.setData({ companyInfo: companyInfo, industry: '金融业', area: '广东省' }) }, onPullDownRefresh() { this.initData() let search = this.selectComponent('#search') search.setData({ text: '', resultList: [] }) wx.stopPullDownRefresh() } })