# Rate 评分

# 使用指南

Component({
  data: {
    orderId: '',
    payed: false,
  },

  onShow() {
    this.setData({ payed: true });
  },

  // 分享
  async onShareAppMessage(e) {
    const { activitycode = '' } =  e?.target?.dataset || {};
    if (activitycode) {
      const { orderid = '', citycode = '' } = e?.target?.dataset || {};
      const sharingId = await this.selectComponent('#fission-pop').createShare(orderid, citycode, activitycode);
      // const reporter = tms.getReporter();
      // 订单裂变弹窗点击 | 订单ID | 分享的ID
      // reporter.report2('fission_pop_share_click', orderid, sharingId);
      return {
        title: '和我一起分打车红包吧!最高可得36元!',
        imageUrl: 'https://static.img.tai.qq.com/mp/operating/fission/fission-share.png',
        path: `/launch/launch?target=opFission&from=share&sharingId=${sharingId}`,
      };
    }
  },
});
<view>
<tms-fission-pop id="fission-pop" orderId="{{orderId}}" payed="{{payed}}" />
</view>