Small micro-channel program interface API

  api interface screen related

  Interaction:

    wx.showToast () displays a message box Parameters: object

      object attributes:

        title: String prompt type content (text up to 7 characters)

        icon: Icon type string

          Property Value: success: an icon showing success

              loading: display icons loaded

              none: Does not display the icon

        image: string type defined path from a local icon, image, icon higher priority than

        duration: Type Digital prompt delay time

        mask: Type boolean whether to show transparency mask layer to prevent the penetration of touch

        success: callback type function interface called success

        fail: the type of function interfaces call failed callback function

        complete: type function interface call failed callback function (success, failure, will be executed)

    wx.showModal () to display a modal dialog (he owns the OK button and Cancel button) Parameters: object  

      object attributes:

        title: prompt type string of title

        content: content type string Tips

        showCancel: Type boolean whether to display the Cancel button

        cancelText: text (up to 4 characters) Cancel button of type string

        cancelColor: type string cancel color of the button

          

Guess you like

Origin www.cnblogs.com/shangjun6/p/10949334.html