yaomengwang.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <!--product/yaomengwang/yaomengwang.wxml-->
  3. <web-view :src="webUrl" @load="load"></web-view>
  4. </template>
  5. <script>
  6. const app = getApp();
  7. const req = require("../../utils/request.js");
  8. export default {
  9. data() {
  10. return {
  11. webUrl: ''
  12. };
  13. },
  14. components: {},
  15. props: {},
  16. /**
  17. * 生命周期函数--监听页面加载
  18. */
  19. onLoad: function (options) {
  20. // let webUrl = 'https://test-docking.yaomengwang.cn/hunan?enterpriseCode=hnty&orderId=' + options.orderId;
  21. let webUrl = req.public.yaomeng + req.public.channel + options.orderId;
  22. this.setData({
  23. webUrl: webUrl
  24. });
  25. // console.log(webUrl);
  26. },
  27. // load(){
  28. // // req.loadIng("加载中")
  29. // if(isShowLoading){
  30. // wx.hideLoading()
  31. // isShowLoading =false;
  32. // }
  33. // },
  34. /**
  35. * 生命周期函数--监听页面初次渲染完成
  36. */
  37. onReady: function () {// wx.hideLoading()
  38. },
  39. /**
  40. * 生命周期函数--监听页面显示
  41. */
  42. onShow: function () {// req.loadIng("加载中")
  43. },
  44. /**
  45. * 生命周期函数--监听页面隐藏
  46. */
  47. onHide: function () {},
  48. /**
  49. * 生命周期函数--监听页面卸载
  50. */
  51. onUnload: function () {},
  52. /**
  53. * 页面相关事件处理函数--监听用户下拉动作
  54. */
  55. onPullDownRefresh: function () {},
  56. /**
  57. * 页面上拉触底事件的处理函数
  58. */
  59. onReachBottom: function () {},
  60. methods: {}
  61. };
  62. </script>
  63. <style>
  64. @import "./yaomengwang.css";
  65. </style>