// packageE/community_buying/components/floatBtn/floatBtn.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isDeliverShow: {
      value: false,
      type: Boolean,
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    alertFlag: false,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    openAlert() {
      console.log("执行");
      this.setData({
        alertFlag: !this.data.alertFlag,
      });
    },
    openShare() {
      console.log("执行");
      this.triggerEvent("openShare");
    },
    gotoOrder() {
      wx.navigateTo({
        url: "/packageA/member/myOrder_v2/myOrder_v2?status=0",
      });
    },
    gotoIndexV2() {
      wx.reLaunch({
        url: '/packageG/member_v2/member_v2'
      });
    },
  },
});