index.js 520 B

1234567891011121314151617181920212223242526
  1. // lionfish_comshop/components/goodsInfo/index.js
  2. Component({
  3. properties: {
  4. order: {
  5. type: Object
  6. },
  7. showNickname: {
  8. type: Boolean,
  9. default: false
  10. }
  11. },
  12. data: {
  13. isCalling: false
  14. },
  15. methods: {
  16. callTelphone: function(t) {
  17. var e = this;
  18. this.data.isCalling || (this.data.isCalling = true, wx.makePhoneCall({
  19. phoneNumber: t.currentTarget.dataset.phone,
  20. complete: function() {
  21. e.data.isCalling = false;
  22. }
  23. }));
  24. }
  25. }
  26. })