抖音c端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
877 B

  1. // c:\Users\56817\Desktop\Working Space\3,TikTok-MiniPro\ttc\pages2\shopSelect\shopSelect.js
  2. Page({
  3. data: {
  4. isShop: true,
  5. position: 0,
  6. tagArr: [],
  7. currentTag: ""
  8. },
  9. onLoad: function (options) {
  10. const tagArr = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
  11. this.setData({
  12. tagArr
  13. })
  14. },
  15. selectCity() {
  16. this.setData({
  17. isShop: false
  18. })
  19. },
  20. selectShop() {
  21. this.setData({
  22. isShop: true
  23. })
  24. },
  25. indexBarMove(e) {
  26. },
  27. tagBind(e) {
  28. const that = this
  29. tt.hideToast({
  30. success: (res) => {
  31. const id = e.target.id
  32. that.setData({
  33. currentTag: id
  34. })
  35. tt.showToast({
  36. title: id,
  37. icon: "none",
  38. duration: 1000
  39. });
  40. },
  41. });
  42. },
  43. })