web-view-H5.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // public/pages/web-view-H5/web-view-H5.js
  2. var businessT = require('../../../tool/business-tool.js')
  3. var app = getApp()
  4. Page({
  5. /**
  6. * 页面的初始数据
  7. */
  8. data: {
  9. url:''
  10. },
  11. test(e) {
  12. businessT.debugLog("加载成功")
  13. businessT.debugLog(e.detail)
  14. },
  15. test1(e) {
  16. businessT.debugLog("加载失败")
  17. businessT.debugLog(e.detail)
  18. },
  19. /**
  20. * 生命周期函数--监听页面加载
  21. */
  22. onLoad: function (options) {
  23. swan.setPageInfo && swan.setPageInfo({
  24. title: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金_主页',
  25. keywords: '我的社保,我的社保网,我的社保APP,社会保障,社保,社保代缴,公积金代缴,社会保险,五险一金,医保,医疗保险,公积金,养老,生育,工伤,失业,住房公积金,社保代理,代缴社保,公积金代理,查悦社保,大社保,亲亲小保,社保掌上通,招聘求职,创业,买房,贷款,计算器,人社局,摇号',
  26. description: '我的社保APP是为个人、企业提供社保代缴代扣、公积金代扣代缴、社保查询、公积金查询服务的名牌产品。解决个体工商户、自由职业者、待业人员、全职妈妈、创业者等的个人社保公积金断缴难题,同时解决贷款, 买房, 买车, 养老, 医疗, 生育, 医疗报销等难题。同时为企业提供全国专业社保代理和公积金代理。',
  27. articleTitle: '【我的社保】官方APP-社保挂靠公积金代理全国自助缴纳查询社保公积金_主页',
  28. release_date: '2019-02-23 20:00:00',
  29. success: function () {
  30. console.log('页面基础信息设置完成');
  31. },
  32. fail: function (res) {
  33. console.log('设置失败');
  34. },
  35. })
  36. swan.showLoading({
  37. mask: true,
  38. title: '加载中...',
  39. });
  40. businessT.debugLog(options)
  41. if (options.par == 1001){
  42. this.setData({
  43. url: 'https://www.wodeshebao.com/calc/index.html?f=app'
  44. })
  45. }
  46. else{
  47. this.setData({
  48. url: options.url
  49. })
  50. }
  51. },
  52. /**
  53. * 生命周期函数--监听页面初次渲染完成
  54. */
  55. onReady: function () {
  56. swan.hideLoading()
  57. },
  58. /**
  59. * 生命周期函数--监听页面显示
  60. */
  61. onShow: function () {
  62. },
  63. /**
  64. * 生命周期函数--监听页面隐藏
  65. */
  66. onHide: function () {
  67. },
  68. /**
  69. * 生命周期函数--监听页面卸载
  70. */
  71. onUnload: function () {
  72. },
  73. /**
  74. * 页面相关事件处理函数--监听用户下拉动作
  75. */
  76. onPullDownRefresh: function () {
  77. },
  78. /**
  79. * 页面上拉触底事件的处理函数
  80. */
  81. onReachBottom: function () {
  82. },
  83. /**
  84. * 用户点击右上角分享
  85. */
  86. onShareAppMessage: function () {
  87. }
  88. })