gerson
2024-08-11 b2b8e5ed16f139597b10452df0c467b6e7cde500
miniprogram/components/chat-components/summary/amisPage/amisPage.ts
@@ -2,45 +2,48 @@
// 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)}`
      // })
    }
  }
})