\pages\insurance\productWebView\productWebView.js


Page({


  /**

   * 页面的初始数据

   */

  data: {

    openId: null,

    productURL: null,

    bool: true

  },


  /**

   * 生命周期函数--监听页面加载

   */

  onLoad: function (options) {

    let openId = wx.getStorageSync("openId") || options.openId||"";

    let productList = wx.getStorageSync("productUrl")

    let url = this.data.productURL;

    let md = this.options.md ? this.options.md : "wx-pnbs-weappzzk"

    this.setData({

      openId: openId,

      productURL: productList[options.productCode] + "?WT.mc_id=" + md + "&partnerId=weappzzk&baoXiaoStore=ture&openid=" + openId

    })

    console.log(this.data.productURL);

    console.log(options.productCode);

  }


})


\pages\insurance\productWebView\productWebView.wxml


<!--pages/insurance/annualAccident/annualAccident.wxml-->

<!-- 产品显示 -->

<web-view src="{{productURL}}"></web-view>