承载网页的容器页面

wxml
view class="container"  web-view src="{{banner_url}}"/web-view/view
js
 onShareAppMessage: function (options) {    var that = this    var return_url =options.webViewUrl        var path = 'pages/action/action?banner_url=' + return_url  //需要转发的当前页面的路径    return {      title: that.data.title,      path: path,      success: function (res) {        that.web_url = return_url        // 转发成功        wx.showToast({          title: "转发成功",          icon: 'success',          duration: 2000        })      },      fail: function (res) {        // 转发失败      }    }  }小程序

TAG标签: 微信小程序H5商城

http://www.xiaochengxub.com/read-100618.html