You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. const app = getApp()
  2. //Component Object
  3. Component({
  4. properties: {
  5. titil:{//弹框标题
  6. type:String,
  7. value:'提示',
  8. },
  9. text:{//弹框内容
  10. type:String,
  11. value:'告知当前状态,信息和解决方法 告知当前状态',
  12. },
  13. assistant:{//副操作标题
  14. type:String,
  15. value:'',
  16. },
  17. advocate:{//主操作标题
  18. type:String,
  19. value:'',
  20. },
  21. wayAdvocate:{//主操作方法
  22. type:Function,
  23. },
  24. url:{//跳转的路径
  25. type:String,
  26. },
  27. hidText:{//关闭提示框文案
  28. type:String,
  29. value:'确认',
  30. }
  31. },
  32. data: {
  33. },
  34. methods: {
  35. wayAssistant:function(){
  36. this.triggerEvent('hie',{data:false});
  37. },
  38. go:function() {
  39. this.triggerEvent('go',{url:false});
  40. }
  41. },
  42. created: function() {
  43. },
  44. attached: function() {
  45. },
  46. ready: function() {
  47. console.log(this.properties.url,"666");
  48. },
  49. moved: function() {
  50. },
  51. detached: function() {
  52. },
  53. });