| | |
| | | |
| | | // components/chat-components/summary/amisPage/amisPage.ts |
| | | Component({ |
| | | options:{ |
| | | styleIsolation:'apply-shared' |
| | | options: { |
| | | styleIsolation: 'apply-shared' |
| | | }, |
| | | /** |
| | | * 组件的属性列表 |
| | | */ |
| | | properties: { |
| | | data:Object |
| | | data: Object |
| | | }, |
| | | |
| | | /** |
| | | * 组件的初始数据 |
| | | */ |
| | | data: { |
| | | url:'' |
| | | url: '' |
| | | }, |
| | | |
| | | /** |
| | | * 组件的方法列表 |
| | | */ |
| | | methods: { |
| | | |
| | | |
| | | |
| | | gotoLinkPage() { |
| | | if(!this.data.data?.amis_json)return; |
| | | if (!this.data.data?.amis_json) return; |
| | | const webUrl = `${STATIC_FILE_BASE_URL}/static/amis_html/index.html?=${JSON.stringify(this.data.data)}`; |
| | | |
| | | wx.navigateTo({ url:'/pages/web/web?url=' + webUrl }) |
| | | wx.navigateTo({ url: '/pages/web/web?url=' + webUrl }) |
| | | } |
| | | }, |
| | | |
| | | lifetimes:{ |
| | | |
| | | ready(){ |
| | | |
| | | lifetimes: { |
| | | |
| | | ready() { |
| | | |
| | | // if(!this.data.data?.amis_json)return; |
| | | // this.setData({ |
| | | // url:`${STATIC_FILE_BASE_URL}/static/amis_html/index.html?=${JSON.stringify(this.data.data)}` |
| | | // }) |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | }) |