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

49 line
917B

  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:'wx1d585c8c2fffe589',
  34. path:"/pages/take/takeHome/takeHome",
  35. envVersion:"trial",
  36. success(res) {
  37. // 打开成功
  38. },
  39. complete(res){
  40. console.log(res);
  41. }
  42. })
  43. }
  44. }
  45. })