orderInfoExpress.js 671 B

12345678910111213141516171819202122232425262728293031
  1. Component({
  2. properties: {
  3. order: {
  4. type: Object
  5. },
  6. showNickname: {
  7. type: Boolean,
  8. default: false
  9. }
  10. },
  11. data: {
  12. isCalling: false
  13. },
  14. methods: {
  15. callTelphone: function (t) {
  16. var e = this;
  17. this.data.isCalling || (this.data.isCalling = true, wx.makePhoneCall({
  18. phoneNumber: t.currentTarget.dataset.phone,
  19. complete: function () {
  20. e.data.isCalling = false;
  21. }
  22. }));
  23. },
  24. goExpress: function(){
  25. let order_id = this.data.order.order_info.order_id;
  26. wx.navigateTo({
  27. url: '/lionfish_comshop/pages/order/goods_express?id=' + order_id,
  28. })
  29. }
  30. }
  31. });