index.js 453 B

1234567891011121314151617181920212223
  1. Component({
  2. properties: {
  3. list: {
  4. type: Array
  5. }
  6. },
  7. lifetimes: {
  8. attached: function () {
  9. getApp().globalData.Language.getLanguagePackage(this)
  10. }
  11. },
  12. methods: {
  13. copyNum(e) {
  14. let data = e.currentTarget.dataset.num;
  15. if (data) wx.setClipboardData({
  16. data,
  17. success: function (res) {
  18. getApp().globalData.Language.showToast('快递单号复制成功')
  19. }
  20. })
  21. }
  22. }
  23. })