东风启辰小程序端
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.

47 satır
871B

  1. // pages/component/service/index.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. },
  9. /**
  10. * 组件的初始数据
  11. */
  12. data: {
  13. imgUrl: app.globalData.urlStatic,//图片路径
  14. maskState:false,//遮罩显示状态
  15. },
  16. /**
  17. * 组件的方法列表
  18. */
  19. methods: {
  20. maskShow:function(e){//打开遮罩
  21. this.setData({
  22. maskState: true,
  23. })
  24. },
  25. closeService: function (e) {//关闭遮罩
  26. this.setData({
  27. maskState: false,
  28. })
  29. },
  30. newCarConsultation:function(e){//新车咨询
  31. console.log("小程序跳转");
  32. // wx.navigateToMiniProgram({
  33. // appId: 'wx5c64e733d849c3ef',
  34. // success(res) {
  35. // // 打开成功
  36. // },
  37. // complete(res){
  38. // console.log(res);
  39. // }
  40. // })
  41. }
  42. }
  43. })