index.wxml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <van-button
  2. square
  3. id="{{ id }}"
  4. size="large"
  5. lang="{{ lang }}"
  6. loading="{{ loading }}"
  7. disabled="{{ disabled }}"
  8. open-type="{{ openType }}"
  9. business-id="{{ businessId }}"
  10. custom-class="van-goods-action-icon"
  11. session-from="{{ sessionFrom }}"
  12. app-parameter="{{ appParameter }}"
  13. send-message-img="{{ sendMessageImg }}"
  14. send-message-path="{{ sendMessagePath }}"
  15. show-message-card="{{ showMessageCard }}"
  16. send-message-title="{{ sendMessageTitle }}"
  17. bind:click="onClick"
  18. binderror="onError"
  19. bindcontact="onContact"
  20. bindopensetting="onOpenSetting"
  21. bindgetuserinfo="onGetUserInfo"
  22. bindgetphonenumber="onGetPhoneNumber"
  23. bindlaunchapp="onLaunchApp"
  24. >
  25. <van-icon
  26. wx:if="{{ icon }}"
  27. name="{{ icon }}"
  28. dot="{{ dot }}"
  29. info="{{ info }}"
  30. size="{{ size }}"
  31. color="{{ color }}"
  32. class-prefix="{{ classPrefix }}"
  33. class="van-goods-action-icon__icon"
  34. custom-class="icon-class"
  35. info-class="info-class"
  36. />
  37. <view wx:else>
  38. <slot name="icon" />
  39. </view>
  40. <text class="text-class">{{ text }}</text>
  41. </van-button>